Home
last modified time | relevance | path

Searched refs:VehicleHalStatusCode (Results 1 – 19 of 19) sorted by relevance

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DVehicleHalStatusCodeTest.java21 import android.car.hardware.property.VehicleHalStatusCode;
28 assertThat(VehicleHalStatusCode.toString(VehicleHalStatusCode.STATUS_OK)) in testToString()
30 assertThat(VehicleHalStatusCode.toString(VehicleHalStatusCode.STATUS_TRY_AGAIN)) in testToString()
32 assertThat(VehicleHalStatusCode.toString(VehicleHalStatusCode.STATUS_INVALID_ARG)) in testToString()
34 assertThat(VehicleHalStatusCode.toString(VehicleHalStatusCode.STATUS_NOT_AVAILABLE)) in testToString()
36 assertThat(VehicleHalStatusCode.toString(VehicleHalStatusCode.STATUS_ACCESS_DENIED)) in testToString()
38 assertThat(VehicleHalStatusCode.toString(VehicleHalStatusCode.STATUS_INTERNAL_ERROR)) in testToString()
40 assertThat(VehicleHalStatusCode.toString( in testToString()
41 VehicleHalStatusCode.STATUS_NOT_AVAILABLE_DISABLED)) in testToString()
43 assertThat(VehicleHalStatusCode.toString( in testToString()
[all …]
/packages/services/Car/car-lib/src/com/android/car/internal/property/
DCarPropertyErrorCodes.java23 import android.car.hardware.property.VehicleHalStatusCode;
24 import android.car.hardware.property.VehicleHalStatusCode.VehicleHalStatusCodeInt;
124 case VehicleHalStatusCode.STATUS_OK: in convertVhalStatusCodeToCarPropertyManagerErrorCodes()
126 case VehicleHalStatusCode.STATUS_NOT_AVAILABLE: // Fallthrough in convertVhalStatusCodeToCarPropertyManagerErrorCodes()
127 case VehicleHalStatusCode.STATUS_NOT_AVAILABLE_DISABLED: // Fallthrough in convertVhalStatusCodeToCarPropertyManagerErrorCodes()
128 case VehicleHalStatusCode.STATUS_NOT_AVAILABLE_SPEED_LOW: // Fallthrough in convertVhalStatusCodeToCarPropertyManagerErrorCodes()
129 case VehicleHalStatusCode.STATUS_NOT_AVAILABLE_SPEED_HIGH: // Fallthrough in convertVhalStatusCodeToCarPropertyManagerErrorCodes()
130 case VehicleHalStatusCode.STATUS_NOT_AVAILABLE_POOR_VISIBILITY: // Fallthrough in convertVhalStatusCodeToCarPropertyManagerErrorCodes()
131 case VehicleHalStatusCode.STATUS_NOT_AVAILABLE_SAFETY: in convertVhalStatusCodeToCarPropertyManagerErrorCodes()
134 case VehicleHalStatusCode.STATUS_TRY_AGAIN: in convertVhalStatusCodeToCarPropertyManagerErrorCodes()
[all …]
/packages/services/Car/tools/GenericCarApiBuilder/scripts/
Dtracked_hidden_apis.txt14 android.car.hardware.property VehicleHalStatusCode String toString(int )
20 android.car.hardware.property VehicleHalStatusCode int STATUS_NOT_AVAILABLE_DISABLED
21 android.car.hardware.property VehicleHalStatusCode int STATUS_NOT_AVAILABLE_SPEED_LOW
22 android.car.hardware.property VehicleHalStatusCode int STATUS_NOT_AVAILABLE_SPEED_HIGH
23 android.car.hardware.property VehicleHalStatusCode int STATUS_NOT_AVAILABLE_POOR_VISIBILITY
24 android.car.hardware.property VehicleHalStatusCode int STATUS_NOT_AVAILABLE_SAFETY
/packages/services/Car/tests/carservice_test/src/com/android/car/cluster/
DClusterHomeManagerTest.java34 import android.car.hardware.property.VehicleHalStatusCode;
316 VehicleHalStatusCode.STATUS_TRY_AGAIN); in testClusterRequestDisplayErrorStatusFromHal()
321 VehicleHalStatusCode.STATUS_INVALID_ARG); in testClusterRequestDisplayErrorStatusFromHal()
326 VehicleHalStatusCode.STATUS_NOT_AVAILABLE); in testClusterRequestDisplayErrorStatusFromHal()
331 VehicleHalStatusCode.STATUS_ACCESS_DENIED); in testClusterRequestDisplayErrorStatusFromHal()
336 VehicleHalStatusCode.STATUS_INTERNAL_ERROR); in testClusterRequestDisplayErrorStatusFromHal()
343 VehicleHalStatusCode.STATUS_OK); in testClusterRequestDisplayErrorStatusFromHal()
351 VehicleHalStatusCode.STATUS_TRY_AGAIN); in testClusterReportStateErrorStatusFromHal()
356 VehicleHalStatusCode.STATUS_INVALID_ARG); in testClusterReportStateErrorStatusFromHal()
361 VehicleHalStatusCode.STATUS_NOT_AVAILABLE); in testClusterReportStateErrorStatusFromHal()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarDiagnosticManagerTest.java40 import android.car.hardware.property.VehicleHalStatusCode;
153 if (mStatus != VehicleHalStatusCode.STATUS_OK) { in onPropertySet()
161 if (mStatus != VehicleHalStatusCode.STATUS_OK) { in onPropertyGet()
247 handler.setStatus(VehicleHalStatusCode.STATUS_INVALID_ARG); in configureMockedHal()
251 handler.setStatus(VehicleHalStatusCode.STATUS_NOT_AVAILABLE); in configureMockedHal()
255 handler.setStatus(VehicleHalStatusCode.STATUS_ACCESS_DENIED); in configureMockedHal()
259 handler.setStatus(VehicleHalStatusCode.STATUS_TRY_AGAIN); in configureMockedHal()
263 handler.setStatus(VehicleHalStatusCode.STATUS_INTERNAL_ERROR); in configureMockedHal()
272 VehicleHalStatusCode.STATUS_INVALID_ARG); in configureMockedHal()
276 VehicleHalStatusCode.STATUS_NOT_AVAILABLE); in configureMockedHal()
[all …]
DCarPropertyManagerTest.java44 import android.car.hardware.property.VehicleHalStatusCode;
229 | VehicleHalStatusCode.STATUS_NOT_AVAILABLE;
231 | VehicleHalStatusCode.STATUS_INTERNAL_ERROR;
751 VehicleHalStatusCode.STATUS_INTERNAL_ERROR); in testNotReceiveOnErrorEvent()
767 VehicleHalStatusCode.STATUS_INTERNAL_ERROR); in testReceiveOnErrorEvent()
790 VehicleHalStatusCode.STATUS_INTERNAL_ERROR); in testNotReceiveOnErrorEventAfterUnregister()
1544 VehicleHalStatusCode.STATUS_NOT_AVAILABLE_DISABLED); in onPropertySet2()
1550 if (statusCode != VehicleHalStatusCode.STATUS_OK) { in onPropertySet2()
1568 if (vhalStatusCode != VehicleHalStatusCode.STATUS_OK) { in onPropertyGet()
1612 return VehicleHalStatusCode.STATUS_TRY_AGAIN; in mapPropertyToVhalStatusCode()
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/property/
DCarPropertyManager.java2403 throw new ServiceSpecificException(VehicleHalStatusCode.STATUS_INTERNAL_ERROR, in runSyncOperation()
2649 throw new ServiceSpecificException(VehicleHalStatusCode.STATUS_NOT_AVAILABLE, in getProperty()
2653 throw new ServiceSpecificException(VehicleHalStatusCode.STATUS_INTERNAL_ERROR, in getProperty()
2674 if (e.errorCode == VehicleHalStatusCode.STATUS_TRY_AGAIN) { in getProperty()
2778 if (e.errorCode == VehicleHalStatusCode.STATUS_TRY_AGAIN) { in setProperty()
2848 case VehicleHalStatusCode.STATUS_NOT_AVAILABLE: in handleCarServiceSpecificException()
2850 case VehicleHalStatusCode.STATUS_TRY_AGAIN: in handleCarServiceSpecificException()
2853 case VehicleHalStatusCode.STATUS_ACCESS_DENIED: in handleCarServiceSpecificException()
2856 case VehicleHalStatusCode.STATUS_INTERNAL_ERROR: in handleCarServiceSpecificException()
2858 case VehicleHalStatusCode.STATUS_NOT_AVAILABLE_DISABLED: in handleCarServiceSpecificException()
[all …]
DVehicleHalStatusCode.java32 public final class VehicleHalStatusCode { class
132 private VehicleHalStatusCode() {} in VehicleHalStatusCode() method in VehicleHalStatusCode
/packages/services/Car/tests/CarLibUnitTest/src/android/car/hardware/property/
DCarPropertyManagerUnitTest.java378 new ServiceSpecificException(VehicleHalStatusCode.STATUS_NOT_AVAILABLE)); in testGetProperty_notAvailableBeforeR()
388 new ServiceSpecificException(VehicleHalStatusCode.STATUS_NOT_AVAILABLE)); in testGetProperty_notAvailableEqualAfterR()
398 new ServiceSpecificException(VehicleHalStatusCode.STATUS_TRY_AGAIN)); in testGetProperty_tryAgainBeforeR()
407 new ServiceSpecificException(VehicleHalStatusCode.STATUS_TRY_AGAIN)); in testGetProperty_tryAgainEqualAfterR()
417 new ServiceSpecificException(VehicleHalStatusCode.STATUS_ACCESS_DENIED)); in testGetProperty_accessDeniedBeforeR()
427 new ServiceSpecificException(VehicleHalStatusCode.STATUS_ACCESS_DENIED)); in testGetProperty_accessDeniedEqualAfterR()
437 new ServiceSpecificException(VehicleHalStatusCode.STATUS_INTERNAL_ERROR)); in testGetProperty_internalErrorBeforeR()
447 new ServiceSpecificException(VehicleHalStatusCode.STATUS_INTERNAL_ERROR)); in testGetProperty_internalErrorEqualAfterR()
458 VehicleHalStatusCode.STATUS_INTERNAL_ERROR, VENDOR_ERROR_CODE))); in testGetProperty_internalErrorEqualAfterU_withVendorErrorCode()
585 new ServiceSpecificException(VehicleHalStatusCode.STATUS_TRY_AGAIN)); in testGetPropertyWithClass_tryAgainBeforeR()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/power/
DCarPowerManagementTest.java31 import android.car.hardware.property.VehicleHalStatusCode;
135 mPowerStateHandler.setStatus(VehicleHalStatusCode.STATUS_TRY_AGAIN); in testImmediateShutdownFromWaitForVhal_ErrorCodeFromVhal()
141 mPowerStateHandler.setStatus(VehicleHalStatusCode.STATUS_ACCESS_DENIED); in testImmediateShutdownFromWaitForVhal_ErrorCodeFromVhal()
147 mPowerStateHandler.setStatus(VehicleHalStatusCode.STATUS_NOT_AVAILABLE); in testImmediateShutdownFromWaitForVhal_ErrorCodeFromVhal()
153 mPowerStateHandler.setStatus(VehicleHalStatusCode.STATUS_INTERNAL_ERROR); in testImmediateShutdownFromWaitForVhal_ErrorCodeFromVhal()
160 mPowerStateHandler.setStatus(VehicleHalStatusCode.STATUS_OK); in testImmediateShutdownFromWaitForVhal_ErrorCodeFromVhal()
844 private int mStatus = VehicleHalStatusCode.STATUS_OK;
860 if (mStatus != VehicleHalStatusCode.STATUS_OK) { in onPropertySet()
875 if (mStatus != VehicleHalStatusCode.STATUS_OK) { in onPropertyGet()
/packages/services/Car/service/src/com/android/car/hal/
DPropertyHalService.java24 import static android.car.hardware.property.VehicleHalStatusCode.STATUS_ACCESS_DENIED;
25 import static android.car.hardware.property.VehicleHalStatusCode.STATUS_INTERNAL_ERROR;
26 import static android.car.hardware.property.VehicleHalStatusCode.STATUS_INVALID_ARG;
27 import static android.car.hardware.property.VehicleHalStatusCode.STATUS_NOT_AVAILABLE;
28 import static android.car.hardware.property.VehicleHalStatusCode.STATUS_NOT_AVAILABLE_DISABLED;
29 import static android.car.hardware.property.VehicleHalStatusCode.STATUS_NOT_AVAILABLE_POOR_VISIBILI…
30 import static android.car.hardware.property.VehicleHalStatusCode.STATUS_NOT_AVAILABLE_SAFETY;
31 import static android.car.hardware.property.VehicleHalStatusCode.STATUS_NOT_AVAILABLE_SPEED_HIGH;
32 import static android.car.hardware.property.VehicleHalStatusCode.STATUS_NOT_AVAILABLE_SPEED_LOW;
33 import static android.car.hardware.property.VehicleHalStatusCode.STATUS_TRY_AGAIN;
[all …]
/packages/services/Car/tests/carservice_unit_test/res/raw/
Dcar_hidden_apis.txt485 android.car.hardware.property VehicleHalStatusCode String toString(int vehicleHalStatusCode)
486 android.car.hardware.property VehicleHalStatusCode int STATUS_ACCESS_DENIED
487 android.car.hardware.property VehicleHalStatusCode int STATUS_INTERNAL_ERROR
488 android.car.hardware.property VehicleHalStatusCode int STATUS_INVALID_ARG
489 android.car.hardware.property VehicleHalStatusCode int STATUS_NOT_AVAILABLE
490 android.car.hardware.property VehicleHalStatusCode int STATUS_NOT_AVAILABLE_DISABLED
491 android.car.hardware.property VehicleHalStatusCode int STATUS_NOT_AVAILABLE_POOR_VISIBILITY
492 android.car.hardware.property VehicleHalStatusCode int STATUS_NOT_AVAILABLE_SAFETY
493 android.car.hardware.property VehicleHalStatusCode int STATUS_NOT_AVAILABLE_SPEED_HIGH
494 android.car.hardware.property VehicleHalStatusCode int STATUS_NOT_AVAILABLE_SPEED_LOW
[all …]
Dcar_hidden_apis_release_33.2.txt393 android.car.hardware.property VehicleHalStatusCode int STATUS_OK
394 android.car.hardware.property VehicleHalStatusCode int STATUS_TRY_AGAIN
395 android.car.hardware.property VehicleHalStatusCode int STATUS_INVALID_ARG
396 android.car.hardware.property VehicleHalStatusCode int STATUS_NOT_AVAILABLE
397 android.car.hardware.property VehicleHalStatusCode int STATUS_ACCESS_DENIED
398 android.car.hardware.property VehicleHalStatusCode int STATUS_INTERNAL_ERROR
Dcar_hidden_apis_release_33.1.txt393 android.car.hardware.property VehicleHalStatusCode int STATUS_OK
394 android.car.hardware.property VehicleHalStatusCode int STATUS_TRY_AGAIN
395 android.car.hardware.property VehicleHalStatusCode int STATUS_INVALID_ARG
396 android.car.hardware.property VehicleHalStatusCode int STATUS_NOT_AVAILABLE
397 android.car.hardware.property VehicleHalStatusCode int STATUS_ACCESS_DENIED
398 android.car.hardware.property VehicleHalStatusCode int STATUS_INTERNAL_ERROR
Dcar_hidden_apis_release_33.3.txt435 android.car.hardware.property VehicleHalStatusCode int STATUS_OK
436 android.car.hardware.property VehicleHalStatusCode int STATUS_TRY_AGAIN
437 android.car.hardware.property VehicleHalStatusCode int STATUS_INVALID_ARG
438 android.car.hardware.property VehicleHalStatusCode int STATUS_NOT_AVAILABLE
439 android.car.hardware.property VehicleHalStatusCode int STATUS_ACCESS_DENIED
440 android.car.hardware.property VehicleHalStatusCode int STATUS_INTERNAL_ERROR
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DVmsHalServiceTest.java31 import android.car.hardware.property.VehicleHalStatusCode;
1114 .thenThrow(new ServiceSpecificException(VehicleHalStatusCode.STATUS_TRY_AGAIN, in testDumpMetrics_VendorProperty_Timeout()
DUserHalServiceTest.java55 import android.car.hardware.property.VehicleHalStatusCode;
1401 new ServiceSpecificException(VehicleHalStatusCode.STATUS_TRY_AGAIN)); in testGetUserAssociation_ServiceExceptionFromHal()
1883 doThrow(new ServiceSpecificException(VehicleHalStatusCode.STATUS_TRY_AGAIN, in replySetPropertyWithTimeoutException()
DPropertyHalServiceTest.java22 import static android.car.hardware.property.VehicleHalStatusCode.STATUS_INTERNAL_ERROR;
23 import static android.car.hardware.property.VehicleHalStatusCode.STATUS_NOT_AVAILABLE;
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_api_list.txt1616 class @hiddenOnly @hide VehicleHalStatusCode package android.car.hardware.property