Home
last modified time | relevance | path

Searched refs:MODE_DEFAULT (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsAccessTest.java80 setHasAppOpsPermission(AppOpsManager.MODE_DEFAULT, false); in testCheckAccessLevel_hasCarrierPrivileges()
91 setHasAppOpsPermission(AppOpsManager.MODE_DEFAULT, false); in testCheckAccessLevel_isDeviceOwner()
102 setHasAppOpsPermission(AppOpsManager.MODE_DEFAULT, false); in testCheckAccessLevel_isProfileOwner()
124 setHasAppOpsPermission(AppOpsManager.MODE_DEFAULT, true); in testCheckAccessLevel_hasAppOpsBitDefault_grantedPermission()
135 setHasAppOpsPermission(AppOpsManager.MODE_DEFAULT, false); in testCheckAccessLevel_hasReadHistoryPermission()
157 setHasAppOpsPermission(AppOpsManager.MODE_DEFAULT, false); in testCheckAccessLevel_deniedAppOpsBit_deniedPermission()
/frameworks/base/services/core/java/com/android/server/policy/
DSoftRestrictedPermissionPolicy.java22 import static android.app.AppOpsManager.MODE_DEFAULT;
64 return MODE_DEFAULT;
187 return MODE_DEFAULT; in forPermission()
234 return MODE_DEFAULT; in forPermission()
DPermissionPolicyService.java20 import static android.app.AppOpsManager.MODE_DEFAULT;
598 case MODE_DEFAULT: in addOpIfRestricted()
744 return setUidModeIfMode(opCode, uid, MODE_DEFAULT, MODE_ALLOWED, packageName); in setUidModeAllowedIfDefault()
762 return setUidModeIfMode(opCode, uid, MODE_DEFAULT, MODE_IGNORED, packageName); in setUidModeIgnoredIfDefault()
793 setUidMode(opCode, uid, MODE_DEFAULT, packageName); in setUidModeDefault()
/frameworks/native/libs/binder/include/binder/
DPermissionController.h44 MODE_DEFAULT = 3, enumerator
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBatteryMeterView.java75 @IntDef({MODE_DEFAULT, MODE_ON, MODE_OFF, MODE_ESTIMATE})
77 public static final int MODE_DEFAULT = 0; field in BatteryMeterView
93 private int mShowPercentMode = MODE_DEFAULT;
194 setPercentShowMode(show ? MODE_ON : MODE_DEFAULT); in setForceShowPercent()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsAccess.java179 if (mode == AppOpsManager.MODE_DEFAULT) { in hasAppOpsPermission()
/frameworks/base/core/java/com/android/internal/util/
DDumpUtils.java146 case AppOpsManager.MODE_DEFAULT: in checkUsageStatsPermission()
/frameworks/base/core/java/android/app/
DAppOpsManager.java161 MODE_DEFAULT,
191 public static final int MODE_DEFAULT = 3; field in AppOpsManager
1838 AppOpsManager.MODE_DEFAULT, // WRITE_SETTINGS
1858 AppOpsManager.MODE_DEFAULT, // GET_USAGE_STATS
1881 AppOpsManager.MODE_DEFAULT, // REQUEST_INSTALL_PACKAGES
1883 AppOpsManager.MODE_DEFAULT, // INSTANT_APP_START_FOREGROUND
1895 AppOpsManager.MODE_DEFAULT, // SMS_FINANCIAL_TRANSACTIONS
1902 AppOpsManager.MODE_DEFAULT, // LEGACY_STORAGE
5808 return AppOpsManager.MODE_DEFAULT; in getSystemAlertWindowDefault()
5819 return AppOpsManager.MODE_DEFAULT; in getSystemAlertWindowDefault()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java513 if (mode == AppOpsManager.MODE_DEFAULT) { in checkSystemAlertWindowPermission()
/frameworks/base/core/java/android/provider/
DContactsContract.java8561 public static final int MODE_DEFAULT = MODE_LARGE; field in ContactsContract.QuickContact
8641 intent.putExtra(EXTRA_MODE, originalIntent.getIntExtra(EXTRA_MODE, MODE_DEFAULT)); in rebuildManagedQuickContactsIntent()
8748 Intent intent = composeQuickContactsIntent(context, target, lookupUri, MODE_DEFAULT, in showQuickContact()
8788 Intent intent = composeQuickContactsIntent(context, target, lookupUri, MODE_DEFAULT, in showQuickContact()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java834 .thenReturn(AppOpsManager.MODE_DEFAULT); in testCheckSystemAlertWindowPermissionWithModeDefaultAppOps()
843 .thenReturn(AppOpsManager.MODE_DEFAULT); in testCheckSystemAlertWindowPermissionWithModeDefaultAppOps()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DArtManagerService.java121 case AppOpsManager.MODE_DEFAULT: in checkAndroidPermissions()
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java148 case AppOpsManager.MODE_DEFAULT: in enforcePermission()
DUsageStatsService.java927 if (mode == AppOpsManager.MODE_DEFAULT) { in hasPermission()
/frameworks/base/core/java/android/content/
DContentProvider.java21 import static android.app.AppOpsManager.MODE_DEFAULT;
623 return mode == MODE_DEFAULT ? MODE_IGNORED : mode; in noteProxyOp()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageInstallerActivity.java473 case AppOpsManager.MODE_DEFAULT: in handleUnknownSources()
/frameworks/base/core/java/android/os/storage/
DStorageManager.java1680 case AppOpsManager.MODE_DEFAULT: in checkPermissionAndAppOp()
1707 case AppOpsManager.MODE_DEFAULT: in noteAppOpAllowingLegacy()
/frameworks/base/tests/net/java/com/android/server/
DIpSecServiceParameterizedTest.java182 .thenReturn(AppOpsManager.MODE_DEFAULT); in setUp()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityTestsBase.java474 doReturn(AppOpsManager.MODE_DEFAULT) in TestActivityTaskManagerService()
/frameworks/base/telephony/common/com/android/internal/telephony/
DSmsApplication.java648 setExclusiveAppops(oldPackageName, appOps, uid, AppOpsManager.MODE_DEFAULT); in setDefaultApplicationInternal()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowState.java21 import static android.app.AppOpsManager.MODE_DEFAULT;
2789 if (mode != MODE_ALLOWED && mode != MODE_DEFAULT) { in initAppOpsState()
2810 if (mode != MODE_ALLOWED && mode != MODE_DEFAULT) { in updateAppOpsState()
2816 if (mode == MODE_ALLOWED || mode == MODE_DEFAULT) { in updateAppOpsState()
/frameworks/base/services/core/java/com/android/server/
DDropBoxManagerService.java476 case AppOpsManager.MODE_DEFAULT: in checkPermission()
/frameworks/base/cmds/statsd/src/
DStatsService.cpp107 case PermissionController::MODE_DEFAULT: in checkDumpAndUsageStats()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerService.java2087 if (mode == AppOpsManager.MODE_DEFAULT) { in getBrightnessEvents()
/frameworks/base/services/core/java/com/android/server/am/
DActiveServices.java484 case AppOpsManager.MODE_DEFAULT: in startServiceLocked()
1332 case AppOpsManager.MODE_DEFAULT: in setServiceForegroundInnerLocked()

12