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
1791 AppOpsManager.MODE_DEFAULT, // WRITE_SETTINGS
1811 AppOpsManager.MODE_DEFAULT, // GET_USAGE_STATS
1834 AppOpsManager.MODE_DEFAULT, // REQUEST_INSTALL_PACKAGES
1836 AppOpsManager.MODE_DEFAULT, // INSTANT_APP_START_FOREGROUND
1848 AppOpsManager.MODE_DEFAULT, // SMS_FINANCIAL_TRANSACTIONS
1855 AppOpsManager.MODE_DEFAULT, // LEGACY_STORAGE
5752 return AppOpsManager.MODE_DEFAULT; in getSystemAlertWindowDefault()
5763 return AppOpsManager.MODE_DEFAULT; in getSystemAlertWindowDefault()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java512 if (mode == AppOpsManager.MODE_DEFAULT) { in checkSystemAlertWindowPermission()
/frameworks/base/core/java/android/provider/
DContactsContract.java8555 public static final int MODE_DEFAULT = MODE_LARGE; field in ContactsContract.QuickContact
8635 intent.putExtra(EXTRA_MODE, originalIntent.getIntExtra(EXTRA_MODE, MODE_DEFAULT)); in rebuildManagedQuickContactsIntent()
8742 Intent intent = composeQuickContactsIntent(context, target, lookupUri, MODE_DEFAULT, in showQuickContact()
8782 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/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/services/core/java/com/android/server/pm/dex/
DArtManagerService.java121 case AppOpsManager.MODE_DEFAULT: in checkAndroidPermissions()
/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/tests/net/java/com/android/server/
DIpSecServiceParameterizedTest.java179 .thenReturn(AppOpsManager.MODE_DEFAULT); in setUp()
/frameworks/base/core/java/android/os/storage/
DStorageManager.java1680 case AppOpsManager.MODE_DEFAULT: in checkPermissionAndAppOp()
1707 case AppOpsManager.MODE_DEFAULT: in noteAppOpAllowingLegacy()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityTestsBase.java448 doReturn(AppOpsManager.MODE_DEFAULT) in TestActivityTaskManagerService()
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsApplication.java640 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;
2749 if (mode != MODE_ALLOWED && mode != MODE_DEFAULT) { in initAppOpsState()
2770 if (mode != MODE_ALLOWED && mode != MODE_DEFAULT) { in updateAppOpsState()
2776 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()
DIpSecService.java1561 case AppOpsManager.MODE_DEFAULT: in enforceTunnelFeatureAndPermissions()
/frameworks/base/cmds/statsd/src/
DStatsService.cpp113 case PermissionController::MODE_DEFAULT: in checkDumpAndUsageStats()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerService.java2085 if (mode == AppOpsManager.MODE_DEFAULT) { in getBrightnessEvents()

12