Home
last modified time | relevance | path

Searched refs:appOps (Results 1 – 23 of 23) sorted by relevance

/frameworks/av/media/utils/
DServiceUtilities.cpp87 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/
DTelephonyPermissions.java159 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()
DSmsApplication.java541 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/
DRecentLocationAccessesTest.java77 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()
DRecentLocationAppsTest.java77 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/
DSensor.cpp125 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/
DRecentLocationAccesses.java88 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()
DRecentLocationApps.java81 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/
DAppSmsManager.java86 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()
DSmsPermissions.java45 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/
DNetworkStatsAccess.java174 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/
DNotificationHeaderView.java338 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/
DDumpUtils.java137 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/
DEnvironment.java1212 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/
DIpSecService.java1012 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()
DStorageManagerService.java3000 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/
DStorageManager.java1661 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/
DRollbackManagerServiceImpl.java312 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/
DVpn.java948 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/
DShortcutManagerTestUtils.java265 public static void appOps(Instrumentation instrumentation, String packageName, in appOps() method in ShortcutManagerTestUtils
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java2079 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/
DPowerManagerService.java830 public void systemReady(IAppOpsService appOps) { in systemReady() argument
833 mAppOps = appOps; in systemReady()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java1645 IUriGrantsManager ugm, UriGrantsManagerInternal ugmInternal, AppOpsManager appOps, in init() argument
1659 mAppOps = appOps; in init()