Home
last modified time | relevance | path

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

12

/frameworks/base/services/permission/java/com/android/server/permission/access/appop/
DAppOpModes.kt24 const val MODE_ERRORED = AppOpsManager.MODE_ERRORED constant
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/
DAppOpsRepositoryTest.kt50 } doReturn AppOpsManager.MODE_ERRORED in <lambda>()
65 assertThat(mode).isEqualTo(AppOpsManager.MODE_ERRORED) in getOpMode()
74 assertThat(mode).isEqualTo(AppOpsManager.MODE_ERRORED) in <lambda>()
DAppOpsControllerTest.kt21 import android.app.AppOpsManager.MODE_ERRORED
69 verify(appOpsManager).setMode(OP, APP.uid, APP.packageName, MODE_ERRORED) in setAllowed_setToFalse()
108 verify(appOpsManager).setUidMode(OP, APP.uid, MODE_ERRORED) in setAllowed_setToFalseByUid()
DAppOpsPermissionControllerTest.kt116 on { modeFlow } doReturn flowOf(AppOpsManager.MODE_ERRORED) in <lambda>()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsServiceTest.java19 import static android.app.AppOpsManager.MODE_ERRORED;
257 mAppOpsService.setMode(OP_WRITE_SMS, mMyUid, sMyPackageName, MODE_ERRORED); in testNoteOperationAndGetOpsForPackage()
269 assertContainsOp(loggedOps, OP_WRITE_SMS, -1, mTestStartMillis, MODE_ERRORED); in testNoteOperationAndGetOpsForPackage()
284 assertThat(erroredResult.getOpMode()).isEqualTo(MODE_ERRORED); in testNoteOperationFromSdkSandbox()
304 mAppOpsService.setMode(OP_COARSE_LOCATION, mMyUid, sMyPackageName, MODE_ERRORED); in testNoteOperationAndGetOpsForPackage_controlledByDifferentOp()
306 null, false).getOpMode()).isEqualTo(MODE_ERRORED); in testNoteOperationAndGetOpsForPackage_controlledByDifferentOp()
316 mAppOpsService.setMode(OP_WRITE_SMS, mMyUid, sMyPackageName, MODE_ERRORED); in testStatePersistence()
330 assertContainsOp(loggedOps, OP_WRITE_SMS, -1, mTestStartMillis, MODE_ERRORED); in testStatePersistence()
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/app/
DAppOpsController.kt21 import android.app.AppOpsManager.MODE_ERRORED
43 val modeForNotAllowed: Int = MODE_ERRORED, in setAllowed()
/frameworks/native/libs/permission/include/binder/
DAppOpsManager.h38 MODE_ERRORED = IAppOpsService::MODE_ERRORED enumerator
DIAppOpsService.h75 MODE_ERRORED = 2 enumerator
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSmsPermissionsTest.java127 .thenReturn(AppOpsManager.MODE_ERRORED); in testCheckCallingSendTextPermissions_persist_noAppOps()
143 .thenReturn(AppOpsManager.MODE_ERRORED); in testCheckCallingSendTextPermissions_noPersist_grantViaCarrierApp()
188 .thenReturn(AppOpsManager.MODE_ERRORED); in testCheckCallingSendTextPermissions_noPersist_noAppOps()
DPhoneSubInfoControllerTest.java113 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOpNoThrow( in setUp()
177 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOpNoThrow( in testGetDeviceIdWithOutPermission()
291 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOpNoThrow( in testGetNaiWithOutPermission()
374 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOpNoThrow( in testGetImeiWithOutPermission()
451 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOpNoThrow( in testGetDeviceSvnWithOutPermission()
517 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOpNoThrow( in testGetSubscriberIdWithOutPermission()
602 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOpNoThrow( in testGetIccSerialNumberWithOutPermission()
769 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOpNoThrow( in testGetLine1AlphaTagWithOutPermission()
916 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOpNoThrow( in testGetVoiceMailNumberWithOutPermission()
972 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOpNoThrow( in testGetVoiceMailAlphaTagWithOutPermission()
DTelephonyPermissionsTest.java126 nullable(String.class))).thenReturn(AppOpsManager.MODE_ERRORED); in setUp()
128 nullable(String.class))).thenReturn(AppOpsManager.MODE_ERRORED); in setUp()
/frameworks/native/libs/binder/include/binder/
DPermissionController.h41 MODE_ERRORED = 2, enumerator
/frameworks/native/libs/permission/
DIAppOpsService.cpp47 if (reply.readExceptionCode() != 0) return MODE_ERRORED; in checkOperation()
65 if (reply.readExceptionCode() != 0) return MODE_ERRORED; in noteOperation()
89 if (reply.readExceptionCode() != 0) return MODE_ERRORED; in startOperation()
146 return MODE_ERRORED; in checkAudioOperation()
/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/native/libs/binder/
DPermissionController.cpp65 return service != nullptr ? service->noteOp(op, uid, packageName) : MODE_ERRORED; in noteOp()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerService.java27 import static android.app.AppOpsManager.MODE_ERRORED;
1212 case AppOpsManager.MODE_ERRORED: { in checkAppOpPermission()
1314 case AppOpsManager.MODE_ERRORED: { in checkRuntimePermission()
1472 case AppOpsManager.MODE_ERRORED: { in checkOp()
1507 return AppOpsManager.MODE_ERRORED; in performOpTransaction()
1517 return AppOpsManager.MODE_ERRORED; in performOpTransaction()
1528 return AppOpsManager.MODE_ERRORED; in performOpTransaction()
1545 if (checkedOpResult == MODE_ERRORED) { in performOpTransaction()
1589 return AppOpsManager.MODE_ERRORED; in performOpTransaction()
1601 if (checkedOpResult == MODE_ERRORED) { in performOpTransaction()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DAlarmManagerServiceTest.java37 import static android.app.AppOpsManager.MODE_ERRORED;
2182 mockScheduleExactAlarmStatePreT(true, MODE_ERRORED);
2222 mockScheduleExactAlarmStatePreT(true, MODE_ERRORED);
2226 mockScheduleExactAlarmStatePreT(true, MODE_ERRORED);
2237 mockScheduleExactAlarmStatePreT(true, MODE_ERRORED);
2242 mockScheduleExactAlarmStatePreT(true, MODE_ERRORED);
2484 mockScheduleExactAlarmStatePreT(true, MODE_ERRORED);
2558 mockScheduleExactAlarmStatePreT(true, MODE_ERRORED);
2604 mockScheduleExactAlarmStatePreT(false, MODE_ERRORED);
2628 mockScheduleExactAlarmStatePreT(true, MODE_ERRORED);
[all …]
/frameworks/base/tests/EnforcePermission/test-app/src/android/tests/enforcepermission/tests/
DServiceTest.java145 Process.myUid(), AppOpsManager.MODE_ERRORED); in testAppOpPermissionDenied_fails()
/frameworks/base/telephony/common/android/telephony/
DLocationAccessPolicy.java236 case AppOpsManager.MODE_ERRORED: in appOpsModeToPermissionResult()
/frameworks/av/services/camera/libcameraservice/api2/
DCameraOfflineSessionClient.cpp248 if (res == AppOpsManager::MODE_ERRORED) { in startCameraOps()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DDataServiceManager.java190 pkg, AppOpsManager.MODE_ERRORED); in revokePermissionsFromUnusedDataServices()
192 pkg, AppOpsManager.MODE_ERRORED); in revokePermissionsFromUnusedDataServices()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageInstallerActivity.java576 mOriginatingPackage, AppOpsManager.MODE_ERRORED); in handleUnknownSources()
578 case AppOpsManager.MODE_ERRORED: in handleUnknownSources()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java33 import static android.app.AppOpsManager.MODE_ERRORED;
1149 case AppOpsManager.MODE_ERRORED: in systemReady()
2082 if (mode != MODE_ERRORED && mode != previousMode) { in setUidMode()
2212 if (mode != MODE_ERRORED) { in notifyOpChangedForPkg()
2958 return AppOpsManager.MODE_ERRORED; in checkPackage()
2960 return AppOpsManager.MODE_ERRORED; in checkPackage()
3021 return new SyncNotedAppOp(AppOpsManager.MODE_ERRORED, code, proxiedAttributionTag, in noteProxyOperationImpl()
3107 return new SyncNotedAppOp(AppOpsManager.MODE_ERRORED, code, attributionTag, in noteOperationImpl()
3143 return new SyncNotedAppOp(AppOpsManager.MODE_ERRORED, code, attributionTag, in noteOperationUnchecked()
3171 return new SyncNotedAppOp(AppOpsManager.MODE_ERRORED, code, attributionTag, in noteOperationUnchecked()
[all …]
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/
DInstallRepository.kt786 AppOpsManager.MODE_DEFAULT, AppOpsManager.MODE_ERRORED -> { in <lambda>()
790 AppOpsManager.MODE_ERRORED in <lambda>()

12