/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
D | AppOpsActiveWatcherTest.java | 61 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in testWatchActiveOps() local 62 appOpsManager.startWatchingActive(new String[] {AppOpsManager.OPSTR_CAMERA, in testWatchActiveOps() 66 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 81 assertThat(appOpsManager.isOperationActive(AppOpsManager.OP_CAMERA, in testWatchActiveOps() 85 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 94 assertThat(appOpsManager.isOperationActive(AppOpsManager.OP_CAMERA, in testWatchActiveOps() 104 appOpsManager.stopWatchingActive(listener); in testWatchActiveOps() 107 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 113 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 119 appOpsManager.startWatchingActive(new String[] {AppOpsManager.OPSTR_CAMERA}, in testWatchActiveOps() [all …]
|
D | AppOpsStartedWatcherTest.java | 52 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in testWatchStartedOps() local 53 appOpsManager.startWatchingStarted(new int[]{AppOpsManager.OP_FINE_LOCATION, in testWatchStartedOps() 57 appOpsManager.startOp(AppOpsManager.OP_FINE_LOCATION); in testWatchStartedOps() 58 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchStartedOps() 59 appOpsManager.startOp(AppOpsManager.OP_RECORD_AUDIO); in testWatchStartedOps() 79 appOpsManager.stopWatchingStarted(listener); in testWatchStartedOps() 85 appOpsManager.startOp(AppOpsManager.OP_FINE_LOCATION); in testWatchStartedOps() 86 appOpsManager.finishOp(AppOpsManager.OP_FINE_LOCATION); in testWatchStartedOps() 90 appOpsManager.startWatchingStarted(new int[]{AppOpsManager.OP_CAMERA}, listener); in testWatchStartedOps() 93 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchStartedOps() [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() 78 appOpsManager.stopWatchingNoted(listener); in testWatchNotedOps() 84 appOpsManager.noteOp(AppOpsManager.OP_FINE_LOCATION); in testWatchNotedOps() 88 appOpsManager.startWatchingNoted(new int[]{AppOpsManager.OP_FINE_LOCATION, in testWatchNotedOps() 92 appOpsManager.noteOp(AppOpsManager.OP_FINE_LOCATION, Process.myUid(), in testWatchNotedOps() 103 appOpsManager.stopWatchingNoted(listener); in testWatchNotedOps()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | LegacyPermissionManagerService.java | 108 AppOpsManager appOpsManager = (AppOpsManager) mInjector.getSystemService( in checkDeviceIdentifierAccess() local 111 if (appOpsManager.noteOpNoThrow(AppOpsManager.OPSTR_READ_DEVICE_IDENTIFIERS, uid, in checkDeviceIdentifierAccess() 225 AppOpsManager appOpsManager = (AppOpsManager) mInjector.getSystemService( in checkPermissionAndAppop() local 227 if (appOpsManager.noteOpNoThrow(appop, uid, packageName, callingFeatureId, message) in checkPermissionAndAppop()
|
D | PermissionManagerService.java | 5592 AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); 5629 appOpsManager.finishOp(accessorSource.getToken(), op, 5638 appOpsManager.finishProxyOp(AppOpsManager.opToPublicName(op), 6035 final AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); 6044 final int opMode = appOpsManager.unsafeCheckOpRawNoThrow(op, 6052 return appOpsManager.unsafeCheckOpRawNoThrow(op, next.getUid(), 6076 checkedOpResult = appOpsManager.checkOpNoThrow(op, 6086 startedOpResult = appOpsManager.startOpNoThrow( 6098 startedOpResult = appOpsManager.startProxyOpNoThrow(attributedOp, 6103 startedOpResult = appOpsManager.startProxyOpNoThrow(startedOp, [all …]
|
/frameworks/base/services/core/java/com/android/server/security/ |
D | FileIntegrityService.java | 102 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); 103 final int mode = appOpsManager.checkOpNoThrow(
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AssistDataRequester.java | 130 IWindowManager windowManager, AppOpsManager appOpsManager, in AssistDataRequester() argument 138 mAppOpsManager = appOpsManager; in AssistDataRequester()
|
D | ActiveServices.java | 2403 AppOpCallback(@NonNull ProcessRecord r, @NonNull AppOpsManager appOpsManager) { in AppOpCallback() argument 2405 mAppOpsManager = appOpsManager; in AppOpCallback() 2407 int mode = appOpsManager.unsafeCheckOpRawNoThrow(op, r.uid, r.info.packageName); in AppOpCallback() 6228 final AppOpsManager appOpsManager = mAm.getAppOpsManager(); in shouldAllowFgsStartForegroundLocked() local 6229 if (appOpsManager.checkOpNoThrow(AppOpsManager.OP_ACTIVATE_VPN, callingUid, in shouldAllowFgsStartForegroundLocked() 6232 } else if (appOpsManager.checkOpNoThrow(AppOpsManager.OP_ACTIVATE_PLATFORM_VPN, in shouldAllowFgsStartForegroundLocked()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | UninstallerActivity.java | 107 AppOpsManager appOpsManager = (AppOpsManager) getSystemService( in onCreate() local 109 if (appOpsManager.noteOpNoThrow( in onCreate()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | MockSystemServices.java | 125 public final AppOpsManager appOpsManager; field in MockSystemServices 172 appOpsManager = mock(AppOpsManager.class); in MockSystemServices()
|
D | DpmMockContext.java | 230 return mMockSystemServices.appOpsManager; in getSystemService()
|
D | DevicePolicyManagerTest.java | 7699 verify(getServices().appOpsManager).setMode(OP_ACTIVATE_VPN, in testSetAlwaysOnVpnPackage_clearsAdminVpn() 7715 verifyNoMoreInteractions(getServices().appOpsManager); in testSetAlwaysOnVpnPackage_doesntKillUserVpn() 7731 verify(getServices().appOpsManager).setMode(OP_ACTIVATE_VPN, in testDisallowConfigVpn_clearsUserVpn() 7752 verify(getServices().appOpsManager, never()).setMode(OP_ACTIVATE_VPN, in testDisallowConfigVpn_doesntKillAdminVpn() 7760 when(getServices().appOpsManager.getPackagesForOps(any(int[].class))) in setupVpnAuthorization()
|
/frameworks/base/services/core/java/com/android/server/vr/ |
D | VrManagerService.java | 854 AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in updateOverlayStateLocked() local 858 appOpsManager.setUserRestrictionForUser(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, in updateOverlayStateLocked() 868 appOpsManager.setUserRestrictionForUser(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, in updateOverlayStateLocked()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | PermissionPolicyService.java | 547 final AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class); in resetAppOpPermissionsIfNotRequestedForUid() local 558 final int appOpMode = appOpsManager.unsafeCheckOpRawNoThrow(appOpCode, uid, in resetAppOpPermissionsIfNotRequestedForUid()
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | SmsApplication.java | 791 private static void setExclusiveAppops(String pkg, AppOpsManager appOpsManager, int uid, in setExclusiveAppops() argument 794 appOpsManager.setUidMode(opStr, uid, mode); in setExclusiveAppops()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | LocationManagerService.java | 1544 AppOpsManager appOpsManager = Objects.requireNonNull( in refreshAppOpsRestrictions() local 1546 appOpsManager.setUserRestrictionForUser( in refreshAppOpsRestrictions() 1552 appOpsManager.setUserRestrictionForUser( in refreshAppOpsRestrictions()
|
/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | InputMethodUtils.java | 775 static boolean checkIfPackageBelongsToUid(AppOpsManager appOpsManager, in checkIfPackageBelongsToUid() argument 778 appOpsManager.checkPackage(uid, packageName); in checkIfPackageBelongsToUid()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayManagerService.java | 2726 AppOpsManager appOpsManager = mContext.getSystemService(AppOpsManager.class); 2727 final int mode = appOpsManager.noteOp(AppOpsManager.OP_GET_USAGE_STATS,
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | PreferencesHelper.java | 191 AppOpsManager appOpsManager, in PreferencesHelper() argument 198 mAppOps = appOpsManager; in PreferencesHelper()
|
/frameworks/base/services/incremental/test/ |
D | IncrementalServiceTest.cpp | 682 std::unique_ptr<MockAppOpsManager> appOpsManager, in MockServiceManager() argument 691 mAppOpsManager(std::move(appOpsManager)), in MockServiceManager()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 6535 AppOpsManager appOpsManager = mInjector.getAppOpsManager(); 6536 if (appOpsManager == null) return false; 6537 return appOpsManager.noteOpNoThrow(AppOpsManager.OP_MANAGE_CREDENTIALS, caller.getUid(),
|