Home
last modified time | relevance | path

Searched refs:UX_RESTRICTION_MODE_PASSENGER (Results 1 – 5 of 5) sorted by relevance

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUxRestrictionsConfigurationTest.java27 import static android.car.drivingstate.CarUxRestrictionsManager.UX_RESTRICTION_MODE_PASSENGER;
147 .setMode(UX_RESTRICTION_MODE_PASSENGER) in testBuilderValidation_PassengerModeCanSpecifySubsetOfSpeedRange()
151 assertTrue(config.getUxRestrictions(DRIVING_STATE_MOVING, 1f, UX_RESTRICTION_MODE_PASSENGER) in testBuilderValidation_PassengerModeCanSpecifySubsetOfSpeedRange()
400 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testJsonSerialization_UxRestrictionMode()
452 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testDump()
478 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testDumpContainsNecessaryInfo()
517 .setMode(UX_RESTRICTION_MODE_PASSENGER)) in testSetUxRestrictions_PassengerMode()
524 DRIVING_STATE_PARKED, 0f, UX_RESTRICTION_MODE_PASSENGER); in testSetUxRestrictions_PassengerMode()
541 .setMode(UX_RESTRICTION_MODE_PASSENGER) in testPassengerModeFallbackToBaseline()
547 DRIVING_STATE_MOVING, 5f, UX_RESTRICTION_MODE_PASSENGER); in testPassengerModeFallbackToBaseline()
[all …]
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/
DMainActivity.java22 import static android.car.drivingstate.CarUxRestrictionsManager.UX_RESTRICTION_MODE_PASSENGER;
193 mCarUxRestrictionsManager.setRestrictionMode(UX_RESTRICTION_MODE_PASSENGER); in togglePassengerMode()
196 case UX_RESTRICTION_MODE_PASSENGER: in togglePassengerMode()
221 .setMode(CarUxRestrictionsManager.UX_RESTRICTION_MODE_PASSENGER) in onConfirm()
230 .setMode(CarUxRestrictionsManager.UX_RESTRICTION_MODE_PASSENGER) in onConfirm()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarUxRestrictionsConfigurationXmlParserTest.java22 import static android.car.drivingstate.CarUxRestrictionsManager.UX_RESTRICTION_MODE_PASSENGER;
123 DRIVING_STATE_MOVING, 1f, UX_RESTRICTION_MODE_PASSENGER); in testParsingPassengerState()
127 DRIVING_STATE_IDLING, 0f, UX_RESTRICTION_MODE_PASSENGER); in testParsingPassengerState()
131 DRIVING_STATE_PARKED, 0f, UX_RESTRICTION_MODE_PASSENGER); in testParsingPassengerState()
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsConfiguration.java23 import static android.car.drivingstate.CarUxRestrictionsManager.UX_RESTRICTION_MODE_PASSENGER;
144 if (mode == UX_RESTRICTION_MODE_PASSENGER) { in getUxRestrictions()
367 UX_RESTRICTION_MODE_PASSENGER, builder); in readJson()
371 UX_RESTRICTION_MODE_PASSENGER, builder); in readJson()
375 UX_RESTRICTION_MODE_PASSENGER, builder); in readJson()
379 UX_RESTRICTION_MODE_PASSENGER, builder); in readJson()
713 case UX_RESTRICTION_MODE_PASSENGER: in setUxRestrictions()
DCarUxRestrictionsManager.java73 public static final int UX_RESTRICTION_MODE_PASSENGER = 1; field in CarUxRestrictionsManager
78 UX_RESTRICTION_MODE_PASSENGER
318 case UX_RESTRICTION_MODE_PASSENGER: in modeToString()