Home
last modified time | relevance | path

Searched refs:std (Results 126 - 150 of 233) sorted by relevance

12345678910

/applications/standard/app_samples/code/BasicFeature/Media/ImageEffect/entry/src/main/cpp/utils/
H A Dcommon_utils.cpp22 const std::map<ImageEffect_Format, const char *> formatToStr_ = {
28 const std::map<ImageEffect_BufferType, const char *> bufferTypeToStr_ = {
75 std::string CommonUtils::EffectInfoToString(OH_EffectFilterInfo *info) in EffectInfoToString()
77 std::string result = ""; in EffectInfoToString()
81 result += "name:" + std::string(name) + ", "; in EffectInfoToString()
89 result += GetBufferType(bufferType) + std::string(" "); in EffectInfoToString()
99 result += GetFormat(ohFormat) + std::string(" "); in EffectInfoToString()
/applications/standard/app_samples/code/BasicFeature/Graphics/DisplaySoloist/entry/src/main/cpp/plugin/
H A Dplugin_manager.h31 void SetNativeXComponent(std::string &id, OH_NativeXComponent *nativeXComponent);
32 SampleXComponent *GetRender(std::string &id);
36 std::unordered_map<std::string, OH_NativeXComponent *> nativeXComponentMap_;
37 std::unordered_map<std::string, SampleXComponent *> pluginRenderMap_;
/applications/standard/app_samples/code/BasicFeature/Graphics/DisplaySync/entry/src/main/cpp/plugin/
H A Dplugin_manager.h31 void SetNativeXComponent(std::string &id, OH_NativeXComponent *nativeXComponent);
32 SampleXComponent *GetRender(std::string &id);
36 std::unordered_map<std::string, OH_NativeXComponent *> nativeXComponentMap_;
37 std::unordered_map<std::string, SampleXComponent *> pluginRenderMap_;
/applications/standard/app_samples/code/BasicFeature/Native/NdkVulkan/entry/src/main/cpp/render/
H A Dplugin_manager.h37 void SetNativeXComponent(std::string &id, OH_NativeXComponent *nativeXComponent);
38 PluginRender *GetRender(std::string &id);
42 std::unordered_map<std::string, OH_NativeXComponent*> nativeXComponentMap;
43 std::unordered_map<std::string, PluginRender*> pluginRenderMap;
/applications/standard/app_samples/code/BasicFeature/Native/XComponent/entry/src/main/cpp/manager/
H A Dplugin_manager.h39 void SetNativeXComponent(std::string& id, OH_NativeXComponent* nativeXComponent);
40 PluginRender* GetRender(std::string& id);
46 std::unordered_map<std::string, OH_NativeXComponent*> nativeXComponentMap_;
47 std::unordered_map<std::string, PluginRender*> pluginRenderMap_;
/applications/standard/contacts_data/ability/common/utils/include/
H A Dcontacts_json_utils.h33 std::string GetDeleteData(std::shared_ptr<OHOS::NativeRdb::ResultSet> &resultSet);
34 void ConvertResultSet(Json::Value &arrayValue, std::shared_ptr<OHOS::NativeRdb::ResultSet> &resultSet);
35 void GetValue(std::vector<std::string> &columnNames, unsigned int &index, Json::Value &data,
36 std::shared_ptr<OHOS::NativeRdb::ResultSet> &resultSet);
/applications/standard/contacts_data/ability/account/src/
H A Daccount_change_event.cpp35 std::shared_ptr<AccountSync> accountSync = AccountSync::GetInstance(); in OnReceiveEvent()
36 std::vector<OHOS::AccountSA::OhosAccountInfo> sysAccounts; in OnReceiveEvent()
37 std::vector<std::string> accountObjVec = ContactsStringUtils::SplitStr(data.GetData(), SPLIT_SYMBOL_VERTICAL); in OnReceiveEvent()
39 std::vector<std::string> accountObj = ContactsStringUtils::SplitStr(accountObjVec[i], SPLIT_SYMBOL_COMMA); in OnReceiveEvent()
/applications/standard/contacts_data/dataBusiness/contacts/include/
H A Dcontacts.h30 int InsertContact(std::shared_ptr<OHOS::NativeRdb::RdbStore> rdbStore, const int64_t &outRawContactId,
33 int UpdateContact(const int &rawContactId, std::shared_ptr<OHOS::NativeRdb::RdbStore> rdbStore,
35 int DeleteContactById(std::shared_ptr<OHOS::NativeRdb::RdbStore> rdbStore, int needDeleteContactId);
38 int ContactValueBucketGetInt(OHOS::NativeRdb::ValuesBucket rawContactValues, std::string ColumnName);
39 std::string ContactValueBucketGetString(OHOS::NativeRdb::ValuesBucket rawContactValues, std::string ColumnName);
/applications/standard/app_samples/code/BasicFeature/Connectivity/VPN/entry/src/main/cpp/
H A Dvpn_client.cpp58 static std::thread g_threadt1;
59 static std::thread g_threadt2;
62 static std::string GetStringFromValueUtf8(napi_env env, napi_value value) in GetStringFromValueUtf8()
64 std::string result; in GetStringFromValueUtf8()
142 std::string ipAddr = GetStringFromValueUtf8(env, args[0]); in TcpConnect()
184 std::thread tt1(HandleReadTunfd, g_fdInfo); in StartVpn()
185 std::thread tt2(HandleTcpReceived, g_fdInfo); in StartVpn()
187 g_threadt1 = std::move(tt1); in StartVpn()
188 g_threadt2 = std::move(tt2); in StartVpn()
/applications/standard/app_samples/code/BasicFeature/Native/NdkRawfile/entry/src/main/cpp/
H A Drawfile_demo.cpp41 std::string filename(strBuf, strSize); in GetFileList()
44 std::vector<std::string> tempArray; in GetFileList()
46 std::string filename = OH_ResourceManager_GetRawFileName(rawDir, i); in GetFileList()
63 napi_value CreateJsArrayValue(napi_env env, std::unique_ptr<uint8_t[]> &data, long length) in CreateJsArrayValue()
102 std::string filename(strBuf, strSize); in GetRawFileContent()
108 std::unique_ptr<uint8_t[]> data = std::make_unique<uint8_t[]>(len); in GetRawFileContent()
173 std::string filename(strBuf, strSize); in GetRawFileDescriptor()
/applications/standard/app_samples/code/BasicFeature/Native/XComponent/entry/src/main/cpp/render/
H A Dplugin_render.h28 explicit PluginRender(std::string& id);
37 static PluginRender* GetInstance(std::string& id);
38 static void Release(std::string& id);
52 static std::unordered_map<std::string, PluginRender*> instance_;
54 std::string id_;
/applications/standard/calendardata/calendarmanager/native/src/
H A Ddata_share_helper_manager.cpp22 void DataShareHelperManager::SetDataShareHelper(std::shared_ptr<DataShare::DataShareHelper> helper) in SetDataShareHelper()
27 std::shared_ptr<DataShare::DataShareHelper> DataShareHelperManager::GetDataShareHelper() in GetDataShareHelper()
41 int DataShareHelperManager::BatchInsert(const Uri &uri, const std::vector<DataShare::DataShareValuesBucket> &values) in BatchInsert()
69 std::shared_ptr<DataShareResultSet> DataShareHelperManager::Query(const Uri &uri, const DataSharePredicates &predicates, in Query()
70 std::vector<std::string> &columns, DatashareBusinessError *businessError) in Query()
/applications/standard/calendardata/calendarmanager/common/
H A Dcalendar_define.h24 using std::string;
25 using std::string_view;
26 using std::vector;
27 using std::optional;
28 using std::variant;
33 std::string name; // readonly
34 std::string type;
/applications/standard/contacts_data/dataBusiness/voicemail/src/
H A Dvoicemail_database.cpp23 std::shared_ptr<VoiceMailDataBase> VoiceMailDataBase::voiceMailDataBase_ = nullptr;
24 std::shared_ptr<OHOS::NativeRdb::RdbStore> VoiceMailDataBase::store_ = nullptr;
31 std::shared_ptr<VoiceMailDataBase> VoiceMailDataBase::GetInstance() in GetInstance()
40 int64_t VoiceMailDataBase::InsertVoiceMail(std::string tableName, OHOS::NativeRdb::ValuesBucket insertValues) in InsertVoiceMail()
90 std::shared_ptr<OHOS::NativeRdb::ResultSet> VoiceMailDataBase::Query( in Query()
91 OHOS::NativeRdb::RdbPredicates &rdbPredicates, const std::vector<std::string> columns) in Query()
/applications/standard/app_samples/code/BasicFeature/Graphics/DisplaySoloist/entry/src/main/cpp/samples/
H A Dsample_xcomponent.cpp23 static std::unordered_map<std::string, OH_DisplaySoloist *> g_displaySync;
38 std::string id(idStr); in OnSurfaceCreatedCB()
66 std::string id(idStr); in OnSurfaceDestroyedCB()
88 std::string id(idStr); in TestCallback()
107 static std::unordered_map<std::string, SampleXComponent *> g_instance;
253 void ExecuteDisplaySoloist(std::string id, DisplaySoloist_ExpectedRateRange range, bool useExclusiveThread, in ExecuteDisplaySoloist()
298 std::string id(idStr); in NapiRegister()
356 std in NapiUnregister()
[all...]
/applications/standard/contacts_data/contacts/include/
H A Dcontacts_api.h54 int GetRawIdByResultSet(const std::shared_ptr<DataShare::DataShareResultSet> &resultSet);
77 void HoldersStructure(std::map<std::string, std::string> &holders, Holder &holder);
81 napi_env env, std::string key, napi_value hold, napi_value attr);
84 napi_value &attrObject, std::vector<DataShare::DataShareValuesBucket> &valueContactData);
85 std::vector<std::string> BuildUpdateContactColumns();
90 napi_env env, std::string email, napi_value hold, napi_value attr);
92 napi_env env, std
[all...]
/applications/standard/calendardata/calendarmanager/test/unittest/src/
H A Devent_service_test.cpp24 const std::string TEST_NAME = "EventServiceTest";
45 static std::shared_ptr<Calendar> calendar;
48 std::shared_ptr<Calendar> EventServiceTest::calendar = nullptr;
60 event.service = std::make_optional<EventService>(testService); in HWTEST_F()
67 ASSERT_NE(resultEvent.service, std::nullopt); in HWTEST_F()
85 ASSERT_EQ(resultEvent.service, std::nullopt); in HWTEST_F()
/applications/standard/contacts_data/dataBusiness/calllog/include/
H A Dcalllog_database.h39 static std::shared_ptr<CallLogDataBase> GetInstance();
40 static std::shared_ptr<OHOS::NativeRdb::RdbStore> store_;
44 std::shared_ptr<OHOS::NativeRdb::ResultSet> Query(
45 OHOS::NativeRdb::RdbPredicates &rdbPredicates, std::vector<std::string> columns);
55 static std::shared_ptr<CallLogDataBase> callLogDataBase_;
/applications/standard/settings/cj/settings/src/
H A Dcj_settings_utils.h29 std::string key;
30 std::string value;
31 std::string uri;
32 std::string tableName;
34 std::shared_ptr<OHOS::DataShare::DataShareHelper> dataShareHelper = nullptr;
/applications/standard/contacts_data/dataBusiness/contacts/src/
H A Dprofile_database.cpp30 std::shared_ptr<ProfileDatabase> ProfileDatabase::profileDatabase_ = nullptr;
31 std::shared_ptr<OHOS::NativeRdb::RdbStore> ProfileDatabase::store_ = nullptr;
32 static std::string g_databaseName;
34 std::mutex g_mtx;
54 std::shared_ptr<ContactsAccount> contactsAccount = ContactsAccount::GetInstance(); in ProfileDatabase()
60 std::shared_ptr<ProfileDatabase> ProfileDatabase::GetInstance() in GetInstance()
70 void ProfileDatabase::DestroyInstanceAndRestore(std::string restorePath) in DestroyInstanceAndRestore()
85 bool ProfileDatabase::Restore(std::string restorePath) in Restore()
/applications/standard/app_samples/code/BasicFeature/Native/NdkOpenGL/entry/src/main/cpp/include/util/
H A Dnapi_util.h26 std::string &target);
29 static int StringToInt(std::string value);
30 static int StringToLong(std::string value);
31 static float StringToFloat(std::string value);
32 static bool StringToBool(std::string value);
/applications/standard/app_samples/code/BasicFeature/Native/XComponent3D/entry/src/main/cpp/include/util/
H A Dnapi_util.h26 std::string &target);
29 static int StringToInt(std::string value);
30 static int StringToLong(std::string value);
31 static float StringToFloat(std::string value);
32 static bool StringToBool(std::string value);
/applications/sample/camera/media/
H A Dplayer_sample.cpp64 std::shared_ptr<Player> adapter;
73 std::shared_ptr<StreamSourceSample> streamSample;
74 std::shared_ptr<PlayerCallback> cb;
97 void SetStreamCallback(const std::shared_ptr<StreamCallback> &callback);
103 std::weak_ptr<StreamCallback> m_callBack;
104 std::vector<IdleBuffer> aviableBuffer;
120 void StreamSourceSample::SetStreamCallback(const std::shared_ptr<StreamCallback> &callback) in SetStreamCallback()
127 std::shared_ptr<StreamCallback> callback = m_callBack.lock(); in GetBufferAddress()
136 std::shared_ptr<StreamCallback> callback = m_callBack.lock(); in QueueBuffer()
384 sample.cb = std in SetCallback()
[all...]
/applications/standard/app_samples/code/BasicFeature/Native/NdkDrawing/entry/src/main/cpp/samples/
H A Dsample_bitmap.cpp38 std::string id(idStr); in OnSurfaceCreatedCB()
66 std::string id(idStr); in OnSurfaceDestroyedCB()
70 static std::unordered_map<std::string, SampleBitMap *> g_instance;
168 float dX = aX - len * std::sin(18.0f); in ConstructPath()
169 float dY = aY + len * std::cos(18.0f); in ConstructPath()
170 float cX = aX + len * std::sin(18.0f); in ConstructPath()
173 float bY = aY + std::sqrt((cX - dX) * (cX - dX) + (len / 2.0) * (len / 2.0)); in ConstructPath()
287 std::string id(idStr); in NapiDrawPattern()
337 std in NapiDrawText()
[all...]
/applications/standard/app_samples/code/BasicFeature/Native/NdkOpenGL/entry/src/main/cpp/
H A Dnapi_util.cpp41 int NapiUtil::StringToInt(std::string value) in StringToInt()
46 int NapiUtil::StringToLong(std::string value) in StringToLong()
51 float NapiUtil::StringToFloat(std::string value) in StringToFloat()
53 return std::stof(value); in StringToFloat()
56 bool NapiUtil::StringToBool(const std::string value) in StringToBool()

Completed in 9 milliseconds

12345678910