Home
last modified time | relevance | path

Searched refs:MODE_ERRORED (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSubInfoControllerTest.java79 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 …]
DSmsPermissionsTest.java129 .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()
DTelephonyPermissionsTest.java116 .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/
DAppOpsManager.h35 MODE_ERRORED = IAppOpsService::MODE_ERRORED enumerator
DPermissionController.h43 MODE_ERRORED = 2, enumerator
DIAppOpsService.h64 MODE_ERRORED = 2 enumerator
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsServiceTest.java21 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/
DLocationPermissionCheckerTest.java130 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/
DIAppOpsService.cpp47 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()
DPermissionController.cpp65 return service != nullptr ? service->noteOp(op, uid, packageName) : MODE_ERRORED; in noteOp()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DAssistDataRequesterTest.java20 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/
DAppOpsManager.java160 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/
DWifiPermissionsUtilTest.java765 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/
DNetworkStatsAccessTest.java146 setHasAppOpsPermission(AppOpsManager.MODE_ERRORED, true); in testCheckAccessLevel_deniedAppOpsBit()
/frameworks/base/telephony/common/android/telephony/
DLocationAccessPolicy.java191 case AppOpsManager.MODE_ERRORED: in appOpsModeToPermissionResult()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageInstallerActivity.java475 mOriginatingPackage, AppOpsManager.MODE_ERRORED); in handleUnknownSources()
477 case AppOpsManager.MODE_ERRORED: in handleUnknownSources()
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java21 import static android.app.AppOpsManager.MODE_ERRORED;
622 case MODE_ERRORED: in addOpIfRestricted()
DPhoneWindowManager.java2168 case AppOpsManager.MODE_ERRORED: in checkAddPermission()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataServiceManager.java164 pkg, AppOpsManager.MODE_ERRORED); in revokePermissionsFromUnusedDataServices()
/frameworks/base/core/java/android/content/
DContentProvider.java22 import static android.app.AppOpsManager.MODE_ERRORED;
645 return MODE_ERRORED; in checkPermissionAndAppOp()
/frameworks/base/core/java/android/os/storage/
DStorageManager.java1682 case AppOpsManager.MODE_ERRORED: in checkPermissionAndAppOp()
1709 case AppOpsManager.MODE_ERRORED: in noteAppOpAllowingLegacy()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java838 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/
DCameraService.cpp2493 if (res == AppOpsManager::MODE_ERRORED) { in startCameraOps()
2587 res == AppOpsManager::MODE_ERRORED ? "ERRORED" : in opChanged()
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java990 if (mode == AppOpsManager.MODE_ERRORED) { in shouldVibrate()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareStateManagerTest.java164 any())).thenReturn(AppOpsManager.MODE_ERRORED); in setUp()

12