Home
last modified time | relevance | path

Searched refs:grantFlags (Results 1 – 25 of 76) sorted by relevance

1234

/base/telephony/sms_mms/test/gtest/
Dsms_mms_gtest.h50 .grantFlags = { 2 }, // PERMISSION_USER_SET
67 .grantFlags = { 2 }, // PERMISSION_USER_SET
84 .grantFlags = { 2 }, // PERMISSION_USER_SET
101 .grantFlags = { 2 }, // PERMISSION_USER_SET
118 .grantFlags = { 2 }, // PERMISSION_USER_SET
135 .grantFlags = { 2 }, // PERMISSION_USER_SET
152 .grantFlags = { 2 }, // PERMISSION_USER_SET
/base/telephony/core_service/test/unittest/core_service_gtest/
Dsecurity_token.cpp49 .grantFlags = { 2 }, // PERMISSION_USER_SET
68 .grantFlags = { 2 }, // PERMISSION_USER_SET
87 .grantFlags = { 2 }, // PERMISSION_USER_SET
106 .grantFlags = { 2 }, // PERMISSION_USER_SET
125 .grantFlags = { 2 }, // PERMISSION_USER_SET
Dnetwork_search_test.h52 .grantFlags = { 2 }, // PERMISSION_USER_SET
71 .grantFlags = { 2 }, // PERMISSION_USER_SET
90 .grantFlags = { 2 }, // PERMISSION_USER_SET
109 .grantFlags = { 2 }, // PERMISSION_USER_SET
128 .grantFlags = { 2 }, // PERMISSION_USER_SET
147 .grantFlags = { 2 }, // PERMISSION_USER_SET
Dsim_test_util.h51 .grantFlags = { 2 }, // PERMISSION_USER_SET
70 .grantFlags = { 2 }, // PERMISSION_USER_SET
89 .grantFlags = { 2 }, // PERMISSION_USER_SET
108 .grantFlags = { 2 }, // PERMISSION_USER_SET
127 .grantFlags = { 2 }, // PERMISSION_USER_SET
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Dpermission_policy_set.cpp70 …if ((permOld.grantFlags[0] == PERMISSION_DEFAULT_FLAG) && (permOld.grantStatus[0] == PERMISSION_DE… in UpdatePermStateFull()
75 if ((permOld.grantFlags[0] == PERMISSION_SYSTEM_FIXED) || in UpdatePermStateFull()
78 (permOld.grantFlags[0] == PERMISSION_GRANTED_BY_POLICY)) { in UpdatePermStateFull()
85 permNew.grantFlags = permOld.grantFlags; in UpdatePermStateFull()
136 uint32_t flag = GetFlagWroteToDb(state.grantFlags[0]); in MergePermissionStateFull()
137 state.grantFlags[0] = flag; in MergePermissionStateFull()
142 iter->grantFlags.emplace_back(state.grantFlags[0]); in MergePermissionStateFull()
217 if (IsPermGrantedBySecComp(perm.grantFlags[0])) { in GetUserGrantedPermissionUsedType()
253 if (IsPermGrantedBySecComp(perm.grantFlags[0])) { in VerifyPermissionStatus()
291 flag = perm.grantFlags[0]; in QueryPermissionFlag()
[all …]
Dpermission_validator.cpp114 size_t grantFlagSize = permState.grantFlags.size(); in IsPermissionStateValid()
123 !IsPermissionFlagValid(permState.grantFlags[i])) { in IsPermissionStateValid()
149 auto flagIter = permState.grantFlags.begin(); in DeduplicateResDevID()
157 result.grantFlags.emplace_back(*flagIter); in DeduplicateResDevID()
/base/telephony/core_service/services/network_search/test/
Dtest.h49 .grantFlags = { 2 }, // PERMISSION_USER_SET
68 .grantFlags = { 2 }, // PERMISSION_USER_SET
87 .grantFlags = { 2 }, // PERMISSION_USER_SET
106 .grantFlags = { 2 }, // PERMISSION_USER_SET
/base/telephony/sms_mms/test/unittest/
Daccess_mms_token.h50 .grantFlags = { 2 }, // PERMISSION_USER_SET
67 .grantFlags = { 2 }, // PERMISSION_USER_SET
84 .grantFlags = { 2 }, // PERMISSION_USER_SET
102 .grantFlags = { 2 }, // PERMISSION_USER_SET
/base/telephony/state_registry/test/unittest/state_test/
Dstate_registry_test.h61 .grantFlags = { 2 }, // PERMISSION_USER_SET
80 .grantFlags = { 2 }, // PERMISSION_USER_SET
99 .grantFlags = { 2 }, // PERMISSION_USER_SET
118 .grantFlags = { 2 }, // PERMISSION_USER_SET
137 .grantFlags = { 2 }, // PERMISSION_USER_SET
/base/security/access_token/frameworks/accesstoken/src/
Dpermission_state_full_parcel.cpp37 RETURN_IF_FALSE(out.WriteUint32(this->permStatFull.grantFlags.size())); in Marshalling()
38 for (auto grantFlag : this->permStatFull.grantFlags) { in Marshalling()
78 permissionStateParcel->permStatFull.grantFlags.emplace_back(flag); in Unmarshalling()
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
Dapp_installation_optimized_test.cpp51 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
59 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
67 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
74 .grantFlags = {0}
82 .grantFlags = {0}
90 .grantFlags = {0}
98 .grantFlags = {0}
106 .grantFlags = {0}
114 .grantFlags = {0}
227 EXPECT_EQ(permStatList[0].grantFlags[0], PERMISSION_SYSTEM_FIXED);
[all …]
Dremote_token_kit_test.cpp63 .grantFlags = {1},
71 .grantFlags = {1, 2},
236 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}};
335 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}};
367 .grantFlags = {11}, // wrong flags
408 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}};
455 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}};
501 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}};
547 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}};
588 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}};
[all …]
Daccesstoken_kit_extension_test.cpp57 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
65 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
73 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
114 .grantFlags = {1}
122 .grantFlags = {1, 2}
130 .grantFlags = {1}
211 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
219 .grantFlags = {PermissionFlag::PERMISSION_DEFAULT_FLAG}
227 .grantFlags = {PermissionFlag::PERMISSION_USER_FIXED}
235 .grantFlags = {PermissionFlag::PERMISSION_DEFAULT_FLAG}
[all …]
/base/security/access_token/services/accesstokenmanager/main/cpp/src/database/
Ddata_translator.cpp78 grantIndex >= inPermissionState.grantFlags.size()) { in TranslationIntoGenericValues()
86 int32_t grantFlags = static_cast<int32_t>(inPermissionState.grantFlags[grantIndex]); in TranslationIntoGenericValues() local
87 outGenericValues.Put(TokenFiledConst::FIELD_GRANT_FLAG, grantFlags); in TranslationIntoGenericValues()
124 outPermissionState.grantFlags.push_back(grantFlag); in TranslationIntoPermissionStateFull()
/base/telephony/cellular_data/test/
Ddata_access_token.cpp49 .grantFlags = { 2 }, // PERMISSION_USER_SET
68 .grantFlags = { 2 }, // PERMISSION_USER_SET
/base/security/access_token/services/privacymanager/test/unittest/
Dsensitive_manager_test.cpp59 .grantFlags = {1}
67 .grantFlags = {1}
75 .grantFlags = {1}
83 .grantFlags = {1}
/base/telephony/call_manager/test/unittest/call_manager_gtest/include/
Dcall_manager_connect.h69 .grantFlags = { 2 }, // PERMISSION_USER_SET
88 .grantFlags = { 2 }, // PERMISSION_USER_SET
107 .grantFlags = { 2 }, // PERMISSION_USER_SET
126 .grantFlags = { 2 }, // PERMISSION_USER_SET
145 .grantFlags = { 2 }, // PERMISSION_USER_SET
164 .grantFlags = { 2 }, // PERMISSION_USER_SET
183 .grantFlags = { 2 }, // PERMISSION_USER_SET
202 .grantFlags = { 2 }, // PERMISSION_USER_SET
/base/telephony/cellular_call/test/unittest/satellitetest/
Dsatellite_test.h59 .grantFlags = { 2 }, // PERMISSION_USER_SET
78 .grantFlags = { 2 }, // PERMISSION_USER_SET
97 .grantFlags = { 2 }, // PERMISSION_USER_SET
/base/accesscontrol/sandbox_manager/test/fuzztest/common/
Dalloc_token.cpp35 .grantFlags = {0},
42 .grantFlags = {0},
/base/security/access_token/test/fuzztest/services/accesstoken/setremotehaptokeninfostub_fuzzer/
Dsetremotehaptokeninfostub_fuzzer.cpp50 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}, in ConstructorParam()
56 .grantFlags = {PermissionFlag::PERMISSION_USER_SET}, in ConstructorParam()
/base/security/access_token/interfaces/innerkits/accesstoken/include/
Dpermission_state_full.h67 std::vector<uint32_t> grantFlags; variable
/base/security/access_token/services/tokensyncmanager/src/command/
Dbase_remote_command.cpp127 …viceID.size() != state.grantStatus.size() || state.resDeviceID.size() != state.grantFlags.size()) { in ToPermStateJson()
137 {"grantFlags", state.grantFlags[i]}, in ToPermStateJson()
230 int grantFlags; in FromPermStateListJson() local
231 grantConfigJson.at("grantFlags").get_to(grantFlags); in FromPermStateListJson()
234 permission.grantFlags.emplace_back(grantFlags); in FromPermStateListJson()
/base/security/access_token/test/fuzztest/innerkits/accesstoken/setremotehaptokeninfo_fuzzer/
Dsetremotehaptokeninfo_fuzzer.cpp49 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}, in SetRemoteHapTokenInfoFuzzTest()
/base/security/access_token/test/fuzztest/innerkits/accesstoken/allochaptoken_fuzzer/
Dallochaptoken_fuzzer.cpp52 testState.grantFlags = {1}; in AllocHapTokenFuzzTest()
/base/security/dlp_permission_service/test/fuzztest/dlp_permission/fuzzer/querydlpfileaccess_fuzzer/
Dquerydlpfileaccess_fuzzer.cpp50 .grantFlags = {1}

1234