Home
last modified time | relevance | path

Searched refs:std (Results 101 - 125 of 233) sorted by relevance

12345678910

/applications/standard/contacts_data/test/unittest/src/
H A Drecovery_test.cpp34 std::chrono::milliseconds dura(time); in ClearData()
35 std::this_thread::sleep_for(dura); in ClearData()
43 int64_t RecoveryTest::RawContactInsert(std::string displayName) in RawContactInsert()
64 std::shared_ptr<OHOS::Contacts::DataBaseDisasterRecovery> instance = in HWTEST_F()
66 std::shared_ptr<OHOS::Contacts::ContactsDataBase> contactDatabase = OHOS::Contacts::ContactsDataBase::GetInstance(); in HWTEST_F()
72 std::string backupPath = instance->GetBackUpDatabase(contactDatabase->contactStore_); in HWTEST_F()
100 std::vector<std::string> columns; in HWTEST_F()
102 std::shared_ptr<OHOS::DataShare::DataShareResultSet> resultSet = in HWTEST_F()
113 std in HWTEST_F()
[all...]
/applications/standard/calendardata/calendarmanager/test/unittest/src/
H A Dcalendar_test.cpp37 static std::shared_ptr<Calendar> calendar;
40 std::shared_ptr<Calendar> CalendarTest::calendar = nullptr;
41 const std::string TEST_NAME = "unit_test";
133 event.location = std::make_optional<Location>(testLocation); in HWTEST_F()
198 std::vector<Event> newEvents; in HWTEST_F()
211 EXPECT_TRUE(std::get<0>(config.color).empty()); in HWTEST_F()
221 EXPECT_TRUE(std::get<0>(config.color).empty()); in HWTEST_F()
248 event.recurrenceRule = std::make_optional<RecurrenceRule>(recurrenceRule); in HWTEST_F()
249 event.title = std::make_optional<std in HWTEST_F()
[all...]
/applications/standard/app_samples/code/BasicFeature/Native/Audio/entry/src/main/cpp/
H A Daudio.cpp43 static std::string g_filePath = "/data/storage/el2/base/haps/entry/files/oh_test_audio.pcm";
44 static std::string g_filePath_avp = "/data/storage/el2/base/haps/entry/files/2p0.pcm";
45 static std::string g_filePath_avp_vivid = "/data/storage/el2/base/haps/entry/files/avs3_16.wav";
46 static std::string g_filePath_avp_metadata = "/data/storage/el2/base/haps/entry/files/avs3_bitstream.bin";
60 std::unique_ptr<std::ifstream> normalPCM;
61 std::unique_ptr<std::ifstream> vividPCM;
62 std::unique_ptr<std
[all...]
/applications/standard/app_samples/code/DocsSample/Media/Audio/OHAudio/entry/src/main/cpp/
H A Daudio.cpp43 static std::string g_filePath = "/data/storage/el2/base/haps/entry/files/oh_test_audio.pcm";
44 static std::string g_filePath_avp = "/data/storage/el2/base/haps/entry/files/2p0.pcm";
45 static std::string g_filePath_avp_vivid = "/data/storage/el2/base/haps/entry/files/avs3_16.wav";
46 static std::string g_filePath_avp_metadata = "/data/storage/el2/base/haps/entry/files/avs3_bitstream.bin";
60 std::unique_ptr<std::ifstream> normalPCM;
61 std::unique_ptr<std::ifstream> vividPCM;
62 std::unique_ptr<std
[all...]
/applications/standard/contacts_data/dataBusiness/voicemail/src/
H A Dvoicemail_ability.cpp36 std::mutex g_mutex;
38 std::shared_ptr<Contacts::VoiceMailDataBase> VoiceMailAbility::voiceMailDataBase_ = nullptr;
39 std::map<std::string, int> VoiceMailAbility::uriValueMap_ = {
62 new (std::nothrow) DataShare::ContactsDataShareStubImpl(); in OnConnect()
67 remoteObject->SetVoiceMailAbility(std::static_pointer_cast<VoiceMailAbility>(shared_from_this())); in OnConnect()
78 std::string basePath = context->GetDatabaseDir(); in OnStart()
92 bool VoiceMailAbility::IsBeginTransactionOK(int code, std::mutex &mutex) in IsBeginTransactionOK()
111 bool VoiceMailAbility::IsCommitOK(int code, std::mutex &mutex) in IsCommitOK()
201 int VoiceMailAbility::BatchInsert(const Uri &uri, const std
[all...]
/applications/standard/app_samples/code/BasicFeature/Native/NdkVulkan/entry/src/main/cpp/render/vulkan/
H A Dvulkan_example.cpp195 std::vector<VkPhysicalDevice> devices(deviceCount); in PickPhysicalDevice()
216 std::vector<VkDeviceQueueCreateInfo> queueCreateInfos; in CreateLogicalDevice()
217 std::set<uint32_t> uniqueQueueFamilies = { in CreateLogicalDevice()
408 std::array<VkVertexInputAttributeDescription, 2> vertexInputAttributes; in CreateGraphicsPipeline()
425 std::vector<VkDynamicState> dynamicStates = {VK_DYNAMIC_STATE_VIEWPORT, VK_DYNAMIC_STATE_SCISSOR}; in CreateGraphicsPipeline()
454 std::array<VkVertexInputAttributeDescription, 2>& vertexInputAttributes) in PrepareVertexInputState()
549 VkPipelineDynamicStateCreateInfo VulkanExample::PrepareDynamicState(std::vector<VkDynamicState>& dynamicStates) in PrepareDynamicState()
696 std::vector<Vertex> tempVertices = {{{std::sin(alpha), 1.0f, -std in UpdateVertices()
[all...]
/applications/standard/contacts_data/contacts/src/
H A Dcontacts_api.cpp39 std::mutex g_mutex;
179 std::shared_ptr<DataShare::DataShareHelper> dataShareHelper = nullptr; in GetDataShareHelper()
223 predicates.EqualTo("account_id", std::to_string(holder.holderId)); in HolderPredicates()
243 predicates.EqualTo("type_id", std::to_string(attrs.attributes[i])); in AttributesPredicates()
285 std::string keyValue = contactsBuild.NapiGetValueString(env, executeHelper->argv[0]); in BuildDeleteContactPredicates()
306 std::string keyValue = contactsBuild.NapiGetValueString(env, key); in BuildQueryContactPredicates()
318 void HoldersStructure(std::map<std::string, std::string> &holders, Holder &holder) in HoldersStructure()
327 holders["account_id"] = std in HoldersStructure()
[all...]
/applications/standard/app_samples/code/BasicFeature/Native/NdkDrawing/entry/src/main/cpp/plugin/
H A Dplugin_manager.h31 void SetNativeXComponent(std::string &id, OH_NativeXComponent *nativeXComponent);
32 SampleBitMap *GetRender(std::string &id);
33 void ReleaseRender(std::string &id);
37 std::unordered_map<std::string, OH_NativeXComponent *> nativeXComponentMap_;
38 std::unordered_map<std::string, SampleBitMap *> pluginRenderMap_;
/applications/standard/calendardata/calendarmanager/native/include/
H A Dnative_calendar_manager.h32 std::shared_ptr<Calendar> CreateCalendar(const CalendarAccount& account);
33 std::shared_ptr<Calendar> GetCalendar(const std::optional<CalendarAccount>& account = std::nullopt);
34 std::vector<std::shared_ptr<Calendar>> GetAllCalendars();
38 std::unique_ptr<Uri> m_calendarUri;
H A Ddata_share_helper_manager.h26 void SetDataShareHelper(std::shared_ptr<DataShare::DataShareHelper> helper);
27 std::shared_ptr<DataShare::DataShareHelper> GetDataShareHelper();
46 int BatchInsert(const Uri &uri, const std::vector<DataShare::DataShareValuesBucket> &values);
80 std::shared_ptr<DataShare::DataShareResultSet> Query(const Uri &uri,
81 const DataShare::DataSharePredicates &predicates, std::vector<std::string> &columns,
84 std::shared_ptr<DataShare::DataShareHelper> dataShareHelper;
/applications/standard/contacts_data/ability/sinicization/include/
H A Dconstruction_name.h29 std::string initials_;
31 std::string nameFullFight_;
32 std::string sortFirstLetter_;
33 std::string disPlayName_;
34 std::string photoFirstName_;
35 static std::string local;
36 ConstructionName GetConstructionName(std::string &chineseCharacter, ConstructionName &constructionName);
/applications/standard/contacts_data/dataBusiness/contacts/include/
H A Dcontacts_type.h30 int64_t Insert(std::shared_ptr<OHOS::NativeRdb::RdbStore> rdbStore, std::string typeValue, int typeId);
31 int LookupTypeId(std::shared_ptr<OHOS::NativeRdb::RdbStore> rdbStore, std::string typeValue);
32 void PrepopulateCommonTypes(std::shared_ptr<OHOS::NativeRdb::RdbStore> rdbStore);
33 std::string GetTypeText(std::shared_ptr<OHOS::NativeRdb::RdbStore> rdbStore, int typeId);
/applications/standard/settings/cj/settings/src/
H A Dcj_settings.h36 std::shared_ptr<DataShare::DataShareHelper> GetDataShareHelper(
37 OHOS::AbilityRuntime::Context* context, std::string tableName);
38 std::string GetUserIdStr();
39 std::string GetStageUriStr(std::string tableName, std::string idStr, std::string keyStr);
/applications/standard/calendardata/calendarmanager/napi/include/
H A Dnapi_queue.h28 using NapiCbInfoParser = std::function<void(size_t argc, napi_value* argv)>;
29 using NapiAsyncExecute = std::function<void(void)>;
30 using NapiAsyncComplete = std::function<void(napi_value&)>;
45 std::string error;
61 (ctxt)->error = std::string(message); \
70 (ctxt)->error = std::string(message); \
95 static napi_value AsyncWork(napi_env env, std::shared_ptr<ContextBase> ctxt,
96 const std::string& name, NapiAsyncExecute execute = NapiAsyncExecute(),
108 std::shared_ptr<ContextBase> ctx;
/applications/standard/contacts_data/dataBusiness/quicksearch/src/
H A Dcontacts_search.cpp36 int64_t ContactsSearch::Insert(std::shared_ptr<OHOS::NativeRdb::RdbStore> rdbStore, int64_t contactId, in Insert()
59 int ContactsSearch::UpdateSearchContact(int rawContactId, std::string type, in UpdateSearchContact()
60 std::shared_ptr<OHOS::NativeRdb::RdbStore> rdbStore, OHOS::NativeRdb::ValuesBucket searchContactValues) in UpdateSearchContact()
62 std::string upWhereClause; in UpdateSearchContact()
64 std::vector<std::string> upWhereArgs; in UpdateSearchContact()
65 upWhereArgs.push_back(std::to_string(rawContactId)); in UpdateSearchContact()
96 std::string disPlayName; in StructureSearchContactDataValueBucket()
103 std::string phoneticName; in StructureSearchContactDataValueBucket()
/applications/standard/contacts_data/ability/common/utils/src/
H A Dcontacts_common_event.cpp20 std::shared_ptr<ContactsCommonEvent> ContactsCommonEvent::subscriber = nullptr;
25 std::string action = data.GetWant().GetAction(); in OnReceiveEvent()
28 std::string msgData = data.GetData(); in OnReceiveEvent()
34 const OHOS::AAFwk::Want &want, int eventCode, const std::string &eventData) in PublishContactEvent()
47 void ContactsCommonEvent::UnregisterSubscriber(std::shared_ptr<OHOS::EventFwk::CommonEventSubscriber> subscriber) in UnregisterSubscriber()
63 subscriber = std::make_shared<ContactsCommonEvent>(subscriberInfo); in RegisterSubscriber()
74 std::string eventData("ContactChange"); in SendContactChange()
84 std::string eventData("CallLogChange"); in SendCallLogChange()
94 std::string eventData("voicemailChange"); in SendVoiceMailChange()
/applications/standard/app_samples/code/BasicFeature/Native/NdkOpenGL/entry/src/main/cpp/include/util/
H A Dnapi_manager.h58 OH_NativeXComponent* GetNativeXComponent(std::string& id);
59 void SetNativeXComponent(std::string& id, OH_NativeXComponent* nativeXComponent);
60 AppNapi* GetApp(std::string& id);
75 std::string id_;
76 std::unordered_map<std::string, OH_NativeXComponent*> nativeXComponentMap_;
77 std::unordered_map<std::string, AppNapi*> appNapiMap_;
/applications/standard/app_samples/code/BasicFeature/Native/XComponent3D/entry/src/main/cpp/include/util/
H A Dnapi_manager.h55 OH_NativeXComponent *GetNativeXComponent(std::string &id);
56 void SetNativeXComponent(std::string &id, OH_NativeXComponent *nativeXComponent);
57 AppNapi *GetApp(std::string &id);
72 std::string id_;
73 std::unordered_map<std::string, OH_NativeXComponent *> nativeXComponentMap_;
74 std::unordered_map<std::string, AppNapi *> appNapiMap_;
/applications/standard/app_samples/code/BasicFeature/Native/XComponent/entry/src/main/cpp/render/
H A Dplugin_render.cpp45 std::string id(idStr); in OnSurfaceCreatedCB()
74 std::string id(idStr); in OnSurfaceChangedCB()
99 std::string id(idStr); in OnSurfaceDestroyedCB()
120 std::string id(idStr); in DispatchTouchEventCB()
138 std::string id(idStr); in DispatchMouseEventCB()
156 std::string id(idStr); in DispatchHoverEventCB()
174 std::string id(idStr); in OnFocusEventCB()
192 std::string id(idStr); in OnBlurEventCB()
209 std::string id(idStr); in OnKeyEventCB()
217 std
[all...]
/applications/standard/contacts_data/dataBusiness/voicemail/include/
H A Dvoicemail_database.h36 static std::shared_ptr<VoiceMailDataBase> GetInstance();
37 static std::shared_ptr<OHOS::NativeRdb::RdbStore> store_;
38 int64_t InsertVoiceMail(std::string tableName, OHOS::NativeRdb::ValuesBucket insertValues);
41 std::shared_ptr<OHOS::NativeRdb::ResultSet> Query(
42 OHOS::NativeRdb::RdbPredicates &rdbPredicates, const std::vector<std::string> columns);
51 static std::shared_ptr<VoiceMailDataBase> voiceMailDataBase_;
/applications/standard/contacts_data/ability/account/src/
H A Daccount_data_collection.cpp33 std::string accountName, std::string accountType, std::string dataCollection) in AccountDataCollection()
40 std::string AccountDataCollection::GetcAccountName() in GetcAccountName()
45 std::string AccountDataCollection::GetcAccountType() in GetcAccountType()
50 std::string AccountDataCollection::GetcDataCollection() in GetcDataCollection()
60 bool AccountDataCollection::ContainSysAccounts(std::vector<OHOS::AccountSA::OhosAccountInfo> sysAccounts) in ContainSysAccounts()
H A Daccount_event_manager.cpp28 std::mutex g_mtx;
30 const std::string AccountEventManager::EVENT = "com.test.account.change.event";
31 std::shared_ptr<AccountEventManager> AccountEventManager::instance_ = nullptr;
41 std::shared_ptr<AccountEventManager> AccountEventManager::GetInstance() in GetInstance()
49 void AccountEventManager::PublishEvent(std::string data) in PublishEvent()
71 std::shared_ptr<AccountChangeEvent> subscriber = std::make_shared<AccountChangeEvent>(subscriberInfo); in SubscriberAccountEvent()
/applications/standard/calendardata/calendarmanager/napi/src/
H A Dnapi_util.cpp108 /* napi_value <-> std::string */
109 napi_status GetValue(napi_env env, napi_value in, std::string& out) in GetValue()
120 LOG_DEBUG("napi_value -> std::string get length %{public}d", (int)maxLen); in GetValue()
121 char* buf = new (std::nothrow) char[STR_TAIL_LENGTH + maxLen]; in GetValue()
127 out = std::string(buf); in GetValue()
136 napi_status SetValue(napi_env env, const std::string& in, napi_value& out) in SetValue()
141 /* napi_value <-> std::vector<std::string> */
142 napi_status GetValue(napi_env env, napi_value in, std::vector<std
[all...]
/applications/standard/contacts_data/ability/common/utils/include/
H A Dcontacts_string_utils.h28 static std::string &Trim(std::string &str);
29 static std::vector<std::string> SplitStr(std::string str, std::string spSymbol);
/applications/standard/contacts_data/contacts/include/
H A Dcontacts_napi_common.h100 const std::string CONTACTS_DATA_URI = "datashare:///com.ohos.contactsdataability";
118 std::vector<std::string> columns;
124 std::vector<DataShare::DataShareValuesBucket> valueUpdateContact;
126 std::vector<DataShare::DataShareValuesBucket> valueContact;
128 std::vector<DataShare::DataShareValuesBucket> valueContactData;
130 std::shared_ptr<DataShare::DataShareHelper> dataShareHelper;
134 std::shared_ptr<DataShare::DataShareResultSet> resultSet;

Completed in 13 milliseconds

12345678910