/applications/standard/settings/cj/settings/src/ |
H A D | cj_settings.cpp | 79 bool IsTableNameInvalid(std::string tableName) in IsTableNameInvalid() argument 81 if (tableName != "global" && tableName != "system" && tableName != "secure") { in IsTableNameInvalid() 87 std::string GetStageUriStr(std::string tableName, std::string idStr, std::string keyStr) in GetStageUriStr() argument 92 if (tableName == "global") { in GetStageUriStr() 96 } else if (tableName == "system") { in GetStageUriStr() 100 } else if (tableName == "secure") { in GetStageUriStr() 112 std::string GetProxyUriStr(std::string tableName, std::string idStr) in GetProxyUriStr() argument 117 if (tableName in GetProxyUriStr() 158 GetDataShareHelper( OHOS::AbilityRuntime::Context* context, std::string tableName) GetDataShareHelper() argument 273 GetUriSync(const char* name, const char* tableName) GetUriSync() argument [all...] |
H A D | cj_settings_observer.cpp | 48 std::string tableName = domainName; in RegisterKeyObserver() local 54 auto dataShareHelper = GetDataShareHelper(context, tableName); in RegisterKeyObserver() 58 std::string strUri = GetStageUriStr(tableName, GetUserIdStr(), key); in RegisterKeyObserver() 63 settingsObserver->cjInfo.tableName = tableName; in RegisterKeyObserver() 79 std::string tableName = domainName; in UnregisterKeyObserver() local 88 auto dataShareHelper = GetDataShareHelper(context, tableName); in UnregisterKeyObserver() 92 std::string strUri = GetStageUriStr(tableName, GetUserIdStr(), key); in UnregisterKeyObserver()
|
H A D | cj_settings.h | 34 static char* GetUriSync(const char* name, const char* tableName); 37 OHOS::AbilityRuntime::Context* context, std::string tableName); 39 std::string GetStageUriStr(std::string tableName, std::string idStr, std::string keyStr);
|
H A D | settings_ffi.cpp | 49 char* FfiSettingsGetUriSync(const char* name, const char* tableName) in FfiSettingsGetUriSync() argument 51 return Settings::GetUriSync(name, tableName); in FfiSettingsGetUriSync()
|
H A D | cj_settings_utils.h | 32 std::string tableName; member
|
H A D | settings_ffi.h | 34 FFI_EXPORT char* FfiSettingsGetUriSync(const char* name, const char* tableName);
|
/applications/standard/contacts_data/test/unittest/src/ |
H A D | contactgroup_test.cpp | 47 int ContactGroupTest::ContactUpdate(const std::string &tableName, OHOS::DataShare::DataShareValuesBucket updateValues, in ContactUpdate() argument 51 if (tableName == ContactTabName::RAW_CONTACT) { in ContactUpdate() 54 } else if (tableName == ContactTabName::CONTACT_DATA) { in ContactUpdate() 57 } else if (tableName == ContactTabName::GROUPS) { in ContactUpdate() 60 } else if (tableName == ContactTabName::CONTACT_BLOCKLIST) { in ContactUpdate() 69 int ContactGroupTest::ContactDelete(const std::string &tableName, OHOS::DataShare::DataSharePredicates predicates) in ContactDelete() argument 72 if (tableName == ContactTabName::RAW_CONTACT) { in ContactDelete() 75 } else if (tableName == ContactTabName::CONTACT_DATA) { in ContactDelete() 78 } else if (tableName == ContactTabName::GROUPS) { in ContactDelete() 81 } else if (tableName in ContactDelete() 93 ContactQuery( const std::string &tableName, std::vector<std::string> columns, OHOS::DataShare::DataSharePredicates predicates) ContactQuery() argument 124 QueryAndExpectResult(const std::string &tableName, OHOS::DataShare::DataSharePredicates predicates, OHOS::DataShare::DataShareValuesBucket &values, std::string testName) QueryAndExpectResult() argument [all...] |
H A D | contactpinyin_test.cpp | 53 const std::string &tableName, std::vector<std::string> columns, OHOS::DataShare::DataSharePredicates predicates) in ContactQuery() 56 if (tableName == ContactTabName::RAW_CONTACT) { in ContactQuery() 59 } else if (tableName == ContactTabName::CONTACT_DATA) { in ContactQuery() 62 } else if (tableName == ContactTabName::CONTACT) { in ContactQuery() 65 } else if (tableName == ContactTabName::GROUPS) { in ContactQuery() 68 } else if (tableName == ContactTabName::CONTACT_BLOCKLIST) { in ContactQuery() 71 } else if (tableName == ContactTabName::DELETED_RAW_CONTACT) { in ContactQuery() 74 } else if (tableName == ContactTabName::SEARCH_CONTACT) { in ContactQuery() 83 void ContactPinyinTest::QueryAndExpectResult(std::string &tableName, OHOS::DataShare::DataSharePredicates predicates, in QueryAndExpectResult() argument 87 std::shared_ptr<OHOS::DataShare::DataShareResultSet> resultSet = ContactQuery(tableName, column in QueryAndExpectResult() 52 ContactQuery( const std::string &tableName, std::vector<std::string> columns, OHOS::DataShare::DataSharePredicates predicates) ContactQuery() argument [all...] |
H A D | contactquery_test.cpp | 53 const std::string &tableName, std::vector<std::string> columns, OHOS::DataShare::DataSharePredicates predicates) in ContactQuery() 56 if (tableName == ContactTabName::RAW_CONTACT) { in ContactQuery() 59 } else if (tableName == ContactTabName::CONTACT_DATA) { in ContactQuery() 62 } else if (tableName == ContactTabName::CONTACT) { in ContactQuery() 65 } else if (tableName == ContactTabName::GROUPS) { in ContactQuery() 68 } else if (tableName == ContactTabName::CONTACT_BLOCKLIST) { in ContactQuery() 71 } else if (tableName == ContactTabName::DELETED_RAW_CONTACT) { in ContactQuery() 74 } else if (tableName == ContactTabName::SEARCH_CONTACT) { in ContactQuery() 52 ContactQuery( const std::string &tableName, std::vector<std::string> columns, OHOS::DataShare::DataSharePredicates predicates) ContactQuery() argument
|
H A D | contactability_test.cpp | 96 int ContactAbilityTest::ContactUpdate(const std::string &tableName, OHOS::DataShare::DataShareValuesBucket updateValues, in ContactUpdate() argument 100 if (tableName == ContactTabName::RAW_CONTACT) { in ContactUpdate() 103 } else if (tableName == ContactTabName::CONTACT_DATA) { in ContactUpdate() 106 } else if (tableName == ContactTabName::GROUPS) { in ContactUpdate() 109 } else if (tableName == ContactTabName::CONTACT_BLOCKLIST) { in ContactUpdate() 118 int ContactAbilityTest::ContactDelete(const std::string &tableName, OHOS::DataShare::DataSharePredicates predicates) in ContactDelete() argument 121 if (tableName == ContactTabName::RAW_CONTACT) { in ContactDelete() 124 } else if (tableName == ContactTabName::CONTACT_DATA) { in ContactDelete() 127 } else if (tableName == ContactTabName::GROUPS) { in ContactDelete() 130 } else if (tableName in ContactDelete() 145 ContactQuery( const std::string &tableName, std::vector<std::string> &columns, OHOS::DataShare::DataSharePredicates predicates) ContactQuery() argument 177 QueryAndExpectResult(std::string &tableName, OHOS::DataShare::DataSharePredicates predicates, OHOS::DataShare::DataShareValuesBucket &values, std::string testName) QueryAndExpectResult() argument 693 std::string tableName = ContactTabName::CONTACT_DATA; HWTEST_F() local 1281 std::string tableName = ContactTabName::CONTACT_DATA; HWTEST_F() local 1339 std::string tableName = ContactTabName::CONTACT_DATA; HWTEST_F() local 1608 std::string tableName = ContactTabName::CONTACT_BLOCKLIST; HWTEST_F() local 1722 std::string tableName = ContactTabName::CONTACT_BLOCKLIST; HWTEST_F() local 1973 std::string tableName = ContactTabName::GROUPS; HWTEST_F() local 2585 std::string tableName = ContactTabName::CONTACT_DATA; HWTEST_F() local 2816 std::string tableName = ContactTabName::CONTACT_DATA; HWTEST_F() local 2917 std::string tableName = ContactTabName::RAW_CONTACT; HWTEST_F() local [all...] |
H A D | contactprofile_test.cpp | 98 int ContactProfileTest::ContactUpdate(const std::string &tableName, OHOS::DataShare::DataShareValuesBucket updateValues, in ContactUpdate() argument 102 if (tableName == ContactTabName::RAW_CONTACT) { in ContactUpdate() 105 } else if (tableName == ContactTabName::CONTACT_DATA) { in ContactUpdate() 108 } else if (tableName == ContactTabName::GROUPS) { in ContactUpdate() 111 } else if (tableName == ContactTabName::CONTACT_BLOCKLIST) { in ContactUpdate() 120 int ContactProfileTest::ContactDelete(const std::string &tableName, OHOS::DataShare::DataSharePredicates predicates) in ContactDelete() argument 123 if (tableName == ContactTabName::RAW_CONTACT) { in ContactDelete() 126 } else if (tableName == ContactTabName::CONTACT_DATA) { in ContactDelete() 129 } else if (tableName == ContactTabName::GROUPS) { in ContactDelete() 132 } else if (tableName in ContactDelete() 144 ContactQuery( const std::string &tableName, std::vector<std::string> &columns, OHOS::DataShare::DataSharePredicates predicates) ContactQuery() argument 176 QueryAndExpectResult(std::string &tableName, OHOS::DataShare::DataSharePredicates predicates, OHOS::DataShare::DataShareValuesBucket &values, std::string testName) QueryAndExpectResult() argument 688 std::string tableName = ContactTabName::CONTACT_DATA; HWTEST_F() local 1276 std::string tableName = ContactTabName::CONTACT_DATA; HWTEST_F() local 1334 std::string tableName = ContactTabName::CONTACT_DATA; HWTEST_F() local 1603 std::string tableName = ContactTabName::CONTACT_BLOCKLIST; HWTEST_F() local 1717 std::string tableName = ContactTabName::CONTACT_BLOCKLIST; HWTEST_F() local 1968 std::string tableName = ContactTabName::GROUPS; HWTEST_F() local 2580 std::string tableName = ContactTabName::CONTACT_DATA; HWTEST_F() local 2810 std::string tableName = ContactTabName::CONTACT_DATA; HWTEST_F() local 2911 std::string tableName = ContactTabName::RAW_CONTACT; HWTEST_F() local [all...] |
/applications/standard/settings/napi/settings/ |
H A D | napi_settings.cpp | 187 std::string tableName = unwrap_string_from_js(env, args[PARAM1]); in napi_get_uri_sync() local 188 std::string retStr = GetStageUriStr(tableName, tmpIdStr, keyStr); in napi_get_uri_sync() 268 std::string tableName = ""; in napi_get_uri() local 270 tableName = unwrap_string_from_js(env, args[PARAM2]); in napi_get_uri() 272 tableName = unwrap_string_from_js(env, args[PARAM1]); in napi_get_uri() 274 tableName = "global"; in napi_get_uri() 276 std::string retStr = GetStageUriStr(tableName, tmpIdStr, keyStr); in napi_get_uri() 408 napi_env env, const napi_value context, const bool stageMode, std::string tableName) in getDataShareHelper() 420 std::string strProxyUri = GetProxyUriStr(tableName, tmpIdStr); in getDataShareHelper() 503 std::string strUri = GetStageUriStr(asyncCallbackInfo->tableName, tmpIdSt in GetValueExecuteExt() 407 getDataShareHelper( napi_env env, const napi_value context, const bool stageMode, std::string tableName) getDataShareHelper() argument 1755 GetStageUriStr(std::string tableName, std::string idStr, std::string keyStr) GetStageUriStr() argument 1781 GetProxyUriStr(std::string tableName, std::string idStr) GetProxyUriStr() argument 1802 IsTableNameInvalid(std::string tableName) IsTableNameInvalid() argument [all...] |
H A D | napi_settings.h | 65 std::string tableName; member 180 std::string GetStageUriStr(std::string tableName, std::string idStr, std::string keyStr); 181 std::string GetProxyUriStr(std::string tableName, std::string idStr); 182 bool IsTableNameInvalid(std::string tableName); 184 napi_env env, const napi_value context, const bool stageMode, std::string tableName = "global");
|
H A D | napi_settings_observer.cpp | 165 callbackInfo->tableName = unwrap_string_from_js(env, args[PARAM2]); in npai_settings_register_observer() 177 auto dataShareHelper = getDataShareHelper(env, args[PARAM0], stageMode, callbackInfo->tableName); in npai_settings_register_observer() 184 std::string strUri = GetStageUriStr(callbackInfo->tableName, GetObserverIdStr(), callbackInfo->key); in npai_settings_register_observer() 223 std::string tableName = unwrap_string_from_js(env, args[PARAM2]); in npai_settings_unregister_observer() local 236 auto dataShareHelper = getDataShareHelper(env, args[PARAM0], stageMode, tableName); in npai_settings_unregister_observer() 241 std::string strUri = GetStageUriStr(tableName, GetObserverIdStr(), key); in npai_settings_unregister_observer()
|
/applications/standard/contacts_data/ability/common/utils/src/ |
H A D | predicates_convert.cpp | 30 std::string tableName, DataShare::DataSharePredicates &dataPredicates) in ConvertPredicates() 32 OHOS::NativeRdb::RdbPredicates predicates = RdbDataShareAdapter::RdbUtils::ToPredicates(dataPredicates, tableName); in ConvertPredicates() 37 std::string tableName, OHOS::NativeRdb::RdbPredicates &oldRdbPredicates) in CopyPredicates() 39 OHOS::NativeRdb::RdbPredicates predicates(tableName); in CopyPredicates() 29 ConvertPredicates( std::string tableName, DataShare::DataSharePredicates &dataPredicates) ConvertPredicates() argument 36 CopyPredicates( std::string tableName, OHOS::NativeRdb::RdbPredicates &oldRdbPredicates) CopyPredicates() argument
|
/applications/standard/contacts_data/test/unittest/include/ |
H A D | contactgroup_test.h | 28 int ContactUpdate(const std::string &tableName, OHOS::DataShare::DataShareValuesBucket updateValues, 30 int ContactDelete(const std::string &tableName, OHOS::DataShare::DataSharePredicates predicates); 31 std::shared_ptr<OHOS::DataShare::DataShareResultSet> ContactQuery(const std::string &tableName, 33 void QueryAndExpectResult(const std::string &tableName, OHOS::DataShare::DataSharePredicates predicates,
|
H A D | contactprofile_test.h | 38 int ContactUpdate(const std::string &tableName, OHOS::DataShare::DataShareValuesBucket updateValues, 40 int ContactDelete(const std::string &tableName, OHOS::DataShare::DataSharePredicates predicates); 41 std::shared_ptr<OHOS::DataShare::DataShareResultSet> ContactQuery(const std::string &tableName, 43 void QueryAndExpectResult(std::string &tableName, OHOS::DataShare::DataSharePredicates predicates,
|
H A D | contactability_test.h | 137 int ContactUpdate(const std::string &tableName, OHOS::DataShare::DataShareValuesBucket updateValues, 139 int ContactDelete(const std::string &tableName, OHOS::DataShare::DataSharePredicates predicates); 140 std::shared_ptr<OHOS::DataShare::DataShareResultSet> ContactQuery(const std::string &tableName, 142 void QueryAndExpectResult(std::string &tableName, OHOS::DataShare::DataSharePredicates predicates,
|
H A D | contactpinyin_test.h | 30 std::shared_ptr<OHOS::DataShare::DataShareResultSet> ContactQuery(const std::string &tableName, 32 void QueryAndExpectResult(std::string &tableName, OHOS::DataShare::DataSharePredicates predicates,
|
H A D | contactquery_test.h | 30 std::shared_ptr<OHOS::DataShare::DataShareResultSet> ContactQuery(const std::string &tableName,
|
/applications/standard/contacts_data/ability/common/utils/include/ |
H A D | predicates_convert.h | 30 std::string tableName, DataShare::DataSharePredicates &dataSharePredicates); 32 std::string tableName, OHOS::NativeRdb::RdbPredicates &oldRdbPredicates);
|
/applications/standard/contacts_data/dataBusiness/voicemail/src/ |
H A D | voicemail_database.cpp | 40 int64_t VoiceMailDataBase::InsertVoiceMail(std::string tableName, OHOS::NativeRdb::ValuesBucket insertValues) in InsertVoiceMail() argument 48 int ret = store_->Insert(outRowId, tableName, insertValues); in InsertVoiceMail()
|
/applications/standard/contacts_data/dataBusiness/voicemail/include/ |
H A D | voicemail_database.h | 38 int64_t InsertVoiceMail(std::string tableName, OHOS::NativeRdb::ValuesBucket insertValues);
|