Home
last modified time | relevance | path

Searched refs:FIELD_TOKEN_ID (Results 1 – 19 of 19) sorted by relevance

/base/security/access_token/services/accesstokenmanager/main/cpp/src/database/
Dsqlite_storage.cpp59 TokenFiledConst::FIELD_TOKEN_ID, TokenFiledConst::FIELD_USER_ID, in SqliteStorage()
69 TokenFiledConst::FIELD_TOKEN_ID, TokenFiledConst::FIELD_PROCESS_NAME, in SqliteStorage()
77 TokenFiledConst::FIELD_TOKEN_ID, TokenFiledConst::FIELD_PERMISSION_NAME, in SqliteStorage()
88 TokenFiledConst::FIELD_TOKEN_ID, TokenFiledConst::FIELD_PERMISSION_NAME, in SqliteStorage()
294 .append(TokenFiledConst::FIELD_TOKEN_ID) in CreateHapTokenInfoTable()
317 .append(TokenFiledConst::FIELD_TOKEN_ID) in CreateHapTokenInfoTable()
330 .append(TokenFiledConst::FIELD_TOKEN_ID) in CreateNativeTokenInfoTable()
345 .append(TokenFiledConst::FIELD_TOKEN_ID) in CreateNativeTokenInfoTable()
358 .append(TokenFiledConst::FIELD_TOKEN_ID) in CreatePermissionDefinitionTable()
381 .append(TokenFiledConst::FIELD_TOKEN_ID) in CreatePermissionDefinitionTable()
[all …]
Dtoken_field_const.cpp20 const std::string TokenFiledConst::FIELD_TOKEN_ID = "token_id"; member in OHOS::Security::AccessToken::TokenFiledConst
/base/security/access_token/services/privacymanager/src/record/
Dpermission_record.cpp24 values.Put(PrivacyFiledConst::FIELD_TOKEN_ID, static_cast<int32_t>(record.tokenId)); in TranslationIntoGenericValues()
35 record.tokenId = values.GetInt(PrivacyFiledConst::FIELD_TOKEN_ID); in TranslationIntoPermissionRecord()
Dpermission_used_record_cache.cpp243 record.Put(PrivacyFiledConst::FIELD_TOKEN_ID, static_cast<int32_t>(tokenId)); in RemoveFromPersistQueueAndDatabase()
255 AccessTokenID tokenId = andConditionValues.GetInt(PrivacyFiledConst::FIELD_TOKEN_ID); in GetRecords()
288 AccessTokenID tokenId = andConditionValues.GetInt(PrivacyFiledConst::FIELD_TOKEN_ID); in GetFromPersistQueueAndDatabase()
Dpermission_record_manager.cpp185 …ecordRepository::GetInstance().GetAllRecordValuesByKey(PrivacyFiledConst::FIELD_TOKEN_ID, results); in GetLocalRecordTokenIdList()
188 tokenIdList.emplace(res.GetInt(PrivacyFiledConst::FIELD_TOKEN_ID)); in GetLocalRecordTokenIdList()
211 andConditionValues.Put(PrivacyFiledConst::FIELD_TOKEN_ID, static_cast<int32_t>(tokenId)); in GetRecordsFromLocalDB()
215 andConditionValues.Remove(PrivacyFiledConst::FIELD_TOKEN_ID); in GetRecordsFromLocalDB()
/base/security/access_token/services/privacymanager/test/unittest/
Dpermission_record_db_test.cpp116 modifyColumns.emplace_back(PrivacyFiledConst::FIELD_TOKEN_ID);
132 modifyColumns.emplace_back(PrivacyFiledConst::FIELD_TOKEN_ID);
149 modifyColumns.emplace_back(PrivacyFiledConst::FIELD_TOKEN_ID);
166 modifyColumns.emplace_back(PrivacyFiledConst::FIELD_TOKEN_ID);
371 value1.Put(PrivacyFiledConst::FIELD_TOKEN_ID, 0);
378 value2.Put(PrivacyFiledConst::FIELD_TOKEN_ID, 0);
400 value1.Put(PrivacyFiledConst::FIELD_TOKEN_ID, 0);
409 value2.Put(PrivacyFiledConst::FIELD_TOKEN_ID, 1);
449 value.Put(PrivacyFiledConst::FIELD_TOKEN_ID, 0);
507 value.Put(PrivacyFiledConst::FIELD_TOKEN_ID, 0);
[all …]
/base/security/access_token/services/common/database/test/unittest/
Ddatabase_test.cpp183 AccessTokenID tokenId = (AccessTokenID)hapInfoValue.GetInt(TokenFiledConst::FIELD_TOKEN_ID); in RemoveTestTokenHapInfo()
205 genericValues.Put(TokenFiledConst::FIELD_TOKEN_ID, TEST_TOKEN_ID);
236 genericValues.Put(TokenFiledConst::FIELD_TOKEN_ID, TEST_TOKEN_ID);
257 genericValues.Put(TokenFiledConst::FIELD_TOKEN_ID, TEST_TOKEN_ID);
277 conditions.Put(TokenFiledConst::FIELD_TOKEN_ID, TEST_TOKEN_ID);
287 AccessTokenID tokenId = (AccessTokenID)hapInfoValue.GetInt(TokenFiledConst::FIELD_TOKEN_ID);
311 genericValues.Put(TokenFiledConst::FIELD_TOKEN_ID, TEST_TOKEN_ID);
361 conditions.Put(TokenFiledConst::FIELD_TOKEN_ID, TEST_TOKEN_ID);
390 modifyColumns.emplace_back(TokenFiledConst::FIELD_TOKEN_ID);
495 genericValues.Put(TokenFiledConst::FIELD_TOKEN_ID, TEST_TOKEN_ID);
/base/security/access_token/services/privacymanager/include/common/
Dprivacy_field_const.h26 const static std::string FIELD_TOKEN_ID;
/base/security/access_token/services/privacymanager/src/common/
Dprivacy_field_const.cpp20 const std::string PrivacyFiledConst::FIELD_TOKEN_ID = "token_id"; member in OHOS::Security::AccessToken::PrivacyFiledConst
/base/security/access_token/services/accesstokenmanager/main/cpp/include/database/
Dtoken_field_const.h26 const static std::string FIELD_TOKEN_ID;
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Dpermission_definition_cache.cpp132 … genericValues.Put(TokenFiledConst::FIELD_TOKEN_ID, static_cast<int32_t>(it->second.tokenId)); in StorePermissionDef()
156 AccessTokenID tokenId = (AccessTokenID)defValue.GetInt(TokenFiledConst::FIELD_TOKEN_ID); in RestorePermDefInfo()
Dpermission_policy_set.cpp92 if ((AccessTokenID)stateValue.GetInt(TokenFiledConst::FIELD_TOKEN_ID) == tokenId) { in RestorePermissionPolicy()
127 genericValues.Put(TokenFiledConst::FIELD_TOKEN_ID, static_cast<int32_t>(tokenId_)); in StorePermissionState()
136 genericValues.Put(TokenFiledConst::FIELD_TOKEN_ID, static_cast<int32_t>(tokenId_)); in StorePermissionState()
/base/security/access_token/services/privacymanager/src/database/
Dpermission_used_record_db.cpp61 PrivacyFiledConst::FIELD_TOKEN_ID, in PermissionUsedRecordDb()
156 if (statement.GetColumnName(i) == PrivacyFiledConst::FIELD_TOKEN_ID) { in GetDistinctValue()
388 .append(PrivacyFiledConst::FIELD_TOKEN_ID) in CreatePermissionRecordTable()
403 .append(PrivacyFiledConst::FIELD_TOKEN_ID) in CreatePermissionRecordTable()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/
Dnative_token_info_inner.cpp106 …outGenericValues.Put(TokenFiledConst::FIELD_TOKEN_ID, static_cast<int32_t>(tokenInfoBasic_.tokenID… in TranslationIntoGenericValues()
Dhap_token_info_inner.cpp109 …outGenericValues.Put(TokenFiledConst::FIELD_TOKEN_ID, static_cast<int32_t>(tokenInfoBasic_.tokenID… in TranslationIntoGenericValues()
Daccesstoken_info_manager.cpp90 AccessTokenID tokenId = (AccessTokenID)tokenValue.GetInt(TokenFiledConst::FIELD_TOKEN_ID); in InitHapTokenInfos()
131 … AccessTokenID tokenId = (AccessTokenID)nativeTokenValue.GetInt(TokenFiledConst::FIELD_TOKEN_ID); in InitNativeTokenInfos()
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Daccesstoken_info_manager_test.cpp1659 value1.Put(TokenFiledConst::FIELD_TOKEN_ID, 123); // 123 is random input
1676 value2.Put(TokenFiledConst::FIELD_TOKEN_ID, 123); // 123 is random input
1683 value3.Put(TokenFiledConst::FIELD_TOKEN_ID, 123); // 123 is random input
Dnative_token_receptor_test.cpp298 … AccessTokenID tokenId = (AccessTokenID)nativeTokenValue.GetInt(TokenFiledConst::FIELD_TOKEN_ID);
/base/security/access_token/services/privacymanager/
Dlibprivacy_map22 "OHOS::Security::AccessToken::PrivacyFiledConst::FIELD_TOKEN_ID";