Searched refs:MODE_ALLOWED (Results 1 - 25 of 80) sorted by relevance

1234

/frameworks/base/services/tests/servicestests/src/com/android/server/appops/
H A DAppOpsServiceTest.java18 import static android.app.AppOpsManager.MODE_ALLOWED;
91 mAppOpsService.setMode(OP_READ_SMS, mMyUid, mMyPackageName, MODE_ALLOWED);
97 assertContainsOp(loggedOps, OP_READ_SMS, mTestStartMillis, -1, MODE_ALLOWED);
102 assertContainsOp(loggedOps, OP_READ_SMS, mTestStartMillis, -1, MODE_ALLOWED);
109 mAppOpsService.setMode(OP_READ_SMS, mMyUid, mMyPackageName, MODE_ALLOWED);
122 assertContainsOp(loggedOps, OP_READ_SMS, mTestStartMillis, -1, MODE_ALLOWED);
129 mAppOpsService.setMode(OP_READ_SMS, mMyUid, mMyPackageName, MODE_ALLOWED);
140 assertContainsOp(loggedOps, OP_READ_SMS, mTestStartMillis, -1, MODE_ALLOWED);
145 mAppOpsService.setMode(OP_READ_SMS, mMyUid, mMyPackageName, MODE_ALLOWED);
151 assertContainsOp(loggedOps, OP_READ_SMS, mTestStartMillis, -1, MODE_ALLOWED);
[all...]
/frameworks/base/core/java/android/app/
H A DAppOpsManager.java71 * setting for the operation under that caller: MODE_ALLOWED, MODE_IGNORED (don't execute
89 public static final int MODE_ALLOWED = 0; field in class:AppOpsManager
115 * mode is set, these functions will return {@link #MODE_ALLOWED} when the app being
133 "allow", // MODE_ALLOWED
1169 AppOpsManager.MODE_ALLOWED,
1170 AppOpsManager.MODE_ALLOWED,
1171 AppOpsManager.MODE_ALLOWED,
1172 AppOpsManager.MODE_ALLOWED,
1173 AppOpsManager.MODE_ALLOWED,
1174 AppOpsManager.MODE_ALLOWED,
[all...]
/frameworks/base/core/java/android/content/
H A DContentProvider.java20 import static android.app.AppOpsManager.MODE_ALLOWED;
213 if (enforceReadPermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) {
260 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) {
275 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) {
304 != AppOpsManager.MODE_ALLOWED) {
310 != AppOpsManager.MODE_ALLOWED) {
336 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) {
352 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) {
440 if (enforceReadPermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) {
456 if (enforceReadPermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) {
[all...]
H A DPermissionChecker.java112 != AppOpsManager.MODE_ALLOWED) {
/frameworks/native/include/binder/
H A DPermissionController.h41 MODE_ALLOWED = 0, enumerator in enum:android::PermissionController::__anon1458
H A DAppOpsManager.h33 MODE_ALLOWED = IAppOpsService::MODE_ALLOWED, enumerator in enum:android::AppOpsManager::__anon1438
H A DIAppOpsService.h59 MODE_ALLOWED = 0, enumerator in enum:android::IAppOpsService::__anon1444
/frameworks/native/libs/binder/include/binder/
H A DPermissionController.h41 MODE_ALLOWED = 0, enumerator in enum:android::PermissionController::__anon1578
H A DAppOpsManager.h33 MODE_ALLOWED = IAppOpsService::MODE_ALLOWED, enumerator in enum:android::AppOpsManager::__anon1558
H A DIAppOpsService.h59 MODE_ALLOWED = 0, enumerator in enum:android::IAppOpsService::__anon1564
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
H A DWifiPermissionsUtilTest.java173 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED;
196 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED;
240 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED;
262 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED;
285 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED;
312 mAllowCoarseLocationApps = AppOpsManager.MODE_ALLOWED;
313 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED;
359 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED;
393 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED;
428 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED;
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
H A DPipAppOpsListener.java19 import static android.app.AppOpsManager.MODE_ALLOWED;
54 packageName) != MODE_ALLOWED) {
/frameworks/support/compat/src/main/java/androidx/core/app/
H A DAppOpsManagerCompat.java36 public static final int MODE_ALLOWED = AppOpsManager.MODE_ALLOWED; field in class:AppOpsManagerCompat
97 * @return Returns {@link #MODE_ALLOWED} if the operation is allowed, or
149 * @return Returns {@link #MODE_ALLOWED} if the operation is allowed, or
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DTelephonyPermissions.java134 AppOpsManager.MODE_ALLOWED;
168 AppOpsManager.MODE_ALLOWED;
191 AppOpsManager.MODE_ALLOWED) {
209 return appOps.noteOp(opCode, uid, callingPackage) == AppOpsManager.MODE_ALLOWED;
222 return appOps.noteOp(opCode, uid, callingPackage) == AppOpsManager.MODE_ALLOWED;
/frameworks/base/services/core/java/com/android/server/
H A DMmsServiceBroker.java338 callingPkg) != AppOpsManager.MODE_ALLOWED) {
356 callingPkg) != AppOpsManager.MODE_ALLOWED) {
377 callingPkg) != AppOpsManager.MODE_ALLOWED) {
391 callingPkg) != AppOpsManager.MODE_ALLOWED) {
404 callingPkg) != AppOpsManager.MODE_ALLOWED) {
414 callingPkg) != AppOpsManager.MODE_ALLOWED) {
424 callingPkg) != AppOpsManager.MODE_ALLOWED) {
435 callingPkg) != AppOpsManager.MODE_ALLOWED) {
446 callingPkg) != AppOpsManager.MODE_ALLOWED) {
458 callingPkg) != AppOpsManager.MODE_ALLOWED) {
[all...]
/frameworks/base/core/tests/coretests/src/android/provider/
H A DTestDocumentsProvider.java97 return AppOpsManager.MODE_ALLOWED;
102 return AppOpsManager.MODE_ALLOWED;
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
H A DServiceManagerPermissionTests.java60 return AppOpsManager.MODE_ALLOWED;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DTelephonyPermissionsTest.java94 .thenReturn(AppOpsManager.MODE_ALLOWED);
129 .thenReturn(AppOpsManager.MODE_ALLOWED);
147 .thenReturn(AppOpsManager.MODE_ALLOWED);
157 .thenReturn(AppOpsManager.MODE_ALLOWED);
H A DPhoneSubInfoControllerTest.java116 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp(
166 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp(
216 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp(
266 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp(
319 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp(
374 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp(
422 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp(
441 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp(
455 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp(
507 doReturn(AppOpsManager.MODE_ALLOWED)
[all...]
/frameworks/av/services/audioflinger/
H A DServiceUtilities.cpp105 != AppOpsManager::MODE_ALLOWED) {
110 if (appOps.noteOp(op, uid, resolvedOpPackageName) != AppOpsManager::MODE_ALLOWED) {
/frameworks/base/services/core/java/com/android/server/am/
H A DAssistDataRequester.java21 import static android.app.AppOpsManager.MODE_ALLOWED;
182 == MODE_ALLOWED && allowFetchData) {
222 == MODE_ALLOWED && allowFetchScreenshot) {
/frameworks/base/telephony/java/android/telephony/
H A DLocationAccessPolicy.java80 .noteOpNoThrow(opCode, uid, pkgName) != AppOpsManager.MODE_ALLOWED) {
/frameworks/support/compat/src/main/java/androidx/core/content/
H A DPermissionChecker.java115 != AppOpsManagerCompat.MODE_ALLOWED) {
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiServiceImpl.java19 import static android.app.AppOpsManager.MODE_ALLOWED;
609 if (enforceChangePermission(packageName) != MODE_ALLOWED) {
732 * 1. Operation is allowed. No exception thrown, and AppOpsManager.MODE_ALLOWED returned.
740 return MODE_ALLOWED;
809 if (enforceChangePermission(packageName) != MODE_ALLOWED) {
1370 if (enforceChangePermission(packageName) != MODE_ALLOWED) {
1561 if (enforceChangePermission(packageName) != MODE_ALLOWED) {
1602 if (enforceChangePermission(packageName) != MODE_ALLOWED) {
1614 if (enforceChangePermission(packageName) != MODE_ALLOWED) {
1626 if (enforceChangePermission(packageName) != MODE_ALLOWED) {
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DAssistDataRequesterTest.java19 import static android.app.AppOpsManager.MODE_ALLOWED;
146 doReturn(assistStructureAllowed ? MODE_ALLOWED : MODE_ERRORED).when(mAppOpsManager)
148 doReturn(assistScreenshotAllowed ? MODE_ALLOWED : MODE_ERRORED).when(mAppOpsManager)

Completed in 813 milliseconds

1234