/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/ |
D | EnterpriseTestUtils.java | 30 boolean restricted) { in mockUserRestrictionSetByUm() argument 32 .thenReturn(restricted); in mockUserRestrictionSetByUm() 33 if (restricted) { in mockUserRestrictionSetByUm() 36 when(um.hasUserRestriction(restriction)).thenReturn(restricted); in mockUserRestrictionSetByUm() 41 boolean restricted) { in mockUserRestrictionSetByDpm() argument 43 when(um.hasUserRestriction(restriction)).thenReturn(restricted); in mockUserRestrictionSetByDpm()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/ |
D | CSSatelliteNetworkTest.kt | 93 private fun doTestSatelliteNetworkFallbackUids(restricted: Boolean) { in doTestSatelliteNetworkFallbackUids() 96 val satelliteAgent = createSatelliteAgent("satellite0", restricted) in doTestSatelliteNetworkFallbackUids() 100 val permission = if (restricted) {INetd.PERMISSION_SYSTEM} else {INetd.PERMISSION_NONE} in doTestSatelliteNetworkFallbackUids() 138 doTestSatelliteNetworkFallbackUids(restricted = true) in testSatelliteNetworkFallbackUids_restricted() 143 doTestSatelliteNetworkFallbackUids(restricted = false) in testSatelliteNetworkFallbackUids_nonRestricted() 146 private fun doTestSatelliteNeverBecomeDefaultNetwork(restricted: Boolean) { in doTestSatelliteNeverBecomeDefaultNetwork() 147 val agent = createSatelliteAgent("satellite0", restricted) in doTestSatelliteNeverBecomeDefaultNetwork() 157 doTestSatelliteNeverBecomeDefaultNetwork(restricted = true) in testSatelliteNeverBecomeDefaultNetwork_restricted() 162 doTestSatelliteNeverBecomeDefaultNetwork(restricted = false) in testSatelliteNeverBecomeDefaultNetwork_notRestricted() 187 private fun createSatelliteAgent(name: String, restricted: Boolean = true): CSAgentWrapper { in nativeNetworkConfigPhysical() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/ |
D | BaseSettingsQCItemTestCase.java | 53 protected void setBaseUserRestriction(String restriction, boolean restricted) { in setBaseUserRestriction() argument 54 when(mUm.hasBaseUserRestriction(eq(restriction), any())).thenReturn(restricted); in setBaseUserRestriction() 58 protected void setUserRestriction(String restriction, boolean restricted) { in setUserRestriction() argument 59 when(mUm.hasUserRestriction(restriction)).thenReturn(restricted); in setUserRestriction()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/ |
D | DeveloperOptionsEntryPreferenceControllerTest.java | 278 private void mockUserRestrictionSetByUm(boolean restricted) { in mockUserRestrictionSetByUm() argument 280 .thenReturn(restricted); in mockUserRestrictionSetByUm() 281 if (restricted) { in mockUserRestrictionSetByUm() 282 when(mMockUserManager.hasUserRestriction(TEST_RESTRICTION)).thenReturn(restricted); in mockUserRestrictionSetByUm() 286 private void mockUserRestrictionSetByDpm(boolean restricted) { in mockUserRestrictionSetByDpm() argument 289 when(mMockUserManager.hasUserRestriction(TEST_RESTRICTION)).thenReturn(restricted); in mockUserRestrictionSetByDpm()
|
D | ResetNetworkEntryPreferenceControllerTest.java | 286 private void mockUserRestrictionSetByUm(boolean restricted) { in mockUserRestrictionSetByUm() argument 288 .thenReturn(restricted); in mockUserRestrictionSetByUm() 291 private void mockUserRestrictionSetByDpm(boolean restricted) { in mockUserRestrictionSetByDpm() argument 293 when(mMockUserManager.hasUserRestriction(TEST_RESTRICTION)).thenReturn(restricted); in mockUserRestrictionSetByDpm()
|
/packages/services/Car/tools/cpu_perf/ |
D | 8155.config | 24 cpuset:restricted=0-7 33 cpuset:restricted=0,1,4 39 cpuset:restricted=0,1,2
|
/packages/apps/Car/Launcher/libs/appgrid/lib/robotests/src/com/android/car/carlauncher/datasources/restricted/ |
D | TosAppsDataSourceImplTest.kt | 17 package com.android.car.carlauncher.datasources.restricted 28 import com.android.car.carlauncher.datasources.restricted.TosDataSourceImpl.Companion.TOS_ACCEPTED 29 import com.android.car.carlauncher.datasources.restricted.TosDataSourceImpl.Companion.TOS_DISABLED_… 30 import com.android.car.carlauncher.datasources.restricted.TosDataSourceImpl.Companion.TOS_NOT_ACCEP… 31 import com.android.car.carlauncher.datasources.restricted.TosDataSourceImpl.Companion.TOS_UNINITIAL…
|
D | DisabledAppsDataSourceImplTest.kt | 17 package com.android.car.carlauncher.datasources.restricted 26 import com.android.car.carlauncher.datasources.restricted.DisabledAppsDataSourceImpl.Companion.PACK…
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowRestrictionUtils.java | 23 public static void setRestricted(boolean restricted) { in setRestricted() argument 24 isRestricted = restricted; in setRestricted()
|
D | ShadowRestrictedLockUtilsInternal.java | 138 public static void setRestricted(boolean restricted) { in setRestricted() argument 139 sIsRestricted = restricted; in setRestricted()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/display/ |
D | BrightnessLevelPreferenceControllerMockTest.java | 268 private void mockUserRestrictionSetByUm(boolean restricted) { in mockUserRestrictionSetByUm() argument 270 .thenReturn(restricted); in mockUserRestrictionSetByUm() 273 private void mockUserRestrictionSetByDpm(boolean restricted) { in mockUserRestrictionSetByDpm() argument 275 when(mMockUserManager.hasUserRestriction(TEST_RESTRICTION)).thenReturn(restricted); in mockUserRestrictionSetByDpm()
|
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/ |
D | ProfileSwitcherFragment.java | 80 private void applyRestriction(boolean restricted) { in applyRestriction() argument 82 if (restricted) { in applyRestriction()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datetime/ |
D | AutoTimeZoneTogglePreferenceControllerTest.java | 269 private void mockUserRestrictionSetByUm(boolean restricted) { in mockUserRestrictionSetByUm() argument 271 .thenReturn(restricted); in mockUserRestrictionSetByUm() 274 private void mockUserRestrictionSetByDpm(boolean restricted) { in mockUserRestrictionSetByDpm() argument 276 when(mMockUserManager.hasUserRestriction(TEST_RESTRICTION)).thenReturn(restricted); in mockUserRestrictionSetByDpm()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | AppDataUsagePreference.java | 45 if (item.restricted && item.total <= 0) { in AppDataUsagePreference() 70 if (mItem.restricted && mItem.total <= 0) { in onBindViewHolder()
|
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/datasources/restricted/ |
D | DisabledAppsDataSource.kt | 17 package com.android.car.carlauncher.datasources.restricted 29 import com.android.car.carlauncher.datasources.restricted.RestrictedAppsUtils.getLauncherActivities…
|
D | TosDataSource.kt | 17 package com.android.car.carlauncher.datasources.restricted 31 import com.android.car.carlauncher.datasources.restricted.RestrictedAppsUtils.getLauncherActivities…
|
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/ |
D | AppOpsManagerCompat.java | 102 public void setUserRestriction(int code, boolean restricted, IBinder token) { in setUserRestriction() argument 103 mAppOpsManager.setUserRestriction(code, restricted, token); in setUserRestriction()
|
/packages/apps/Settings/src/com/android/settings/location/ |
D | LocationSwitchBarController.java | 65 public void onLocationModeChanged(int mode, boolean restricted) { in onLocationModeChanged() argument 79 } else if (restricted) { in onLocationModeChanged()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/ |
D | ClickableDisabledSwitchPreference.java | 114 setSummary(com.android.settingslib.widget.restricted.R.string.enabled_by_admin); in setupState() 116 setSummary(com.android.settingslib.widget.restricted.R.string.disabled_by_admin); in setupState()
|
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/repositories/ |
D | AppGridRepository.kt | 32 import com.android.car.carlauncher.datasources.restricted.DisabledAppsDataSource in <lambda>() 33 import com.android.car.carlauncher.datasources.restricted.TosDataSource in <lambda>() 34 import com.android.car.carlauncher.datasources.restricted.TosState in <lambda>()
|
/packages/modules/Virtualization/vm_payload/ |
D | Android.bp | 46 wrapper_src: "include-restricted/vm_payload_restricted.h", 101 export_include_dirs: ["include-restricted"],
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
D | ExtraSettingsPreferenceController.java | 120 boolean restricted = false; in onApplyUxRestrictions() 125 restricted = true; in onApplyUxRestrictions() 128 restrictPreference(preference, restricted); in onApplyUxRestrictions()
|
/packages/apps/Settings/src/com/android/settings/ |
D | RestrictedSettingsFragment.java | 211 boolean restricted = RESTRICT_IF_OVERRIDABLE.equals(restrictionKey) in shouldBeProviderProtected() 213 return restricted && mRestrictionsManager.hasRestrictionsProvider(); in shouldBeProviderProtected()
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
D | RestrictedDashboardFragment.java | 205 boolean restricted = RESTRICT_IF_OVERRIDABLE.equals(restrictionKey) in shouldBeProviderProtected() 207 return restricted && mRestrictionsManager.hasRestrictionsProvider(); in shouldBeProviderProtected()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | RestrictedSettingsFragment.java | 209 boolean restricted = RESTRICT_IF_OVERRIDABLE.equals(restrictionKey) in shouldBeProviderProtected() 211 return restricted && mRestrictionsManager.hasRestrictionsProvider(); in shouldBeProviderProtected()
|