Home
last modified time | relevance | path

Searched refs:checkOpNoThrow (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryOptimizeUtilsTest.java106 when(mMockAppOpsManager.checkOpNoThrow(anyInt(), anyInt(), anyString())) in testGetAppOptimizationMode_returnRestricted()
115 when(mMockAppOpsManager.checkOpNoThrow(anyInt(), anyInt(), anyString())) in testGetAppOptimizationMode_returnUnrestricted()
124 when(mMockAppOpsManager.checkOpNoThrow(anyInt(), anyInt(), anyString())) in testGetAppOptimizationMode_returnOptimized()
160 when(mMockAppOpsManager.checkOpNoThrow(anyInt(), anyInt(), anyString())) in testSetAppUsageState_Restricted_verifyAction()
174 when(mMockAppOpsManager.checkOpNoThrow(anyInt(), anyInt(), anyString())) in testSetAppUsageState_Unrestricted_verifyAction()
188 when(mMockAppOpsManager.checkOpNoThrow(anyInt(), anyInt(), anyString())) in testSetAppUsageState_Optimized_verifyAction()
202 when(mMockAppOpsManager.checkOpNoThrow(anyInt(), anyInt(), anyString())) in testSetAppUsageState_sameUnrestrictedMode_verifyNoAction()
345 .checkOpNoThrow(anyInt(), anyInt(), anyString()); in runTestForResetWithMode()
DBatteryUtilsTest.java270 .checkOpNoThrow(AppOpsManager.OP_RUN_IN_BACKGROUND, UID, PACKAGE_NAME); in testBackgroundRestrictionOn_restrictionOn_returnTrue()
280 .checkOpNoThrow(AppOpsManager.OP_RUN_IN_BACKGROUND, UID, PACKAGE_NAME); in testBackgroundRestrictionOn_restrictionOff_returnFalse()
368 when(mAppOpsManager.checkOpNoThrow( in testIsForceAppStandbyEnabled_enabled_returnTrue()
377 when(mAppOpsManager.checkOpNoThrow( in testIsForceAppStandbyEnabled_disabled_returnFalse()
387 when(mAppOpsManager.checkOpNoThrow( in clearForceAppStandby_appRestricted_clearAndReturnTrue()
416 when(mAppOpsManager.checkOpNoThrow( in clearForceAppStandby_appUnrestricted_returnFalse()
DBatteryBackupHelperTest.java429 .checkOpNoThrow( in createTestingData()
435 .checkOpNoThrow( in createTestingData()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DAppOpsManagerCompat.java69 public int checkOpNoThrow(int op, int uid, String packageName) { in checkOpNoThrow() method in AppOpsManagerCompat
70 return mAppOpsManager.checkOpNoThrow(op, uid, packageName); in checkOpNoThrow()
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/
DAppStateAppBatteryUsageBridgeTest.java49 when(mAppOpsManager.checkOpNoThrow(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, in updateExtraInfo_updatesRestricted()
68 when(mAppOpsManager.checkOpNoThrow(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, in updateExtraInfo_updatesUnrestricted()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryOptimizeUtils.java123 mAppOpsManager.checkOpNoThrow( in getAppOptimizationMode()
244 aom.checkOpNoThrow( in resetAppOptimizationModeInternal()
271 return appOpsManager.checkOpNoThrow( in getMode()
DBatteryUtils.java298 mAppOpsManager.checkOpNoThrow(AppOpsManager.OP_RUN_IN_BACKGROUND, uid, packageName); in isBackgroundRestrictionEnabled()
419 return mAppOpsManager.checkOpNoThrow( in isForceAppStandbyEnabled()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/tips/
DAppRestrictionPredicate.java47 return mAppOpsManager.checkOpNoThrow( in test()
/packages/apps/Contacts/src/com/android/contacts/util/
DPermissionsUtil.java63 final int mode = appOpsManager.checkOpNoThrow(appOp, Process.myUid(), in hasAppOp()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/pictureinpicture/
DPictureInPictureDetails.java107 return appOps.checkOpNoThrow(OP_PICTURE_IN_PICTURE, uid, packageName) == MODE_ALLOWED; in getEnterPipStateForPackage()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateAppBatteryUsageBridge.java101 mAppOpsManager.checkOpNoThrow(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, uid, pkg); in getAppBatteryUsageState()
DAppStateInstallAppsBridge.java90 return mAppOpsManager.checkOpNoThrow(appOpCode, uid, packageName); in getAppOpMode()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DPictureInPicture.java64 info.extraInfo = mAppOpsManager.checkOpNoThrow(
DManageAppOp.java144 return mAppOpsManager.checkOpNoThrow(getAppOpsOpCode(), uid, packageName);
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/
DHibernationSwitchPreference.kt133 val mode = appOpsManager.checkOpNoThrow( in isArchivingEnabled()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/specialaccess/
DManageAppOpState.java153 return mAppOpsManager.checkOpNoThrow(getAppOpsOpCode(), uid, packageName);
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DHibernationSwitchPreferenceTest.kt135 appOpsManager.checkOpNoThrow(OP_AUTO_REVOKE_PERMISSIONS_IF_UNUSED, UID, PACKAGE_NAME) in mockOpsMode()
/packages/apps/TvSystemUI/src/com/android/systemui/tv/sensorprivacy/
DTvUnblockSensorActivity.java333 return (mAppOpsManager.checkOpNoThrow( in isHTTAccessDisabled()
/packages/services/Telecomm/src/com/android/server/telecom/
DInCallController.java2326 p -> (AppOpsManager.MODE_ALLOWED == mAppOpsManager.checkOpNoThrow( in canInteractAcrossUsersOrProfiles()