/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarUxRestrictionsConfigurationXmlParserTest.java | 27 import android.car.drivingstate.CarUxRestrictions; 64 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testParsingParameters() 75 CarUxRestrictions parked = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testParsingNonMovingState() 78 CarUxRestrictions idling = config.getUxRestrictions(DRIVING_STATE_IDLING, 0f); in testParsingNonMovingState() 80 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, idling.getActiveRestrictions()); in testParsingNonMovingState() 88 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_NoSpeedRange() 90 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, r.getActiveRestrictions()); in testParsingMovingState_NoSpeedRange() 99 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_SingleSpeedRange() 101 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, r.getActiveRestrictions()); in testParsingMovingState_SingleSpeedRange() 110 CarUxRestrictions slow = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_MultiSpeedRange() [all …]
|
D | CarDrivingRestrictionsTest.java | 28 import android.car.drivingstate.CarUxRestrictions; 53 private static final int UX_RESTRICTIONS_MOVING = CarUxRestrictions.UX_RESTRICTIONS_NO_DIALPAD 54 | CarUxRestrictions.UX_RESTRICTIONS_NO_FILTERING 55 | CarUxRestrictions.UX_RESTRICTIONS_LIMIT_STRING_LENGTH 56 | CarUxRestrictions.UX_RESTRICTIONS_NO_KEYBOARD 57 | CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO 58 | CarUxRestrictions.UX_RESTRICTIONS_LIMIT_CONTENT 59 | CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP 60 | CarUxRestrictions.UX_RESTRICTIONS_NO_TEXT_MESSAGE; 91 CarUxRestrictions restrictions; in testDrivingStateChange() [all …]
|
/packages/services/Car/car-lib/src/android/car/drivingstate/ |
D | CarUxRestrictions.java | 69 public final class CarUxRestrictions implements Parcelable { class 236 public CarUxRestrictions build() { in build() 237 return new CarUxRestrictions(this); in build() 366 public static final Parcelable.Creator<CarUxRestrictions> CREATOR = 367 new Parcelable.Creator<CarUxRestrictions>() { 369 public CarUxRestrictions createFromParcel(Parcel in) { 370 return new CarUxRestrictions(in); 374 public CarUxRestrictions[] newArray(int size) { 375 return new CarUxRestrictions[size]; 379 public CarUxRestrictions(CarUxRestrictions uxRestrictions) { in CarUxRestrictions() method in CarUxRestrictions [all …]
|
D | CarUxRestrictionsManager.java | 101 void onUxRestrictionsChanged(CarUxRestrictions restrictionInfo); in onUxRestrictionsChanged() 214 public CarUxRestrictions getCurrentCarUxRestrictions() { in getCurrentCarUxRestrictions() 224 public CarUxRestrictions getCurrentCarUxRestrictions(int displayId) { in getCurrentCarUxRestrictions() 355 public void onUxRestrictionsChanged(CarUxRestrictions restrictionInfo) { in onUxRestrictionsChanged() 370 private void handleUxRestrictionsChanged(CarUxRestrictions restrictionInfo) { in handleUxRestrictionsChanged() 392 mgr.dispatchUxRChangeToClient((CarUxRestrictions) msg.obj); in handleMessage() 403 private void dispatchUxRChangeToClient(CarUxRestrictions restrictionInfo) { in dispatchUxRChangeToClient()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/ |
D | DualPaneBaseCarSettingsActivityTest.java | 22 import android.car.drivingstate.CarUxRestrictions; 70 CarUxRestrictions oldUxRestrictions = new CarUxRestrictions.Builder( in onUxRestrictionsChanged_topFragmentInBackStackHasUpdatedUxRestrictions() 72 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, in onUxRestrictionsChanged_topFragmentInBackStackHasUpdatedUxRestrictions() 76 CarUxRestrictions newUxRestrictions = new CarUxRestrictions.Builder( in onUxRestrictionsChanged_topFragmentInBackStackHasUpdatedUxRestrictions() 78 CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, in onUxRestrictionsChanged_topFragmentInBackStackHasUpdatedUxRestrictions() 102 CarUxRestrictions oldUxRestrictions = new CarUxRestrictions.Builder( in onBackStackChanged_uxRestrictionsChanged_currentFragmentHasUpdatedUxRestrictions() 104 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, in onBackStackChanged_uxRestrictionsChanged_currentFragmentHasUpdatedUxRestrictions() 108 CarUxRestrictions newUxRestrictions = new CarUxRestrictions.Builder( in onBackStackChanged_uxRestrictionsChanged_currentFragmentHasUpdatedUxRestrictions() 110 CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, in onBackStackChanged_uxRestrictionsChanged_currentFragmentHasUpdatedUxRestrictions()
|
D | PreferenceControllerTest.java | 29 import android.car.drivingstate.CarUxRestrictions; 57 private static final CarUxRestrictions LIMIT_STRINGS_UX_RESTRICTIONS = 58 new CarUxRestrictions.Builder(/* reqOpt= */ true, 59 CarUxRestrictions.UX_RESTRICTIONS_LIMIT_STRING_LENGTH, /* timestamp= */ 61 private static final CarUxRestrictions NO_SETUP_UX_RESTRICTIONS = 62 new CarUxRestrictions.Builder(/* reqOpt= */ true, 63 CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, /* timestamp= */ 0).build(); 65 private static final CarUxRestrictions BASELINE_UX_RESTRICTIONS = 66 new CarUxRestrictions.Builder(/* reqOpt= */ true, 67 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); [all …]
|
D | ExtraSettingsPreferenceControllerTest.java | 32 import android.car.drivingstate.CarUxRestrictions; 67 private static final CarUxRestrictions NO_SETUP_UX_RESTRICTIONS = 68 new CarUxRestrictions.Builder(/* reqOpt= */ true, 69 CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, /* timestamp= */ 0).build(); 71 private static final CarUxRestrictions BASELINE_UX_RESTRICTIONS = 72 new CarUxRestrictions.Builder(/* reqOpt= */ true, 73 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); 75 private static final CarUxRestrictions NO_UX_RESTRICTIONS = 76 new CarUxRestrictions.Builder(/* reqOpt= */ false, 77 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/ |
D | BluetoothBondedDevicesPreferenceControllerTest.java | 33 import android.car.drivingstate.CarUxRestrictions; 84 private CarUxRestrictions mCarUxRestrictions; 122 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 123 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); in setUp() 304 CarUxRestrictions restrictions = new CarUxRestrictions.Builder( in onUxRestrictionsChanged_hasRestrictions_actionButtonDisabled() 305 true, CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, 0).build(); in onUxRestrictionsChanged_hasRestrictions_actionButtonDisabled() 326 CarUxRestrictions restrictions = new CarUxRestrictions.Builder( in onUxRestrictionsChanged_restrictionToggled_actionButtonsEnabled() 327 true, CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, 0).build(); in onUxRestrictionsChanged_restrictionToggled_actionButtonsEnabled() 330 CarUxRestrictions noRestrictions = new CarUxRestrictions.Builder( in onUxRestrictionsChanged_restrictionToggled_actionButtonsEnabled() 331 true, CarUxRestrictions.UX_RESTRICTIONS_BASELINE, 0).build(); in onUxRestrictionsChanged_restrictionToggled_actionButtonsEnabled() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | CarUxRestrictionsManagerService.java | 41 import android.car.drivingstate.CarUxRestrictions; 174 private Map<Integer, CarUxRestrictions> mCurrentUxRestrictions; 424 public CarUxRestrictions getCurrentUxRestrictions(int displayId) { in getCurrentUxRestrictions() 425 CarUxRestrictions restrictions; in getCurrentUxRestrictions() 445 public CarUxRestrictions getCurrentUxRestrictions() { in getCurrentUxRestrictions() 706 CarUxRestrictions restrictions = mCurrentUxRestrictions.get(port); in dump() 826 Map<Integer, CarUxRestrictions> newUxRestrictions = new HashMap<>(); in handleDispatchUxRestrictionsLocked() 833 CarUxRestrictions uxRestrictions = config.getUxRestrictions( in handleDispatchUxRestrictionsLocked() 854 CarUxRestrictions uxRestrictions = newUxRestrictions.get(port); in handleDispatchUxRestrictionsLocked() 873 private void dispatchRestrictionsToClients(Map<Integer, CarUxRestrictions> displayRestrictions, in dispatchRestrictionsToClients() [all …]
|
D | CarUxRestrictionsConfigurationXmlParser.java | 27 import android.car.drivingstate.CarUxRestrictions; 345 return CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED; in getRestrictions() 354 | CarUxRestrictions.UX_RESTRICTIONS_BASELINE; in getRestrictions() 358 | CarUxRestrictions.UX_RESTRICTIONS_NO_DIALPAD; in getRestrictions() 362 | CarUxRestrictions.UX_RESTRICTIONS_NO_FILTERING; in getRestrictions() 366 | CarUxRestrictions.UX_RESTRICTIONS_LIMIT_STRING_LENGTH; in getRestrictions() 370 | CarUxRestrictions.UX_RESTRICTIONS_NO_KEYBOARD; in getRestrictions() 374 | CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO; in getRestrictions() 378 | CarUxRestrictions.UX_RESTRICTIONS_LIMIT_CONTENT; in getRestrictions() 382 | CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP; in getRestrictions() [all …]
|
/packages/services/Car/tests/CarLibTests/src/android/car/ |
D | CarUxRestrictionsManagerTest.java | 25 import android.car.drivingstate.CarUxRestrictions; 70 .isEqualTo(CarUxRestrictions.UX_RESTRICTIONS_BASELINE); in getRestrictions_noRestrictionsSet_noRestrictionsPresent() 75 mCarUxRestrictionsController.setUxRestrictions(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO); in setUxRestrictions_restrictionsRegistered() 78 .isEqualTo(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO); in setUxRestrictions_restrictionsRegistered() 84 .setUxRestrictions(CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED); in clearUxRestrictions_restrictionsCleared() 88 .isEqualTo(CarUxRestrictions.UX_RESTRICTIONS_BASELINE); in clearUxRestrictions_restrictionsCleared() 107 .setUxRestrictions(CarUxRestrictions.UX_RESTRICTIONS_NO_TEXT_MESSAGE); in setUxRestrictions_listenerRegistered_listenerTriggered()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | BaseTestActivity.java | 21 import android.car.drivingstate.CarUxRestrictions; 40 private CarUxRestrictions mRestrictionInfo = new CarUxRestrictions.Builder(/* reqOpt= */ true, 41 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); 79 public CarUxRestrictions getCarUxRestrictions() { in getCarUxRestrictions() 83 public void setCarUxRestrictions(CarUxRestrictions restrictionInfo) { in setCarUxRestrictions()
|
/packages/services/Car/car-test-lib/src/android/car/testapi/ |
D | FakeCarUxRestrictionsService.java | 19 import static android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_BASELINE; 21 import android.car.drivingstate.CarUxRestrictions; 44 private CarUxRestrictions mCarUxRestrictions; 51 private static CarUxRestrictions createCarUxRestrictions(int activeRestrictions) { in createCarUxRestrictions() 52 return new CarUxRestrictions.Builder( in createCarUxRestrictions() 81 public CarUxRestrictions getCurrentUxRestrictions(int displayId) { in getCurrentUxRestrictions()
|
/packages/services/Car/car-lib/api/ |
D | lint-baseline.txt | 48 MissingGetterMatchingBuilder: android.car.drivingstate.CarUxRestrictions.Builder#setMaxStringLength… 49 ….drivingstate.CarUxRestrictions does not declare a `getMaxStringLength()` method matching method a… 92 MissingNullability: android.car.drivingstate.CarUxRestrictions#CREATOR: 93 … Missing nullability on field `CREATOR` in class `class android.car.drivingstate.CarUxRestrictions` 94 …ullability: android.car.drivingstate.CarUxRestrictions#CarUxRestrictions(android.car.drivingstate.… 95 Missing nullability on parameter `uxRestrictions` in method `CarUxRestrictions` 96 …ullability: android.car.drivingstate.CarUxRestrictions#isSameRestrictions(android.car.drivingstate… 98 MissingNullability: android.car.drivingstate.CarUxRestrictions#writeToParcel(android.os.Parcel, int… 100 MissingNullability: android.car.drivingstate.CarUxRestrictions.Builder#build(): 102 MissingNullability: android.car.drivingstate.CarUxRestrictions.Builder#setMaxContentDepth(int): [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/ |
D | WifiEntryListPreferenceControllerTest.java | 33 import android.car.drivingstate.CarUxRestrictions; 77 private CarUxRestrictions mCarUxRestrictions; 100 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 101 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); in setUp() 167 CarUxRestrictions noSetupRestrictions = new CarUxRestrictions.Builder( in onUxRestrictionsChanged_switchToSavedWifiEntriesOnly() 168 true, CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, 0).build(); in onUxRestrictionsChanged_switchToSavedWifiEntriesOnly() 283 CarUxRestrictions noSetupRestrictions = new CarUxRestrictions.Builder( in fetchWifiEntries_getSavedWifiEntries() 284 true, CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, 0).build(); in fetchWifiEntries_getSavedWifiEntries() 342 CarUxRestrictions uxRestrictions) { in TestWifiEntryListPreferenceController()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/ |
D | BaseTestSettingsFragment.java | 19 import android.car.drivingstate.CarUxRestrictions; 25 private CarUxRestrictions mCarUxRestrictions; 33 public void onUxRestrictionsChanged(CarUxRestrictions restrictionInfo) { in onUxRestrictionsChanged() 37 public CarUxRestrictions getUxRestrictions() { in getUxRestrictions()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/ |
D | PreferenceControllerTest.java | 28 import android.car.drivingstate.CarUxRestrictions; 54 private static final CarUxRestrictions NO_SETUP_UX_RESTRICTIONS = 55 new CarUxRestrictions.Builder(/* reqOpt= */ true, 56 CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, /* timestamp= */ 0).build(); 58 private static final CarUxRestrictions BASELINE_UX_RESTRICTIONS = 59 new CarUxRestrictions.Builder(/* reqOpt= */ true, 60 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); 296 FragmentController fragmentController, CarUxRestrictions uxRestrictions) { in WrongTypePreferenceController()
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
D | PreferenceController.java | 19 import android.car.drivingstate.CarUxRestrictions; 154 private CarUxRestrictions mUxRestrictions; 165 FragmentController fragmentController, CarUxRestrictions uxRestrictions) { in PreferenceController() 206 protected final CarUxRestrictions getUxRestrictions() { in getUxRestrictions() 254 public final void onUxRestrictionsChanged(CarUxRestrictions uxRestrictions) { in onUxRestrictionsChanged() 476 protected void onApplyUxRestrictions(CarUxRestrictions uxRestrictions) { in onApplyUxRestrictions() 493 protected boolean shouldApplyUxRestrictions(CarUxRestrictions uxRestrictions) { in shouldApplyUxRestrictions()
|
D | CarUxRestrictionsHelper.java | 20 import android.car.drivingstate.CarUxRestrictions; 80 public static boolean isNoSetup(CarUxRestrictions carUxRestrictions) { in isNoSetup() 82 & CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP) in isNoSetup() 83 == CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP; in isNoSetup()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/ |
D | ProfileDetailsBasePreferenceControllerTest.java | 25 import android.car.drivingstate.CarUxRestrictions; 51 private CarUxRestrictions mCarUxRestrictions; 67 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 68 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); in setUp() 105 FragmentController fragmentController, CarUxRestrictions uxRestrictions) { in TestProfileDetailsBasePreferenceController()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/network/ |
D | NetworkBasePreferenceControllerTest.java | 25 import android.car.drivingstate.CarUxRestrictions; 53 private CarUxRestrictions mCarUxRestrictions; 78 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 79 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); in setUp() 104 FragmentController fragmentController, CarUxRestrictions uxRestrictions) { in TestNetworkBasePreferenceController()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/ |
D | StorageSizeBasePreferenceControllerTest.java | 24 import android.car.drivingstate.CarUxRestrictions; 49 private CarUxRestrictions mCarUxRestrictions; 60 FragmentController fragmentController, CarUxRestrictions uxRestrictions) { in TestStorageSizeBasePreferenceController() 75 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 76 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); in setUp()
|
D | StorageUsageBasePreferenceControllerTest.java | 23 import android.car.drivingstate.CarUxRestrictions; 51 private CarUxRestrictions mCarUxRestrictions; 60 FragmentController fragmentController, CarUxRestrictions uxRestrictions) { in TestStorageUsageBasePreferenceController() 76 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 77 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); in setUp()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarUxRestrictionsConfigurationTest.java | 23 import static android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_BASELINE; 24 import static android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED; 25 import static android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO; 33 import android.car.drivingstate.CarUxRestrictions; 100 CarUxRestrictions parkedRestrictions = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testUnspecifiedDrivingStateUsesDefaultRestriction() 105 CarUxRestrictions movingRestrictions = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testUnspecifiedDrivingStateUsesDefaultRestriction() 553 CarUxRestrictions restrictions = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testSetUxRestrictions_UnspecifiedModeDefaultsToBaseline() 573 CarUxRestrictions passenger = config.getUxRestrictions( in testSetUxRestrictions_PassengerMode() 577 CarUxRestrictions baseline = config.getUxRestrictions( in testSetUxRestrictions_PassengerMode() 591 CarUxRestrictions passenger = config.getUxRestrictions( in testGetUxRestrictions_WithUndefinedMode_FallbackToBaseline() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/ |
D | HardwareInfoPreferenceControllerTest.java | 25 import android.car.drivingstate.CarUxRestrictions; 54 private CarUxRestrictions mCarUxRestrictions; 65 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 66 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); in setUp() 99 CarUxRestrictions uxRestrictions) { in TestHardwareInfoPreferenceController()
|