Home
last modified time | relevance | path

Searched refs:VehicleAreaSeat (Results 1 – 25 of 53) sorted by relevance

123

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DVehicleSeatTest.java20 import android.car.VehicleAreaSeat;
43 assertThat(VehicleAreaSeat.SEAT_UNKNOWN) in testMatchWithVehicleHal()
44 .isEqualTo(android.hardware.automotive.vehicle.VehicleAreaSeat.UNKNOWN); in testMatchWithVehicleHal()
45 assertThat(VehicleAreaSeat.SEAT_ROW_1_LEFT) in testMatchWithVehicleHal()
46 .isEqualTo(android.hardware.automotive.vehicle.VehicleAreaSeat.ROW_1_LEFT); in testMatchWithVehicleHal()
47 assertThat(VehicleAreaSeat.SEAT_ROW_1_CENTER) in testMatchWithVehicleHal()
48 .isEqualTo(android.hardware.automotive.vehicle.VehicleAreaSeat.ROW_1_CENTER); in testMatchWithVehicleHal()
49 assertThat(VehicleAreaSeat.SEAT_ROW_1_RIGHT) in testMatchWithVehicleHal()
50 .isEqualTo(android.hardware.automotive.vehicle.VehicleAreaSeat.ROW_1_RIGHT); in testMatchWithVehicleHal()
51 assertThat(VehicleAreaSeat.SEAT_ROW_2_LEFT) in testMatchWithVehicleHal()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarHvacManagerTest.java31 import android.hardware.automotive.vehicle.VehicleAreaSeat;
75 .addAreaConfig(VehicleAreaSeat.ROW_1_LEFT, 0, 0); in configureMockedHal()
77 .addAreaConfig(VehicleAreaSeat.ROW_1_LEFT, 0, 0); in configureMockedHal()
81 .addAreaConfig(VehicleAreaSeat.ROW_1_LEFT | VehicleAreaSeat.ROW_1_RIGHT, 0, 0); in configureMockedHal()
83 .addAreaConfig(VehicleAreaSeat.ROW_1_CENTER); in configureMockedHal()
92 VehicleAreaSeat.ROW_1_LEFT, 0); in setUp()
117 VehicleAreaSeat.ROW_1_CENTER)).isFalse(); in testHvacPropertyAvailable()
119 VehicleAreaSeat.ROW_1_LEFT)).isTrue(); in testHvacPropertyAvailable()
126 VehicleAreaSeat.ROW_1_LEFT, 15); in testHvacFanSpeed()
128 VehicleAreaSeat.ROW_1_LEFT); in testHvacFanSpeed()
[all …]
DCarVendorExtensionManagerTest.java37 import android.hardware.automotive.vehicle.VehicleAreaSeat;
109 .addAreaConfig(VehicleAreaSeat.ROW_1_LEFT | VehicleAreaSeat.ROW_1_RIGHT, 0, 0)
110 .addAreaConfig(VehicleAreaSeat.ROW_2_LEFT, MIN_PROP_FLOAT, MAX_PROP_FLOAT)
111 .addAreaConfig(VehicleAreaSeat.ROW_2_RIGHT, MIN_PROP_FLOAT, MAX_PROP_FLOAT)
114 .addAreaConfig(VehicleAreaSeat.ROW_1_LEFT | VehicleAreaSeat.ROW_1_RIGHT, 0, 0)
164 VehicleAreaSeat.ROW_2_RIGHT, in testFloatZonedProperty()
168 Float.class, CUSTOM_ZONED_FLOAT_PROP_ID, VehicleAreaSeat.ROW_2_RIGHT); in testFloatZonedProperty()
180 VehicleAreaSeat.ROW_1_LEFT | VehicleAreaSeat.ROW_1_RIGHT, in testByteArrayProperty()
202 VehicleAreaSeat.ROW_1_LEFT | VehicleAreaSeat.ROW_1_RIGHT, in testLargeByteArrayProperty()
DCarInfoManagerTest.java23 import android.car.VehicleAreaSeat;
100 .addIntValues(VehicleAreaSeat.SEAT_ROW_1_LEFT).build()); in configureMockedHal()
199 assertThat(mCarInfoManager.getDriverSeat()).isEqualTo(VehicleAreaSeat.SEAT_ROW_1_LEFT); in testGetDriverSeat()
204 assertThat(mCarInfoManager.getDriverSeat()).isEqualTo(VehicleAreaSeat.SEAT_UNKNOWN); in testGetDriverSeat_unimplemented()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userpicker/
DUserPickerTestCase.java21 import static android.car.VehicleAreaSeat.SEAT_ROW_1_CENTER;
22 import static android.car.VehicleAreaSeat.SEAT_ROW_1_LEFT;
23 import static android.car.VehicleAreaSeat.SEAT_ROW_1_RIGHT;
24 import static android.car.VehicleAreaSeat.SEAT_ROW_2_CENTER;
25 import static android.car.VehicleAreaSeat.SEAT_ROW_2_LEFT;
26 import static android.car.VehicleAreaSeat.SEAT_ROW_2_RIGHT;
27 import static android.car.VehicleAreaSeat.SEAT_ROW_3_CENTER;
28 import static android.car.VehicleAreaSeat.SEAT_ROW_3_LEFT;
29 import static android.car.VehicleAreaSeat.SEAT_ROW_3_RIGHT;
DCarServiceMediatorTest.java22 import static android.car.VehicleAreaSeat.SEAT_ROW_1_CENTER;
23 import static android.car.VehicleAreaSeat.SEAT_ROW_1_LEFT;
24 import static android.car.VehicleAreaSeat.SEAT_ROW_1_RIGHT;
25 import static android.car.VehicleAreaSeat.SEAT_ROW_2_CENTER;
26 import static android.car.VehicleAreaSeat.SEAT_ROW_2_LEFT;
27 import static android.car.VehicleAreaSeat.SEAT_ROW_2_RIGHT;
28 import static android.car.VehicleAreaSeat.SEAT_ROW_3_CENTER;
29 import static android.car.VehicleAreaSeat.SEAT_ROW_3_LEFT;
30 import static android.car.VehicleAreaSeat.SEAT_ROW_3_RIGHT;
/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/actuators/
DCarActuator.java20 import android.car.VehicleAreaSeat;
52 VehicleAreaSeat.SEAT_ROW_1_CENTER | VehicleAreaSeat.SEAT_ROW_1_LEFT
53 | VehicleAreaSeat.SEAT_ROW_1_RIGHT
57 VehicleAreaSeat.SEAT_ROW_2_LEFT | VehicleAreaSeat.SEAT_ROW_2_CENTER
58 | VehicleAreaSeat.SEAT_ROW_2_RIGHT | VehicleAreaSeat.SEAT_ROW_3_LEFT
59 | VehicleAreaSeat.SEAT_ROW_3_CENTER | VehicleAreaSeat.SEAT_ROW_3_RIGHT
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userpicker/
DCarServiceMediator.java25 import static android.car.VehicleAreaSeat.SEAT_ROW_1_CENTER;
26 import static android.car.VehicleAreaSeat.SEAT_ROW_1_LEFT;
27 import static android.car.VehicleAreaSeat.SEAT_ROW_1_RIGHT;
28 import static android.car.VehicleAreaSeat.SEAT_ROW_2_CENTER;
29 import static android.car.VehicleAreaSeat.SEAT_ROW_2_LEFT;
30 import static android.car.VehicleAreaSeat.SEAT_ROW_2_RIGHT;
31 import static android.car.VehicleAreaSeat.SEAT_ROW_3_CENTER;
32 import static android.car.VehicleAreaSeat.SEAT_ROW_3_LEFT;
33 import static android.car.VehicleAreaSeat.SEAT_ROW_3_RIGHT;
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/
DOccupantZoneInfoTestBuilder.java23 import android.car.VehicleAreaSeat;
33 private @VehicleAreaSeat.Enum int mSeat = VehicleAreaSeat.SEAT_ROW_1_LEFT;
62 public OccupantZoneInfoTestBuilder setSeat(@VehicleAreaSeat.Enum int seat) { in setSeat()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DOccupantZoneHelper.java29 import android.car.VehicleAreaSeat;
48 VehicleAreaSeat.SEAT_ROW_1_LEFT);
51 VehicleAreaSeat.SEAT_ROW_1_RIGHT);
54 VehicleAreaSeat.SEAT_ROW_2_LEFT);
57 VehicleAreaSeat.SEAT_ROW_2_RIGHT);
60 VehicleAreaSeat.SEAT_ROW_2_CENTER);
DCarOccupantZoneServiceTest.java19 import static android.car.VehicleAreaSeat.SEAT_UNKNOWN;
40 import android.car.VehicleAreaSeat;
152 VehicleAreaSeat.SEAT_ROW_1_LEFT);
155 VehicleAreaSeat.SEAT_ROW_1_RIGHT);
158 VehicleAreaSeat.SEAT_ROW_2_LEFT);
161 VehicleAreaSeat.SEAT_ROW_2_RIGHT);
269 doReturn(VehicleAreaSeat.SEAT_ROW_1_LEFT).when(mService).getDriverSeat(); in setUp()
350 doReturn(VehicleAreaSeat.SEAT_ROW_1_RIGHT).when(mService).getDriverSeat(); in testDefaultOccupantConfigForRHD()
358 VehicleAreaSeat.SEAT_ROW_1_RIGHT)).isEqualTo(configs.get(0)); in testDefaultOccupantConfigForRHD()
360 VehicleAreaSeat.SEAT_ROW_1_LEFT)).isEqualTo(configs.get(1)); in testDefaultOccupantConfigForRHD()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarInputService.java36 import android.car.VehicleAreaSeat;
133 @VehicleAreaSeat.Enum int seat) { in onKeyEvent()
258 private int mDriverSeat = VehicleAreaSeat.SEAT_UNKNOWN;
273 @VehicleAreaSeat.Enum int seat) {
315 @VehicleAreaSeat.Enum int seat) { in CarInputService()
459 mHasDriver = (mDriverSeat != VehicleAreaSeat.SEAT_UNKNOWN); in init()
486 @VehicleAreaSeat.Enum int seat) { in onKeyEvent()
487 if (mHasDriver && seat == VehicleAreaSeat.SEAT_UNKNOWN) { in onKeyEvent()
541 @VehicleAreaSeat.Enum int seat) { in onMotionEvent()
542 if (seat == VehicleAreaSeat.SEAT_UNKNOWN) { in onMotionEvent()
[all …]
DCarOccupantZoneService.java40 import android.car.VehicleAreaSeat;
263 private int mDriverSeat = VehicleAreaSeat.SEAT_UNKNOWN;
1040 @VehicleAreaSeat.Enum int seat) { in getOccupantZone()
1067 public int getOccupantZoneIdForSeat(@VehicleAreaSeat.Enum int seat) { in getOccupantZoneIdForSeat()
1074 private int getOccupantZoneIdForSeatLocked(@VehicleAreaSeat.Enum int seat) { in getOccupantZoneIdForSeatLocked()
1229 int driverSeatSide = VehicleAreaSeat.SIDE_LEFT; // default LHD : Left Hand Drive in parseOccupantZoneConfigsLocked()
1230 if (driverSeat == VehicleAreaSeat.SEAT_ROW_1_RIGHT) { in parseOccupantZoneConfigsLocked()
1231 driverSeatSide = VehicleAreaSeat.SIDE_RIGHT; in parseOccupantZoneConfigsLocked()
1238 int seatSide = VehicleAreaSeat.SIDE_LEFT; in parseOccupantZoneConfigsLocked()
1277 seatSide = VehicleAreaSeat.SIDE_LEFT; in parseOccupantZoneConfigsLocked()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hvac/
DHvacTestFragment.java21 import android.car.VehicleAreaSeat;
431 if (prop.hasArea(VehicleAreaSeat.SEAT_ROW_1_LEFT | VehicleAreaSeat.SEAT_ROW_2_LEFT in configureTempSetpoint()
432 | VehicleAreaSeat.SEAT_ROW_2_CENTER)) { in configureTempSetpoint()
433 mZoneForSetTempD = VehicleAreaSeat.SEAT_ROW_1_LEFT | VehicleAreaSeat.SEAT_ROW_2_LEFT in configureTempSetpoint()
434 | VehicleAreaSeat.SEAT_ROW_2_CENTER; in configureTempSetpoint()
437 if (prop.hasArea(VehicleAreaSeat.SEAT_ROW_1_RIGHT | VehicleAreaSeat.SEAT_ROW_2_RIGHT)) { in configureTempSetpoint()
438 mZoneForSetTempP = VehicleAreaSeat.SEAT_ROW_1_RIGHT | VehicleAreaSeat.SEAT_ROW_2_RIGHT; in configureTempSetpoint()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DScreenOffHandlerUnitTest.java34 import android.car.VehicleAreaSeat;
254 VehicleAreaSeat.SEAT_ROW_2_LEFT); in testUpdateUserActivity_noUserAssignedInModeOn_shouldTurnOffDisplay()
276 VehicleAreaSeat.SEAT_ROW_2_LEFT); in testUpdateUserActivity_userAssignedInModeOn_shouldKeepScreenOn()
303 VehicleAreaSeat.SEAT_ROW_2_LEFT); in testUserActivity_bootIncomplete()
326 VehicleAreaSeat.SEAT_ROW_2_LEFT); in testCanTurnOnDisplay()
350 VehicleAreaSeat.SEAT_ROW_2_LEFT); in testHandleDisplayStateChange_modeOn()
372 VehicleAreaSeat.SEAT_ROW_2_LEFT); in testHandleDisplayStateChange_modeAlwaysOn()
395 VehicleAreaSeat.SEAT_ROW_2_LEFT); in testHandleDisplayStateChange_modeOff()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/property/
DHalPropertyDebugUtilsUnitTest.java32 import android.hardware.automotive.vehicle.VehicleAreaSeat;
92 toAreaIdString(VehicleProperty.HVAC_POWER_ON, VehicleAreaSeat.UNKNOWN)).isEqualTo( in testToAreaIdString_handlesSeatAreaType()
95 VehicleAreaSeat.ROW_1_LEFT | VehicleAreaSeat.ROW_2_RIGHT)).isEqualTo( in testToAreaIdString_handlesSeatAreaType()
136 VehicleAreaSeat.ROW_3_RIGHT)).isEqualTo("INVALID_VehicleAreaMirror_AREA_ID(0x400)"); in testToAreaIdString_handlesInvalidAreaTypeUndefinedBit()
/packages/services/Car/car-lib/src/android/car/
DVehicleAreaSeat.java39 public final class VehicleAreaSeat { class
77 private VehicleAreaSeat() {} in VehicleAreaSeat() method in VehicleAreaSeat
DCarInfoManager.java249 public @VehicleAreaSeat.Enum int getDriverSeat() { in getDriverSeat()
251 VehicleAreaSeat.SEAT_UNKNOWN); in getDriverSeat()
/packages/services/Car/service/src/com/android/car/hal/property/
DHalPropertyDebugUtils.java29 import android.hardware.automotive.vehicle.VehicleAreaSeat;
112 if (areaId == VehicleAreaSeat.UNKNOWN) { in toAreaIdString()
113 return toName(VehicleAreaSeat.class, areaId); in toAreaIdString()
115 return convertAreaIdToDebugString(VehicleAreaSeat.class, areaId); in toAreaIdString()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/occupantconnection/
DConnectionIdTest.java21 import static android.car.VehicleAreaSeat.SEAT_ROW_1_LEFT;
22 import static android.car.VehicleAreaSeat.SEAT_ROW_1_RIGHT;
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DBluetoothDeviceConnectionPolicyTest.java32 import android.car.VehicleAreaSeat;
91 private static final int DRIVER_SEAT = VehicleAreaSeat.SEAT_ROW_1_RIGHT;
92 private static final int PASSENGER_SEAT = VehicleAreaSeat.SEAT_ROW_1_LEFT;
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/calmmode/
DTemperatureViewModel.java21 import android.car.VehicleAreaSeat;
92 propertyId, VehicleAreaSeat.SEAT_UNKNOWN)); in getCarPropertyValue()
/packages/services/Car/service/src/com/android/car/hal/fakevhal/
DFakeVhalConfigParser.java30 import android.hardware.automotive.vehicle.VehicleAreaSeat;
102 private static final int SEAT_1_RIGHT = VehicleAreaSeat.ROW_1_RIGHT;
103 private static final int SEAT_1_LEFT = VehicleAreaSeat.ROW_1_LEFT;
104 private static final int SEAT_2_RIGHT = VehicleAreaSeat.ROW_2_RIGHT;
105 private static final int SEAT_2_LEFT = VehicleAreaSeat.ROW_2_LEFT;
106 private static final int SEAT_2_CENTER = VehicleAreaSeat.ROW_2_CENTER;
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/
DCarSettingsApplicationTest.java34 import android.car.VehicleAreaSeat;
68 VehicleAreaSeat.SEAT_ROW_1_LEFT);
71 VehicleAreaSeat.SEAT_ROW_1_RIGHT);
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/remoteaccess/
DKitchenSinkRemoteTaskService.java23 import android.car.VehicleAreaSeat;
125 VehiclePropertyIds.HVAC_TEMPERATURE_SET, VehicleAreaSeat.SEAT_ROW_1_LEFT, in handleTaskData()

123