Home
last modified time | relevance | path

Searched refs:Status (Results 1 – 25 of 31) sorted by relevance

12

/device/google/coral/usb/
DUsbGadget.cpp51 mCurrentUsbFunctionsApplied ? Status::FUNCTIONS_APPLIED : Status::FUNCTIONS_NOT_APPLIED); in getCurrentUsbFunctions()
58 V1_0::Status UsbGadget::tearDownGadget() { in tearDownGadget()
59 if (resetGadget() != Status::SUCCESS) in tearDownGadget()
60 return Status::ERROR; in tearDownGadget()
67 return Status::SUCCESS; in tearDownGadget()
70 static V1_0::Status validateAndSetVidPid(uint64_t functions) { in validateAndSetVidPid()
71 V1_0::Status ret = Status::SUCCESS; in validateAndSetVidPid()
81 ret = Status::CONFIGURATION_NOT_SUPPORTED; in validateAndSetVidPid()
93 ret = Status::CONFIGURATION_NOT_SUPPORTED; in validateAndSetVidPid()
109 ret = Status::CONFIGURATION_NOT_SUPPORTED; in validateAndSetVidPid()
[all …]
DUsb.cpp97 Status queryMoistureDetectionStatus(hidl_vec<PortStatus> *currentPortStatus_1_2) { in queryMoistureDetectionStatus()
110 return Status::ERROR; in queryMoistureDetectionStatus()
116 return Status::ERROR; in queryMoistureDetectionStatus()
132 return Status::SUCCESS; in queryMoistureDetectionStatus()
342 portName, newRole, roleSwitch ? Status::SUCCESS : Status::ERROR); in switchRole()
354 Status getAccessoryConnected(const std::string &portName, std::string *accessory) { in getAccessoryConnected()
359 return Status::ERROR; in getAccessoryConnected()
362 return Status::SUCCESS; in getAccessoryConnected()
365 Status getCurrentRoleHelper(const std::string &portName, bool connected, PortRoleType type, in getCurrentRoleHelper()
383 return Status::ERROR; in getCurrentRoleHelper()
[all …]
DUsbGadget.h83 Status tearDownGadget();
84 Status setupFunctions(uint64_t functions, const sp<IUsbGadgetCallback> &callback,
/device/google/coral/vibrator/
DVibrator.cpp42 using Status = ::android::hardware::vibrator::V1_0::Status; typedef
115 Return<Status> Vibrator::on(uint32_t timeoutMs, uint32_t effectIndex) { in on()
120 return Status::OK; in on()
124 Return<Status> Vibrator::on(uint32_t timeoutMs) { in on()
136 Return<Status> Vibrator::off() { in off()
141 return Status::UNKNOWN_ERROR; in off()
143 return Status::OK; in off()
151 Return<Status> Vibrator::setAmplitude(uint8_t amplitude) { in setAmplitude()
154 return Status::BAD_VALUE; in setAmplitude()
160 return Status::UNSUPPORTED_OPERATION; in setAmplitude()
[all …]
DVibrator.h116 using Status = ::android::hardware::vibrator::V1_0::Status; variable
117 Return<Status> on(uint32_t timeoutMs) override;
118 Return<Status> off() override;
120 Return<Status> setAmplitude(uint8_t amplitude) override;
124 Return<Status> setExternalControl(bool enabled) override;
139 Return<Status> on(uint32_t timeoutMs, uint32_t effectIndex);
143 Return<Status> setEffectAmplitude(uint8_t amplitude, uint8_t maximum);
144 Return<Status> setGlobalAmplitude(bool set);
146 Return<Status> getSimpleDetails(Effect effect, EffectStrength strength, uint32_t *outTimeMs,
149 Return<Status> getCompoundDetails(Effect effect, EffectStrength strength, uint32_t *outTimeMs,
[all …]
/device/google/wahoo/usb/
DUsbGadget.cpp218 ? Status::FUNCTIONS_APPLIED in getCurrentUsbFunctions()
219 : Status::FUNCTIONS_NOT_APPLIED); in getCurrentUsbFunctions()
227 V1_0::Status UsbGadget::tearDownGadget() { in tearDownGadget()
233 if (!WriteStringToFile("0", DEVICE_CLASS_PATH)) return Status::ERROR; in tearDownGadget()
235 if (!WriteStringToFile("0", DEVICE_SUB_CLASS_PATH)) return Status::ERROR; in tearDownGadget()
237 if (!WriteStringToFile("0", DEVICE_PROTOCOL_PATH)) return Status::ERROR; in tearDownGadget()
239 if (!WriteStringToFile("0", DESC_USE_PATH)) return Status::ERROR; in tearDownGadget()
241 if (unlinkFunctions(CONFIG_PATH)) return Status::ERROR; in tearDownGadget()
258 return Status::SUCCESS; in tearDownGadget()
274 static V1_0::Status setVidPid(const char *vid, const char *pid) { in setVidPid()
[all …]
DUsb.cpp285 roleSwitch ? Status::SUCCESS : Status::ERROR); in switchRole()
297 Status getAccessoryConnected(const std::string &portName, std::string *accessory) { in getAccessoryConnected()
304 return Status::ERROR; in getAccessoryConnected()
307 return Status::SUCCESS; in getAccessoryConnected()
310 Status getCurrentRoleHelper(const std::string &portName, bool connected, in getCurrentRoleHelper()
328 return Status::ERROR; in getCurrentRoleHelper()
331 if (!connected) return Status::SUCCESS; in getCurrentRoleHelper()
334 if (getAccessoryConnected(portName, &accessory) != Status::SUCCESS) { in getCurrentRoleHelper()
335 return Status::ERROR; in getCurrentRoleHelper()
339 return Status::SUCCESS; in getCurrentRoleHelper()
[all …]
DUsbGadget.h88 Status tearDownGadget();
89 Status setupFunctions(uint64_t functions,
/device/google/bonito/usb/
DUsbGadget.cpp234 ? Status::FUNCTIONS_APPLIED in getCurrentUsbFunctions()
235 : Status::FUNCTIONS_NOT_APPLIED); in getCurrentUsbFunctions()
243 V1_0::Status UsbGadget::tearDownGadget() { in tearDownGadget()
249 if (!WriteStringToFile("0", DEVICE_CLASS_PATH)) return Status::ERROR; in tearDownGadget()
251 if (!WriteStringToFile("0", DEVICE_SUB_CLASS_PATH)) return Status::ERROR; in tearDownGadget()
253 if (!WriteStringToFile("0", DEVICE_PROTOCOL_PATH)) return Status::ERROR; in tearDownGadget()
255 if (!WriteStringToFile("0", DESC_USE_PATH)) return Status::ERROR; in tearDownGadget()
257 if (unlinkFunctions(CONFIG_PATH)) return Status::ERROR; in tearDownGadget()
283 return Status::SUCCESS; in tearDownGadget()
299 static V1_0::Status setVidPid(const char *vid, const char *pid) { in setVidPid()
[all …]
DUsb.cpp259 roleSwitch ? Status::SUCCESS : Status::ERROR); in switchRole()
271 Status getAccessoryConnected(const std::string &portName, std::string *accessory) { in getAccessoryConnected()
278 return Status::ERROR; in getAccessoryConnected()
281 return Status::SUCCESS; in getAccessoryConnected()
284 Status getCurrentRoleHelper(const std::string &portName, bool connected, in getCurrentRoleHelper()
302 return Status::ERROR; in getCurrentRoleHelper()
305 if (!connected) return Status::SUCCESS; in getCurrentRoleHelper()
308 if (getAccessoryConnected(portName, &accessory) != Status::SUCCESS) { in getCurrentRoleHelper()
309 return Status::ERROR; in getCurrentRoleHelper()
313 return Status::SUCCESS; in getCurrentRoleHelper()
[all …]
DUsbGadget.h90 Status tearDownGadget();
91 Status setupFunctions(uint64_t functions,
/device/google/crosshatch/usb/
DUsbGadget.cpp234 ? Status::FUNCTIONS_APPLIED in getCurrentUsbFunctions()
235 : Status::FUNCTIONS_NOT_APPLIED); in getCurrentUsbFunctions()
243 V1_0::Status UsbGadget::tearDownGadget() { in tearDownGadget()
249 if (!WriteStringToFile("0", DEVICE_CLASS_PATH)) return Status::ERROR; in tearDownGadget()
251 if (!WriteStringToFile("0", DEVICE_SUB_CLASS_PATH)) return Status::ERROR; in tearDownGadget()
253 if (!WriteStringToFile("0", DEVICE_PROTOCOL_PATH)) return Status::ERROR; in tearDownGadget()
255 if (!WriteStringToFile("0", DESC_USE_PATH)) return Status::ERROR; in tearDownGadget()
257 if (unlinkFunctions(CONFIG_PATH)) return Status::ERROR; in tearDownGadget()
283 return Status::SUCCESS; in tearDownGadget()
299 static V1_0::Status setVidPid(const char *vid, const char *pid) { in setVidPid()
[all …]
DUsb.cpp261 roleSwitch ? Status::SUCCESS : Status::ERROR); in switchRole()
273 Status getAccessoryConnected(const std::string &portName, std::string *accessory) { in getAccessoryConnected()
280 return Status::ERROR; in getAccessoryConnected()
283 return Status::SUCCESS; in getAccessoryConnected()
286 Status getCurrentRoleHelper(const std::string &portName, bool connected, in getCurrentRoleHelper()
304 return Status::ERROR; in getCurrentRoleHelper()
307 if (!connected) return Status::SUCCESS; in getCurrentRoleHelper()
310 if (getAccessoryConnected(portName, &accessory) != Status::SUCCESS) { in getCurrentRoleHelper()
311 return Status::ERROR; in getCurrentRoleHelper()
315 return Status::SUCCESS; in getCurrentRoleHelper()
[all …]
DUsbGadget.h90 Status tearDownGadget();
91 Status setupFunctions(uint64_t functions,
/device/google/wahoo/vibrator/
DVibrator.cpp64 using Status = ::android::hardware::vibrator::V1_0::Status; typedef
94 Return<Status> Vibrator::on(uint32_t timeoutMs, bool forceOpenLoop, bool isWaveform) { in on()
107 return Status::UNKNOWN_ERROR; in on()
119 return Status::UNKNOWN_ERROR; in on()
122 return Status::OK; in on()
126 Return<Status> Vibrator::on(uint32_t timeoutMs) { in on()
130 Return<Status> Vibrator::off() { in off()
134 return Status::UNKNOWN_ERROR; in off()
136 return Status::OK; in off()
143 Return<Status> Vibrator::setAmplitude(uint8_t amplitude) { in setAmplitude()
[all …]
DVibrator.h38 using Status = ::android::hardware::vibrator::V1_0::Status; variable
39 Return<Status> on(uint32_t timeoutMs) override;
40 Return<Status> off() override;
42 Return<Status> setAmplitude(uint8_t amplitude) override;
52 Return<Status> on(uint32_t timeoutMs, bool forceOpenLoop, bool isWaveform);
/device/google/bonito/vibrator/
DVibrator.cpp67 using Status = ::android::hardware::vibrator::V1_0::Status; typedef
87 Return<Status> Vibrator::on(uint32_t timeoutMs, bool isWaveform) { in on()
93 return Status::UNKNOWN_ERROR; in on()
111 return Status::UNKNOWN_ERROR; in on()
114 return Status::OK; in on()
118 Return<Status> Vibrator::on(uint32_t timeoutMs) { in on()
122 Return<Status> Vibrator::off() { in off()
126 return Status::UNKNOWN_ERROR; in off()
128 return Status::OK; in off()
135 Return<Status> Vibrator::setAmplitude(uint8_t amplitude) { in setAmplitude()
[all …]
DVibrator.h51 using Status = ::android::hardware::vibrator::V1_0::Status; variable
52 Return<Status> on(uint32_t timeoutMs) override;
53 Return<Status> off() override;
55 Return<Status> setAmplitude(uint8_t amplitude) override;
65 Return<Status> on(uint32_t timeoutMs, bool isWaveform);
/device/google/crosshatch/vibrator/
DVibrator.cpp39 using Status = ::android::hardware::vibrator::V1_0::Status; typedef
112 Return<Status> Vibrator::on(uint32_t timeoutMs, uint32_t effectIndex) { in on()
117 return Status::OK; in on()
122 Return<Status> Vibrator::on(uint32_t timeoutMs) { in on()
126 Return<Status> Vibrator::off() { in off()
130 return Status::UNKNOWN_ERROR; in off()
132 return Status::OK; in off()
139 Return<Status> Vibrator::setAmplitude(uint8_t amplitude) { in setAmplitude()
142 return Status::BAD_VALUE; in setAmplitude()
150 return Status::UNKNOWN_ERROR; in setAmplitude()
[all …]
DVibrator.h36 using Status = ::android::hardware::vibrator::V1_0::Status; variable
37 Return<Status> on(uint32_t timeoutMs) override;
38 Return<Status> off() override;
40 Return<Status> setAmplitude(uint8_t amplitude) override;
50 Return<Status> on(uint32_t timeoutMs, uint32_t effectIndex);
/device/google/coral/powerstats/
DRailDataProvider.cpp174 Status RailDataProvider::parseIioEnergyNodes() { in parseIioEnergyNodes()
175 Status ret = Status::SUCCESS; in parseIioEnergyNodes()
177 return Status::NOT_SUPPORTED; in parseIioEnergyNodes()
183 ret = Status::FILESYSTEM_ERROR; in parseIioEnergyNodes()
203 Status ret = Status::SUCCESS; in getRailInfo()
208 _hidl_cb(rInfo, Status::NOT_SUPPORTED); in getRailInfo()
226 Status ret = parseIioEnergyNodes(); in getEnergyData()
228 if (ret != Status::SUCCESS) { in getEnergyData()
242 ret = Status::INVALID_INPUT; in getEnergyData()
259 0, 0, Status::INSUFFICIENT_RESOURCES); in streamEnergyData()
[all …]
/device/linaro/hikey/power/
DPower.cpp42 using ::android::hardware::power::V1_0::Status;
71 _hidl_cb(states, Status::SUCCESS); in getPlatformLowPowerStats()
83 _hidl_cb(subsystems, Status::SUCCESS); in getSubsystemLowPowerStats()
/device/google/coral/vibrator/bench/
Dbenchmark.cpp32 using ::android::hardware::vibrator::V1_0::Status;
149 [&](Status status, uint32_t /*lengthMs*/) { in __anon20d80d0d0102()
150 if (status == Status::UNSUPPORTED_OPERATION) { in __anon20d80d0d0102()
161 [](Status /*status*/, uint32_t /*lengthMs*/) {}); in __anon20d80d0d0202() argument
/device/google/coral/vibrator/tests/
Dtest-vibrator.cpp36 using ::android::hardware::vibrator::V1_0::Status;
272 EXPECT_EQ(Status::OK, mVibrator->on(duration)); in TEST_F()
279 EXPECT_EQ(Status::OK, mVibrator->off()); in TEST_F()
349 EXPECT_EQ(Status::OK, mVibrator->setAmplitude(amplitude)); in TEST_F()
356 EXPECT_EQ(Status::UNSUPPORTED_OPERATION, mVibrator->setAmplitude(1)); in TEST_F()
379 EXPECT_EQ(Status::OK, mVibrator->setExternalControl(true)); in TEST_F()
386 EXPECT_EQ(Status::OK, mVibrator->setExternalControl(false)); in TEST_F()
438 mVibrator->perform_1_3(effect, strength, [&](Status status, uint32_t lengthMs) { in TEST_P()
440 EXPECT_EQ(Status::OK, status); in TEST_P()
443 EXPECT_EQ(Status::UNSUPPORTED_OPERATION, status); in TEST_P()
/device/linaro/hikey/bluetooth/
Dbluetooth_hci.cc45 cb->initializationComplete(Status::INITIALIZATION_ERROR); in initialize()
82 cb->initializationComplete(Status::SUCCESS); in initialize()

12