Home
last modified time | relevance | path

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

12

/hardware/interfaces/automotive/vehicle/2.0/default/tests/
DVehicleHalManager_test.cpp67 StatusCode* outStatus) override { in get()
68 *outStatus = StatusCode::OK; in get()
76 *outStatus = StatusCode::TRY_AGAIN; in get()
84 *outStatus = StatusCode::INVALID_ARG; in get()
90 if (*outStatus == StatusCode::OK && pValue.get() != nullptr) { in get()
99 StatusCode set(const VehiclePropValue& propValue) override { in set()
102 return StatusCode::TRY_AGAIN; in set()
105 return StatusCode::OK; in set()
108 StatusCode subscribe(int32_t /* property */, in subscribe()
110 return StatusCode::OK; in subscribe()
[all …]
DSubscriptionManager_test.cpp105 ASSERT_EQ(StatusCode::OK, in TEST_F()
107 ASSERT_EQ(StatusCode::OK, in TEST_F()
117 ASSERT_EQ(StatusCode::OK, in TEST_F()
132 ASSERT_EQ(StatusCode::OK, manager.addOrUpdateSubscription(1, cb1, subscrToProp1, in TEST_F()
142 StatusCode::OK, in TEST_F()
156 ASSERT_EQ(StatusCode::OK, in TEST_F()
158 ASSERT_EQ(StatusCode::OK, in TEST_F()
160 ASSERT_EQ(StatusCode::OK, in TEST_F()
/hardware/interfaces/automotive/vehicle/2.0/default/tests/fuzzer/
DVehicleManager_fuzzer.h46 StatusCode* outStatus) override;
48 StatusCode set(const VehiclePropValue& propValue) override { in set()
51 return StatusCode::TRY_AGAIN; in set()
55 return StatusCode::OK; in set()
58 StatusCode subscribe(int32_t /* property */, float /* sampleRate */) override { in subscribe()
59 return StatusCode::OK; in subscribe()
62 StatusCode unsubscribe(int32_t /* property */) override { return StatusCode::OK; } in unsubscribe()
66 void sendHalError(StatusCode error, int32_t property, int32_t areaId) { in sendHalError()
104 StatusCode mActualStatusCode = StatusCode::OK;
DVehicleManager_fuzzer.cpp42 using ::android::hardware::automotive::vehicle::V2_0::StatusCode;
105 const VehiclePropValue& requestedPropValue, StatusCode* outStatus) { in get()
112 *outStatus = StatusCode::OK; in get()
120 *outStatus = StatusCode::TRY_AGAIN; in get()
139 if (*outStatus == StatusCode::OK && pValue.get() != nullptr) { in get()
177 []([[maybe_unused]] StatusCode status, in invokePropConfigs()
181 []([[maybe_unused]] StatusCode status, in invokePropConfigs()
228 mHal->sendHalError(StatusCode::TRY_AGAIN, in invokeSubscribe()
355 StatusCode refStatus; in invokeGet()
358 [&refStatus, &refValue](StatusCode status, const VehiclePropValue& value) { in invokeGet()
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
DEmulatedVehicleHal.h57 StatusCode* outStatus) override;
58 StatusCode set(const VehiclePropValue& propValue) override;
59 StatusCode subscribe(int32_t property, float sampleRate) override;
60 StatusCode unsubscribe(int32_t property) override;
73 StatusCode handleGenerateFakeDataRequest(const VehiclePropValue& request);
81 StatusCode fillObd2FreezeFrame(const VehiclePropValue& requestedPropValue,
83 StatusCode fillObd2DtcInfo(VehiclePropValue* outValue);
84 StatusCode clearObd2FreezeFrames(const VehiclePropValue& propValue);
DEmulatedVehicleHal.cpp138 const VehiclePropValue& requestedPropValue, StatusCode* outStatus) { in get()
160 *outStatus = StatusCode(ret.error().code()); in get()
166 *outStatus = StatusCode::OK; in get()
169 *outStatus = StatusCode::INTERNAL_ERROR; in get()
181 *outStatus = StatusCode::INVALID_ARG; in get()
183 *outStatus = StatusCode::OK; in get()
185 *outStatus = StatusCode::TRY_AGAIN; in get()
199 StatusCode EmulatedVehicleHal::set(const VehiclePropValue& propValue) { in set()
219 return StatusCode::NOT_AVAILABLE; in set()
229 return StatusCode::OK; in set()
[all …]
DVehicleHalServer.cpp127 StatusCode VehicleHalServer::handleGenerateFakeDataRequest(const VehiclePropValue& request) { in handleGenerateFakeDataRequest()
134 return StatusCode::INVALID_ARG; in handleGenerateFakeDataRequest()
144 return StatusCode::INVALID_ARG; in handleGenerateFakeDataRequest()
148 return StatusCode::INVALID_ARG; in handleGenerateFakeDataRequest()
153 return StatusCode::INVALID_ARG; in handleGenerateFakeDataRequest()
164 return StatusCode::INVALID_ARG; in handleGenerateFakeDataRequest()
175 return StatusCode::INVALID_ARG; in handleGenerateFakeDataRequest()
185 return StatusCode::INVALID_ARG; in handleGenerateFakeDataRequest()
206 return StatusCode::INVALID_ARG; in handleGenerateFakeDataRequest()
209 return StatusCode::OK; in handleGenerateFakeDataRequest()
[all …]
DEmulatedVehicleConnector.cpp45 StatusCode EmulatedVehicleConnector::onSetProperty(const VehiclePropValue& value, in onSetProperty()
53 return StatusCode(ret.error().code()); in onSetProperty()
61 return StatusCode::OK; in onSetProperty()
DEmulatedUserHal.cpp47 return Error(static_cast<int>(StatusCode::INVALID_ARG)) in getRequestId()
55 return Error(static_cast<int>(StatusCode::INVALID_ARG)) in getSwitchUserMessageType()
93 return Error(static_cast<int>(StatusCode::INVALID_ARG)) in onSetProperty()
107 return Error(static_cast<int>(StatusCode::INVALID_ARG)) << "only supported on SET"; in onGetProperty()
112 return Error(static_cast<int>(StatusCode::INVALID_ARG)) << "not supported by User HAL"; in onGetProperty()
284 return Error(static_cast<int>(StatusCode::NOT_AVAILABLE)) << "not set by lshal"; in defaultUserIdentificationAssociation()
301 return Error(static_cast<int>(StatusCode::NOT_AVAILABLE)) in sendUserHalResponse()
306 return Error(static_cast<int>(StatusCode::INTERNAL_ERROR)) in sendUserHalResponse()
DEmulatedVehicleConnector.h43 StatusCode onSetProperty(const VehiclePropValue& value, bool updateStatus) override;
/hardware/interfaces/automotive/vehicle/2.0/vts/functional/
DVtsHalAutomotiveVehicleV2_0TargetTest.cpp56 Return<void> onPropertySetError(StatusCode /* errorCode */, int32_t /* propId */, in onPropertySetError() argument
105 StatusCode refStatus; in invokeGet()
109 [&refStatus, &refValue, &isCalled](StatusCode status, in invokeGet()
122 StatusCode mActualStatusCode;
147 properties, [&isCalled](StatusCode status, const hidl_vec<VehiclePropConfig>& cfgs) { in TEST_P()
148 ASSERT_EQ(StatusCode::OK, status); in TEST_P()
161 properties, [&isCalled](StatusCode status, const hidl_vec<VehiclePropConfig>& cfgs) { in TEST_P()
162 ASSERT_NE(StatusCode::OK, status); in TEST_P()
173 ASSERT_EQ(StatusCode::OK, mActualStatusCode); in TEST_P()
181 ASSERT_NE(StatusCode::OK, mActualStatusCode); in TEST_P()
[all …]
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
DVehicleHal.h39 StatusCode errorCode, int32_t property, int32_t areaId)>;
45 StatusCode* outStatus) = 0;
47 virtual StatusCode set(const VehiclePropValue& propValue) = 0;
58 virtual StatusCode subscribe(int32_t property,
66 virtual StatusCode unsubscribe(int32_t property) = 0;
114 void doHalPropertySetError(StatusCode errorCode, in doHalPropertySetError()
DObd2SensorStore.h40 StatusCode setIntegerSensor(DiagnosticIntegerSensorIndex index, int32_t value);
42 StatusCode setIntegerSensor(size_t index, int32_t value);
45 StatusCode setFloatSensor(DiagnosticFloatSensorIndex index, float value);
47 StatusCode setFloatSensor(size_t index, float value);
DVehicleHalManager.h69 Return<StatusCode> set(const VehiclePropValue& value) override;
70 Return<StatusCode> subscribe(const sp<IVehicleCallback>& callback,
72 Return<StatusCode> unsubscribe(const sp<IVehicleCallback>& callback,
89 void onHalPropertySetError(StatusCode errorCode, int32_t property,
DVehicleClient.h51 virtual StatusCode setProperty(const VehiclePropValue& value, bool updateStatus) = 0;
DVehicleServer.h49 virtual StatusCode onSetProperty(const VehiclePropValue& value, bool updateStatus) = 0;
DVehicleConnector.h66 StatusCode setProperty(const VehiclePropValue& value, bool updateStatus) override { in setProperty()
DSubscriptionManager.h104 StatusCode addOrUpdateSubscription(ClientId clientId,
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
DWatchdogClient.cpp110 StatusCode status = StatusCode::TRY_AGAIN; in isClientHealthy()
112 while (status == StatusCode::TRY_AGAIN) { in isClientHealthy()
114 [&propValue, &status](StatusCode s, const VehiclePropValue& v) { in isClientHealthy()
116 if (s == StatusCode::OK) { in isClientHealthy()
121 return status == StatusCode::OK; in isClientHealthy()
DObd2SensorStore.cpp65 StatusCode Obd2SensorStore::setIntegerSensor(DiagnosticIntegerSensorIndex index, int32_t value) { in setIntegerSensor()
68 StatusCode Obd2SensorStore::setFloatSensor(DiagnosticFloatSensorIndex index, float value) { in setFloatSensor()
72 StatusCode Obd2SensorStore::setIntegerSensor(size_t index, int32_t value) { in setIntegerSensor()
75 return StatusCode::OK; in setIntegerSensor()
78 StatusCode Obd2SensorStore::setFloatSensor(size_t index, float value) { in setFloatSensor()
81 return StatusCode::OK; in setFloatSensor()
DSubscriptionManager.cpp86 StatusCode SubscriptionManager::addOrUpdateSubscription( in addOrUpdateSubscription()
99 return StatusCode::INTERNAL_ERROR; in addOrUpdateSubscription()
117 return StatusCode::OK; in addOrUpdateSubscription()
/hardware/interfaces/automotive/vehicle/2.0/
DIVehicle.hal32 * StatusCode::INVALID_ARG, otherwise a list of vehicle property
33 * configurations with StatusCode::OK
36 generates (StatusCode status, vec<VehiclePropConfig> propConfigs);
51 * StatusCode::TRY_AGAIN.
54 generates (StatusCode status, VehiclePropValue propValue);
62 * data is not available yet this call must return StatusCode::TRY_AGAIN.
64 * StatusCode::NOT_AVAILABLE error if property is not powered on.
66 set(VehiclePropValue propValue) generates (StatusCode status);
79 generates (StatusCode status);
85 * must return StatusCode::INVALID_ARG.
[all …]
DIVehicleCallback.hal47 * client received StatusCode::OK from the IVehicle::set(...) this
51 * @param errorCode - any value from StatusCode enum.
56 oneway onPropertySetError(StatusCode errorCode,
/hardware/interfaces/wifi/supplicant/1.4/
DISupplicantStaIfaceCallback.hal23 import @1.0::ISupplicantStaIfaceCallback.StatusCode;
107 StatusCode statusCode;
/hardware/interfaces/wifi/supplicant/1.1/vts/functional/
Dsupplicant_sta_iface_hidl_test.cpp103 ISupplicantStaIfaceCallback::StatusCode /* statusCode */, in onAssociationRejected() argument

12