/packages/apps/Car/Launcher/app/tests/src/com/android/car/carlauncher/recents/ |
D | NonDODisabledTaskProviderTest.java | 61 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/ |
D | RestartSystemPreferenceControllerTest.java | 61 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()
|
D | KernelVersionPreferenceControllerTest.java | 46 private CarUxRestrictions mCarUxRestrictions; field in KernelVersionPreferenceControllerTest 55 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 60 "key", mFragmentController, mCarUxRestrictions); in setUp()
|
D | FirmwareVersionPreferenceControllerTest.java | 47 private CarUxRestrictions mCarUxRestrictions; field in FirmwareVersionPreferenceControllerTest 56 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 61 "key", mFragmentController, mCarUxRestrictions); in setUp()
|
D | AboutSettingsEntryPreferenceControllerTest.java | 47 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/ |
D | FakeCarUxRestrictionsService.java | 44 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/ |
D | BaseTestSettingsFragment.java | 25 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/ |
D | LocationStateListenerBasePreferenceControllerTest.java | 61 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()
|
D | LocationRequiredAppsHeaderPreferenceControllerTest.java | 48 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/ |
D | StorageMediaCategoryPreferenceControllerTest.java | 48 private CarUxRestrictions mCarUxRestrictions; field in StorageMediaCategoryPreferenceControllerTest 58 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 62 /* preferenceKey= */ "key", mMockFragmentController, mCarUxRestrictions); in setUp()
|
D | StorageSystemCategoryPreferenceControllerTest.java | 50 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/ |
D | HardwareRevisionPreferenceControllerTest.java | 47 private CarUxRestrictions mCarUxRestrictions; field in HardwareRevisionPreferenceControllerTest 56 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 61 "key", mFragmentController, mCarUxRestrictions); in setUp()
|
D | DeviceModelPreferenceControllerTest.java | 47 private CarUxRestrictions mCarUxRestrictions; field in DeviceModelPreferenceControllerTest 56 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 61 "key", mFragmentController, mCarUxRestrictions); in setUp()
|
D | SerialNumberPreferenceControllerTest.java | 47 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/ |
D | RecentAppsViewAllPreferenceControllerTest.java | 51 private CarUxRestrictions mCarUxRestrictions; field in RecentAppsViewAllPreferenceControllerTest 61 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 65 mCarUxRestrictions); in setUp()
|
D | ApplicationPreferenceControllerTest.java | 50 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/ |
D | DataUsageEditTextPreferenceControllerTest.java | 47 private CarUxRestrictions mCarUxRestrictions; field in DataUsageEditTextPreferenceControllerTest 59 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 63 mCarUxRestrictions); in setUp()
|
D | DataUsageCyclePreferenceControllerTest.java | 54 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/ |
D | ChooseNewAdminPreferenceControllerTest.java | 66 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()
|
D | ProfilesEntryPreferenceControllerTest.java | 52 private CarUxRestrictions mCarUxRestrictions; field in ProfilesEntryPreferenceControllerTest 60 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 65 PREFERENCE_KEY, mFragmentController, mCarUxRestrictions); in setUp()
|
D | ProfileDetailsBasePreferenceControllerTest.java | 51 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/ |
D | BluetoothDeviceAddressPreferenceControllerTest.java | 52 private CarUxRestrictions mCarUxRestrictions; field in BluetoothDeviceAddressPreferenceControllerTest 65 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 70 /* preferenceKey= */ "key", mFragmentController, mCarUxRestrictions); in setUp()
|
D | BluetoothAddressPreferenceControllerTest.java | 52 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/ |
D | EnterpriseDisclosurePreferenceControllerTest.java | 37 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/ |
D | NetworkBasePreferenceControllerTest.java | 53 private CarUxRestrictions mCarUxRestrictions; field in NetworkBasePreferenceControllerTest 78 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 81 "key", mMockFragmentController, mCarUxRestrictions); in setUp()
|