Home
last modified time | relevance | path

Searched refs:StatusCode (Results 1 – 16 of 16) sorted by relevance

/packages/services/Car/service/src/com/android/car/hal/
DHalClient.java23 import android.hardware.automotive.vehicle.V2_0.StatusCode;
103 return StatusCode.TRY_AGAIN; in setValue()
107 if (StatusCode.INVALID_ARG == status) { in setValue()
111 if (StatusCode.OK != status) { in setValue()
127 status, StatusCode.toString(status)); in getPropertyErrorMessage()
138 if (StatusCode.INVALID_ARG == status) { in getValue()
142 if (StatusCode.OK != status || valueWrapper.object == null) { in getValue()
145 if (StatusCode.OK == status) { in getValue()
146 status = StatusCode.NOT_AVAILABLE; in getValue()
167 result.status = StatusCode.TRY_AGAIN; in internalGet()
[all …]
/packages/services/Car/vehicle-hal-support-lib/test/com/android/car/vehiclehal/test/
DMockedVehicleHal.java27 import android.hardware.automotive.vehicle.V2_0.StatusCode;
148 cb.onValues(StatusCode.INVALID_ARG, new ArrayList<>()); in getPropConfigs()
153 cb.onValues(StatusCode.OK, res); in getPropConfigs()
160 cb.onValues(StatusCode.INVALID_ARG, null); in get()
162 cb.onValues(StatusCode.OK, handler.onPropertyGet(requestedPropValue)); in get()
170 return StatusCode.INVALID_ARG; in set()
173 return StatusCode.OK; in set()
183 return StatusCode.INVALID_ARG; in subscribe()
203 return StatusCode.OK; in subscribe()
210 return StatusCode.INVALID_ARG; in unsubscribe()
[all …]
/packages/services/Car/evs/apps/default/
DEvsStateControl.cpp227 if (invokeGet(&mGearValue) != StatusCode::OK) { in selectStateForCurrentConditions()
231 if ((mTurnSignalValue.prop == 0) || (invokeGet(&mTurnSignalValue) != StatusCode::OK)) { in selectStateForCurrentConditions()
271 StatusCode EvsStateControl::invokeGet(VehiclePropValue *pRequestedPropValue) { in invokeGet()
272 StatusCode status = StatusCode::TRY_AGAIN; in invokeGet()
277 (StatusCode s, const VehiclePropValue& v) { in invokeGet()
279 if (s == StatusCode::OK) { in invokeGet()
Devs_app.cpp92 StatusCode status = pVnet->subscribe(listener, options); in subscribeToVHal()
93 if (status != StatusCode::OK) { in subscribeToVHal()
DEvsVehicleListener.h46 Return<void> onPropertySetError(StatusCode /* errorCode */, in onPropertySetError() argument
DEvsStateControl.h87 StatusCode invokeGet(VehiclePropValue *pRequestedPropValue);
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DHalClientUnitTest.java28 import android.hardware.automotive.vehicle.V2_0.StatusCode;
78 .thenReturn(StatusCode.OK); in testSet_remoteExceptionThenOk()
85 when(mIVehicle.set(isProperty(PROP))).thenReturn(StatusCode.INVALID_ARG); in testSet_invalidArgument()
96 when(mIVehicle.set(isProperty(PROP))).thenReturn(StatusCode.INTERNAL_ERROR); in testSet_otherError()
107 when(mIVehicle.set(isProperty(PROP))).thenReturn(StatusCode.OK); in testSet_ok()
/packages/services/Car/surround_view/service-impl/
DVhalHandler.cpp38 using vehicle::V2_0::StatusCode;
98 StatusCode statusResult; in pollProperties()
102 &propValueResult](StatusCode status, in pollProperties()
107 if (statusResult != StatusCode::OK) { in pollProperties()
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DJsonVhalEventGenerator.java21 import android.hardware.automotive.vehicle.V2_0.StatusCode;
56 assertEquals(StatusCode.OK, mVehicle.set(request)); in start()
66 assertEquals(StatusCode.OK, mVehicle.set(request)); in stop()
DLinearVhalEventGenerator.java21 import android.hardware.automotive.vehicle.V2_0.StatusCode;
86 assertEquals(StatusCode.OK, mVehicle.set(request)); in start()
95 assertEquals(StatusCode.OK, mVehicle.set(request)); in stop()
DObd2FreezeFrameTest.java28 import android.hardware.automotive.vehicle.V2_0.StatusCode;
61 assertEquals(StatusCode.OK, status.intValue()); in testFreezeFrame()
72 if (StatusCode.OK == frameStatus.intValue()) { in testFreezeFrame()
DObd2LiveFrameTest.java27 import android.hardware.automotive.vehicle.V2_0.StatusCode;
54 assertEquals(StatusCode.OK, status.intValue()); in testLiveFrame()
DE2eCarTestBase.java27 import android.hardware.automotive.vehicle.V2_0.StatusCode;
62 (status, propConfigs) -> assumeTrue(status == StatusCode.OK)); in connectToVehicleHal()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarVendorExtensionManagerTest.java27 import android.hardware.automotive.vehicle.V2_0.StatusCode;
305 return StatusCode.OK; in set()
332 cb.onValues(StatusCode.OK, result); in get()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/vhal/
DVehicleHalFragment.java22 import android.hardware.automotive.vehicle.V2_0.StatusCode;
142 if (status == StatusCode.OK) { in getValue()
/packages/services/Car/computepipe/tests/runner/graph/
DGrpcGraphTest.cpp146 return ::grpc::Status(::grpc::StatusCode::ABORTED, "Connection lost"); in ObserveOutputStream()