Home
last modified time | relevance | path

Searched refs:Permission (Results 1 – 25 of 74) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionRegistry.java35 private final ArrayMap<String, Permission> mPermissions = new ArrayMap<>();
41 private final ArrayMap<String, Permission> mPermissionTrees = new ArrayMap<>();
56 public Collection<Permission> getPermissions() { in getPermissions()
61 public Permission getPermission(@NonNull String permissionName) { in getPermission()
65 public void addPermission(@NonNull Permission permission) { in addPermission()
74 public Collection<Permission> getPermissionTrees() { in getPermissionTrees()
79 public Permission getPermissionTree(@NonNull String permissionTreeName) { in getPermissionTree()
83 public void addPermissionTree(@NonNull Permission permissionTree) { in addPermissionTree()
93 ArrayMap<String, Permission> permissions = i == 0 ? mPermissionTrees : mPermissions; in transferPermissions()
94 for (final Permission permission : permissions.values()) { in transferPermissions()
[all …]
DPermission.java46 public final class Permission { class
93 public Permission(@NonNull String name, @NonNull String packageName, in Permission() method in Permission
103 public Permission(@NonNull PermissionInfo permissionInfo, @PermissionType int type) { in Permission() method in Permission
108 public Permission(@NonNull PermissionInfo permissionInfo, @PermissionType int type, in Permission() method in Permission
197 public int calculateFootprint(@NonNull Permission permission) { in calculateFootprint()
370 @NonNull PermissionInfo permissionInfo, @NonNull Permission permissionTree) { in addToTree()
386 public void updateDynamicPermission(@NonNull Collection<Permission> permissionTrees) { in updateDynamicPermission()
392 final Permission tree = findPermissionTree(permissionTrees, mPermissionInfo.name); in updateDynamicPermission()
401 public static boolean isOverridingSystemPermission(@Nullable Permission permission, in isOverridingSystemPermission()
420 public static Permission createOrUpdate(@Nullable Permission permission, in createOrUpdate()
[all …]
DPermissionState.java30 private final Permission mPermission;
40 public PermissionState(@NonNull Permission permission) { in PermissionState()
52 public Permission getPermission() { in getPermission()
DUidPermissionState.java128 private PermissionState getOrCreatePermissionState(@NonNull Permission permission) { in getOrCreatePermissionState()
161 public void putPermissionState(@NonNull Permission permission, boolean granted, int flags) { in putPermissionState()
233 public boolean grantPermission(@NonNull Permission permission) { in grantPermission()
244 public boolean revokePermission(@NonNull Permission permission) { in revokePermission()
279 public boolean updatePermissionFlags(@NonNull Permission permission, int flagMask, in updatePermissionFlags()
DPermissionManagerServiceImpl.java465 Permission bp = mRegistry.getPermission(perm.name); in PermissionManagerServiceImpl()
467 bp = new Permission(perm.name, "android", Permission.TYPE_CONFIG); in PermissionManagerServiceImpl()
585 final Permission bp = mRegistry.getPermission(permName); in getPermissionInfo()
630 for (Permission bp : mRegistry.getPermissions()) { in queryPermissionsByGroup()
660 final Permission tree = mRegistry.enforcePermissionTree(info.name, callingUid); in addPermission()
661 Permission bp = mRegistry.getPermission(info.name); in addPermission()
666 bp = new Permission(info.name, tree.getPackageName(), Permission.TYPE_DYNAMIC); in addPermission()
690 final Permission bp = mRegistry.getPermission(permName); in removePermission()
860 final Permission bp = mRegistry.getPermission(permName); in updatePermissionFlagsInternal()
1002 final Permission permission = mRegistry.getPermission(permissionName); in checkSinglePermissionInternalLocked()
[all …]
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/
DUidPermissionPersistence.kt50 private fun BinaryXmlPullParser.parsePermissions(permissions: IndexedMap<String, Permission>) { in <lambda>()
59 private fun BinaryXmlPullParser.parsePermission(permissions: IndexedMap<String, Permission>) { in <lambda>()
69 Permission.TYPE_MANIFEST -> {} in <lambda>()
70 Permission.TYPE_CONFIG -> { in <lambda>()
74 Permission.TYPE_DYNAMIC -> { in <lambda>()
85 val permission = Permission(permissionInfo, false, type, 0) in <lambda>()
97 permissions: IndexedMap<String, Permission> in <lambda>()
104 private fun BinaryXmlSerializer.serializePermission(permission: Permission) { in <lambda>()
107 Permission.TYPE_MANIFEST, Permission.TYPE_DYNAMIC -> {} in <lambda>()
108 Permission.TYPE_CONFIG -> return in <lambda>()
[all …]
DUidPermissionPolicy.kt104 Permission( in <lambda>()
105 permissionInfo, false, Permission.TYPE_CONFIG, 0, permissionEntry.gids, in <lambda>()
109 Permission(permissionInfo, false, Permission.TYPE_CONFIG, 0) in <lambda>()
415 if (oldPermission.type == Permission.TYPE_CONFIG && !oldPermission.isReconciled) { in <lambda>()
436 Permission( in <lambda>()
437 newPermissionInfo, true, Permission.TYPE_MANIFEST, packageState.appId, in <lambda>()
453 val isPermissionTypeChanged = oldPermission.type != Permission.TYPE_CONFIG && ( in <lambda>()
495 Permission( in <lambda>()
496 newPermissionInfo, true, Permission.TYPE_MANIFEST, packageState.appId in <lambda>()
572 private fun MutateStateScope.updatePermissionIfDynamic(permission: Permission): Permission { in <lambda>()
[all …]
/frameworks/native/libs/gui/
DLayerStatePermissions.cpp30 layer_state_t::Permission::ACCESS_SURFACE_FLINGER |
31 layer_state_t::Permission::ROTATE_SURFACE_FLINGER},
33 layer_state_t::Permission::ROTATE_SURFACE_FLINGER},
35 layer_state_t::Permission::INTERNAL_SYSTEM_WINDOW},
DLayerState.cpp421 if (!(permissions & layer_state_t::Permission::ACCESS_SURFACE_FLINGER)) { in sanitize()
427 if (!(permissions & layer_state_t::Permission::ACCESS_SURFACE_FLINGER)) { in sanitize()
433 if (!(permissions & layer_state_t::Permission::ACCESS_SURFACE_FLINGER)) { in sanitize()
461 if (!(permissions & Permission::ROTATE_SURFACE_FLINGER)) { in sanitize()
473 !(permissions & Permission::INTERNAL_SYSTEM_WINDOW)) { in sanitize()
480 if (!(permissions & Permission::ACCESS_SURFACE_FLINGER)) { in sanitize()
486 if (!(permissions & Permission::ACCESS_SURFACE_FLINGER)) { in sanitize()
492 if (!(permissions & Permission::ACCESS_SURFACE_FLINGER)) { in sanitize()
498 if (!(permissions & Permission::ACCESS_SURFACE_FLINGER)) { in sanitize()
507 permissions & Permission::ACCESS_SURFACE_FLINGER)) { in sanitize()
/frameworks/base/services/core/xsd/schema/
Dcurrent.txt7 …method public java.util.List<com.android.server.pm.permission.configfile.Permission> getPermission…
20 public class Permission {
21 ctor public Permission();
/frameworks/compile/mclinker/unittests/
DUniqueGCFactoryBaseTest.cpp75 FileHandle::Permission(FileHandle::System)); in TEST_F()
78 FileHandle::Permission(FileHandle::System)); in TEST_F()
83 FileHandle::Permission(FileHandle::System)); in TEST_F()
DFileHandleTest.cpp44 FileHandle::Permission(FileHandle::System))); in TEST_F()
86 FileHandle::Permission(FileHandle::System))); in TEST_F()
DFragmentRefTest.cpp48 FileHandle::Permission(FileHandle::System));
/frameworks/base/packages/SystemUI/docs/
Dusb_audio.md1 # USB audio Permission and Confirmation warning dialog resource string id matrix table
5 | # | Permission |isUsbAudioDevice| hasAudioPlayback | hasAudioCapture | string resource ID |
/frameworks/base/services/permission/java/com/android/server/permission/access/
DAccessState.kt22 import com.android.server.permission.access.permission.Permission
58 val permissionTrees: IndexedMap<String, Permission>,
59 val permissions: IndexedMap<String, Permission>
/frameworks/base/core/xsd/schema/
Dcurrent.txt139 …method public java.util.List<com.android.xml.permission.configfile.OemPermissions.Permission> getP…
150 public static class OemPermissions.Permission {
151 ctor public OemPermissions.Permission();
156 public class Permission {
157 ctor public Permission();
184 …method public java.util.List<com.android.xml.permission.configfile.Permission> getPermission_optio…
195 …ava.util.List<com.android.xml.permission.configfile.PrivappPermissions.Permission> getPermission();
206 public static class PrivappPermissions.Permission {
207 ctor public PrivappPermissions.Permission();
/frameworks/compile/mclinker/include/mcld/Support/
DFileHandle.h62 typedef Flags<PermissionEnum> Permission; typedef
72 bool open(const sys::fs::Path& pPath, OpenMode pMode, Permission pPerm);
DMemoryAreaFactory.h50 FileHandle::Permission pPerm);
/frameworks/compile/mclinker/lib/Core/
DLinker.cpp259 FileHandle::Permission permission; in emit()
263 permission = FileHandle::Permission(0x644); in emit()
268 permission = FileHandle::Permission(0x755); in emit()
/frameworks/rs/driver/runtime/
DNOTICE5 Permission to use, copy, modify, and distribute this
/frameworks/compile/mclinker/include/mcld/MC/
DFileAction.h41 FileHandle::Permission m_Permission;
/frameworks/base/packages/SystemUI/
DTEST_MAPPING71 // Permission indicators
86 // Permission indicators
/frameworks/base/tools/aapt2/
DApkInfo.proto65 repeated Permission permissions = 55;
207 // Permission defined by the application.
208 message Permission { message
/frameworks/compile/mclinker/lib/Support/
DMemoryAreaFactory.cpp40 FileHandle::Permission pPerm) { in produce()
/frameworks/proto_logging/stats/atoms/permissioncontroller/
Dpermissioncontroller_extension_atoms.proto42 * Information about a Permission Rationale dialog viewed by user.
52 // Permission group viewed

123