Home
last modified time | relevance | path

Searched refs:seat (Results 1 – 25 of 30) sorted by relevance

12

/packages/services/Car/service/src/com/android/car/
DCarInputService.java133 @VehicleAreaSeat.Enum int seat) { in onKeyEvent() argument
273 @VehicleAreaSeat.Enum int seat) {
276 handleHomeKey(event, displayType, seat);
279 handlePowerKey(event, displayType, seat);
315 @VehicleAreaSeat.Enum int seat) { in CarInputService()
486 @VehicleAreaSeat.Enum int seat) { in onKeyEvent() argument
487 if (mHasDriver && seat == VehicleAreaSeat.SEAT_UNKNOWN) { in onKeyEvent()
496 notifyUserActivity(event, targetDisplayType, seat); in onKeyEvent()
499 if (seat == mDriverSeat) { in onKeyEvent()
505 notifyKeyEventListener(event, targetDisplayType, seat); in onKeyEvent()
[all …]
DCarOccupantZoneService.java1040 @VehicleAreaSeat.Enum int seat) { in getOccupantZone() argument
1051 if (occupantType == info.occupantType && seat == info.seat) { in getOccupantZone()
1067 public int getOccupantZoneIdForSeat(@VehicleAreaSeat.Enum int seat) { in getOccupantZoneIdForSeat() argument
1069 return getOccupantZoneIdForSeatLocked(seat); in getOccupantZoneIdForSeat()
1074 private int getOccupantZoneIdForSeatLocked(@VehicleAreaSeat.Enum int seat) { in getOccupantZoneIdForSeatLocked() argument
1078 if (seat == info.seat) { in getOccupantZoneIdForSeatLocked()
1312 int seat = VehicleAreaSeat.fromRowAndSide(seatRow, seatSide); in parseOccupantZoneConfigsLocked() local
1313 if (seat == VehicleAreaSeat.SEAT_UNKNOWN) { in parseOccupantZoneConfigsLocked()
1316 OccupantZoneInfo info = new OccupantZoneInfo(zoneId, type, seat); in parseOccupantZoneConfigsLocked()
DCarShellCommand.java1775 int seat = SEAT_UNKNOWN;
1803 seat = parseUnsignedInt(args[i]);
1831 injectKeyEvent(KeyEvent.ACTION_DOWN, keyCode, display, seat);
1833 injectKeyEvent(KeyEvent.ACTION_UP, keyCode, display, seat);
1835 injectKeyEvent(action, keyCode, display, seat);
1840 private void injectKeyEvent(int action, int keyCode, int display, int seat) {
1847 if (seat == SEAT_UNKNOWN) {
1849 seat = mCarOccupantZoneService.getDriverSeat();
1851 mCarInputService.injectKeyEventForSeat(keyEvent, display, seat);
1862 int seat = SEAT_UNKNOWN;
[all …]
DCarMediaService.java1720 public void onKeyEvent(KeyEvent event, int displayType, int seat) { in onKeyEvent() argument
1722 Slogf.d(TAG, "onKeyEvent(%s, %d, %d)", event, displayType, seat); in onKeyEvent()
1724 int occupantZoneId = mOccupantZoneService.getOccupantZoneIdForSeat(seat); in onKeyEvent()
1727 + " Ignoring key event %s", seat, event); in onKeyEvent()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userpicker/
DUserPickerTestCase.java91 StringBuilder seat = new StringBuilder(15); in getZoneDesc() local
93 seat.append(mContext.getString(R.string.seat_driver)); in getZoneDesc()
96 seat.append(mContext.getString(R.string.seat_front)); in getZoneDesc()
98 seat.append(mContext.getString(R.string.seat_rear)); in getZoneDesc()
100 seat.append(" "); in getZoneDesc()
101 switch (zoneInfo.seat) { in getZoneDesc()
105 seat.append(mContext.getString(R.string.seat_left_side)); in getZoneDesc()
110 seat.append(mContext.getString(R.string.seat_center_side)); in getZoneDesc()
115 seat.append(mContext.getString(R.string.seat_right_side)); in getZoneDesc()
121 return seat.toString(); in getZoneDesc()
/packages/services/Car/car-lib/src/android/car/
DVehicleAreaSeat.java100 int seat = 0x1; in fromRowAndSide() local
101 seat = seat << ((rowNumber - 1) * 4); in fromRowAndSide()
102 seat = seat << (side + 1); in fromRowAndSide()
103 return seat; in fromRowAndSide()
DCarOccupantZoneManager.java205 public final int seat; field in CarOccupantZoneManager.OccupantZoneInfo
209 @VehicleAreaSeat.Enum int seat) { in OccupantZoneInfo() argument
212 this.seat = seat; in OccupantZoneInfo()
219 seat = in.readInt(); in OccupantZoneInfo()
232 dest.writeInt(seat); in writeToParcel()
245 && seat == that.seat; in equals()
253 hash = hash * 17 + seat; in hashCode()
276 b.append(Integer.toHexString(seat)); in toString()
778 @VehicleAreaSeat.Enum int seat) { in getOccupantZone() argument
780 return mService.getOccupantZone(occupantType, seat); in getOccupantZone()
DICarOccupantZone.aidl47 CarOccupantZoneManager.OccupantZoneInfo getOccupantZone(in int type, in int seat); in getOccupantZone() argument
/packages/services/Car/service/src/com/android/car/hal/
DInputHalService.java103 void onKeyEvent(KeyEvent event, int targetDisplay, int seat); in onKeyEvent() argument
106 void onMotionEvent(MotionEvent event, int targetDisplay, int seat); in onMotionEvent() argument
341 int seat;
351 seat = value.getAreaId();
391 repeatCount, seat);
399 int seat;
418 seat = value.getAreaId();
506 listener.onMotionEvent(event, convertDisplayType(vehicleDisplay), seat);
833 @DisplayTypeEnum int display, long eventTime, long downTime, int repeat, int seat) {
847 listener.onKeyEvent(event, display, seat);
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/
DOccupantZoneInfoTestBuilder.java62 public OccupantZoneInfoTestBuilder setSeat(@VehicleAreaSeat.Enum int seat) { in setSeat() argument
63 mSeat = seat; in setSeat()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userpicker/
DCarServiceMediator.java216 return mSeatFront + " " + getSeatSideString(zoneInfo.seat); in getSeatString()
218 return mSeatRear + " " + getSeatSideString(zoneInfo.seat); in getSeatString()
225 private String getSeatSideString(int seat) { in getSeatSideString() argument
226 switch (seat) { in getSeatSideString()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DOccupantZoneHelper.java94 int seat = (int) inv.getArgument(1); in setUpOccupantZones()
103 if (zone.occupantType == type && zone.seat == seat) { in setUpOccupantZones()
DCarInputServiceTest.java1151 private KeyEvent injectPowerKeyEventToSeat(Key action, boolean isOn, int displayId, int seat) { in injectPowerKeyEventToSeat() argument
1154 return send(action, KeyEvent.KEYCODE_POWER, Display.MAIN, seat); in injectPowerKeyEventToSeat()
1318 private KeyEvent send(Key action, int keyCode, Display display, int seat) { in send() argument
1319 return sendWithRepeatAndSeat(action, keyCode, display, 0, seat); in send()
1323 int repeatCount, int seat) { in sendWithRepeatAndSeat() argument
1336 seat); in sendWithRepeatAndSeat()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/util/
DInjectKeyEventUtils.java36 .append(zone.seat) in injectKeyByShell()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DInputHalServiceTest.java870 private KeyEvent dispatchSinglePerSeatEvent(int seat, int actualDisplay, in dispatchSinglePerSeatEvent() argument
881 /* areaId= */ seat, in dispatchSinglePerSeatEvent()
892 eq(seat)); in dispatchSinglePerSeatEvent()
897 private MotionEvent dispatchSinglePerSeatMotionEvent(int seat, int actualDisplay, in dispatchSinglePerSeatMotionEvent() argument
923 /* areaId = */ seat, in dispatchSinglePerSeatMotionEvent()
932 verify(mInputListener).onMotionEvent(captor.capture(), eq(expectedDisplay), eq(seat)); in dispatchSinglePerSeatMotionEvent()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DBluetoothDeviceConnectionPolicyTest.java227 private void sendSeatOnOccupied(int seat) { in sendSeatOnOccupied() argument
229 VehiclePropertyIds.SEAT_OCCUPANCY, seat, VehicleSeatOccupancyState.OCCUPIED); in sendSeatOnOccupied()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DMediaRequestHandlerTest.java711 int occupantType, int seat) { in getOccupantInfo() argument
712 return new CarOccupantZoneManager.OccupantZoneInfo(occupantZoneId, occupantType, seat); in getOccupantInfo()
DCarAudioServiceUnitTest.java3444 int occupantType, int seat) { in getOccupantInfo() argument
3445 return new CarOccupantZoneManager.OccupantZoneInfo(occupantZoneId, occupantType, seat); in getOccupantInfo()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/touch/
DInjectMotionTestFragment.java185 .append(zone.seat) in injectMotionByShell()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/
DCarMediaServiceTest.java863 private void sendKeyEvent(KeyEvent keyEvent, int displayType, int seat) { in sendKeyEvent() argument
866 mKeyEventListener.onKeyEvent(keyEvent, displayType, seat); in sendKeyEvent()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioService.java291 public void onKeyEvent(KeyEvent event, int displayType, int seat) {
293 seat);
299 carOccupantZoneService.getOccupantZoneIdForSeat(seat));
302 event, displayType, seat);
/packages/services/Car/tests/carservice_unit_test/res/raw/
Dcar_hidden_apis_release_33.3.txt76 …eManager.OccupantZoneInfo OccupantZoneInfo OccupantZoneInfo(int zoneId, int occupantType, int seat)
/packages/services/Car/car-lib/api/
Dcurrent.txt162 field public final int seat;
Dlint-baseline.txt446 UnflaggedApi: android.car.CarOccupantZoneManager.OccupantZoneInfo#seat:
447 …PI must be flagged with @FlaggedApi: field android.car.CarOccupantZoneManager.OccupantZoneInfo.seat
/packages/services/Car/car-lib-module/api/
Dcurrent.txt162 field public final int seat;

12