Home
last modified time | relevance | path

Searched refs:CarDrivingStateEvent (Results 1 – 25 of 28) sorted by relevance

12

/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarDrivingRestrictionsTest.java25 import android.car.drivingstate.CarDrivingStateEvent;
131 CarDrivingStateEvent drivingEvent; in testDrivingStateChange()
141 assertThat(drivingEvent.eventValue).isEqualTo(CarDrivingStateEvent.DRIVING_STATE_PARKED); in testDrivingStateChange()
154 assertThat(drivingEvent.eventValue).isEqualTo(CarDrivingStateEvent.DRIVING_STATE_IDLING); in testDrivingStateChange()
162 assertThat(drivingEvent.eventValue).isEqualTo(CarDrivingStateEvent.DRIVING_STATE_MOVING); in testDrivingStateChange()
174 assertThat(drivingEvent.eventValue).isEqualTo(CarDrivingStateEvent.DRIVING_STATE_IDLING); in testDrivingStateChange()
190 assertThat(drivingEvent.eventValue).isEqualTo(CarDrivingStateEvent.DRIVING_STATE_MOVING); in testDrivingStateChange()
208 CarDrivingStateEvent drivingEvent; in testDrivingStateChangeForMalformedInputs()
218 assertThat(drivingEvent.eventValue).isEqualTo(CarDrivingStateEvent.DRIVING_STATE_PARKED); in testDrivingStateChangeForMalformedInputs()
230 assertThat(drivingEvent.eventValue).isEqualTo(CarDrivingStateEvent.DRIVING_STATE_IDLING); in testDrivingStateChangeForMalformedInputs()
[all …]
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarDrivingStateEvent.java38 public final class CarDrivingStateEvent implements Parcelable { class
92 public static final Parcelable.Creator<CarDrivingStateEvent> CREATOR =
93 new Parcelable.Creator<CarDrivingStateEvent>() {
96 public CarDrivingStateEvent createFromParcel(Parcel in) {
97 return new CarDrivingStateEvent(in);
101 public CarDrivingStateEvent[] newArray(int size) {
102 return new CarDrivingStateEvent[size];
106 public CarDrivingStateEvent(int value, long time) { in CarDrivingStateEvent() method in CarDrivingStateEvent
111 private CarDrivingStateEvent(Parcel in) { in CarDrivingStateEvent() method in CarDrivingStateEvent
DCarDrivingStateManager.java90 void onDrivingStateChanged(CarDrivingStateEvent event); in onDrivingStateChanged()
161 public CarDrivingStateEvent getCurrentCarDrivingState() { in getCurrentCarDrivingState()
179 CarDrivingStateEvent event = new CarDrivingStateEvent( in injectDrivingState()
201 public void onDrivingStateChanged(CarDrivingStateEvent event) { in onDrivingStateChanged()
216 private void handleDrivingStateChanged(CarDrivingStateEvent event) { in handleDrivingStateChanged()
239 mgr.dispatchDrivingStateChangeToClient((CarDrivingStateEvent) msg.obj); in handleMessage()
251 private void dispatchDrivingStateChangeToClient(CarDrivingStateEvent event) { in dispatchDrivingStateChangeToClient()
DICarDrivingState.aidl19 import android.car.drivingstate.CarDrivingStateEvent;
33 CarDrivingStateEvent getCurrentDrivingState() = 2; in getCurrentDrivingState()
34 void injectDrivingState(in CarDrivingStateEvent event) = 3;
DICarDrivingStateChangeListener.aidl19 import android.car.drivingstate.CarDrivingStateEvent;
26 void onDrivingStateChanged(in CarDrivingStateEvent event) = 0;
DCarDrivingStateEvent.aidl19 parcelable CarDrivingStateEvent;
DCarUxRestrictionsConfiguration.java19 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_IDLING;
20 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
21 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_PARKED;
22 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_UNKNOWN;
36 import android.car.drivingstate.CarDrivingStateEvent.CarDrivingState;
/packages/services/Car/service/src/com/android/car/
DCarDrivingStateService.java26 import android.car.drivingstate.CarDrivingStateEvent;
27 import android.car.drivingstate.CarDrivingStateEvent.CarDrivingState;
110 private CarDrivingStateEvent mCurrentDrivingState;
115 mCurrentDrivingState = createDrivingStateEvent(CarDrivingStateEvent.DRIVING_STATE_UNKNOWN); in CarDrivingStateService()
127 addTransitionLogLocked(TAG + " Boot", CarDrivingStateEvent.DRIVING_STATE_UNKNOWN, in init()
157 CarDrivingStateEvent.DRIVING_STATE_UNKNOWN); in release()
269 public CarDrivingStateEvent getCurrentDrivingState() { in getCurrentDrivingState()
276 public void injectDrivingState(CarDrivingStateEvent event) { in injectDrivingState()
282 private void dispatchEventToClients(CarDrivingStateEvent event) { in dispatchEventToClients()
413 final CarDrivingStateEvent currentDrivingStateEvent = mCurrentDrivingState; in handlePropertyEventLocked()
[all …]
DCarUxRestrictionsConfigurationXmlParser.java27 import android.car.drivingstate.CarDrivingStateEvent;
376 return CarDrivingStateEvent.DRIVING_STATE_UNKNOWN; in getDrivingState()
381 return CarDrivingStateEvent.DRIVING_STATE_PARKED; in getDrivingState()
383 return CarDrivingStateEvent.DRIVING_STATE_IDLING; in getDrivingState()
385 return CarDrivingStateEvent.DRIVING_STATE_MOVING; in getDrivingState()
387 return CarDrivingStateEvent.DRIVING_STATE_UNKNOWN; in getDrivingState()
415 if (drivingState != CarDrivingStateEvent.DRIVING_STATE_UNKNOWN in parseAllRestrictions()
DCarLocationService.java25 import android.car.drivingstate.CarDrivingStateEvent;
223 public void onDrivingStateChanged(CarDrivingStateEvent event) {
226 && event.eventValue == CarDrivingStateEvent.DRIVING_STATE_MOVING) {
270 CarDrivingStateEvent event = mCarDrivingStateService.getCurrentDrivingState(); in init()
271 if (event != null && event.eventValue == CarDrivingStateEvent.DRIVING_STATE_MOVING) { in init()
350 CarDrivingStateEvent event = mCarDrivingStateService.getCurrentDrivingState(); in onStateChanged()
352 && event.eventValue == CarDrivingStateEvent.DRIVING_STATE_MOVING) { in onStateChanged()
DCarUxRestrictionsManagerService.java20 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_IDLING;
21 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
22 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_PARKED;
23 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_UNKNOWN;
43 import android.car.drivingstate.CarDrivingStateEvent;
44 import android.car.drivingstate.CarDrivingStateEvent.CarDrivingState;
451 CarDrivingStateEvent currentDrivingStateEvent = in promoteStagedConfig()
471 CarDrivingStateEvent currentDrivingStateEvent = in initializeUxRestrictions()
891 public void onDrivingStateChanged(CarDrivingStateEvent event) {
906 void handleDrivingStateEventOnDisplaysLocked(CarDrivingStateEvent event, in handleDrivingStateEventOnDisplaysLocked()
[all …]
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/src/com/android/car/portraitlauncher/homeactivities/
DCarUiPortraitDriveStateController.java19 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
20 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_UNKNOWN;
23 import android.car.drivingstate.CarDrivingStateEvent;
53 private void handleDrivingStateChange(CarDrivingStateEvent carDrivingStateEvent) { in handleDrivingStateChange()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarUxRestrictionsManagerServiceTest.java19 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_IDLING;
20 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
21 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_PARKED;
22 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_UNKNOWN;
46 import android.car.drivingstate.CarDrivingStateEvent;
398 public void onDrivingStateChanged(CarDrivingStateEvent event) in testInitService_NoDeadlockWithCarDrivingStateService()
490 public void onDrivingStateChanged(CarDrivingStateEvent event) in testSetUxRChangeBroadcastEnabled_NoDeadlockWithCarDrivingStateService()
598 new CarDrivingStateEvent(CarDrivingStateEvent.DRIVING_STATE_PARKED, 0)); in setUpMockParkedState()
608 new CarDrivingStateEvent(CarDrivingStateEvent.DRIVING_STATE_MOVING, 0)); in setUpMockDrivingStateWithFakeSpeed()
DCarLocationServiceTest.java36 import android.car.drivingstate.CarDrivingStateEvent;
431 new CarDrivingStateEvent(CarDrivingStateEvent.DRIVING_STATE_MOVING, 0)); in testDeletesCacheFileUponSuspendExitWhileMoving()
452 new CarDrivingStateEvent(CarDrivingStateEvent.DRIVING_STATE_PARKED, 0)); in testRegistersForDrivingStateChangesUponSuspendExit()
480 new CarDrivingStateEvent(CarDrivingStateEvent.DRIVING_STATE_MOVING, in testDeletesCacheFileWhenDrivingStateBecomesMoving()
DCarUxRestrictionsConfigurationXmlParserTest.java18 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_IDLING;
19 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
20 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_PARKED;
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DBluetoothDeviceConnectionPolicyTest.java35 import android.car.drivingstate.CarDrivingStateEvent;
242 .thenReturn(new CarDrivingStateEvent(value, 0 /*timeStamp*/)); in setDrivingState()
383 setDrivingState(CarDrivingStateEvent.DRIVING_STATE_PARKED); in testSeatOnOccupied_driverSeat_parked_connectDevices()
406 setDrivingState(CarDrivingStateEvent.DRIVING_STATE_PARKED); in testSeatOnOccupied_passengerSeat_parked_doNothing()
429 setDrivingState(CarDrivingStateEvent.DRIVING_STATE_MOVING); in testSeatOnOccupied_driverSeat_driving_doNothing()
/packages/apps/Car/Settings/src/com/android/car/settings/admin/
DFactoryResetActivity.java19 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_PARKED;
27 import android.car.drivingstate.CarDrivingStateEvent;
86 CarDrivingStateEvent state = mCarDrivingStateManager.getCurrentCarDrivingState(); in showMore()
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/
DMainActivity.java18 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_IDLING;
19 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
20 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_PARKED;
26 import android.car.drivingstate.CarDrivingStateEvent;
218 private void updateDrivingStateText(CarDrivingStateEvent state) { in updateDrivingStateText()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/wm/
DCarUiPortraitDisplaySystemBarsController.java19 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
20 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_UNKNOWN;
26 import android.car.drivingstate.CarDrivingStateEvent;
165 private void handleDrivingStateChange(CarDrivingStateEvent event) { in handleDrivingStateChange()
/packages/services/Car/service/src/com/android/car/bluetooth/
DBluetoothDeviceConnectionPolicy.java30 import android.car.drivingstate.CarDrivingStateEvent;
241 CarDrivingStateEvent event = mCarDrivingStateService.getCurrentDrivingState(); in isParked()
245 return event.eventValue == CarDrivingStateEvent.DRIVING_STATE_PARKED; in isParked()
/packages/services/Car/tests/carservice_test/src/com/android/car/pm/
DCarPackageManagerServiceTest.java34 import android.car.drivingstate.CarDrivingStateEvent;
394 mCarDrivingStateManager.injectDrivingState(CarDrivingStateEvent.DRIVING_STATE_MOVING); in setDrivingStateMoving()
398 mCarDrivingStateManager.injectDrivingState(CarDrivingStateEvent.DRIVING_STATE_IDLING); in setDrivingStateIdling()
402 mCarDrivingStateManager.injectDrivingState(CarDrivingStateEvent.DRIVING_STATE_PARKED); in setDrivingStateParked()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DBugReportActivity.java27 import android.car.drivingstate.CarDrivingStateEvent;
240 private void onCarDrivingStateChanged(CarDrivingStateEvent event) { in onCarDrivingStateChanged()
251 if (event.eventValue == CarDrivingStateEvent.DRIVING_STATE_PARKED in onCarDrivingStateChanged()
252 || event.eventValue == CarDrivingStateEvent.DRIVING_STATE_IDLING) { in onCarDrivingStateChanged()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUxRestrictionsConfigurationTest.java19 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_IDLING;
20 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
21 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_PARKED;
22 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_UNKNOWN;
/packages/services/Car/car-lib/api/
Dsystem-lint-baseline.txt414 MissingNullability: android.car.drivingstate.CarDrivingStateEvent#CREATOR:
415 …ssing nullability on field `CREATOR` in class `class android.car.drivingstate.CarDrivingStateEvent`
416 MissingNullability: android.car.drivingstate.CarDrivingStateEvent#writeToParcel(android.os.Parcel, …
418 …StateEventListener#onDrivingStateChanged(android.car.drivingstate.CarDrivingStateEvent) parameter …
2272 UnflaggedApi: android.car.drivingstate.CarDrivingStateEvent:
2273 New API must be flagged with @FlaggedApi: class android.car.drivingstate.CarDrivingStateEvent
2274 UnflaggedApi: android.car.drivingstate.CarDrivingStateEvent#CREATOR:
2275 …New API must be flagged with @FlaggedApi: field android.car.drivingstate.CarDrivingStateEvent.CREA…
2276 UnflaggedApi: android.car.drivingstate.CarDrivingStateEvent#CarDrivingStateEvent(int, long):
2277 …st be flagged with @FlaggedApi: constructor android.car.drivingstate.CarDrivingStateEvent(int,long)
[all …]
/packages/services/Car/car-lib-module/api/
Dsystem-current.txt923 public final class CarDrivingStateEvent implements android.os.Parcelable {
924 ctor public CarDrivingStateEvent(int, long);
927 … static final android.os.Parcelable.Creator<android.car.drivingstate.CarDrivingStateEvent> CREATOR;
937 … method @Nullable public android.car.drivingstate.CarDrivingStateEvent getCurrentCarDrivingState();
943 method public void onDrivingStateChanged(android.car.drivingstate.CarDrivingStateEvent);

12