Home
last modified time | relevance | path

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

/device/google/contexthub/util/nanotool/
Dandroidcontexthub.cpp191 ContextHub::TransportResult AndroidContextHub::WriteEvent( in WriteEvent()
193 ContextHub::TransportResult result; in WriteEvent()
201 result = TransportResult::GeneralFailure; in WriteEvent()
204 result = TransportResult::GeneralFailure; in WriteEvent()
207 result = TransportResult::Success; in WriteEvent()
213 ContextHub::TransportResult AndroidContextHub::ReadEvent( in ReadEvent()
215 ContextHub::TransportResult result = TransportResult::GeneralFailure; in ReadEvent()
225 result = TransportResult::Canceled; in ReadEvent()
229 result = TransportResult::Timeout; in ReadEvent()
337 ContextHub::TransportResult AndroidContextHub::ReadEventFromFd( in ReadEventFromFd()
[all …]
Dcontexthub.cpp194 if (result == TransportResult::Success) { in EnableSensor()
221 if (result == TransportResult::Success) { in DisableSensor()
315 if (result != TransportResult::Success) { in CalibrateSingleSensor()
330 if (result != TransportResult::Success) { in CalibrateSingleSensor()
407 ContextHub::TransportResult ContextHub::ReadAppEvents( in ReadAppEvents()
411 TransportResult result; in ReadAppEvents()
417 return TransportResult::Timeout; in ReadAppEvents()
429 if (result == TransportResult::Success && event->IsAppToHostEvent()) { in ReadAppEvents()
434 if (result != TransportResult::Success) { in ReadAppEvents()
436 if (result != TransportResult::ParseFailure) { in ReadAppEvents()
[all …]
Dcontexthub.h182 enum class TransportResult { enum
212 TransportResult ReadAppEvents(std::function<bool(const AppToHostEvent&)> callback,
234 virtual TransportResult ReadEvent(std::vector<uint8_t>& response,
236 virtual TransportResult WriteEvent(const std::vector<uint8_t>& request) = 0;
244 TransportResult ReadEvent(std::unique_ptr<ReadEventResponse>* response,
246 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,