Home
last modified time | relevance | path

Searched refs:permissions (Results 1 – 25 of 2956) sorted by relevance

12345678910>>...119

/base/customization/enterprise_device_management/test/unittest/src/
Dadmin_manager_test.cpp62 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/
Dpms_impl.c232 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/
Dtoken_callback_test.cpp48 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/
Dpermission_manager.cpp44 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()
Dadmin_manager.cpp58 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/
Dcommon_event_test.cpp79 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/
Dhilogd.cfg29 "permissions" : "0222",
40 "permissions" : "0666",
51 "permissions" : "0660",
/base/notification/common_event_service/test/fuzztest/publishcommonevent_fuzzer/
Dpublishcommonevent_fuzzer.cpp37 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/
Dmatchingskills_fuzzer.cpp56 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/
Dadmin_manager.h33 …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);
Dpermission_manager.h44 void GetReqPermission(const std::vector<std::string> &permissions,
46 void GetReqPermission(const std::vector<std::string> &permissions,
/base/security/permission_lite/services/pms/include/
Dpms.h27 int SaveOrUpdatePermissions(const char *identifier, PermissionTrans permissions[], int permNum, enu…
45 int QueryPermission(const char *identifier, PermissionSaved **permissions, int *permNum);
Dpms_inner.h32 int (*QueryPermission)(const char *identifier, PermissionSaved **permissions, int *permNum);
/base/notification/common_event_service/test/fuzztest/publishcommoneventasuser_fuzzer/
Dpublishcommoneventasuser_fuzzer.cpp38 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/
Dticket_verify.cpp147 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/
Ddumpstate_fuzzer.cpp52 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/
Dcommoneventstub_fuzzer.cpp44 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/
Dnativetoken_oper_test.cpp75 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/
Dprovision_verify_test.cpp116 "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/
Di_token_callback.h29 const std::vector<std::string> &permissions, const std::vector<int> &grantResults) = 0;
/base/security/permission_lite/interfaces/kits/
Dpms_interface.h91 int QueryPermission(const char *identifier, PermissionSaved **permissions, int *permNum);
/base/useriam/face_auth/ui/Settings_FaceAuth/entry/src/main/
Dmodule.json512 * See the License for the specific language governing permissions and
50 "permissions": [
/base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/mock/
Dnativetoken_oper_test.cpp75 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/
DLICENSE11 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/
DLICENSE11 See the License for the specific language governing permissions and
29 See the License for the specific language governing permissions and

12345678910>>...119