/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneSubInfoControllerTest.java | 79 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOpNoThrow( in setUp() 129 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetDeviceIdWithOutPermission() 210 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetNaiWithOutPermission() 290 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetImeiWithOutPermission() 365 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetDeviceSvnWithOutPermission() 428 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetSubscriberIdWithOutPermission() 510 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetIccSerialNumberWithOutPermission() 572 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetLine1NumberWithOutPermissionTargetPreR() 574 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetLine1NumberWithOutPermissionTargetPreR() 576 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetLine1NumberWithOutPermissionTargetPreR() [all …]
|
D | SmsPermissionsTest.java | 129 .thenReturn(AppOpsManager.MODE_ERRORED); in testCheckCallingSendTextPermissions_persist_noAppOps() 144 .thenReturn(AppOpsManager.MODE_ERRORED); in testCheckCallingSendTextPermissions_noPersist_grantViaCarrierApp() 188 .thenReturn(AppOpsManager.MODE_ERRORED); in testCheckCallingSendTextPermissions_noPersist_noAppOps()
|
D | TelephonyPermissionsTest.java | 116 .thenReturn(AppOpsManager.MODE_ERRORED); in setUp() 118 AppOpsManager.MODE_ERRORED); in setUp() 419 AppOpsManager.MODE_ERRORED); in testCheckCallingOrSelfReadSubscriberIdentifiers_noPermissions()
|
/frameworks/native/libs/binder/include/binder/ |
D | AppOpsManager.h | 35 MODE_ERRORED = IAppOpsService::MODE_ERRORED enumerator
|
D | PermissionController.h | 43 MODE_ERRORED = 2, enumerator
|
D | IAppOpsService.h | 64 MODE_ERRORED = 2 enumerator
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/ |
D | AppOpsServiceTest.java | 21 import static android.app.AppOpsManager.MODE_ERRORED; 174 mAppOpsService.setMode(OP_WRITE_SMS, mMyUid, sMyPackageName, MODE_ERRORED); in testNoteOperationAndGetOpsForPackage() 185 assertContainsOp(loggedOps, OP_WRITE_SMS, -1, mTestStartMillis, MODE_ERRORED); in testNoteOperationAndGetOpsForPackage() 205 mAppOpsService.setMode(OP_COARSE_LOCATION, mMyUid, sMyPackageName, MODE_ERRORED); in testNoteOperationAndGetOpsForPackage_controlledByDifferentOp() 207 .isEqualTo(MODE_ERRORED); in testNoteOperationAndGetOpsForPackage_controlledByDifferentOp() 217 mAppOpsService.setMode(OP_WRITE_SMS, mMyUid, sMyPackageName, MODE_ERRORED); in testStatePersistence() 229 assertContainsOp(loggedOps, OP_WRITE_SMS, -1, mTestStartMillis, MODE_ERRORED); in testStatePersistence()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | LocationPermissionCheckerTest.java | 130 mWifiScanAllowApps = AppOpsManager.MODE_ERRORED; in initTestVars() 138 mAllowCoarseLocationApps = AppOpsManager.MODE_ERRORED; in initTestVars() 139 mAllowFineLocationApps = AppOpsManager.MODE_ERRORED; in initTestVars() 239 mAllowFineLocationApps = AppOpsManager.MODE_ERRORED;
|
/frameworks/native/libs/binder/ |
D | IAppOpsService.cpp | 47 if (reply.readExceptionCode() != 0) return MODE_ERRORED; in checkOperation() 59 if (reply.readExceptionCode() != 0) return MODE_ERRORED; in noteOperation() 74 if (reply.readExceptionCode() != 0) return MODE_ERRORED; in startOperation() 138 return MODE_ERRORED; in checkAudioOperation()
|
D | PermissionController.cpp | 65 return service != nullptr ? service->noteOp(op, uid, packageName) : MODE_ERRORED; in noteOp()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | AssistDataRequesterTest.java | 20 import static android.app.AppOpsManager.MODE_ERRORED; 147 doReturn(assistStructureAllowed ? MODE_ALLOWED : MODE_ERRORED).when(mAppOpsManager) in setupMocks() 149 doReturn(assistScreenshotAllowed ? MODE_ALLOWED : MODE_ERRORED).when(mAppOpsManager) in setupMocks()
|
/frameworks/base/core/java/android/app/ |
D | AppOpsManager.java | 160 MODE_ERRORED, 184 public static final int MODE_ERRORED = 2; field in AppOpsManager 1873 AppOpsManager.MODE_ERRORED, // MOCK_LOCATION 1890 AppOpsManager.MODE_ERRORED, // MANAGE_IPSEC_TUNNELS 1897 AppOpsManager.MODE_ERRORED, // WRITE_MEDIA_AUDIO 1899 AppOpsManager.MODE_ERRORED, // WRITE_MEDIA_VIDEO 1901 AppOpsManager.MODE_ERRORED, // WRITE_MEDIA_IMAGES 1904 AppOpsManager.MODE_ERRORED, // READ_DEVICE_IDENTIFIERS 5201 if (mode == MODE_ERRORED) { in checkOp() 5249 if (mode == MODE_ERRORED) { in checkAudioOp() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 765 mAllowFineLocationApps = AppOpsManager.MODE_ERRORED; in testEnforceFailureFineLocationPermissionNewQApp() 1181 mWifiScanAllowApps = AppOpsManager.MODE_ERRORED; 1191 mAllowCoarseLocationApps = AppOpsManager.MODE_ERRORED; 1192 mAllowFineLocationApps = AppOpsManager.MODE_ERRORED;
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsAccessTest.java | 146 setHasAppOpsPermission(AppOpsManager.MODE_ERRORED, true); in testCheckAccessLevel_deniedAppOpsBit()
|
/frameworks/base/telephony/common/android/telephony/ |
D | LocationAccessPolicy.java | 191 case AppOpsManager.MODE_ERRORED: in appOpsModeToPermissionResult()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | PackageInstallerActivity.java | 475 mOriginatingPackage, AppOpsManager.MODE_ERRORED); in handleUnknownSources() 477 case AppOpsManager.MODE_ERRORED: in handleUnknownSources()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | PermissionPolicyService.java | 21 import static android.app.AppOpsManager.MODE_ERRORED; 622 case MODE_ERRORED: in addOpIfRestricted()
|
D | PhoneWindowManager.java | 2168 case AppOpsManager.MODE_ERRORED: in checkAddPermission()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataServiceManager.java | 164 pkg, AppOpsManager.MODE_ERRORED); in revokePermissionsFromUnusedDataServices()
|
/frameworks/base/core/java/android/content/ |
D | ContentProvider.java | 22 import static android.app.AppOpsManager.MODE_ERRORED; 645 return MODE_ERRORED; in checkPermissionAndAppOp()
|
/frameworks/base/core/java/android/os/storage/ |
D | StorageManager.java | 1682 case AppOpsManager.MODE_ERRORED: in checkPermissionAndAppOp() 1709 case AppOpsManager.MODE_ERRORED: in noteAppOpAllowingLegacy()
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsService.java | 838 case AppOpsManager.MODE_ERRORED: in systemReady() 1984 return AppOpsManager.MODE_ERRORED; in checkPackage() 2052 return AppOpsManager.MODE_ERRORED; in noteOperationUnchecked() 2062 return AppOpsManager.MODE_ERRORED; in noteOperationUnchecked() 2230 return AppOpsManager.MODE_ERRORED; in startOperation() 2239 return AppOpsManager.MODE_ERRORED; in startOperation()
|
/frameworks/av/services/camera/libcameraservice/ |
D | CameraService.cpp | 2493 if (res == AppOpsManager::MODE_ERRORED) { in startCameraOps() 2587 res == AppOpsManager::MODE_ERRORED ? "ERRORED" : in opChanged()
|
/frameworks/base/services/core/java/com/android/server/ |
D | VibratorService.java | 990 if (mode == AppOpsManager.MODE_ERRORED) { in shouldVibrate()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareStateManagerTest.java | 164 any())).thenReturn(AppOpsManager.MODE_ERRORED); in setUp()
|