/frameworks/av/media/utils/ |
D | ServiceUtilities.cpp | 87 AppOpsManager appOps; in checkRecordingInternal() local 88 const int32_t op = appOps.permissionToOpCode(sAndroidPermissionRecordAudio); in checkRecordingInternal() 90 if (appOps.startOpNoThrow(op, uid, resolvedOpPackageName, /*startIfModeDefault*/ false) in checkRecordingInternal() 96 if (appOps.checkOp(op, uid, resolvedOpPackageName) != AppOpsManager::MODE_ALLOWED) { in checkRecordingInternal() 125 AppOpsManager appOps; in finishRecording() local 126 const int32_t op = appOps.permissionToOpCode(sAndroidPermissionRecordAudio); in finishRecording() 127 appOps.finishOp(op, uid, resolvedOpPackageName); in finishRecording()
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | TelephonyPermissions.java | 159 AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in checkReadPhoneState() local 160 return appOps.noteOp(AppOpsManager.OPSTR_READ_PHONE_STATE, uid, callingPackage) in checkReadPhoneState() 212 AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in checkReadPhoneStateOnAnyActiveSub() local 213 return appOps.noteOp(AppOpsManager.OPSTR_READ_PHONE_STATE, uid, callingPackage) == in checkReadPhoneStateOnAnyActiveSub() 442 AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in checkReadCallLog() local 443 return appOps.noteOp(AppOpsManager.OPSTR_READ_CALL_LOG, uid, callingPackage) == in checkReadCallLog() 474 AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in checkReadPhoneNumber() local 475 if (appOps.noteOp(AppOpsManager.OPSTR_WRITE_SMS, uid, callingPackage) == in checkReadPhoneNumber() 520 return appOps.noteOp(AppOpsManager.OPSTR_READ_SMS, uid, callingPackage) in checkReadPhoneNumber() 529 return appOps.noteOp(AppOpsManager.OPSTR_READ_PHONE_NUMBERS, uid, callingPackage) in checkReadPhoneNumber()
|
D | SmsApplication.java | 541 AppOpsManager appOps = context.getSystemService(AppOpsManager.class); in defaultSmsAppChanged() local 544 assignExclusiveSmsPermissionsToSystemApp(context, packageManager, appOps, in defaultSmsAppChanged() 546 assignExclusiveSmsPermissionsToSystemApp(context, packageManager, appOps, in defaultSmsAppChanged() 548 assignExclusiveSmsPermissionsToSystemApp(context, packageManager, appOps, in defaultSmsAppChanged() 550 assignExclusiveSmsPermissionsToSystemApp(context, packageManager, appOps, in defaultSmsAppChanged() 553 assignExclusiveSmsPermissionsToSystemApp(context, packageManager, appOps, in defaultSmsAppChanged() 561 appOps.setUidMode(opStr, Process.PHONE_UID, AppOpsManager.MODE_ALLOWED); in defaultSmsAppChanged() 567 AppOpsManager appOps = context.getSystemService(AppOpsManager.class); in tryFixExclusiveSmsAppops() local 569 int mode = appOps.unsafeCheckOp(opStr, applicationData.mUid, in tryFixExclusiveSmsAppops() 576 appOps.setUidMode(opStr, applicationData.mUid, AppOpsManager.MODE_ALLOWED); in tryFixExclusiveSmsAppops() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/location/ |
D | RecentLocationAccessesTest.java | 77 List<PackageOps> appOps = createTestPackageOpsList(TEST_PACKAGE_NAMES, testRequestTime); in setUp() local 79 appOps); in setUp() 111 List<PackageOps> appOps = createTestPackageOpsList(TEST_PACKAGE_NAMES, testRequestTime); in testGetAppList_shouldNotShowAndroidOS() local 112 appOps.add(androidSystemPackageOps); in testGetAppList_shouldNotShowAndroidOS() 114 appOps); in testGetAppList_shouldNotShowAndroidOS()
|
D | RecentLocationAppsTest.java | 77 List<PackageOps> appOps = createTestPackageOpsList(TEST_PACKAGE_NAMES, testRequestTime); in setUp() local 79 appOps); in setUp() 109 List<PackageOps> appOps = createTestPackageOpsList(TEST_PACKAGE_NAMES, testRequestTime); in testGetAppList_shouldNotShowAndroidOS() local 110 appOps.add(androidSystemPackageOps); in testGetAppList_shouldNotShowAndroidOS() 112 appOps); in testGetAppList_shouldNotShowAndroidOS()
|
/frameworks/native/libs/sensor/ |
D | Sensor.cpp | 125 AppOpsManager appOps; in Sensor() local 126 mRequiredAppOp = appOps.permissionToOpCode(String16(mRequiredPermission)); in Sensor() 178 AppOpsManager appOps; in Sensor() local 180 appOps.permissionToOpCode(String16(mRequiredPermission)); in Sensor() 186 AppOpsManager appOps; in Sensor() local 188 appOps.permissionToOpCode(String16(mRequiredPermission)); in Sensor() 279 AppOpsManager appOps; in Sensor() local 280 … mRequiredAppOp = appOps.permissionToOpCode(String16(SENSOR_PERMISSION_BODY_SENSORS)); in Sensor()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/ |
D | RecentLocationAccesses.java | 88 List<AppOpsManager.PackageOps> appOps = aoManager.getPackagesForOps(LOCATION_OPS); in getAppList() local 90 final int appOpsCount = appOps != null ? appOps.size() : 0; in getAppList() 99 AppOpsManager.PackageOps ops = appOps.get(i); in getAppList()
|
D | RecentLocationApps.java | 81 List<AppOpsManager.PackageOps> appOps = aoManager.getPackagesForOps(LOCATION_REQUEST_OPS); in getAppList() local 83 final int appOpsCount = appOps != null ? appOps.size() : 0; in getAppList() 92 AppOpsManager.PackageOps ops = appOps.get(i); in getAppList()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | AppSmsManager.java | 86 AppOpsManager appOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in createAppSpecificSmsToken() local 87 appOps.checkPackage(Binder.getCallingUid(), callingPkg); in createAppSpecificSmsToken() 123 AppOpsManager appOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in createAppSpecificSmsTokenWithPackageInfo() local 124 appOps.checkPackage(Binder.getCallingUid(), callingPackageName); in createAppSpecificSmsTokenWithPackageInfo()
|
D | SmsPermissions.java | 45 public SmsPermissions(Phone phone, Context context, AppOpsManager appOps) { in SmsPermissions() argument 48 mAppOps = appOps; in SmsPermissions()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsAccess.java | 174 AppOpsManager appOps = (AppOpsManager) context.getSystemService( in hasAppOpsPermission() local 177 final int mode = appOps.noteOp(AppOpsManager.OP_GET_USAGE_STATS, in hasAppOpsPermission()
|
/frameworks/base/core/java/android/view/ |
D | NotificationHeaderView.java | 338 public void showAppOpsIcons(ArraySet<Integer> appOps) { in showAppOpsIcons() argument 339 if (mOverlayIcon == null || mCameraIcon == null || mMicIcon == null || appOps == null) { in showAppOpsIcons() 343 mOverlayIcon.setVisibility(appOps.contains(AppOpsManager.OP_SYSTEM_ALERT_WINDOW) in showAppOpsIcons() 345 mCameraIcon.setVisibility(appOps.contains(AppOpsManager.OP_CAMERA) in showAppOpsIcons() 347 mMicIcon.setVisibility(appOps.contains(AppOpsManager.OP_RECORD_AUDIO) in showAppOpsIcons()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | DumpUtils.java | 137 final AppOpsManager appOps = context.getSystemService(AppOpsManager.class); in checkUsageStatsPermission() local 141 switch (appOps.noteOpNoThrow(AppOpsManager.OP_GET_USAGE_STATS, uid, pkg)) { in checkUsageStatsPermission()
|
/frameworks/base/core/java/android/os/ |
D | Environment.java | 1212 final AppOpsManager appOps = context.getSystemService(AppOpsManager.class); in isExternalStorageLegacy() local 1215 if (appOps.checkOpNoThrow(AppOpsManager.OP_REQUEST_INSTALL_PACKAGES, in isExternalStorageLegacy() 1221 return appOps.checkOpNoThrow(AppOpsManager.OP_LEGACY_STORAGE, in isExternalStorageLegacy()
|
/frameworks/base/services/core/java/com/android/server/ |
D | IpSecService.java | 1012 AppOpsManager appOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in getAppOpsManager() local 1013 if(appOps == null) throw new RuntimeException("System Server couldn't get AppOps"); in getAppOpsManager() 1014 return appOps; in getAppOpsManager()
|
D | StorageManagerService.java | 3000 final AppOpsManager appOps = (AppOpsManager) mContext.getSystemService( in mkdirs() local 3002 appOps.checkPackage(callingUid, callingPkg); in mkdirs() 3202 final AppOpsManager appOps = mContext.getSystemService(AppOpsManager.class); in adjustAllocateFlags() local 3205 if (appOps.isOperationActive(AppOpsManager.OP_CAMERA, callingUid, callingPackage)) { in adjustAllocateFlags()
|
/frameworks/base/core/java/android/os/storage/ |
D | StorageManager.java | 1661 AppOpsManager appOps = context.getSystemService(AppOpsManager.class); in checkPermissionAndAppOp() local 1664 mode = appOps.noteOpNoThrow(op, uid, packageName); in checkPermissionAndAppOp() 1667 appOps.checkPackage(uid, packageName); in checkPermissionAndAppOp() 1675 mode = appOps.checkOpNoThrow(op, uid, packageName); in checkPermissionAndAppOp()
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | RollbackManagerServiceImpl.java | 312 AppOpsManager appOps = mContext.getSystemService(AppOpsManager.class); in commitRollback() local 313 appOps.checkPackage(callingUid, callerPackageName); in commitRollback()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 948 final AppOpsManager appOps = in doesPackageHaveAppop() local 952 return appOps.noteOpNoThrow(appop, Binder.getCallingUid(), packageName) in doesPackageHaveAppop()
|
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ |
D | ShortcutManagerTestUtils.java | 265 public static void appOps(Instrumentation instrumentation, String packageName, in appOps() method in ShortcutManagerTestUtils
|
/frameworks/base/services/core/java/com/android/server/stats/ |
D | StatsCompanionService.java | 2079 AppOpsManager appOps = mContext.getSystemService(AppOpsManager.class); in pullAppOps() local 2086 appOps.getHistoricalOps(histOpsRequest, mContext.getMainExecutor(), ops::complete); in pullAppOps()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 830 public void systemReady(IAppOpsService appOps) { in systemReady() argument 833 mAppOps = appOps; in systemReady()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationManagerService.java | 1645 IUriGrantsManager ugm, UriGrantsManagerInternal ugmInternal, AppOpsManager appOps, in init() argument 1659 mAppOps = appOps; in init()
|