Home
last modified time | relevance | path

Searched refs:MODE_ERRORED (Results 1 – 25 of 33) 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/apps/Settings/src/com/android/settings/development/
DMockLocationAppPreferenceController.java144 if (packageOp.getOps().get(0).getMode() != AppOpsManager.MODE_ERRORED) { in removeAllMockLocations()
155 appName, AppOpsManager.MODE_ERRORED); in removeMockLocationForApp()
/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/fuelgauge/
DBackgroundActivityPreferenceController.java88 if (whitelisted || mode == AppOpsManager.MODE_ERRORED in updateState()
127 if (mode == AppOpsManager.MODE_ERRORED) { in updateSummary()
/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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DManageExternalStorageDetailsTest.java142 assertThat(mUidToOpModeMap).containsExactly(mockUid, AppOpsManager.MODE_ERRORED); in onPreferenceChange_disableManageExternalStorage_shouldTriggerAppOpsManager()
158 state.appOpMode = enabled ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED; in injectPermissionState()
/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.java91 grant ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in setWriteSettingsAccess()
DSystemAlertWindow.java108 grant ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in setSystemAlertWindowAccess()
DExternalSources.java132 newState ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in setCanInstallApps()
DPictureInPicture.java123 (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/
DManageExternalStorageDetails.java114 ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in setManageExternalStorageState()
DExternalSourcesDetails.java110 newState ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in setCanInstallApps()
DWriteSettingsDetails.java100 ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in setCanWriteSettings()
DDrawOverlayDetails.java116 ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); in setCanDrawOverlay()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DMockLocationAppPreferenceControllerTest.java117 eq(AppOpsManager.MODE_ERRORED)); in onActivityResult_fooPrevAppBarNewApp_shouldRemoveFooAndSetBarAsMockLocationApp()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DAppPermissionViewModel.kt22 import android.app.AppOpsManager.MODE_ERRORED in <lambda>()
652 MODE_ERRORED in <lambda>()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBackgroundActivityPreferenceControllerTest.java173 LOW_SDK_PACKAGE)).thenReturn(AppOpsManager.MODE_ERRORED); in updateSummary_modeError_showSummaryDisabled()

12