Home
last modified time | relevance | path

Searched refs:restricted (Results 1 – 25 of 105) sorted by relevance

12345

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/
DEnterpriseTestUtils.java30 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/
DCSSatelliteNetworkTest.kt93 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/
DBaseSettingsQCItemTestCase.java53 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/
DDeveloperOptionsEntryPreferenceControllerTest.java278 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()
DResetNetworkEntryPreferenceControllerTest.java286 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/
D8155.config24 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/
DTosAppsDataSourceImplTest.kt17 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…
DDisabledAppsDataSourceImplTest.kt17 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/
DShadowRestrictionUtils.java23 public static void setRestricted(boolean restricted) { in setRestricted() argument
24 isRestricted = restricted; in setRestricted()
DShadowRestrictedLockUtilsInternal.java138 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/
DBrightnessLevelPreferenceControllerMockTest.java268 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/
DProfileSwitcherFragment.java80 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/
DAutoTimeZoneTogglePreferenceControllerTest.java269 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/
DAppDataUsagePreference.java45 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/
DDisabledAppsDataSource.kt17 package com.android.car.carlauncher.datasources.restricted
29 import com.android.car.carlauncher.datasources.restricted.RestrictedAppsUtils.getLauncherActivities…
DTosDataSource.kt17 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/
DAppOpsManagerCompat.java102 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/
DLocationSwitchBarController.java65 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/
DClickableDisabledSwitchPreference.java114 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/
DAppGridRepository.kt32 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/
DAndroid.bp46 wrapper_src: "include-restricted/vm_payload_restricted.h",
101 export_include_dirs: ["include-restricted"],
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DExtraSettingsPreferenceController.java120 boolean restricted = false; in onApplyUxRestrictions()
125 restricted = true; in onApplyUxRestrictions()
128 restrictPreference(preference, restricted); in onApplyUxRestrictions()
/packages/apps/Settings/src/com/android/settings/
DRestrictedSettingsFragment.java211 boolean restricted = RESTRICT_IF_OVERRIDABLE.equals(restrictionKey) in shouldBeProviderProtected()
213 return restricted && mRestrictionsManager.hasRestrictionsProvider(); in shouldBeProviderProtected()
/packages/apps/Settings/src/com/android/settings/dashboard/
DRestrictedDashboardFragment.java205 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/
DRestrictedSettingsFragment.java209 boolean restricted = RESTRICT_IF_OVERRIDABLE.equals(restrictionKey) in shouldBeProviderProtected()
211 return restricted && mRestrictionsManager.hasRestrictionsProvider(); in shouldBeProviderProtected()

12345