Home
last modified time | relevance | path

Searched refs:grantStatus (Results 1 – 25 of 79) sorted by relevance

1234

/base/telephony/sms_mms/test/gtest/
Dsms_mms_gtest.h49 .grantStatus = { PermissionState::PERMISSION_GRANTED },
66 .grantStatus = { PermissionState::PERMISSION_GRANTED },
83 .grantStatus = { PermissionState::PERMISSION_GRANTED },
100 .grantStatus = { PermissionState::PERMISSION_GRANTED },
117 .grantStatus = { PermissionState::PERMISSION_GRANTED },
134 .grantStatus = { PermissionState::PERMISSION_GRANTED },
151 .grantStatus = { PermissionState::PERMISSION_GRANTED },
/base/telephony/core_service/test/unittest/core_service_gtest/
Dsecurity_token.cpp50 .grantStatus = { PermissionState::PERMISSION_GRANTED },
69 .grantStatus = { PermissionState::PERMISSION_GRANTED },
88 .grantStatus = { PermissionState::PERMISSION_GRANTED },
107 .grantStatus = { PermissionState::PERMISSION_GRANTED },
126 .grantStatus = { PermissionState::PERMISSION_GRANTED },
Dnetwork_search_test.h53 .grantStatus = { PermissionState::PERMISSION_GRANTED },
72 .grantStatus = { PermissionState::PERMISSION_GRANTED },
91 .grantStatus = { PermissionState::PERMISSION_GRANTED },
110 .grantStatus = { PermissionState::PERMISSION_GRANTED },
129 .grantStatus = { PermissionState::PERMISSION_GRANTED },
148 .grantStatus = { PermissionState::PERMISSION_GRANTED },
Dsim_test_util.h52 .grantStatus = { PermissionState::PERMISSION_GRANTED },
71 .grantStatus = { PermissionState::PERMISSION_GRANTED },
90 .grantStatus = { PermissionState::PERMISSION_GRANTED },
109 .grantStatus = { PermissionState::PERMISSION_GRANTED },
128 .grantStatus = { PermissionState::PERMISSION_GRANTED },
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Dpermission_validator.cpp36 bool PermissionValidator::IsGrantStatusValid(int grantStatus) in IsGrantStatusValid() argument
38 …return grantStatus == PermissionState::PERMISSION_GRANTED || grantStatus == PermissionState::PERMI… in IsGrantStatusValid()
113 size_t grantStatSize = permState.grantStatus.size(); in IsPermissionStateValid()
122 if (!IsGrantStatusValid(permState.grantStatus[i]) || in IsPermissionStateValid()
148 auto stateIter = permState.grantStatus.begin(); in DeduplicateResDevID()
156 result.grantStatus.emplace_back(*stateIter); in DeduplicateResDevID()
Dpermission_policy_set.cpp70 …if ((permOld.grantFlags[0] == PERMISSION_DEFAULT_FLAG) && (permOld.grantStatus[0] == PERMISSION_DE… in UpdatePermStateFull()
84 permNew.grantStatus = permOld.grantStatus; in UpdatePermStateFull()
141 iter->grantStatus.emplace_back(state.grantStatus[0]); in MergePermissionStateFull()
222 if (perm.grantStatus[0] != PERMISSION_GRANTED) { in GetUserGrantedPermissionUsedType()
257 if (perm.grantStatus[0] != PERMISSION_GRANTED) { in VerifyPermissionStatus()
321 iter->grantStatus[0] = isGranted ? PERMISSION_GRANTED : PERMISSION_DENIED; in UpdatePermStateList()
442 perm.grantStatus[0] = PERMISSION_GRANTED; in ResetUserGrantPermissionStatus()
446 perm.grantStatus[0] = PERMISSION_DENIED; in ResetUserGrantPermissionStatus()
466 if (perm.isGeneral && (perm.grantStatus[0] == PERMISSION_GRANTED)) { in GetGrantedPermissionList()
481 if (perm.grantStatus[0] == PERMISSION_GRANTED) { in GetDeletedPermissionListToNotify()
[all …]
Ddlp_permission_set_manager.cpp82 if (iter->grantStatus[0] == PERMISSION_DENIED) { in UpdatePermStateWithDlpInfo()
88 iter->grantStatus[0] = PERMISSION_DENIED; in UpdatePermStateWithDlpInfo()
/base/telephony/core_service/services/network_search/test/
Dtest.h50 .grantStatus = { PermissionState::PERMISSION_GRANTED },
69 .grantStatus = { PermissionState::PERMISSION_GRANTED },
88 .grantStatus = { PermissionState::PERMISSION_GRANTED },
107 .grantStatus = { PermissionState::PERMISSION_GRANTED },
/base/telephony/sms_mms/test/unittest/
Daccess_mms_token.h49 .grantStatus = { PermissionState::PERMISSION_GRANTED },
66 .grantStatus = { PermissionState::PERMISSION_GRANTED },
83 .grantStatus = { PermissionState::PERMISSION_GRANTED },
101 .grantStatus = { PermissionState::PERMISSION_GRANTED },
/base/security/access_token/services/accesstokenmanager/main/cpp/src/database/
Ddata_translator.cpp77 …ex >= inPermissionState.resDeviceID.size() || grantIndex >= inPermissionState.grantStatus.size() || in TranslationIntoGenericValues()
85 …outGenericValues.Put(TokenFiledConst::FIELD_GRANT_STATE, inPermissionState.grantStatus[grantIndex]… in TranslationIntoGenericValues()
126 int grantStatus = (PermissionState)inGenericValues.GetInt(TokenFiledConst::FIELD_GRANT_STATE); in TranslationIntoPermissionStateFull() local
127 if (!PermissionValidator::IsGrantStatusValid(grantStatus)) { in TranslationIntoPermissionStateFull()
135 grantStatus = PERMISSION_DENIED; in TranslationIntoPermissionStateFull()
137 outPermissionState.grantStatus.push_back(grantStatus); in TranslationIntoPermissionStateFull()
/base/telephony/state_registry/test/unittest/state_test/
Dstate_registry_test.h62 .grantStatus = { PermissionState::PERMISSION_GRANTED },
81 .grantStatus = { PermissionState::PERMISSION_GRANTED },
100 .grantStatus = { PermissionState::PERMISSION_GRANTED },
119 .grantStatus = { PermissionState::PERMISSION_GRANTED },
138 .grantStatus = { PermissionState::PERMISSION_GRANTED },
/base/security/access_token/frameworks/accesstoken/src/
Dpermission_state_full_parcel.cpp32 RETURN_IF_FALSE(out.WriteUint32(this->permStatFull.grantStatus.size())); in Marshalling()
33 for (auto grantStat : this->permStatFull.grantStatus) { in Marshalling()
69 permissionStateParcel->permStatFull.grantStatus.emplace_back(grantStat); in Unmarshalling()
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
Dremote_token_kit_test.cpp62 .grantStatus = {PermissionState::PERMISSION_GRANTED},
70 .grantStatus = {PermissionState::PERMISSION_GRANTED, PermissionState::PERMISSION_GRANTED},
235 .grantStatus = {PermissionState::PERMISSION_GRANTED},
334 .grantStatus = {PermissionState::PERMISSION_GRANTED},
366 .grantStatus = {PermissionState::PERMISSION_GRANTED},
407 .grantStatus = {PermissionState::PERMISSION_DENIED}, // first denied
428 …remoteTokenInfo4.permStateList[0].grantStatus[0] = PermissionState::PERMISSION_GRANTED; // second …
454 .grantStatus = {PermissionState::PERMISSION_DENIED}, // first denied
500 .grantStatus = {PermissionState::PERMISSION_GRANTED}, // first grant
546 .grantStatus = {PermissionState::PERMISSION_DENIED}, // first denied
[all …]
Dapp_installation_optimized_test.cpp50 .grantStatus = {PermissionState::PERMISSION_GRANTED},
58 .grantStatus = {PermissionState::PERMISSION_GRANTED},
66 .grantStatus = {PermissionState::PERMISSION_GRANTED},
73 .grantStatus = {PermissionState::PERMISSION_DENIED},
81 .grantStatus = {PermissionState::PERMISSION_DENIED},
89 .grantStatus = {PermissionState::PERMISSION_DENIED},
97 .grantStatus = {PermissionState::PERMISSION_DENIED},
105 .grantStatus = {PermissionState::PERMISSION_DENIED},
113 .grantStatus = {PermissionState::PERMISSION_DENIED},
450 EXPECT_EQ(permStatList2[0].grantStatus[0], PERMISSION_GRANTED);
[all …]
Daccesstoken_kit_extension_test.cpp56 .grantStatus = {PermissionState::PERMISSION_GRANTED},
64 .grantStatus = {PermissionState::PERMISSION_GRANTED},
72 .grantStatus = {PermissionState::PERMISSION_GRANTED},
113 .grantStatus = {PermissionState::PERMISSION_GRANTED},
121 .grantStatus = {PermissionState::PERMISSION_GRANTED, PermissionState::PERMISSION_GRANTED},
129 .grantStatus = {PermissionState::PERMISSION_GRANTED},
210 .grantStatus = {PermissionState::PERMISSION_GRANTED},
218 .grantStatus = {PermissionState::PERMISSION_DENIED},
226 .grantStatus = {PermissionState::PERMISSION_GRANTED},
234 .grantStatus = {PermissionState::PERMISSION_DENIED},
[all …]
/base/telephony/cellular_data/test/
Ddata_access_token.cpp50 .grantStatus = { PermissionState::PERMISSION_GRANTED },
69 .grantStatus = { PermissionState::PERMISSION_GRANTED },
/base/security/access_token/services/privacymanager/test/unittest/
Dsensitive_manager_test.cpp58 .grantStatus = {PermissionState::PERMISSION_GRANTED},
66 .grantStatus = {PermissionState::PERMISSION_GRANTED},
74 .grantStatus = {PermissionState::PERMISSION_GRANTED},
82 .grantStatus = {PermissionState::PERMISSION_GRANTED},
/base/telephony/call_manager/test/unittest/call_manager_gtest/include/
Dcall_manager_connect.h70 .grantStatus = { PermissionState::PERMISSION_GRANTED },
89 .grantStatus = { PermissionState::PERMISSION_GRANTED },
108 .grantStatus = { PermissionState::PERMISSION_GRANTED },
127 .grantStatus = { PermissionState::PERMISSION_GRANTED },
146 .grantStatus = { PermissionState::PERMISSION_GRANTED },
165 .grantStatus = { PermissionState::PERMISSION_GRANTED },
184 .grantStatus = { PermissionState::PERMISSION_GRANTED },
203 .grantStatus = { PermissionState::PERMISSION_GRANTED },
/base/telephony/cellular_call/test/unittest/satellitetest/
Dsatellite_test.h60 .grantStatus = { PermissionState::PERMISSION_GRANTED },
79 .grantStatus = { PermissionState::PERMISSION_GRANTED },
98 .grantStatus = { PermissionState::PERMISSION_GRANTED },
/base/accesscontrol/sandbox_manager/test/fuzztest/common/
Dalloc_token.cpp34 .grantStatus = {0},
41 .grantStatus = {0},
/base/security/access_token/test/fuzztest/services/accesstoken/setremotehaptokeninfostub_fuzzer/
Dsetremotehaptokeninfostub_fuzzer.cpp51 .grantStatus = {PermissionState::PERMISSION_GRANTED}, in ConstructorParam()
57 .grantStatus = {PermissionState::PERMISSION_DENIED}, in ConstructorParam()
/base/security/access_token/interfaces/innerkits/accesstoken/include/
Dpermission_state_full.h62 std::vector<int> grantStatus; variable
/base/security/access_token/services/tokensyncmanager/src/command/
Dbase_remote_command.cpp127 …if (state.resDeviceID.size() != state.grantStatus.size() || state.resDeviceID.size() != state.gran… in ToPermStateJson()
136 {"grantStatus", state.grantStatus[i]}, in ToPermStateJson()
228 int grantStatus; in FromPermStateListJson() local
229 grantConfigJson.at("grantStatus").get_to(grantStatus); in FromPermStateListJson()
233 permission.grantStatus.emplace_back(grantStatus); in FromPermStateListJson()
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Dpermission_manager_test.cpp75 .grantStatus = {1},
83 .grantStatus = {1, 3},
104 .grantStatus = {PERMISSION_GRANTED},
111 .grantStatus = {PERMISSION_GRANTED},
118 .grantStatus = {PERMISSION_GRANTED},
125 .grantStatus = {PERMISSION_GRANTED},
133 .grantStatus = {PermissionState::PERMISSION_DENIED},
141 .grantStatus = {PermissionState::PERMISSION_DENIED},
149 .grantStatus = {PermissionState::PERMISSION_DENIED},
157 .grantStatus = {PermissionState::PERMISSION_GRANTED},
[all …]
/base/usb/usb_manager/frameworks/dialog/dialog_ui/usb_right_dialog/src/main/ets/ServiceExtAbility/
DUsbDialogAbility.ts130 let grantStatus = aac.verifyAccessTokenSync(tokenID, permissionName);
131 if (grantStatus === abilityAccessCtrl.GrantStatus.PERMISSION_DENIED) {

1234