Home
last modified time | relevance | path

Searched refs:PERMISSION (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DPasswordUtilsTest.java57 private static final String PERMISSION = "com.testing.permission"; field in PasswordUtilsTest
139 when(mContext.checkPermission(PERMISSION, -1, UID)).thenReturn(PERMISSION_GRANTED); in isCallingAppPermitted_permissionGranted_returnsTrue()
141 assertThat(isCallingAppPermitted(mContext, mActivityToken, PERMISSION)).isTrue(); in isCallingAppPermitted_permissionGranted_returnsTrue()
147 when(mContext.checkPermission(PERMISSION, -1, UID)).thenReturn(PERMISSION_DENIED); in isCallingAppPermitted_permissionDenied_returnsFalse()
149 assertThat(isCallingAppPermitted(mContext, mActivityToken, PERMISSION)).isFalse(); in isCallingAppPermitted_permissionDenied_returnsFalse()
156 assertThat(isCallingAppPermitted(mContext, mActivityToken, PERMISSION)).isFalse(); in isCallingAppPermitted_throwsRemoteException_returnsFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DApplicationFeatureProviderImplTest.java96 private final String PERMISSION = "some.permission"; field in ApplicationFeatureProviderImplTest
188 when(mDevicePolicyManager.getPermissionGrantState(null, APP_1, PERMISSION)) in verifyCalculateNumberOfAppsWithAdminGrantedPermissions()
190 when(mDevicePolicyManager.getPermissionGrantState(null, APP_2, PERMISSION)) in verifyCalculateNumberOfAppsWithAdminGrantedPermissions()
192 when(mPackageManagerService.checkUidPermission(PERMISSION, APP_1_UID)) in verifyCalculateNumberOfAppsWithAdminGrantedPermissions()
194 when(mPackageManagerService.checkUidPermission(PERMISSION, APP_2_UID)) in verifyCalculateNumberOfAppsWithAdminGrantedPermissions()
202 mProvider.calculateNumberOfAppsWithAdminGrantedPermissions(new String[]{PERMISSION}, async, in verifyCalculateNumberOfAppsWithAdminGrantedPermissions()
227 when(mDevicePolicyManager.getPermissionGrantState(null, APP_1, PERMISSION)) in testListAppsWithAdminGrantedPermissions()
229 when(mDevicePolicyManager.getPermissionGrantState(null, APP_2, PERMISSION)) in testListAppsWithAdminGrantedPermissions()
231 when(mPackageManagerService.checkUidPermission(PERMISSION, APP_1_UID)) in testListAppsWithAdminGrantedPermissions()
233 when(mPackageManagerService.checkUidPermission(PERMISSION, APP_2_UID)) in testListAppsWithAdminGrantedPermissions()
[all …]
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DAppPermissionSummaryTest.kt116 grantedGroupLabels = listOf(PERMISSION), in <lambda>()
121 assertThat(summary).isEqualTo(PERMISSION) in <lambda>()
130 grantedGroupLabels = listOf(PERMISSION), in <lambda>()
141 const val PERMISSION = "Storage" constant
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridgeTest.java64 private static final String PERMISSION = Manifest.permission.WRITE_SETTINGS; field in AppStateAppOpsBridgeTest
87 AdditionalMatchers.aryEq(new String[]{PERMISSION}), in setUp()
94 mBridge = new AppStateAppOpsBridge(mContext, APP_OP_CODE, PERMISSION, mMockIPackageManager, in setUp()
155 packageInfo.requestedPermissions = new String[]{PERMISSION}; in additionalAppOpPermissionPackagesIncluded()
162 when(mMockIPackageManager.getAppOpPermissionPackages(PERMISSION, USER_ID1)) in additionalAppOpPermissionPackagesIncluded()
268 AdditionalMatchers.aryEq(new String[]{PERMISSION}), in loadsAppOpExtraInfo_multipleProfiles()
282 mBridge = new AppStateAppOpsBridge(mContext, APP_OP_CODE, PERMISSION, mMockIPackageManager, in loadsAppOpExtraInfo_multipleProfiles()
312 packageInfo.requestedPermissions = new String[]{PERMISSION}; in createPackageInfo()
DAppOpsPreferenceControllerTest.java65 private static final String PERMISSION = Manifest.permission.WRITE_SETTINGS; field in AppOpsPreferenceControllerTest
105 mPreferenceController.init(AppOpsManager.OP_NONE, PERMISSION, NEGATIVE_MODE); in checkInitialized_noOpCode_throwsIllegalStateException()
123 mPreferenceController.init(APP_OP_CODE, PERMISSION, /* negativeOpMode= */-1); in checkInitialized_noNegativeOpMode_throwsIllegalStateException()
297 mPreferenceController.init(APP_OP_CODE, PERMISSION, NEGATIVE_MODE); in setupPreferenceController()
/packages/apps/Settings/src/com/android/settings/spa/app/specialaccess/
DAlarmsAndRemindersAppList.kt66 PackageManagers.getAppOpPermissionPackages(userId, PERMISSION) in transform()
74 createRecord(app = app, hasRequestPermission = app.hasRequestPermission(PERMISSION)) in <lambda>()
121 permission = PERMISSION, in createRecord()
145 private const val PERMISSION: String = Manifest.permission.SCHEDULE_EXACT_ALARM constant
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateLongBackgroundTasksBridge.java44 private static final String PERMISSION = Manifest.permission.RUN_USER_INITIATED_JOBS; field in AppStateLongBackgroundTasksBridge
59 mRequesterPackages = iPm.getAppOpPermissionPackages(PERMISSION, context.getUserId()); in AppStateLongBackgroundTasksBridge()
/packages/apps/Contacts/src/com/android/contacts/logging/
DQuickContactEvent.java55 public static final int PERMISSION = 5; field in QuickContactEvent.CardType
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DKeepaliveTracker.java90 public static final String PERMISSION = android.Manifest.permission.PACKET_KEEPALIVE_OFFLOAD; field in KeepaliveTracker
201 mPrivileged = (PERMISSION_GRANTED == mContext.checkPermission(PERMISSION, mPid, mUid)); in KeepaliveInfo()
/packages/apps/TV/res/raw/
Dthird_party_licenses3367 COPYRIGHT AND PERMISSION NOTICE (ICU 58 and later)
3411 COPYRIGHT AND PERMISSION NOTICE
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java3877 mContext.enforceCallingOrSelfPermission(KeepaliveTracker.PERMISSION, "ConnectivityService");