Home
last modified time | relevance | path

Searched refs:MODE_FOREGROUND (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsUidStateTrackerTest.java20 import static android.app.AppOpsManager.MODE_FOREGROUND;
129 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_RECORD_AUDIO, MODE_FOREGROUND)); in testNoCapability()
130 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_CAMERA, MODE_FOREGROUND)); in testNoCapability()
131 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_COARSE_LOCATION, MODE_FOREGROUND)); in testNoCapability()
132 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_FINE_LOCATION, MODE_FOREGROUND)); in testNoCapability()
134 mIntf.evalMode(UID, OP_RECEIVE_EXPLICIT_USER_INTERACTION_AUDIO, MODE_FOREGROUND)); in testNoCapability()
144 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_RECORD_AUDIO, MODE_FOREGROUND)); in testForegroundWithMicrophoneCapability()
146 mIntf.evalMode(UID, OP_RECEIVE_EXPLICIT_USER_INTERACTION_AUDIO, MODE_FOREGROUND)); in testForegroundWithMicrophoneCapability()
148 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_CAMERA, MODE_FOREGROUND)); in testForegroundWithMicrophoneCapability()
149 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_COARSE_LOCATION, MODE_FOREGROUND)); in testForegroundWithMicrophoneCapability()
[all …]
/frameworks/base/services/permission/java/com/android/server/permission/access/appop/
DAppOpModes.kt26 const val MODE_FOREGROUND = AppOpsManager.MODE_FOREGROUND constant
DAppOpService.kt45 import com.android.server.permission.access.appop.AppOpModes.MODE_FOREGROUND in <lambda>()
242 MODE_FOREGROUND in <lambda>()
345 if (mode == AppOpsManager.MODE_FOREGROUND) { in <lambda>()
351 if (getUidMode(uid, deviceId, op) == AppOpsManager.MODE_FOREGROUND) { in <lambda>()
362 if (mode == AppOpsManager.MODE_FOREGROUND) { in <lambda>()
368 if (getPackageMode(packageName, op, userId) == AppOpsManager.MODE_FOREGROUND) { in <lambda>()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsUidStateTrackerImpl.java28 import static android.app.AppOpsManager.MODE_FOREGROUND;
133 if (mode != MODE_FOREGROUND) { in evalMode()
188 return evalMode(uid, OP_NONE, MODE_FOREGROUND) == MODE_ALLOWED; in isUidInForeground()
DAppOpsCheckingServiceImpl.java20 import static android.app.AppOpsManager.MODE_FOREGROUND;
341 if (modes.valueAt(i) == MODE_FOREGROUND) { in getForegroundOps()
363 if (modes.valueAt(i) == MODE_FOREGROUND) { in getForegroundOps()
DAppOpsService.java34 import static android.app.AppOpsManager.MODE_FOREGROUND;
1480 == AppOpsManager.MODE_FOREGROUND) { in onUidStateChanged()
1504 == AppOpsManager.MODE_FOREGROUND) { in onUidStateChanged()
2295 && mode != AppOpsManager.MODE_FOREGROUND; in updatePermissionRevokedCompat()
6507 if (mode != MODE_ALLOWED && mode != MODE_FOREGROUND) {
/frameworks/base/core/java/android/app/
DForegroundServiceTypePolicy.java21 import static android.app.AppOpsManager.MODE_FOREGROUND;
1192 case MODE_FOREGROUND: in checkPermission()
1228 return (mode == MODE_ALLOWED || (allowWhileInUse && mode == MODE_FOREGROUND)) in checkPermission()
DAppOpsManager.java394 MODE_FOREGROUND
441 public static final int MODE_FOREGROUND = 4; field in AppOpsManager
3272 return AppOpsManager.MODE_FOREGROUND; in opToDefaultMode()
9352 return mode == AppOpsManager.MODE_FOREGROUND ? AppOpsManager.MODE_ALLOWED : mode; in checkOpNoThrow()
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java22 import static android.app.AppOpsManager.MODE_FOREGROUND;
961 appOpMode = shouldGrantBackgroundAppOp ? MODE_ALLOWED : MODE_FOREGROUND; in addPermissionAppOp()
975 case MODE_FOREGROUND: in addPermissionAppOp()
1086 setUidMode(opCode, uid, MODE_FOREGROUND, packageName); in setUidModeForeground()
/frameworks/base/telephony/common/com/android/internal/telephony/
DTelephonyPermissions.java488 case AppOpsManager.MODE_FOREGROUND: in checkCallingOrSelfUseIccAuthWithDeviceIdentifier()
/frameworks/base/services/core/java/com/android/server/am/
DActiveServices.java3496 case AppOpsManager.MODE_FOREGROUND: return FrameworkStatsLog in modeToEnum()
/frameworks/proto_logging/stats/
Datoms.proto5915 MODE_FOREGROUND = 3; // Allow-while-in-use (or allowed-one-time) enumerator
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/base/core/api/
Dcurrent.txt5117 field public static final int MODE_FOREGROUND = 4; // 0x4