/packages/services/Car/service/src/com/android/car/ |
D | CarDrivingStateService.java | 22 import android.car.drivingstate.CarDrivingStateEvent; 23 import android.car.drivingstate.CarDrivingStateEvent.CarDrivingState; 69 private CarDrivingStateEvent mCurrentDrivingState; 83 mCurrentDrivingState = createDrivingStateEvent(CarDrivingStateEvent.DRIVING_STATE_UNKNOWN); in CarDrivingStateService() 97 addTransitionLog(TAG + " Boot", CarDrivingStateEvent.DRIVING_STATE_UNKNOWN, in init() 110 mCurrentDrivingState = createDrivingStateEvent(CarDrivingStateEvent.DRIVING_STATE_UNKNOWN); in release() 228 public synchronized CarDrivingStateEvent getCurrentDrivingState() { in getCurrentDrivingState() 233 public void injectDrivingState(CarDrivingStateEvent event) { in injectDrivingState() 280 public void dispatchEventToClients(CarDrivingStateEvent event) { in dispatchEventToClients() 401 final CarDrivingStateEvent currentDrivingStateEvent = mCurrentDrivingState; in handlePropertyEvent() [all …]
|
D | CarLocationService.java | 22 import android.car.drivingstate.CarDrivingStateEvent; 137 public void onDrivingStateChanged(CarDrivingStateEvent event) { 140 && event.eventValue == CarDrivingStateEvent.DRIVING_STATE_MOVING) { 164 CarDrivingStateEvent event = mCarDrivingStateService.getCurrentDrivingState(); in init() 165 if (event != null && event.eventValue == CarDrivingStateEvent.DRIVING_STATE_MOVING) { in init() 220 CarDrivingStateEvent event = mCarDrivingStateService.getCurrentDrivingState(); in onStateChanged() 222 && event.eventValue == CarDrivingStateEvent.DRIVING_STATE_MOVING) { in onStateChanged()
|
D | CarUxRestrictionsManagerService.java | 19 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; 31 import android.car.drivingstate.CarDrivingStateEvent; 32 import android.car.drivingstate.CarDrivingStateEvent.CarDrivingState; 264 CarDrivingStateEvent currentDrivingStateEvent = in promoteStagedConfig() 283 CarDrivingStateEvent currentDrivingStateEvent = in initializeUxRestrictions() 729 public void onDrivingStateChanged(CarDrivingStateEvent event) { 740 private synchronized void handleDrivingStateEvent(CarDrivingStateEvent event) { in handleDrivingStateEvent()
|
D | CarUxRestrictionsConfigurationXmlParser.java | 23 import android.car.drivingstate.CarDrivingStateEvent; 195 CarDrivingStateEvent.DRIVING_STATE_UNKNOWN); in mapDrivingStateToRestrictions() 250 if (drivingState != CarDrivingStateEvent.DRIVING_STATE_UNKNOWN in parseAllRestrictions()
|
/packages/services/Car/car-lib/src/android/car/drivingstate/ |
D | CarDrivingStateEvent.java | 34 public final class CarDrivingStateEvent implements Parcelable { class 87 public static final Parcelable.Creator<CarDrivingStateEvent> CREATOR 88 = new Parcelable.Creator<CarDrivingStateEvent>() { 89 public CarDrivingStateEvent createFromParcel(Parcel in) { 90 return new CarDrivingStateEvent(in); 93 public CarDrivingStateEvent[] newArray(int size) { 94 return new CarDrivingStateEvent[size]; 98 public CarDrivingStateEvent(int value, long time) { in CarDrivingStateEvent() method in CarDrivingStateEvent 103 private CarDrivingStateEvent(Parcel in) { in CarDrivingStateEvent() method in CarDrivingStateEvent
|
D | CarDrivingStateManager.java | 79 void onDrivingStateChanged(CarDrivingStateEvent event); in onDrivingStateChanged() 148 public CarDrivingStateEvent getCurrentCarDrivingState() { in getCurrentCarDrivingState() 168 CarDrivingStateEvent event = new CarDrivingStateEvent( in injectDrivingState() 190 public void onDrivingStateChanged(CarDrivingStateEvent event) { in onDrivingStateChanged() 205 private void handleDrivingStateChanged(CarDrivingStateEvent event) { in handleDrivingStateChanged() 228 mgr.dispatchDrivingStateChangeToClient((CarDrivingStateEvent) msg.obj); in handleMessage() 240 private void dispatchDrivingStateChangeToClient(CarDrivingStateEvent event) { in dispatchDrivingStateChangeToClient()
|
D | ICarDrivingState.aidl | 19 import android.car.drivingstate.CarDrivingStateEvent; 33 CarDrivingStateEvent getCurrentDrivingState() = 2; in getCurrentDrivingState() 34 void injectDrivingState(in CarDrivingStateEvent event) = 3;
|
D | ICarDrivingStateChangeListener.aidl | 19 import android.car.drivingstate.CarDrivingStateEvent; 26 void onDrivingStateChanged(in CarDrivingStateEvent event) = 0;
|
D | CarUxRestrictionsConfiguration.java | 18 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; 21 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_UNKNOWN; 27 import android.car.drivingstate.CarDrivingStateEvent.CarDrivingState;
|
D | CarDrivingStateEvent.aidl | 19 parcelable CarDrivingStateEvent;
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarDrivingRestrictionsTest.java | 26 import android.car.drivingstate.CarDrivingStateEvent; 89 CarDrivingStateEvent drivingEvent; in testDrivingStateChange() 105 assertThat(drivingEvent.eventValue).isEqualTo(CarDrivingStateEvent.DRIVING_STATE_PARKED); in testDrivingStateChange() 125 assertThat(drivingEvent.eventValue).isEqualTo(CarDrivingStateEvent.DRIVING_STATE_IDLING); in testDrivingStateChange() 137 assertThat(drivingEvent.eventValue).isEqualTo(CarDrivingStateEvent.DRIVING_STATE_MOVING); in testDrivingStateChange() 153 assertThat(drivingEvent.eventValue).isEqualTo(CarDrivingStateEvent.DRIVING_STATE_IDLING); in testDrivingStateChange() 179 CarDrivingStateEvent drivingEvent; in testDrivingStateChangeForMalformedInputs() 195 assertThat(drivingEvent.eventValue).isEqualTo(CarDrivingStateEvent.DRIVING_STATE_PARKED); in testDrivingStateChangeForMalformedInputs() 215 assertThat(drivingEvent.eventValue).isEqualTo(CarDrivingStateEvent.DRIVING_STATE_IDLING); in testDrivingStateChangeForMalformedInputs() 228 assertThat(drivingEvent.eventValue).isEqualTo(CarDrivingStateEvent.DRIVING_STATE_UNKNOWN); in testDrivingStateChangeForMalformedInputs() [all …]
|
D | CarUxRestrictionsManagerServiceTest.java | 18 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; 21 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_UNKNOWN; 39 import android.car.drivingstate.CarDrivingStateEvent; 344 public void onDrivingStateChanged(CarDrivingStateEvent event) in testInitService_NoDeadlockWithCarDrivingStateService() 435 public void onDrivingStateChanged(CarDrivingStateEvent event) in testSetUxRChangeBroadcastEnabled_NoDeadlockWithCarDrivingStateService() 518 new CarDrivingStateEvent(CarDrivingStateEvent.DRIVING_STATE_PARKED, 0)); in setUpMockParkedState() 528 new CarDrivingStateEvent(CarDrivingStateEvent.DRIVING_STATE_MOVING, 0)); in setUpMockDrivingState()
|
D | CarUxRestrictionsConfigurationXmlParserTest.java | 18 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/ |
D | CarLocationServiceTest.java | 35 import android.car.drivingstate.CarDrivingStateEvent; 425 new CarDrivingStateEvent(CarDrivingStateEvent.DRIVING_STATE_MOVING, 0)); in testDeletesCacheFileUponSuspendExitWhileMoving() 446 new CarDrivingStateEvent(CarDrivingStateEvent.DRIVING_STATE_PARKED, 0)); in testRegistersForDrivingStateChangesUponSuspendExit() 474 new CarDrivingStateEvent(CarDrivingStateEvent.DRIVING_STATE_MOVING, in testDeletesCacheFileWhenDrivingStateBecomesMoving()
|
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/ |
D | MainActivity.java | 18 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; 163 private void updateDrivingStateText(CarDrivingStateEvent state) { in updateDrivingStateText()
|
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/ |
D | BugReportActivity.java | 24 import android.car.drivingstate.CarDrivingStateEvent; 209 private void onCarDrivingStateChanged(CarDrivingStateEvent event) { in onCarDrivingStateChanged() 220 if (event.eventValue == CarDrivingStateEvent.DRIVING_STATE_PARKED in onCarDrivingStateChanged() 221 || event.eventValue == CarDrivingStateEvent.DRIVING_STATE_IDLING) { in onCarDrivingStateChanged()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarUxRestrictionsConfigurationTest.java | 19 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/ |
D | system-current.txt | 546 public final class CarDrivingStateEvent implements android.os.Parcelable { 547 ctor public CarDrivingStateEvent(int, long); 550 … static final android.os.Parcelable.Creator<android.car.drivingstate.CarDrivingStateEvent> CREATOR; 560 … method @Nullable public android.car.drivingstate.CarDrivingStateEvent getCurrentCarDrivingState(); 566 method public void onDrivingStateChanged(android.car.drivingstate.CarDrivingStateEvent);
|