Home
last modified time | relevance | path

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

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSubInfoControllerTest.java82 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOpNoThrow( in setUp()
134 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetDeviceIdWithOutPermission()
218 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetNaiWithOutPermission()
301 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetImeiWithOutPermission()
378 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetDeviceSvnWithOutPermission()
444 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetSubscriberIdWithOutPermission()
529 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetIccSerialNumberWithOutPermission()
593 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetLine1NumberWithOutPermissionTargetPreR()
596 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetLine1NumberWithOutPermissionTargetPreR()
599 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetLine1NumberWithOutPermissionTargetPreR()
[all …]
DSmsPermissionsTest.java128 .thenReturn(AppOpsManager.MODE_ERRORED); in testCheckCallingSendTextPermissions_persist_noAppOps()
144 .thenReturn(AppOpsManager.MODE_ERRORED); in testCheckCallingSendTextPermissions_noPersist_grantViaCarrierApp()
189 .thenReturn(AppOpsManager.MODE_ERRORED); in testCheckCallingSendTextPermissions_noPersist_noAppOps()
DTelephonyPermissionsTest.java121 nullable(String.class))).thenReturn(AppOpsManager.MODE_ERRORED); in setUp()
123 nullable(String.class))).thenReturn(AppOpsManager.MODE_ERRORED); in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsServiceTest.java22 import static android.app.AppOpsManager.MODE_ERRORED;
169 mAppOpsService.setMode(OP_WRITE_SMS, mMyUid, sMyPackageName, MODE_ERRORED); in testNoteOperationAndGetOpsForPackage()
181 assertContainsOp(loggedOps, OP_WRITE_SMS, -1, mTestStartMillis, MODE_ERRORED); in testNoteOperationAndGetOpsForPackage()
201 mAppOpsService.setMode(OP_COARSE_LOCATION, mMyUid, sMyPackageName, MODE_ERRORED); in testNoteOperationAndGetOpsForPackage_controlledByDifferentOp()
203 null, false)).isEqualTo(MODE_ERRORED); in testNoteOperationAndGetOpsForPackage_controlledByDifferentOp()
213 mAppOpsService.setMode(OP_WRITE_SMS, mMyUid, sMyPackageName, MODE_ERRORED); in testStatePersistence()
226 assertContainsOp(loggedOps, OP_WRITE_SMS, -1, mTestStartMillis, MODE_ERRORED); in testStatePersistence()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DLocationPermissionCheckerTest.java131 mWifiScanAllowApps = AppOpsManager.MODE_ERRORED; in initTestVars()
139 mAllowCoarseLocationApps = AppOpsManager.MODE_ERRORED; in initTestVars()
140 mAllowFineLocationApps = AppOpsManager.MODE_ERRORED; in initTestVars()
240 mAllowFineLocationApps = AppOpsManager.MODE_ERRORED;
/frameworks/native/libs/binder/include/binder/
DAppOpsManager.h37 MODE_ERRORED = IAppOpsService::MODE_ERRORED enumerator
DPermissionController.h43 MODE_ERRORED = 2, enumerator
DIAppOpsService.h71 MODE_ERRORED = 2 enumerator
/frameworks/native/libs/binder/
DIAppOpsService.cpp45 if (reply.readExceptionCode() != 0) return MODE_ERRORED; in checkOperation()
62 if (reply.readExceptionCode() != 0) return MODE_ERRORED; in noteOperation()
81 if (reply.readExceptionCode() != 0) return MODE_ERRORED; in startOperation()
135 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;
150 doReturn(assistStructureAllowed ? MODE_ALLOWED : MODE_ERRORED).when(mAppOpsManager) in setupMocks()
152 doReturn(assistScreenshotAllowed ? MODE_ALLOWED : MODE_ERRORED).when(mAppOpsManager) in setupMocks()
/frameworks/base/core/tests/coretests/src/android/content/
DPermissionCheckerTest.java115 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_ERRORED); in testCheckPermissionForPreflight_appOpPermission_modeErrored_returnsHardDenied()
188 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_ERRORED); in testCheckPermissionForDataDelivery_appOpPermission_modeErrored_returnsHardDenied()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsAccessTest.java146 setHasAppOpsPermission(AppOpsManager.MODE_ERRORED, true); in testCheckAccessLevel_deniedAppOpsBit()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java757 mAllowFineLocationApps = AppOpsManager.MODE_ERRORED; in testEnforceFailureFineLocationPermissionNewQApp()
1291 mWifiScanAllowApps = AppOpsManager.MODE_ERRORED;
1299 mAllowCoarseLocationApps = AppOpsManager.MODE_ERRORED;
1300 mAllowFineLocationApps = AppOpsManager.MODE_ERRORED;
/frameworks/av/services/camera/libcameraservice/api2/
DCameraOfflineSessionClient.cpp194 if (res == AppOpsManager::MODE_ERRORED) { in startCameraOps()
/frameworks/base/core/java/android/app/
DAppOpsManager.java347 MODE_ERRORED,
371 public static final int MODE_ERRORED = 2; field in AppOpsManager
2236 AppOpsManager.MODE_ERRORED, // MOCK_LOCATION
2253 AppOpsManager.MODE_ERRORED, // MANAGE_IPSEC_TUNNELS
2260 AppOpsManager.MODE_ERRORED, // WRITE_MEDIA_AUDIO
2262 AppOpsManager.MODE_ERRORED, // WRITE_MEDIA_VIDEO
2264 AppOpsManager.MODE_ERRORED, // WRITE_MEDIA_IMAGES
2267 AppOpsManager.MODE_ERRORED, // READ_DEVICE_IDENTIFIERS
2277 AppOpsManager.MODE_ERRORED, // OP_NO_ISOLATED_STORAGE
7304 if (mode == MODE_ERRORED) { in noteOp()
[all …]
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageInstallerActivity.java478 mOriginatingPackage, AppOpsManager.MODE_ERRORED); in handleUnknownSources()
480 case AppOpsManager.MODE_ERRORED: in handleUnknownSources()
/frameworks/base/telephony/common/android/telephony/
DLocationAccessPolicy.java190 case AppOpsManager.MODE_ERRORED: in appOpsModeToPermissionResult()
/frameworks/base/services/tests/servicestests/src/com/android/server/location/gnss/
DGnssManagerServiceTest.java301 return AppOpsManager.MODE_ERRORED; in enableLocationPermissions()
315 anyString())).thenReturn(AppOpsManager.MODE_ERRORED); in disableLocationPermissions()
/frameworks/base/core/java/android/os/
DEnvironment.java1349 case AppOpsManager.MODE_ERRORED: in isExternalStorageManager()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataServiceManager.java185 pkg, AppOpsManager.MODE_ERRORED); in revokePermissionsFromUnusedDataServices()
/frameworks/base/core/java/android/content/
DContentProvider.java23 import static android.app.AppOpsManager.MODE_ERRORED;
733 return MODE_ERRORED; in checkPermissionAndAppOp()
/frameworks/base/core/java/android/os/storage/
DStorageManager.java1804 case AppOpsManager.MODE_ERRORED: in checkPermissionAndAppOp()
1832 case AppOpsManager.MODE_ERRORED: in noteAppOpAllowingLegacy()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java1709 case AppOpsManager.MODE_ERRORED: in systemReady()
2952 return AppOpsManager.MODE_ERRORED; in checkPackage()
3033 return AppOpsManager.MODE_ERRORED; in noteOperationUnchecked()
3044 return AppOpsManager.MODE_ERRORED; in noteOperationUnchecked()
3401 return AppOpsManager.MODE_ERRORED; in startOperation()
3411 return AppOpsManager.MODE_ERRORED; in startOperation()
/frameworks/av/services/camera/libcameraservice/
DCameraService.cpp2921 if (res == AppOpsManager::MODE_ERRORED) { in startCameraOps()
3018 res == AppOpsManager::MODE_ERRORED ? "ERRORED" : in opChanged()

12