/frameworks/base/services/autofill/java/com/android/server/autofill/ui/ |
D | OverlayControl.java | 35 private final @NonNull AppOpsManager mAppOpsManager; field in OverlayControl 38 mAppOpsManager = context.getSystemService(AppOpsManager.class); in OverlayControl() 50 if (mAppOpsManager != null) { in setOverlayAllowed() 51 mAppOpsManager.setUserRestrictionForUser(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, !allowed, in setOverlayAllowed() 53 mAppOpsManager.setUserRestrictionForUser(AppOpsManager.OP_TOAST_WINDOW, !allowed, in setOverlayAllowed()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipAppOpsListener.java | 38 private AppOpsManager mAppOpsManager; field in PipAppOpsListener 53 mAppOpsManager.checkOpNoThrow(OP_PICTURE_IN_PICTURE, appInfo.uid, 70 mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in PipAppOpsListener() 85 mAppOpsManager.startWatchingMode(OP_PICTURE_IN_PICTURE, packageName, in registerAppOpsListener() 90 mAppOpsManager.stopWatchingMode(mAppOpsChangedListener); in unregisterAppOpsListener()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | AppOpsListenerTest.java | 47 @Mock private AppOpsManager mAppOpsManager; field in AppOpsListenerTest 60 getContext().addMockSystemService(AppOpsManager.class, mAppOpsManager); in setUp() 70 verify(mAppOpsManager, times(1)).startWatchingActive(AppOpsListener.OPS, mListener); in testOnlyListenForFewOps() 76 verify(mAppOpsManager, times(1)).stopWatchingActive(mListener); in testStopListening()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/location/ |
D | RecentLocationAppsTest.java | 50 private AppOpsManager mAppOpsManager; field in RecentLocationAppsTest 65 when(mContext.getSystemService(Context.APP_OPS_SERVICE)).thenReturn(mAppOpsManager); in setUp() 79 when(mAppOpsManager.getPackagesForOps(RecentLocationApps.LOCATION_OPS)).thenReturn(appOps); in setUp() 111 when(mAppOpsManager.getPackagesForOps(RecentLocationApps.LOCATION_OPS)).thenReturn(appOps); in testGetAppList_shouldNotShowAndroidOS()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AssistDataRequester.java | 54 private AppOpsManager mAppOpsManager; field in AssistDataRequester 129 mAppOpsManager = appOpsManager; in AssistDataRequester() 181 if (mAppOpsManager.checkOpNoThrow(mRequestStructureAppOps, callingUid, callingPackage) in requestAssistData() 221 if (mAppOpsManager.checkOpNoThrow(mRequestScreenshotAppOps, callingUid, callingPackage) in requestAssistData()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | LocationControllerImpl.java | 51 private AppOpsManager mAppOpsManager; field in LocationControllerImpl 69 mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in LocationControllerImpl() 146 = mAppOpsManager.getPackagesForOps(mHighPowerRequestAppOpArray); in areActiveHighPowerLocationRequests()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | AssistDataRequesterTest.java | 91 private AppOpsManager mAppOpsManager; field in AssistDataRequesterTest 108 mAppOpsManager = mock(AppOpsManager.class); in setUp() 113 mDataRequester = new AssistDataRequester(mContext, mAm, mWm, mAppOpsManager, mCallbacks, in setUp() 146 doReturn(assistStructureAllowed ? MODE_ALLOWED : MODE_ERRORED).when(mAppOpsManager) in setupMocks() 148 doReturn(assistScreenshotAllowed ? MODE_ALLOWED : MODE_ERRORED).when(mAppOpsManager) in setupMocks()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | BackgroundRestrictionsTest.java | 75 private AppOpsManager mAppOpsManager; field in BackgroundRestrictionsTest 107 mAppOpsManager = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in setUp() 181 mAppOpsManager.setMode(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, mTestPackageUid, in setAppOpsModeAllowed()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/ |
D | EuiccController.java | 81 private final AppOpsManager mAppOpsManager; field in EuiccController 119 mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in EuiccController() 231 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in getDownloadableSubscriptionMetadata() 313 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in downloadSubscription() 548 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in getDefaultDownloadableSubscriptionList() 633 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in deleteSubscription() 699 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in switchToSubscription()
|
/frameworks/base/services/core/java/com/android/server/ |
D | MmsServiceBroker.java | 74 private volatile AppOpsManager mAppOpsManager = null; field in MmsServiceBroker 298 if (mAppOpsManager == null) { in getAppOpsManager() 299 mAppOpsManager = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in getAppOpsManager() 301 return mAppOpsManager; in getAppOpsManager()
|
D | AppStateTracker.java | 89 AppOpsManager mAppOpsManager; field in AppStateTracker 421 mAppOpsManager = Preconditions.checkNotNull(injectAppOpsManager()); in onSystemServicesReady() 518 final List<PackageOps> ops = mAppOpsManager.getPackagesForOps( in refreshForcedAppStandbyUidPackagesLocked()
|
D | InputMethodManagerService.java | 310 private final AppOpsManager mAppOpsManager; field in InputMethodManagerService 1358 mAppOpsManager = mContext.getSystemService(AppOpsManager.class); in InputMethodManagerService() 1877 if (!InputMethodUtils.checkIfPackageBelongsToUid(mAppOpsManager, cs.uid, in startInputUncheckedLocked() 2964 mAppOpsManager, in canShowInputMethodPickerLocked()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | CrossProfileAppsServiceImplTest.java | 72 private AppOpsManager mAppOpsManager; field in CrossProfileAppsServiceImplTest 138 }).when(mAppOpsManager).checkPackage(anyInt(), anyString()); in setupPackage() 428 return mAppOpsManager; in getAppOpsManager()
|
/frameworks/base/core/java/android/content/ |
D | ContentProvider.java | 195 AppOpsManager mAppOpsManager = null; field in ContentProvider.Transport 507 return mAppOpsManager.noteProxyOp(mReadOp, callingPkg); in enforceReadPermission() 521 return mAppOpsManager.noteProxyOp(mWriteOp, callingPkg); in enforceWritePermission() 548 return mTransport.mAppOpsManager.noteProxyOp(permOp, callingPkg); in checkPermissionAndAppOp() 746 mTransport.mAppOpsManager.checkPackage(Binder.getCallingUid(), pkg); in getCallingPackage() 861 return mTransport.mAppOpsManager; in getAppOpsManager() 1905 mTransport.mAppOpsManager = (AppOpsManager) context.getSystemService( in attachInfo()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkScorerAppManagerTest.java | 76 @Mock private AppOpsManager mAppOpsManager; field in NetworkScorerAppManagerTest 89 when(mMockContext.getSystemService(Context.APP_OPS_SERVICE)).thenReturn(mAppOpsManager); in setUp() 600 when(mAppOpsManager.noteOp(AppOpsManager.OP_COARSE_LOCATION, uid, packageName)) in mockLocationPermissionGranted() 607 when(mAppOpsManager.noteOp(AppOpsManager.OP_COARSE_LOCATION, uid, packageName)) in mockLocationPermissionDenied()
|
/frameworks/base/services/companion/java/com/android/server/companion/ |
D | CompanionDeviceManagerService.java | 119 private IAppOpsService mAppOpsManager; field in CompanionDeviceManagerService 132 mAppOpsManager = IAppOpsService.Stub.asInterface( in CompanionDeviceManagerService() 280 mAppOpsManager.checkPackage(Binder.getCallingUid(), pkg); in checkCallerIsSystemOr()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiServiceImplTest.java | 190 @Mock AppOpsManager mAppOpsManager; field in WifiServiceImplTest 289 when(mContext.getSystemService(Context.APP_OPS_SERVICE)).thenReturn(mAppOpsManager); in setUp() 431 doThrow(new SecurityException()).when(mAppOpsManager) in testSetWifiEnableAppOpsRejected() 450 doReturn(AppOpsManager.MODE_IGNORED).when(mAppOpsManager) in testSetWifiEnableAppOpsIgnored() 1035 doReturn(AppOpsManager.MODE_IGNORED).when(mAppOpsManager) in testStartScanFailureAppOpsIgnored() 2594 verify(mAppOpsManager).noteOp( in testHandleDelayedScanAfterIdleMode() 2614 doThrow(new SecurityException()).when(mAppOpsManager) in testDisconnectWithNetworkSettingsPerm() 2639 doThrow(new SecurityException()).when(mAppOpsManager) in testDisconnectRejected() 2810 verify(mAppOpsManager, atLeastOnce()).noteOp( in verifyCheckChangePermission()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ContextFixture.java | 222 return mAppOpsManager; in getSystemService() 532 private final AppOpsManager mAppOpsManager = mock(AppOpsManager.class); field in ContextFixture
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 177 private final AppOpsManager mAppOpsManager; field in AccountManagerService 281 mAppOpsManager = mContext.getSystemService(AppOpsManager.class); in AccountManagerService() 353 mAppOpsManager.startWatchingMode(AppOpsManager.OP_GET_ACCOUNTS, null, in AccountManagerService() 360 final int mode = mAppOpsManager.checkOpNoThrow( in AccountManagerService() 883 mAppOpsManager.checkPackage(callingUid, opPackageName); in registerAccountListener() 917 mAppOpsManager.checkPackage(callingUid, opPackageName); in unregisterAccountListener() 1875 mAppOpsManager.checkPackage(callingUid, opPackageName); in hasFeatures() 4189 mAppOpsManager.checkPackage(callingUid, opPackageName); 4266 mAppOpsManager.checkPackage(callingUid, opPackageName); 4452 mAppOpsManager.checkPackage(callingUid, opPackageName); [all …]
|
/frameworks/av/services/camera/libcameraservice/ |
D | CameraService.cpp | 2228 mAppOpsManager.startWatchingMode(AppOpsManager::OP_CAMERA, in startCameraOps() 2230 res = mAppOpsManager.startOpNoThrow(AppOpsManager::OP_CAMERA, in startCameraOps() 2268 mAppOpsManager.finishOp(AppOpsManager::OP_CAMERA, mClientUid, in finishCameraOps() 2292 mAppOpsManager.stopWatchingMode(mOpsCallback); in finishCameraOps() 2311 res = mAppOpsManager.checkOp(AppOpsManager::OP_CAMERA, in opChanged()
|
D | CameraService.h | 281 AppOpsManager mAppOpsManager;
|
/frameworks/base/services/core/java/com/android/server/wallpaper/ |
D | WallpaperManagerService.java | 778 final AppOpsManager mAppOpsManager; field in WallpaperManagerService 1302 mAppOpsManager = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in WallpaperManagerService() 1804 final int appOpMode = mAppOpsManager.noteOp(opName, callingUid, callingPkg); in enforceCallingOrSelfPermissionAndAppOp() 2411 … return mAppOpsManager.checkOpNoThrow(AppOpsManager.OP_WRITE_WALLPAPER, Binder.getCallingUid(), in isWallpaperSupported()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilityManagerService.java | 206 private final AppOpsManager mAppOpsManager; field in AccessibilityManagerService 276 mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in AccessibilityManagerService() 1330 if (mAppOpsManager.noteOpNoThrow(AppOpsManager.OPSTR_BIND_ACCESSIBILITY_SERVICE, in canRegisterService()
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetServiceImpl.java | 230 private AppOpsManager mAppOpsManager; field in AppWidgetServiceImpl 257 mAppOpsManager = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in onStart() 3723 mAppOpsManager.checkPackage(Binder.getCallingUid(), packageName); in enforceCallFromPackage()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | PhoneWindowManager.java | 470 AppOpsManager mAppOpsManager; field in PhoneWindowManager 2006 mAppOpsManager = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in init() 2686 final int mode = mAppOpsManager.noteOpNoThrow(outAppOp[0], callingUid, attrs.packageName); in checkAddPermission()
|