/frameworks/base/services/tests/servicestests/src/com/android/server/appops/ |
H A D | AppOpsServiceTest.java | 18 import static android.app.AppOpsManager.MODE_ALLOWED; 91 mAppOpsService.setMode(OP_READ_SMS, mMyUid, mMyPackageName, MODE_ALLOWED); 97 assertContainsOp(loggedOps, OP_READ_SMS, mTestStartMillis, -1, MODE_ALLOWED); 102 assertContainsOp(loggedOps, OP_READ_SMS, mTestStartMillis, -1, MODE_ALLOWED); 109 mAppOpsService.setMode(OP_READ_SMS, mMyUid, mMyPackageName, MODE_ALLOWED); 122 assertContainsOp(loggedOps, OP_READ_SMS, mTestStartMillis, -1, MODE_ALLOWED); 129 mAppOpsService.setMode(OP_READ_SMS, mMyUid, mMyPackageName, MODE_ALLOWED); 140 assertContainsOp(loggedOps, OP_READ_SMS, mTestStartMillis, -1, MODE_ALLOWED); 145 mAppOpsService.setMode(OP_READ_SMS, mMyUid, mMyPackageName, MODE_ALLOWED); 151 assertContainsOp(loggedOps, OP_READ_SMS, mTestStartMillis, -1, MODE_ALLOWED); [all...] |
/frameworks/base/core/java/android/app/ |
H A D | AppOpsManager.java | 71 * setting for the operation under that caller: MODE_ALLOWED, MODE_IGNORED (don't execute 89 public static final int MODE_ALLOWED = 0; field in class:AppOpsManager 115 * mode is set, these functions will return {@link #MODE_ALLOWED} when the app being 133 "allow", // MODE_ALLOWED 1169 AppOpsManager.MODE_ALLOWED, 1170 AppOpsManager.MODE_ALLOWED, 1171 AppOpsManager.MODE_ALLOWED, 1172 AppOpsManager.MODE_ALLOWED, 1173 AppOpsManager.MODE_ALLOWED, 1174 AppOpsManager.MODE_ALLOWED, [all...] |
/frameworks/base/core/java/android/content/ |
H A D | ContentProvider.java | 20 import static android.app.AppOpsManager.MODE_ALLOWED; 213 if (enforceReadPermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { 260 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { 275 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { 304 != AppOpsManager.MODE_ALLOWED) { 310 != AppOpsManager.MODE_ALLOWED) { 336 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { 352 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { 440 if (enforceReadPermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { 456 if (enforceReadPermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { [all...] |
H A D | PermissionChecker.java | 112 != AppOpsManager.MODE_ALLOWED) {
|
/frameworks/native/include/binder/ |
H A D | PermissionController.h | 41 MODE_ALLOWED = 0, enumerator in enum:android::PermissionController::__anon1458
|
H A D | AppOpsManager.h | 33 MODE_ALLOWED = IAppOpsService::MODE_ALLOWED, enumerator in enum:android::AppOpsManager::__anon1438
|
H A D | IAppOpsService.h | 59 MODE_ALLOWED = 0, enumerator in enum:android::IAppOpsService::__anon1444
|
/frameworks/native/libs/binder/include/binder/ |
H A D | PermissionController.h | 41 MODE_ALLOWED = 0, enumerator in enum:android::PermissionController::__anon1578
|
H A D | AppOpsManager.h | 33 MODE_ALLOWED = IAppOpsService::MODE_ALLOWED, enumerator in enum:android::AppOpsManager::__anon1558
|
H A D | IAppOpsService.h | 59 MODE_ALLOWED = 0, enumerator in enum:android::IAppOpsService::__anon1564
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
H A D | WifiPermissionsUtilTest.java | 173 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; 196 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; 240 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; 262 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; 285 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; 312 mAllowCoarseLocationApps = AppOpsManager.MODE_ALLOWED; 313 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; 359 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; 393 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; 428 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
H A D | PipAppOpsListener.java | 19 import static android.app.AppOpsManager.MODE_ALLOWED; 54 packageName) != MODE_ALLOWED) {
|
/frameworks/support/compat/src/main/java/androidx/core/app/ |
H A D | AppOpsManagerCompat.java | 36 public static final int MODE_ALLOWED = AppOpsManager.MODE_ALLOWED; field in class:AppOpsManagerCompat 97 * @return Returns {@link #MODE_ALLOWED} if the operation is allowed, or 149 * @return Returns {@link #MODE_ALLOWED} if the operation is allowed, or
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | TelephonyPermissions.java | 134 AppOpsManager.MODE_ALLOWED; 168 AppOpsManager.MODE_ALLOWED; 191 AppOpsManager.MODE_ALLOWED) { 209 return appOps.noteOp(opCode, uid, callingPackage) == AppOpsManager.MODE_ALLOWED; 222 return appOps.noteOp(opCode, uid, callingPackage) == AppOpsManager.MODE_ALLOWED;
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | MmsServiceBroker.java | 338 callingPkg) != AppOpsManager.MODE_ALLOWED) { 356 callingPkg) != AppOpsManager.MODE_ALLOWED) { 377 callingPkg) != AppOpsManager.MODE_ALLOWED) { 391 callingPkg) != AppOpsManager.MODE_ALLOWED) { 404 callingPkg) != AppOpsManager.MODE_ALLOWED) { 414 callingPkg) != AppOpsManager.MODE_ALLOWED) { 424 callingPkg) != AppOpsManager.MODE_ALLOWED) { 435 callingPkg) != AppOpsManager.MODE_ALLOWED) { 446 callingPkg) != AppOpsManager.MODE_ALLOWED) { 458 callingPkg) != AppOpsManager.MODE_ALLOWED) { [all...] |
/frameworks/base/core/tests/coretests/src/android/provider/ |
H A D | TestDocumentsProvider.java | 97 return AppOpsManager.MODE_ALLOWED; 102 return AppOpsManager.MODE_ALLOWED;
|
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/ |
H A D | ServiceManagerPermissionTests.java | 60 return AppOpsManager.MODE_ALLOWED;
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | TelephonyPermissionsTest.java | 94 .thenReturn(AppOpsManager.MODE_ALLOWED); 129 .thenReturn(AppOpsManager.MODE_ALLOWED); 147 .thenReturn(AppOpsManager.MODE_ALLOWED); 157 .thenReturn(AppOpsManager.MODE_ALLOWED);
|
H A D | PhoneSubInfoControllerTest.java | 116 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( 166 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( 216 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( 266 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( 319 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( 374 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( 422 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( 441 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( 455 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( 507 doReturn(AppOpsManager.MODE_ALLOWED) [all...] |
/frameworks/av/services/audioflinger/ |
H A D | ServiceUtilities.cpp | 105 != AppOpsManager::MODE_ALLOWED) { 110 if (appOps.noteOp(op, uid, resolvedOpPackageName) != AppOpsManager::MODE_ALLOWED) {
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | AssistDataRequester.java | 21 import static android.app.AppOpsManager.MODE_ALLOWED; 182 == MODE_ALLOWED && allowFetchData) { 222 == MODE_ALLOWED && allowFetchScreenshot) {
|
/frameworks/base/telephony/java/android/telephony/ |
H A D | LocationAccessPolicy.java | 80 .noteOpNoThrow(opCode, uid, pkgName) != AppOpsManager.MODE_ALLOWED) {
|
/frameworks/support/compat/src/main/java/androidx/core/content/ |
H A D | PermissionChecker.java | 115 != AppOpsManagerCompat.MODE_ALLOWED) {
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WifiServiceImpl.java | 19 import static android.app.AppOpsManager.MODE_ALLOWED; 609 if (enforceChangePermission(packageName) != MODE_ALLOWED) { 732 * 1. Operation is allowed. No exception thrown, and AppOpsManager.MODE_ALLOWED returned. 740 return MODE_ALLOWED; 809 if (enforceChangePermission(packageName) != MODE_ALLOWED) { 1370 if (enforceChangePermission(packageName) != MODE_ALLOWED) { 1561 if (enforceChangePermission(packageName) != MODE_ALLOWED) { 1602 if (enforceChangePermission(packageName) != MODE_ALLOWED) { 1614 if (enforceChangePermission(packageName) != MODE_ALLOWED) { 1626 if (enforceChangePermission(packageName) != MODE_ALLOWED) { [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
H A D | AssistDataRequesterTest.java | 19 import static android.app.AppOpsManager.MODE_ALLOWED; 146 doReturn(assistStructureAllowed ? MODE_ALLOWED : MODE_ERRORED).when(mAppOpsManager) 148 doReturn(assistScreenshotAllowed ? MODE_ALLOWED : MODE_ERRORED).when(mAppOpsManager)
|