Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/unit/src/com/android/settings/applications/
DAppOpsSettingsTest.java20 import static android.app.AppOpsManager.MODE_ERRORED;
181 testAppDetailScreenForAppOp(MODE_ERRORED, user.id); in testSingleApp()
202 testSwitchToggle(MODE_ALLOWED, MODE_ERRORED); in testIfSwitchTogglesAppOp()
203 testSwitchToggle(MODE_ERRORED, MODE_ALLOWED); in testIfSwitchTogglesAppOp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateInstallAppsBridgeTest.java42 appState.appOpMode = AppOpsManager.MODE_ERRORED; in testInstallAppsStateCanInstallApps()
52 appState.appOpMode = AppOpsManager.MODE_ERRORED; in testInstallAppsStateIsPotentialAppSource()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/pictureinpicture/
DPictureInPictureDetails.java19 import static android.app.AppOpsManager.MODE_ERRORED;
97 final int newMode = value ? MODE_ALLOWED : MODE_ERRORED; in setEnterPipStateForPackage()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/pictureinpicture/
DPictureInPictureDetails.java19 import static android.app.AppOpsManager.MODE_ERRORED;
97 final int newMode = value ? MODE_ALLOWED : MODE_ERRORED; in setEnterPipStateForPackage()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DMockLocationAppPreferenceController.java137 if (packageOp.getOps().get(0).getMode() != AppOpsManager.MODE_ERRORED) { in removeAllMockLocations()
148 appName, AppOpsManager.MODE_ERRORED); in removeMockLocationForApp()
/packages/apps/Settings/src/com/android/settings/development/
DMockLocationAppPreferenceController.java143 if (packageOp.getOps().get(0).getMode() != AppOpsManager.MODE_ERRORED) { in removeAllMockLocations()
154 appName, AppOpsManager.MODE_ERRORED); in removeMockLocationForApp()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBackgroundActivityPreferenceController.java88 if (whitelisted || mode == AppOpsManager.MODE_ERRORED in updateState()
127 if (mode == AppOpsManager.MODE_ERRORED) { in updateSummary()
DBatteryUtils.java335 return mode == AppOpsManager.MODE_IGNORED || mode == AppOpsManager.MODE_ERRORED; in isBackgroundRestrictionEnabled()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBackgroundActivityPreferenceController.java88 if (whitelisted || mode == AppOpsManager.MODE_ERRORED in updateState()
127 if (mode == AppOpsManager.MODE_ERRORED) { in updateSummary()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DModifySystemSettingsFragment.java45 AppOpsManager.MODE_ERRORED); in onAttach()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DVideoProviderTest.java219 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOpsManager).noteOp(anyInt(), anyInt(), in testCameraChangeAppOpsFail()
249 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOpsManager).noteOp(anyInt(), anyInt(), in testCameraChangeAppOpsBelowNMR1Fail()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DWriteSettings.java90 grant ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in setWriteSettingsAccess()
DSystemAlertWindow.java102 grant ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in setSystemAlertWindowAccess()
DExternalSources.java131 newState ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in setCanInstallApps()
DPictureInPicture.java122 (Boolean) newValue ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in bindPreference()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DExternalSourcesDetails.java105 newState ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in setCanInstallApps()
DDrawOverlayDetails.java116 ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in setCanDrawOverlay()
DWriteSettingsDetails.java100 ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in setCanWriteSettings()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DWriteSettingsDetails.java100 ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in setCanWriteSettings()
DDrawOverlayDetails.java116 ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in setCanDrawOverlay()
DExternalSourcesDetails.java110 newState ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in setCanInstallApps()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DMockLocationAppPreferenceControllerTest.java118 eq(AppOpsManager.MODE_ERRORED)); in onActivityResult_fooPrevAppBarNewApp_shouldRemoveFooAndSetBarAsMockLocationApp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBackgroundActivityPreferenceControllerTest.java173 LOW_SDK_PACKAGE)).thenReturn(AppOpsManager.MODE_ERRORED); in updateSummary_modeError_showSummaryDisabled()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DAppOpsPreferenceControllerTest.java69 private static final int NEGATIVE_MODE = AppOpsManager.MODE_ERRORED;
/packages/services/Telephony/tests/src/com/android/phone/
DLocationAccessPolicyTest.java275 .setFineAppOp(AppOpsManager.MODE_ERRORED) in getScenarios()

12