Home
last modified time | relevance | path

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

/frameworks/base/services/permission/java/com/android/server/permission/access/appop/
DAppIdAppOpUpgrade.kt31 val appOpMode = in MutateStateScope() constant
37 appOpMode in MutateStateScope()
45 val appOpMode = in MutateStateScope() constant
53 if (appOpMode == defaultAppOpMode) { in MutateStateScope()
DPackageAppOpUpgrade.kt31 val appOpMode = in MutateStateScope() constant
41 appOpMode in MutateStateScope()
DPackageAppOpMigration.kt47 legacyAppOpModes.forEach { (appOpName, appOpMode) -> appOpModes[appOpName] = appOpMode } in <lambda>() method
DAppIdAppOpMigration.kt49 legacyAppOpModes.forEach { (appOpName, appOpMode) -> appOpModes[appOpName] = appOpMode } in <lambda>() method
/frameworks/base/telephony/common/android/telephony/
DLocationAccessPolicy.java266 int appOpMode = context.getSystemService(AppOpsManager.class) in checkAppLocationPermissionHelper() local
269 if (appOpMode == AppOpsManager.MODE_ALLOWED) { in checkAppLocationPermissionHelper()
278 return appOpsModeToPermissionResult(appOpMode); in checkAppLocationPermissionHelper()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageInstallerActivity.java256 int appOpMode = mAppOpsManager.noteOpNoThrow(appOpStr, mOriginatingUid, in onActivityResult() local
259 if (appOpMode == AppOpsManager.MODE_ALLOWED) { in onActivityResult()
569 final int appOpMode = mAppOpsManager.noteOpNoThrow(appOpStr, mOriginatingUid, in handleUnknownSources() local
572 if (mLocalLOGV) Log.i(TAG, "handleUnknownSources(): appMode=" + appOpMode); in handleUnknownSources()
573 switch (appOpMode) { in handleUnknownSources()
585 Log.e(TAG, "Invalid app op mode " + appOpMode in handleUnknownSources()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/
DInstallRepository.kt777 val appOpMode = appOpsManager!!.noteOpNoThrow( in <lambda>() constant
782 Log.i(LOG_TAG, "handleUnknownSources(): appMode=$appOpMode") in <lambda>()
785 return when (appOpMode) { in <lambda>()
787 if (appOpMode == AppOpsManager.MODE_DEFAULT) { in <lambda>()
811 LOG_TAG, "Invalid app op mode $appOpMode for " + in <lambda>()
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java762 final int appOpMode = appOpsManager.unsafeCheckOpRawNoThrow(appOpCode, uid, in resetAppOpPermissionsIfNotRequestedForUid() local
764 if (appOpMode != defaultAppOpMode) { in resetAppOpPermissionsIfNotRequestedForUid()
953 int appOpMode; in addPermissionAppOp() local
961 appOpMode = shouldGrantBackgroundAppOp ? MODE_ALLOWED : MODE_FOREGROUND; in addPermissionAppOp()
963 appOpMode = MODE_ALLOWED; in addPermissionAppOp()
966 appOpMode = MODE_IGNORED; in addPermissionAppOp()
971 switch (appOpMode) { in addPermissionAppOp()
/frameworks/native/services/sensorservice/
DSensorEventConnection.cpp474 int32_t appOpMode = mService->sAppOpsManager.noteOp(iter->second, mUid, mOpPackageName, in noteOpIfRequired() local
476 success = (appOpMode == AppOpsManager::MODE_ALLOWED); in noteOpIfRequired()
DSensorService.cpp2316 const int32_t appOpMode = in canAccessSensor() local
2319 canAccess = (appOpMode == AppOpsManager::MODE_ALLOWED); in canAccessSensor()
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/
DPermissionService.kt2175 userState.appIdAppOpModes[appId]?.forEachIndexed { _, appOpName, appOpMode in <lambda>() method
2190 appOpMode -> in <lambda>() method
2191 val modeName = AppOpsManager.modeToName(appOpMode) in <lambda>()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java1144 int appOpMode = checkOperation(AppOpsManager.OP_REQUEST_INSTALL_PACKAGES, in systemReady()
1146 switch (appOpMode) { in systemReady()