/base/customization/enterprise_device_management/test/unittest/src/ |
D | admin_manager_test.cpp | 62 std::vector<std::string> permissions; variable 64 permissions = { 67 adminMgr_->GetReqPermission(permissions, reqPermission); 70 permissions = { 74 adminMgr_->GetReqPermission(permissions, reqPermission); 86 std::vector<std::string> permissions; variable 94 permissions = {}; 95 res = adminMgr_->GetGrantedPermission(abilityInfo, permissions, AdminType::NORMAL); 98 permissions = { 101 res = adminMgr_->GetGrantedPermission(abilityInfo, permissions, AdminType::NORMAL); [all …]
|
/base/security/permission_lite/services/pms/src/ |
D | pms_impl.c | 232 static int SavePermissions(const char *identifier, const PermissionSaved *permissions, int permNum) in SavePermissions() argument 234 if (identifier == NULL || permissions == NULL) { in SavePermissions() 255 cJSON_AddItemToObject(object, FIELD_NAME, cJSON_CreateString(permissions[i].name)); in SavePermissions() 256 cJSON_AddItemToObject(object, FIELD_DESC, cJSON_CreateString(permissions[i].desc)); in SavePermissions() 257 cJSON_AddItemToObject(object, FIELD_IS_GRANTED, cJSON_CreateBool(permissions[i].granted)); in SavePermissions() 265 if (sprintf_s(buf, BUFF_PARAM_SIZE, "%d", permissions[i].flags) < 0) { in SavePermissions() 316 int QueryPermission(const char *identifier, PermissionSaved **permissions, int *permNum) in QueryPermission() argument 324 int ret = ParsePermissions(jsonStr, permissions, permNum); in QueryPermission() 334 PermissionSaved *permissions = NULL; in QueryAppCapabilities() local 336 int ret = QueryPermission(identifier, &permissions, &permNum); in QueryAppCapabilities() [all …]
|
/base/security/access_token/interfaces/innerkits/token_callback/test/unittest/src/ |
D | token_callback_test.cpp | 48 const std::vector<std::string> &permissions, const std::vector<int> &grantResults) in GrantResultsCallback() argument 50 GTEST_LOG_(INFO) << "GrantResultsCallback, permissions.size:" << permissions.size() << in GrantResultsCallback() 63 std::vector<std::string> permissions; variable 65 uint32_t listSize = permissions.size(); 74 ASSERT_EQ(true, data.WriteString16(Str8ToStr16(permissions[i]))); 96 std::vector<std::string> permissions; variable 98 permissions.emplace_back("ohos.permission.CAMERA"); 100 uint32_t listSize = permissions.size(); 109 ASSERT_EQ(true, data.WriteString16(Str8ToStr16(permissions[i])));
|
/base/customization/enterprise_device_management/services/edm/src/ |
D | permission_manager.cpp | 44 void PermissionManager::GetReqPermission(const std::vector<std::string> &permissions, in GetReqPermission() argument 48 if (permissions.empty()) { in GetReqPermission() 52 for (const auto &item : permissions) { in GetReqPermission() 60 void PermissionManager::GetReqPermission(const std::vector<std::string> &permissions, in GetReqPermission() argument 64 for (const auto &item : permissions) { in GetReqPermission()
|
D | admin_manager.cpp | 58 ErrCode AdminManager::GetReqPermission(const std::vector<std::string> &permissions, in GetReqPermission() argument 62 PermissionManager::GetInstance()->GetReqPermission(permissions, reqPermissions); in GetReqPermission() 96 std::vector<std::string> &permissions, int32_t userId) in SetAdminValue() argument 101 PermissionManager::GetInstance()->GetReqPermission(permissions, reqPermission); in SetAdminValue() 182 std::vector<std::string>& permissions, AdminType type) in GetGrantedPermission() argument 184 if (permissions.empty()) { in GetGrantedPermission() 190 PermissionManager::GetInstance()->GetReqPermission(permissions, reqPermission); in GetGrantedPermission() 204 permissions.assign(permissionNameList.begin(), permissionNameList.end()); in GetGrantedPermission() 209 const std::vector<std::string> &permissions, int32_t userId) in UpdateAdmin() argument 217 std::vector<std::string> combinePermission = permissions; in UpdateAdmin()
|
/base/notification/common_event_service/frameworks/core/test/unittest/ |
D | common_event_test.cpp | 79 std::vector<std::string> permissions; variable 80 permissions.emplace_back(PERMISSION); 81 publishInfo.SetSubscriberPermissions(permissions); 110 std::vector<std::string> permissions; variable 111 permissions.emplace_back(PERMISSION); 112 publishInfo.SetSubscriberPermissions(permissions); 196 std::vector<std::string> permissions; variable 197 permissions.emplace_back(PERMISSION); 198 publishInfo.SetSubscriberPermissions(permissions); 226 std::vector<std::string> permissions; variable [all …]
|
/base/hiviewdfx/hilog/services/hilogd/etc/ |
D | hilogd.cfg | 29 "permissions" : "0222", 40 "permissions" : "0666", 51 "permissions" : "0660",
|
/base/notification/common_event_service/test/fuzztest/publishcommonevent_fuzzer/ |
D | publishcommonevent_fuzzer.cpp | 37 std::vector<std::string> permissions; in DoSomethingInterestingWithMyAPI() local 38 permissions.emplace_back(stringData); in DoSomethingInterestingWithMyAPI() 39 commonEventPublishInfo.SetSubscriberPermissions(permissions); in DoSomethingInterestingWithMyAPI()
|
/base/notification/common_event_service/test/fuzztest/matchingskills_fuzzer/ |
D | matchingskills_fuzzer.cpp | 56 std::vector<std::string> permissions; in DoSomethingInterestingWithMyAPI() local 57 permissions.emplace_back(stringData); in DoSomethingInterestingWithMyAPI() 58 matchingSkills.MatchEntity(permissions); in DoSomethingInterestingWithMyAPI()
|
/base/customization/enterprise_device_management/services/edm/include/ |
D | admin_manager.h | 33 …ErrCode GetReqPermission(const std::vector<std::string> &permissions, std::vector<EdmPermission> &… 39 …teAdmin(AppExecFwk::ExtensionAbilityInfo &abilityInfo, const std::vector<std::string> &permissions, 41 …tedPermission(AppExecFwk::ExtensionAbilityInfo &abilityInfo, std::vector<std::string> &permissions, 49 std::vector<std::string> &permissions, int32_t userId);
|
D | permission_manager.h | 44 void GetReqPermission(const std::vector<std::string> &permissions, 46 void GetReqPermission(const std::vector<std::string> &permissions,
|
/base/security/permission_lite/services/pms/include/ |
D | pms.h | 27 int SaveOrUpdatePermissions(const char *identifier, PermissionTrans permissions[], int permNum, enu… 45 int QueryPermission(const char *identifier, PermissionSaved **permissions, int *permNum);
|
D | pms_inner.h | 32 int (*QueryPermission)(const char *identifier, PermissionSaved **permissions, int *permNum);
|
/base/notification/common_event_service/test/fuzztest/publishcommoneventasuser_fuzzer/ |
D | publishcommoneventasuser_fuzzer.cpp | 38 std::vector<std::string> permissions; in DoSomethingInterestingWithMyAPI() local 39 permissions.emplace_back(stringData); in DoSomethingInterestingWithMyAPI() 40 commonEventPublishInfo.SetSubscriberPermissions(permissions); in DoSomethingInterestingWithMyAPI()
|
/base/security/appverify/interfaces/innerkits/appverify/src/ticket/ |
D | ticket_verify.cpp | 147 if (!ticketInfo.permissions.restrictedCapabilities.empty()) { in CompareTicketAndProfile() 148 if (!CheckPermissions(ticketInfo.permissions.restrictedCapabilities, in CompareTicketAndProfile() 149 profileInfo.permissions.restrictedCapabilities)) { in CompareTicketAndProfile() 155 if (!ticketInfo.permissions.restrictedPermissions.empty()) { in CompareTicketAndProfile() 156 if (!CheckPermissions(ticketInfo.permissions.restrictedPermissions, in CompareTicketAndProfile() 157 profileInfo.permissions.restrictedPermissions)) { in CompareTicketAndProfile()
|
/base/notification/common_event_service/test/fuzztest/dumpstate_fuzzer/ |
D | dumpstate_fuzzer.cpp | 52 std::vector<std::string> permissions; in DoSomethingInterestingWithMyAPI() local 53 permissions.emplace_back(stringData); in DoSomethingInterestingWithMyAPI() 54 commonEventPublishInfo.SetSubscriberPermissions(permissions); in DoSomethingInterestingWithMyAPI()
|
/base/notification/common_event_service/test/fuzztest/commoneventstub_fuzzer/ |
D | commoneventstub_fuzzer.cpp | 44 std::vector<std::string> permissions; in DoSomethingInterestingWithMyAPI() local 45 permissions.emplace_back(stringData); in DoSomethingInterestingWithMyAPI() 46 commonEventPublishInfo.SetSubscriberPermissions(permissions); in DoSomethingInterestingWithMyAPI()
|
/base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/src/ |
D | nativetoken_oper_test.cpp | 75 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]})"; 83 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]})"; 95 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]})"; 225 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]})";
|
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/ |
D | provision_verify_test.cpp | 116 "permissions" : { 117 "restricted-permissions" : ["ohos.permission.GET_PHONE_STATE", 263 ASSERT_TRUE(info.permissions.restrictedPermissions.empty()); 264 ASSERT_TRUE(info.permissions.restrictedCapabilities.empty()); 287 ASSERT_TRUE(info.permissions.restrictedPermissions.size() == 2); // 2 restricted permissions 288 ASSERT_EQ(info.permissions.restrictedPermissions[0], "ohos.permission.GET_PHONE_STATE"); 289 ASSERT_TRUE(info.permissions.restrictedCapabilities.size() == 1); // 1 restricted capabilities 290 ASSERT_EQ(info.permissions.restrictedCapabilities[0], "ohos.permission.test");
|
/base/security/access_token/interfaces/innerkits/token_callback/include/ |
D | i_token_callback.h | 29 const std::vector<std::string> &permissions, const std::vector<int> &grantResults) = 0;
|
/base/security/permission_lite/interfaces/kits/ |
D | pms_interface.h | 91 int QueryPermission(const char *identifier, PermissionSaved **permissions, int *permNum);
|
/base/useriam/face_auth/ui/Settings_FaceAuth/entry/src/main/ |
D | module.json5 | 12 * See the License for the specific language governing permissions and 50 "permissions": [
|
/base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/mock/ |
D | nativetoken_oper_test.cpp | 75 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]})"; 106 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]}])"; 137 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]}])"; 172 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]}])"; 218 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]}])";
|
/base/telephony/sms_mms/utils/ |
D | LICENSE | 11 See the License for the specific language governing permissions and 29 See the License for the specific language governing permissions and
|
/base/telephony/sms_mms/services/cdma/ |
D | LICENSE | 11 See the License for the specific language governing permissions and 29 See the License for the specific language governing permissions and
|