Home
last modified time | relevance | path

Searched refs:appOpMode (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/telephony/common/android/telephony/
DLocationAccessPolicy.java220 int appOpMode = context.getSystemService(AppOpsManager.class) in checkAppLocationPermissionHelper() local
223 if (appOpMode == AppOpsManager.MODE_ALLOWED) { in checkAppLocationPermissionHelper()
232 return appOpsModeToPermissionResult(appOpMode); in checkAppLocationPermissionHelper()
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java548 final int appOpMode = appOpsManager.unsafeCheckOpRawNoThrow(appOpCode, uid, in resetAppOpPermissionsIfNotRequestedForUid() local
550 if (appOpMode != defaultAppOpMode) { in resetAppOpPermissionsIfNotRequestedForUid()
715 int appOpMode; in addPermissionAppOp() local
723 appOpMode = shouldGrantBackgroundAppOp ? MODE_ALLOWED : MODE_FOREGROUND; in addPermissionAppOp()
725 appOpMode = MODE_ALLOWED; in addPermissionAppOp()
728 appOpMode = MODE_IGNORED; in addPermissionAppOp()
733 switch (appOpMode) { in addPermissionAppOp()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageInstallerActivity.java473 final int appOpMode = mAppOpsManager.noteOpNoThrow(appOpCode, in handleUnknownSources() local
475 switch (appOpMode) { in handleUnknownSources()
487 Log.e(TAG, "Invalid app op mode " + appOpMode in handleUnknownSources()
/frameworks/native/services/sensorservice/
DSensorEventConnection.cpp455 int32_t appOpMode = mService->sAppOpsManager.noteOp(iter->second, mUid, in noteOpIfRequired() local
457 success = (appOpMode == AppOpsManager::MODE_ALLOWED); in noteOpIfRequired()
DSensorService.cpp1805 const int32_t appOpMode = sAppOpsManager.checkOp(opCode, in canAccessSensor() local
1807 bool appOpAllowed = appOpMode == AppOpsManager::MODE_ALLOWED; in canAccessSensor()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java1704 int appOpMode = checkOperation(AppOpsManager.OP_REQUEST_INSTALL_PACKAGES, in systemReady()
1706 switch (appOpMode) { in systemReady()