Searched refs:MODE_FOREGROUND (Results 1 – 8 of 8) sorted by relevance
20 import static android.app.AppOpsManager.MODE_FOREGROUND;756 appOpMode = shouldGrantBackgroundAppOp ? MODE_ALLOWED : MODE_FOREGROUND; in addPermissionAppOp()770 case MODE_FOREGROUND: in addPermissionAppOp()883 setUidMode(opCode, uid, MODE_FOREGROUND, packageName); in setUidModeForeground()
21 import static android.app.AppOpsManager.MODE_FOREGROUND;336 mAppOpsService.setMode(OP_COARSE_LOCATION, mMyUid, sMyPackageName, MODE_FOREGROUND); in setupProcStateTests()
440 case AppOpsManager.MODE_FOREGROUND: in checkCallingOrSelfUseIccAuthWithDeviceIdentifier()
37 import static android.app.AppOpsManager.MODE_FOREGROUND;579 if (mode == MODE_FOREGROUND) { in evalMode()647 if (opModes.valueAt(i) == AppOpsManager.MODE_FOREGROUND) { in evalForegroundOps()659 if (ops.valueAt(j).mode == AppOpsManager.MODE_FOREGROUND) { in evalForegroundOps()2727 && mode != AppOpsManager.MODE_FOREGROUND; in updatePermissionRevokedCompat()4434 && uidState.opModes.get(code) == AppOpsManager.MODE_FOREGROUND) { in commitUidPendingStateLocked()4452 if (op.mode == AppOpsManager.MODE_FOREGROUND) { in commitUidPendingStateLocked()6274 || dumpMode == AppOpsManager.MODE_FOREGROUND)) { in dump()6570 if (op == null || (op.mode != MODE_ALLOWED && op.mode != MODE_FOREGROUND)) {
374 MODE_FOREGROUND421 public static final int MODE_FOREGROUND = 4; field in AppOpsManager8539 return mode == AppOpsManager.MODE_FOREGROUND ? AppOpsManager.MODE_ALLOWED : mode; in checkOpNoThrow()
2507 case AppOpsManager.MODE_FOREGROUND: return FrameworkStatsLog in modeToEnum()
4458 MODE_FOREGROUND = 3; // Allow-while-in-use (or allowed-one-time) enumerator
4556 field public static final int MODE_FOREGROUND = 4; // 0x4