/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
D | AppOpsActiveWatcherTest.java | 59 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 …]
|
D | AppOpsNotedWatcherTest.java | 54 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/ |
D | PermissionChecker.java | 383 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/ |
D | AssistDataRequester.java | 129 IWindowManager windowManager, AppOpsManager appOpsManager, in AssistDataRequester() argument 137 mAppOpsManager = appOpsManager; in AssistDataRequester()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SystemServicesTestRule.java | 132 final AppOpsManager appOpsManager = mock(AppOpsManager.class); 133 doReturn(appOpsManager).when(context)
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkScorerAppManager.java | 214 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/ |
D | ScanRequestProxy.java | 233 ScanRequestProxy(Context context, AppOpsManager appOpsManager, ActivityManager activityManager, in ScanRequestProxy() argument 238 mAppOps = appOpsManager; in ScanRequestProxy()
|
D | WifiNetworkFactory.java | 350 AppOpsManager appOpsManager, in WifiNetworkFactory() argument 361 mAppOpsManager = appOpsManager; in WifiNetworkFactory()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | UninstallerActivity.java | 104 AppOpsManager appOpsManager = (AppOpsManager) getSystemService( in onCreate() local 106 if (appOpsManager.noteOpNoThrow( in onCreate()
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | TelephonyPermissions.java | 334 AppOpsManager appOpsManager = (AppOpsManager) context.getSystemService( in checkPrivilegedReadPermissionOrCarrierPrivilegePermission() local 337 if (appOpsManager.noteOpNoThrow(AppOpsManager.OPSTR_READ_DEVICE_IDENTIFIERS, uid, in checkPrivilegedReadPermissionOrCarrierPrivilegePermission()
|
D | SmsApplication.java | 777 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/ |
D | VrManagerService.java | 852 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/ |
D | InputMethodUtils.java | 730 static boolean checkIfPackageBelongsToUid(AppOpsManager appOpsManager, in checkIfPackageBelongsToUid() argument 733 appOpsManager.checkPackage(uid, packageName); in checkIfPackageBelongsToUid()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayManagerService.java | 2083 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/ |
D | PackageManagerService.java | 19327 final AppOpsManager appOpsManager = mContext.getSystemService(AppOpsManager.class); 19394 mHandler.post(() -> appOpsManager.setUidMode(appOp, uid,
|