/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | AppOpsInfo.java | 49 private ArraySet<Integer> mAppOps; field in AppOpsInfo 75 mAppOps = activeOps; in bindGuts() 116 mOnSettingsClickListener.onClick(view, mPkg, mAppUid, mAppOps); in bindButtons() 123 if (mAppOps == null || mAppOps.size() == 0) { in getPrompt() 125 } else if (mAppOps.size() == 1) { in getPrompt() 126 if (mAppOps.contains(AppOpsManager.OP_CAMERA)) { in getPrompt() 128 } else if (mAppOps.contains(AppOpsManager.OP_RECORD_AUDIO)) { in getPrompt() 133 } else if (mAppOps.size() == 2) { in getPrompt() 134 if (mAppOps.contains(AppOpsManager.OP_CAMERA)) { in getPrompt() 135 if (mAppOps.contains(AppOpsManager.OP_RECORD_AUDIO)) { in getPrompt()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ForegroundServicesUserState.java | 39 private ArrayMap<String, ArraySet<Integer>> mAppOps = new ArrayMap<>(1); field in ForegroundServicesUserState 47 if (mAppOps.get(pkg) == null) { in addOp() 48 mAppOps.put(pkg, new ArraySet<>(3)); in addOp() 50 mAppOps.get(pkg).add(op); in addOp() 55 final ArraySet<Integer> keys = mAppOps.get(pkg); in removeOp() 61 mAppOps.remove(pkg); in removeOp() 129 return mAppOps.get(pkg); in getFeatures()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsPermissions.java | 43 private final AppOpsManager mAppOps; field in SmsPermissions 48 mAppOps = appOps; in SmsPermissions() 116 return mAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), callingPackage) in checkCallingCanSendSms() 130 return mAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), callingPackage) in checkCallingOrSelfCanSendSms()
|
D | IccSmsInterfaceManager.java | 107 final protected AppOpsManager mAppOps; field in IccSmsInterfaceManager 178 mAppOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in IccSmsInterfaceManager() 182 mSmsPermissions = new SmsPermissions(phone, mContext, mAppOps); in IccSmsInterfaceManager() 271 if (mAppOps.noteOp(AppOpsManager.OPSTR_WRITE_ICC_SMS, Binder.getCallingUid(), in updateMessageOnIccEf() 331 if (mAppOps.noteOp(AppOpsManager.OPSTR_WRITE_ICC_SMS, Binder.getCallingUid(), in copyMessageToIccEf() 370 if (mAppOps.noteOp(AppOpsManager.OPSTR_READ_ICC_SMS, Binder.getCallingUid(), in getAllMessagesFromIccEf()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 47 private final AppOpsManager mAppOps; field in WifiPermissionsUtil 59 mAppOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in WifiPermissionsUtil() 367 mAppOps.checkPackage(uid, pkgName); in checkPackage() 417 return mAppOps.noteOp(op, uid, pkgName) == AppOpsManager.MODE_ALLOWED; in noteAppOpAllowed() 421 return mAppOps.checkOp(op, uid, pkgName) == AppOpsManager.MODE_ALLOWED; in checkAppOpAllowed() 511 final int mode = mAppOps.noteOp( in checkSystemAlertWindowPermission()
|
/frameworks/base/media/java/android/media/ |
D | PlayerBase.java | 73 private @Nullable IAppOpsService mAppOps; field in PlayerBase 113 mAppOps = IAppOpsService.Stub.asInterface(b); in baseRegisterPlayer() 119 mAppOps.startWatchingMode(AppOpsManager.OP_PLAY_AUDIO, in baseRegisterPlayer() 272 if (mAppOps != null) { in baseRelease() 273 mAppOps.stopWatchingMode(mAppOpsCallback); in baseRelease() 297 if (mAppOps != null) { in updateAppOpsPlayAudio_sync() 298 mode = mAppOps.checkAudioOperation(AppOpsManager.OP_PLAY_AUDIO, in updateAppOpsPlayAudio_sync()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/ |
D | AppOpsControllerImpl.java | 60 private final AppOpsManager mAppOps; field in AppOpsControllerImpl 82 mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in AppOpsControllerImpl() 99 mAppOps.startWatchingActive(OPS, this); in setListening() 100 mAppOps.startWatchingNoted(OPS, this); in setListening() 102 mAppOps.stopWatchingActive(this); in setListening() 103 mAppOps.stopWatchingNoted(this); in setListening()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | RemoteListenerHelper.java | 54 protected final AppOpsManager mAppOps; field in RemoteListenerHelper 68 mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in RemoteListenerHelper() 180 return mAppOps.checkOpNoThrow(AppOpsManager.OP_FINE_LOCATION, callerIdentity.mUid, in hasPermission() 184 return mAppOps.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, callerIdentity.mUid, in hasPermission()
|
D | GnssVisibilityControl.java | 75 private final AppOpsManager mAppOps; field in GnssVisibilityControl 107 mAppOps = mContext.getSystemService(AppOpsManager.class); in GnssVisibilityControl() 495 mAppOps.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, proxyAppInfo.uid, in handleNfwNotification() 572 if (mAppOps.startOpNoThrow(AppOpsManager.OP_MONITOR_LOCATION, uid, in updateLocationIcon() 576 if (mAppOps.startOpNoThrow(AppOpsManager.OP_MONITOR_HIGH_POWER_LOCATION, uid, in updateLocationIcon() 578 mAppOps.finishOp(AppOpsManager.OP_MONITOR_LOCATION, uid, proxyAppPkgName); in updateLocationIcon() 582 mAppOps.finishOp(AppOpsManager.OP_MONITOR_LOCATION, uid, proxyAppPkgName); in updateLocationIcon() 583 mAppOps.finishOp(AppOpsManager.OP_MONITOR_HIGH_POWER_LOCATION, uid, proxyAppPkgName); in updateLocationIcon()
|
D | GeofenceManager.java | 77 private final AppOpsManager mAppOps; field in GeofenceManager 123 mAppOps = (AppOpsManager)mContext.getSystemService(Context.APP_OPS_SERVICE); in GeofenceManager() 303 if (mAppOps.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, state.mUid, in updateFences()
|
/frameworks/base/core/java/android/view/ |
D | NotificationHeaderView.java | 63 private View mAppOps; field in NotificationHeaderView 125 mAppOps = findViewById(com.android.internal.R.id.app_ops); in onFinishInflate() 153 || child == mAppOps) { in onMeasure() 216 || child == mAppOps) { in onLayout() 297 mAppOps.setOnClickListener(mAppOpsListener); in setAppOpsOnClickListener() 435 mAppOpsRect = addRectAroundView(mAppOps); in bindTouchRects() 496 if (mAppOps.isVisibleToUser() && (mAppOpsRect.contains((int) x, (int) y) in onTouch() 498 mAppOps.performClick(); in onTouch()
|
/frameworks/base/services/core/java/com/android/server/ |
D | HardwarePropertiesManagerService.java | 59 private final AppOpsManager mAppOps; field in HardwarePropertiesManagerService 63 mAppOps = (AppOpsManager)mContext.getSystemService(Context.APP_OPS_SERVICE); in HardwarePropertiesManagerService() 163 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in enforceHardwarePropertiesRetrievalAllowed()
|
D | GraphicsStatsService.java | 87 private final AppOpsManager mAppOps; field in GraphicsStatsService 98 mAppOps = context.getSystemService(AppOpsManager.class); in GraphicsStatsService() 172 mAppOps.checkPackage(uid, packageName); in requestBufferForProcess()
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsAccessTest.java | 52 @Mock private AppOpsManager mAppOps; field in NetworkStatsAccessTest 66 when(mContext.getSystemService(Context.APP_OPS_SERVICE)).thenReturn(mAppOps); in setUp() 180 when(mAppOps.noteOp(AppOpsManager.OP_GET_USAGE_STATS, TEST_UID, TEST_PKG)) in setHasAppOpsPermission()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | VpnTest.java | 161 @Mock private AppOpsManager mAppOps; field in VpnTest 193 when(mContext.getSystemService(eq(Context.APP_OPS_SERVICE))).thenReturn(mAppOps); in setUp() 216 when(mAppOps.noteOpNoThrow(anyInt(), anyInt(), anyString())) in setUp() 712 when(mAppOps.noteOpNoThrow(op, Process.myUid(), TEST_VPN_PKG)) in createVpnAndSetupUidChecks() 731 verify(mAppOps).noteOpNoThrow(checkedOp, Process.myUid(), TEST_VPN_PKG); in checkProvisionVpnProfile() 846 verify(mAppOps) in testStartVpnProfile() 863 verify(mAppOps).noteOpNoThrow(AppOpsManager.OP_ACTIVATE_VPN, Process.myUid(), TEST_VPN_PKG); in testStartVpnProfileVpnServicePreconsented() 877 verify(mAppOps) in testStartVpnProfileNotConsented() 882 verify(mAppOps).noteOpNoThrow(AppOpsManager.OP_ACTIVATE_VPN, Process.myUid(), TEST_VPN_PKG); in testStartVpnProfileNotConsented() 901 verify(mAppOps) in testStartVpnProfileMissingProfile() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareServiceImpl.java | 68 private AppOpsManager mAppOps; field in WifiAwareServiceImpl 81 mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in WifiAwareServiceImpl() 183 mAppOps.checkPackage(uid, callingPackage); in connect() 299 mAppOps.checkPackage(uid, callingPackage); in publish() 349 mAppOps.checkPackage(uid, callingPackage); in subscribe()
|
D | WifiAwareClientState.java | 64 private final AppOpsManager mAppOps; field in WifiAwareClientState 83 mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in WifiAwareClientState()
|
/frameworks/base/services/core/java/com/android/server/os/ |
D | BugreportManagerServiceImpl.java | 55 private final AppOpsManager mAppOps; field in BugreportManagerServiceImpl 60 mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in BugreportManagerServiceImpl() 90 mAppOps.checkPackage(callingUid, callingPackage); in startBugreport()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiNetworkSuggestionsManager.java | 106 private final AppOpsManager mAppOps; field in WifiNetworkSuggestionsManager 289 mAppOps.checkPackage(mUid, mPackageName); in onOpChanged() 295 if (mAppOps.unsafeCheckOpNoThrow(OPSTR_CHANGE_WIFI_STATE, mUid, mPackageName) in onOpChanged() 374 mAppOps.setMode(AppOpsManager.OP_CHANGE_WIFI_STATE, uid, packageName, 401 mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in WifiNetworkSuggestionsManager() 532 mAppOps.startWatchingMode(OPSTR_CHANGE_WIFI_STATE, packageName, appOpsChangedListener); in startTrackingAppOpsChange() 639 mAppOps.stopWatchingMode(appOpsChangedListener); in stopTrackingAppOpsChange() 837 mAppOps.setMode(AppOpsManager.OP_CHANGE_WIFI_STATE, uid, packageName, in sendUserApprovalNotification()
|
D | ScanRequestProxy.java | 80 private final AppOpsManager mAppOps; field in ScanRequestProxy 238 mAppOps = appOpsManager; in ScanRequestProxy() 410 mAppOps.checkPackage(callingUid, packageName); in isRequestFromBackground()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | Notifier.java | 117 private final AppOpsManager mAppOps; field in Notifier 165 mAppOps = mContext.getSystemService(AppOpsManager.class); in Notifier() 224 mAppOps.startOpNoThrow(AppOpsManager.OP_WAKE_LOCK, ownerUid, packageName); in onWakeLockAcquired() 334 mAppOps.finishOp(AppOpsManager.OP_WAKE_LOCK, ownerUid, packageName); in onWakeLockReleased() 614 mAppOps.noteOpNoThrow(AppOpsManager.OP_TURN_SCREEN_ON, opUid, opPackageName); in onWakeUp()
|
/frameworks/base/services/core/java/com/android/server/media/projection/ |
D | MediaProjectionManagerService.java | 73 private final AppOpsManager mAppOps; field in MediaProjectionManagerService 89 mAppOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in MediaProjectionManagerService() 264 || mAppOps.noteOpNoThrow( in hasProjectionPermission() 300 mAppOps.setMode(AppOpsManager.OP_PROJECT_MEDIA, in createProjection()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataServiceManager.java | 87 private final AppOpsManager mAppOps; field in DataServiceManager 138 mAppOps.setMode(AppOpsManager.OPSTR_MANAGE_IPSEC_TUNNELS, in grantPermissionsToService() 163 mAppOps.setMode(AppOpsManager.OPSTR_MANAGE_IPSEC_TUNNELS, UserHandle.myUserId(), in revokePermissionsFromUnusedDataServices() 285 mAppOps = (AppOpsManager) phone.getContext().getSystemService(Context.APP_OPS_SERVICE); in DataServiceManager()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointManager.java | 131 private final AppOpsManager mAppOps; field in PasspointManager 266 mAppOps.checkPackage(mUid, mPackageName); in onOpChanged() 271 if (mAppOps.unsafeCheckOpNoThrow(OPSTR_CHANGE_WIFI_STATE, mUid, mPackageName) in onOpChanged() 309 mAppOps.startWatchingMode(OPSTR_CHANGE_WIFI_STATE, packageName, appOpsChangedListener); in startTrackingAppOpsChange() 320 mAppOps.stopWatchingMode(appOpsChangedListener); in stopTrackingAppOpsChange() 363 mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in PasspointManager()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | StorageStatsService.java | 95 private final AppOpsManager mAppOps; field in StorageStatsService 106 mAppOps = Preconditions.checkNotNull(context.getSystemService(AppOpsManager.class)); in StorageStatsService() 143 final int mode = mAppOps.noteOp(AppOpsManager.OP_GET_USAGE_STATS, in enforcePermission()
|