Home
last modified time | relevance | path

Searched refs:mCarUxRestrictions (Results 1 – 25 of 182) sorted by relevance

12345678

/packages/apps/Car/Launcher/app/tests/src/com/android/car/carlauncher/recents/
DNonDODisabledTaskProviderTest.java61 private CarUxRestrictions mCarUxRestrictions; field in NonDODisabledTaskProviderTest
90 when(mCarUxRestrictions.isRequiresDistractionOptimization()).thenReturn(false); in init_parkState_isDistractionOptimizationRequired_setFalse()
92 mCarUxRestrictions); in init_parkState_isDistractionOptimizationRequired_setFalse()
102 when(mCarUxRestrictions.isRequiresDistractionOptimization()).thenReturn(true); in init_driveState_isDistractionOptimizationRequired_setTrue()
104 mCarUxRestrictions); in init_driveState_isDistractionOptimizationRequired_setTrue()
114 when(mCarUxRestrictions.isRequiresDistractionOptimization()).thenReturn(false); in onUxRestrictionsChanged_parkState_isDistractionOptimizationRequired_setFalse()
116 mNonDODisabledTaskProvider.onUxRestrictionsChanged(mCarUxRestrictions); in onUxRestrictionsChanged_parkState_isDistractionOptimizationRequired_setFalse()
123 when(mCarUxRestrictions.isRequiresDistractionOptimization()).thenReturn(true); in onUxRestrictionsChanged_driveState_isDistractionOptimizationRequired_setTrue()
125 mNonDODisabledTaskProvider.onUxRestrictionsChanged(mCarUxRestrictions); in onUxRestrictionsChanged_driveState_isDistractionOptimizationRequired_setTrue()
133 when(mCarUxRestrictions.isRequiresDistractionOptimization()).thenReturn(true); in onUxRestrictionsChanged_parkStateToDriveState_recentsRefreshed()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DRestartSystemPreferenceControllerTest.java61 private CarUxRestrictions mCarUxRestrictions; field in RestartSystemPreferenceControllerTest
74 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
98 "key", mFragmentController, mCarUxRestrictions); in handlePreferenceClicked_showsDialog()
114 "key", mFragmentController, mCarUxRestrictions); in restartSystemConfirmationListener_continueToReboot()
126 "key", mFragmentController, mCarUxRestrictions, in getAvailabilityStatus_noAccessPrivilege_unsupportedOnDevice()
138 "key", mFragmentController, mCarUxRestrictions, in getAvailabilityStatus_noAccessPrivilege_unsupportedOnDevice_zoneWrite()
152 "key", mFragmentController, mCarUxRestrictions, in getAvailabilityStatus_noAccessPrivilege_unsupportedOnDevice_zoneRead()
166 "key", mFragmentController, mCarUxRestrictions, in getAvailabilityStatus_noAccessPrivilege_unsupportedOnDevice_zoneHidden()
DKernelVersionPreferenceControllerTest.java46 private CarUxRestrictions mCarUxRestrictions; field in KernelVersionPreferenceControllerTest
55 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
60 "key", mFragmentController, mCarUxRestrictions); in setUp()
DFirmwareVersionPreferenceControllerTest.java47 private CarUxRestrictions mCarUxRestrictions; field in FirmwareVersionPreferenceControllerTest
56 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
61 "key", mFragmentController, mCarUxRestrictions); in setUp()
DAboutSettingsEntryPreferenceControllerTest.java47 private CarUxRestrictions mCarUxRestrictions; field in AboutSettingsEntryPreferenceControllerTest
56 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
61 "key", mFragmentController, mCarUxRestrictions); in setUp()
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/
DFakeCarUxRestrictionsService.java44 private CarUxRestrictions mCarUxRestrictions; field in FakeCarUxRestrictionsService
61 mCarUxRestrictions = createCarUxRestrictions(UX_RESTRICTIONS_BASELINE); in FakeCarUxRestrictionsService()
83 return mCarUxRestrictions; in getCurrentUxRestrictions()
123 mCarUxRestrictions = createCarUxRestrictions(restrictions); in setUxRestrictions()
125 mListener.onUxRestrictionsChanged(mCarUxRestrictions); in setUxRestrictions()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/
DBaseTestSettingsFragment.java25 private CarUxRestrictions mCarUxRestrictions; field in BaseTestSettingsFragment
34 mCarUxRestrictions = restrictionInfo; in onUxRestrictionsChanged()
38 return mCarUxRestrictions; in getUxRestrictions()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/location/
DLocationStateListenerBasePreferenceControllerTest.java61 private CarUxRestrictions mCarUxRestrictions; field in LocationStateListenerBasePreferenceControllerTest
76 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
85 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions) { in onAdasIntentReceived_refreshUi()
129 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions) { in onLocationIntentReceived_refreshUi()
172 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions) { in onPowerPolicyChange_refreshUi()
DLocationRequiredAppsHeaderPreferenceControllerTest.java48 private CarUxRestrictions mCarUxRestrictions; field in LocationRequiredAppsHeaderPreferenceControllerTest
57 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
61 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions); in setUp()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/
DStorageMediaCategoryPreferenceControllerTest.java48 private CarUxRestrictions mCarUxRestrictions; field in StorageMediaCategoryPreferenceControllerTest
58 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
62 /* preferenceKey= */ "key", mMockFragmentController, mCarUxRestrictions); in setUp()
DStorageSystemCategoryPreferenceControllerTest.java50 private CarUxRestrictions mCarUxRestrictions; field in StorageSystemCategoryPreferenceControllerTest
60 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
64 /* preferenceKey= */ "key", mMockFragmentController, mCarUxRestrictions); in setUp()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/hardwareinfo/
DHardwareRevisionPreferenceControllerTest.java47 private CarUxRestrictions mCarUxRestrictions; field in HardwareRevisionPreferenceControllerTest
56 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
61 "key", mFragmentController, mCarUxRestrictions); in setUp()
DDeviceModelPreferenceControllerTest.java47 private CarUxRestrictions mCarUxRestrictions; field in DeviceModelPreferenceControllerTest
56 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
61 "key", mFragmentController, mCarUxRestrictions); in setUp()
DSerialNumberPreferenceControllerTest.java47 private CarUxRestrictions mCarUxRestrictions; field in SerialNumberPreferenceControllerTest
56 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
61 "key", mFragmentController, mCarUxRestrictions); in setUp()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DRecentAppsViewAllPreferenceControllerTest.java51 private CarUxRestrictions mCarUxRestrictions; field in RecentAppsViewAllPreferenceControllerTest
61 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
65 mCarUxRestrictions); in setUp()
DApplicationPreferenceControllerTest.java50 private CarUxRestrictions mCarUxRestrictions; field in ApplicationPreferenceControllerTest
66 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
71 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions); in setUp()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DDataUsageEditTextPreferenceControllerTest.java47 private CarUxRestrictions mCarUxRestrictions; field in DataUsageEditTextPreferenceControllerTest
59 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
63 mCarUxRestrictions); in setUp()
DDataUsageCyclePreferenceControllerTest.java54 private CarUxRestrictions mCarUxRestrictions; field in DataUsageCyclePreferenceControllerTest
68 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
72 mCarUxRestrictions); in setUp()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/
DChooseNewAdminPreferenceControllerTest.java66 private CarUxRestrictions mCarUxRestrictions; field in ChooseNewAdminPreferenceControllerTest
82 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
97 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions); in setUp()
122 mContext, /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions); in testCheckInitialized_noAdminInfoSet_throwsError()
DProfilesEntryPreferenceControllerTest.java52 private CarUxRestrictions mCarUxRestrictions; field in ProfilesEntryPreferenceControllerTest
60 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
65 PREFERENCE_KEY, mFragmentController, mCarUxRestrictions); in setUp()
DProfileDetailsBasePreferenceControllerTest.java51 private CarUxRestrictions mCarUxRestrictions; field in ProfileDetailsBasePreferenceControllerTest
67 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
71 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions); in setUp()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothDeviceAddressPreferenceControllerTest.java52 private CarUxRestrictions mCarUxRestrictions; field in BluetoothDeviceAddressPreferenceControllerTest
65 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
70 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions); in setUp()
DBluetoothAddressPreferenceControllerTest.java52 private CarUxRestrictions mCarUxRestrictions; field in BluetoothAddressPreferenceControllerTest
65 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
70 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions, in setUp()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DEnterpriseDisclosurePreferenceControllerTest.java37 private CarUxRestrictions mCarUxRestrictions; field in EnterpriseDisclosurePreferenceControllerTest
42 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
48 mSpiedContext, mPreferenceKey, mFragmentController, mCarUxRestrictions); in setUp()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/network/
DNetworkBasePreferenceControllerTest.java53 private CarUxRestrictions mCarUxRestrictions; field in NetworkBasePreferenceControllerTest
78 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
81 "key", mMockFragmentController, mCarUxRestrictions); in setUp()

12345678