Searched refs:roles (Results 1 – 17 of 17) sorted by relevance
67 List<String> roles = new ArrayList<>(); in testMarkAppRow_defaultPackage() local68 roles.add(RoleManager.ROLE_DIALER); in testMarkAppRow_defaultPackage()70 when(rm.getHeldRolesFromController(anyString())).thenReturn(roles); in testMarkAppRow_defaultPackage()84 List<String> roles = new ArrayList<>(); in testMarkAppRow_notDefaultPackage() local85 roles.add(RoleManager.ROLE_HOME); in testMarkAppRow_notDefaultPackage()87 when(rm.getHeldRolesFromController(anyString())).thenReturn(roles); in testMarkAppRow_notDefaultPackage()
131 try (XmlResourceParser parser = context.getResources().getXml(R.xml.roles)) { in load()137 ArrayMap<String, Role> roles = xml.second; in load() local138 validateParseResult(permissionSets, roles, context); in load()139 return roles; in load()184 ArrayMap<String, Role> roles = new ArrayMap<>(); in parseRoles() local212 checkDuplicateElement(role.getName(), roles.keySet(), "role"); in parseRoles()213 roles.put(role.getName(), role); in parseRoles()222 return new Pair<>(permissionSets, roles); in parseRoles()915 @NonNull ArrayMap<String, Role> roles, @NonNull Context context) { in validateParseResult() argument934 int rolesSize = roles.size(); in validateParseResult()[all …]
596 ArrayMap<String, Role> roles = Roles.get(context); in revoke() local600 Role role = roles.get(roleName); in revoke()609 Role role = roles.get(roleName); in revoke()
40 ArrayMap<String, Role> roles = Roles.get(this); in updateSpecialAppAccessListActivityEnabledState() local42 int rolesSize = roles.size(); in updateSpecialAppAccessListActivityEnabledState()44 Role role = roles.valueAt(i); in updateSpecialAppAccessListActivityEnabledState()
49 ArrayMap<String, Role> roles = Roles.get(context); in queryRawData() local50 int rolesSize = roles.size(); in queryRawData()52 Role role = roles.valueAt(i); in queryRawData()
68 List<Role> roles = new ArrayList<>(); in onGrantDefaultRoles() local78 roles.add(role); in onGrantDefaultRoles()92 int rolesSize = roles.size(); in onGrantDefaultRoles()94 Role role = roles.get(rolesIndex); in onGrantDefaultRoles()
83 ArrayMap<String, Role> roles = Roles.get(mContext); in loadValueInBackground() local87 int rolesSize = roles.size(); in loadValueInBackground()89 Role role = roles.valueAt(rolesIndex); in loadValueInBackground()
100 List<String> roles = rm.getHeldRolesFromController(app.packageName); in recordCanBeBlocked() local101 if (roles.contains(RoleManager.ROLE_DIALER) in recordCanBeBlocked()102 || roles.contains(RoleManager.ROLE_EMERGENCY)) { in recordCanBeBlocked()
18 "file_patterns": ["res/xml/roles\\.xml"]
1dictionary=main:pt_br,locale=pt_BR,description=Português (Brasil),date ...
1dictionary=main:lt,locale=lt,description=Lietuvių,date=1393228136, ...
1dictionary=main:es,locale=es,description=Español,date=1414726268, ...