Home
last modified time | relevance | path

Searched refs:TransportResult (Results 1 – 4 of 4) sorted by relevance

/device/google/contexthub/util/nanotool/
Dcontexthub.cpp207 if (result == TransportResult::Success) { in EnableSensor()
234 if (result == TransportResult::Success) { in DisableSensor()
283 TransportResult result = WriteEvent(request); in PrintBridgeVersion()
284 if (result != TransportResult::Success) { in PrintBridgeVersion()
373 if (result != TransportResult::Success) { in CalibrateSingleSensor()
388 if (result != TransportResult::Success) { in CalibrateSingleSensor()
407 if (result != TransportResult::Success) { in TestSingleSensor()
422 if (result != TransportResult::Success) { in TestSingleSensor()
516 ContextHub::TransportResult ContextHub::ReadAppEvents( in ReadAppEvents()
520 TransportResult result; in ReadAppEvents()
[all …]
Dandroidcontexthub.cpp215 ContextHub::TransportResult AndroidContextHub::WriteEvent( in WriteEvent()
217 ContextHub::TransportResult result; in WriteEvent()
225 result = TransportResult::GeneralFailure; in WriteEvent()
228 result = TransportResult::GeneralFailure; in WriteEvent()
231 result = TransportResult::Success; in WriteEvent()
237 ContextHub::TransportResult AndroidContextHub::ReadEvent( in ReadEvent()
239 ContextHub::TransportResult result = TransportResult::GeneralFailure; in ReadEvent()
249 result = TransportResult::Canceled; in ReadEvent()
253 result = TransportResult::Timeout; in ReadEvent()
361 ContextHub::TransportResult AndroidContextHub::ReadEventFromFd( in ReadEventFromFd()
[all …]
Dcontexthub.h195 enum class TransportResult { enum
234 TransportResult ReadAppEvents(std::function<bool(const AppToHostEvent&)> callback,
256 virtual TransportResult ReadEvent(std::vector<uint8_t>& response,
258 virtual TransportResult WriteEvent(const std::vector<uint8_t>& request) = 0;
266 TransportResult ReadEvent(std::unique_ptr<ReadEventResponse>* response,
268 TransportResult WriteEvent(const WriteEventRequest& request);
Dandroidcontexthub.h43 ContextHub::TransportResult WriteEvent(
45 ContextHub::TransportResult ReadEvent(std::vector<uint8_t>& response,
61 ContextHub::TransportResult ReadEventFromFd(int fd,