Home
last modified time | relevance | path

Searched refs:DrivingState (Results 1 – 6 of 6) sorted by relevance

/platform_testing/libraries/automotive-helpers/hardkeys-app-helper/src/android/platform/helpers/
DVehicleHardKeysHelperImpl.java198 public DrivingState getDrivingState() { in getDrivingState()
202 return DrivingState.IDLING; in getDrivingState()
204 return DrivingState.MOVING; in getDrivingState()
206 return DrivingState.PARKED; in getDrivingState()
208 return DrivingState.UNKNOWN; in getDrivingState()
212 public void setDrivingState(DrivingState state) { in setDrivingState()
213 if (state == DrivingState.UNKNOWN) { in setDrivingState()
215 } else if (state == DrivingState.PARKED) { in setDrivingState()
225 if (getDrivingState() == DrivingState.PARKED) { in setSpeed()
/platform_testing/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/
DIAutoVehicleHardKeysHelper.java30 enum DrivingState { enum
118 DrivingState getDrivingState(); in getDrivingState()
125 void setDrivingState(DrivingState state); in setDrivingState()
/platform_testing/tests/automotive/snippets/phone/src/com/google/android/mobly/snippet/bundled/
DUxrestrictionSnippet.java21 import android.platform.helpers.IAutoVehicleHardKeysHelper.DrivingState;
39 mHardKeysHelper.get().setDrivingState(DrivingState.MOVING); in enableDrivingMode()
47 mHardKeysHelper.get().setDrivingState(DrivingState.PARKED); in disableDrivingMode()
/platform_testing/tests/automotive/functional/uxrestriction/src/android/platform/tests/
DDrivingOptimizedAppsTest.java28 import android.platform.helpers.IAutoVehicleHardKeysHelper.DrivingState;
58 mHardKeysHelper.get().setDrivingState(DrivingState.MOVING); in enableDrivingMode()
65 mHardKeysHelper.get().setDrivingState(DrivingState.PARKED); in disableDrivingMode()
DUxRestrictionFacetBarTest.java25 import android.platform.helpers.IAutoVehicleHardKeysHelper.DrivingState;
59 mHardKeysHelper.get().setDrivingState(DrivingState.MOVING); in enableDrivingMode()
67 mHardKeysHelper.get().setDrivingState(DrivingState.PARKED); in disableDrivingMode()
DUxRestrictionTest.java26 import android.platform.helpers.IAutoVehicleHardKeysHelper.DrivingState;
53 mHardKeysHelper.get().setDrivingState(DrivingState.MOVING); in enableDrivingMode()
61 mHardKeysHelper.get().setDrivingState(DrivingState.PARKED); in disableDrivingMode()