Home
last modified time | relevance | path

Searched refs:mGranted (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionState.java35 private boolean mGranted; field in PermissionState
47 mGranted = other.mGranted; in PermissionState()
68 return mGranted; in isGranted()
74 if (mGranted) { in grant()
77 mGranted = true; in grant()
85 if (!mGranted) { in revoke()
88 mGranted = false; in revoke()
115 return !mGranted && mFlags == 0; in isDefault()
DLegacyPermissionState.java260 private final boolean mGranted; field in LegacyPermissionState.PermissionState
275 mGranted = granted; in PermissionState()
282 mGranted = other.mGranted; in PermissionState()
312 return mGranted; in isGranted()
335 && mGranted == that.mGranted in equals()
342 return Objects.hash(mName, mRuntime, mGranted, mFlags); in hashCode()
DPermissionMigrationHelper.java89 private final boolean mGranted; field in PermissionMigrationHelper.LegacyPermissionState
93 mGranted = granted; in LegacyPermissionState()
101 return mGranted; in isGranted()
/frameworks/base/tests/utils/testutils/java/android/os/test/
DFakePermissionEnforcer.java36 private Set<String> mGranted; field in FakePermissionEnforcer
39 mGranted = new HashSet(); in FakePermissionEnforcer()
43 mGranted.add(permission); in grant()
47 mGranted.remove(permission); in revoke()
51 mGranted.clear(); in revokeAll()
55 return mGranted.contains(permission); in granted()
/frameworks/base/services/core/java/com/android/server/selinux/
DSelinuxAuditLogBuilder.java94 mAuditLog.mGranted = true; in build()
97 mAuditLog.mGranted = false; in build()
164 boolean mGranted = false; field in SelinuxAuditLogBuilder.SelinuxAuditLog
175 mGranted = false; in reset()
DSelinuxAuditLogsCollector.java138 auditLog.mGranted, in writeAuditLogs()
/frameworks/base/cmds/appwidget/src/com/android/commands/appwidget/
DAppWidget.java138 final boolean mGranted; field in AppWidget.SetBindAppWidgetPermissionCommand
144 mGranted = granted; in SetBindAppWidgetPermissionCommand()
153 appWidgetService.setBindAppWidgetPermission(mPackageName, mUserId, mGranted); in run()
/frameworks/base/core/java/android/permission/
DPermissionManager.java2057 private final boolean mGranted; field in PermissionManager.PermissionState
2063 mGranted = granted; in PermissionState()
2072 return mGranted; in isGranted()
2093 parcel.writeBoolean(mGranted); in writeToParcel()
2118 return mGranted == that.mGranted && mFlags == that.mFlags; in equals()
2124 return Objects.hash(mGranted, mFlags); in hashCode()
2131 + "mGranted=" + mGranted in toString()
/frameworks/base/services/tests/selinux/src/com/android/server/selinux/
DSelinuxAuditLogsBuilderTest.java278 assertThat(auditLog.mGranted).isEqualTo(granted); in assertAuditLog()