Home
last modified time | relevance | path

Searched refs:appOpsManager (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsActiveWatcherTest.java59 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in testWatchActiveOps() local
60 appOpsManager.startWatchingActive(new int[] {AppOpsManager.OP_CAMERA, in testWatchActiveOps()
64 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps()
78 assertThat(appOpsManager.isOperationActive(AppOpsManager.OP_CAMERA, in testWatchActiveOps()
82 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps()
90 assertThat(appOpsManager.isOperationActive(AppOpsManager.OP_CAMERA, in testWatchActiveOps()
100 appOpsManager.stopWatchingActive(listener); in testWatchActiveOps()
103 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps()
109 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps()
117 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in testIsRunning() local
[all …]
DAppOpsNotedWatcherTest.java54 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in testWatchNotedOps() local
55 appOpsManager.startWatchingNoted(new int[]{AppOpsManager.OP_FINE_LOCATION, in testWatchNotedOps()
59 appOpsManager.noteOp(AppOpsManager.OP_FINE_LOCATION, Process.myUid(), in testWatchNotedOps()
61 appOpsManager.noteOp(AppOpsManager.OP_CAMERA, Process.myUid(), in testWatchNotedOps()
76 appOpsManager.stopWatchingNoted(listener); in testWatchNotedOps()
/frameworks/base/core/java/android/content/
DPermissionChecker.java383 AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in checkPermissionCommon() local
384 String op = appOpsManager.permissionToOp(permission); in checkPermissionCommon()
398 if (appOpsManager.noteProxyOpNoThrow(op, packageName, uid) in checkPermissionCommon()
403 final int mode = appOpsManager.unsafeCheckOpRawNoThrow(op, uid, packageName); in checkPermissionCommon()
/frameworks/base/services/core/java/com/android/server/am/
DAssistDataRequester.java129 IWindowManager windowManager, AppOpsManager appOpsManager, in AssistDataRequester() argument
137 mAppOpsManager = appOpsManager; in AssistDataRequester()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServicesTestRule.java132 final AppOpsManager appOpsManager = mock(AppOpsManager.class);
133 doReturn(appOpsManager).when(context)
/frameworks/base/services/core/java/com/android/server/
DNetworkScorerAppManager.java214 final AppOpsManager appOpsManager = in canAccessLocation() local
219 && appOpsManager.noteOp(AppOpsManager.OP_COARSE_LOCATION, uid, packageName) in canAccessLocation()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScanRequestProxy.java233 ScanRequestProxy(Context context, AppOpsManager appOpsManager, ActivityManager activityManager, in ScanRequestProxy() argument
238 mAppOps = appOpsManager; in ScanRequestProxy()
DWifiNetworkFactory.java350 AppOpsManager appOpsManager, in WifiNetworkFactory() argument
361 mAppOpsManager = appOpsManager; in WifiNetworkFactory()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DUninstallerActivity.java104 AppOpsManager appOpsManager = (AppOpsManager) getSystemService( in onCreate() local
106 if (appOpsManager.noteOpNoThrow( in onCreate()
/frameworks/base/telephony/common/com/android/internal/telephony/
DTelephonyPermissions.java334 AppOpsManager appOpsManager = (AppOpsManager) context.getSystemService( in checkPrivilegedReadPermissionOrCarrierPrivilegePermission() local
337 if (appOpsManager.noteOpNoThrow(AppOpsManager.OPSTR_READ_DEVICE_IDENTIFIERS, uid, in checkPrivilegedReadPermissionOrCarrierPrivilegePermission()
DSmsApplication.java777 private static void setExclusiveAppops(String pkg, AppOpsManager appOpsManager, int uid, in setExclusiveAppops() argument
780 appOpsManager.setUidMode(opStr, uid, mode); in setExclusiveAppops()
/frameworks/base/services/core/java/com/android/server/vr/
DVrManagerService.java852 AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in updateOverlayStateLocked() local
856 appOpsManager.setUserRestrictionForUser(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, in updateOverlayStateLocked()
864 appOpsManager.setUserRestrictionForUser(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, in updateOverlayStateLocked()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodUtils.java730 static boolean checkIfPackageBelongsToUid(AppOpsManager appOpsManager, in checkIfPackageBelongsToUid() argument
733 appOpsManager.checkPackage(uid, packageName); in checkIfPackageBelongsToUid()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerService.java2083 AppOpsManager appOpsManager = mContext.getSystemService(AppOpsManager.class); in getBrightnessEvents() local
2084 final int mode = appOpsManager.noteOp(AppOpsManager.OP_GET_USAGE_STATS, in getBrightnessEvents()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java19327 final AppOpsManager appOpsManager = mContext.getSystemService(AppOpsManager.class);
19394 mHandler.post(() -> appOpsManager.setUidMode(appOp, uid,