Lines Matching refs:Status
50 mCurrentUsbFunctions, mCurrentUsbFunctionsApplied ? Status::FUNCTIONS_APPLIED in getCurrentUsbFunctions()
51 : Status::FUNCTIONS_NOT_APPLIED); in getCurrentUsbFunctions()
101 V1_0::Status UsbGadget::tearDownGadget() { in tearDownGadget()
102 if (resetGadget() != V1_0::Status::SUCCESS) return V1_0::Status::ERROR; in tearDownGadget()
109 return V1_0::Status::SUCCESS; in tearDownGadget()
112 Return<Status> UsbGadget::reset() { in reset()
115 return Status::ERROR; in reset()
122 return Status::ERROR; in reset()
125 return Status::SUCCESS; in reset()
128 static V1_0::Status validateAndSetVidPid(uint64_t functions) { in validateAndSetVidPid()
129 V1_0::Status ret = V1_0::Status::SUCCESS; in validateAndSetVidPid()
186 ret = V1_0::Status::CONFIGURATION_NOT_SUPPORTED; in validateAndSetVidPid()
191 V1_0::Status UsbGadget::setupFunctions(uint64_t functions, in setupFunctions()
198 V1_0::Status::SUCCESS) in setupFunctions()
199 return V1_0::Status::ERROR; in setupFunctions()
203 if (addAdb(&monitorFfs, &i) != V1_0::Status::SUCCESS) return V1_0::Status::ERROR; in setupFunctions()
208 if (!WriteStringToFile(kGadgetName, PULLUP_PATH)) return V1_0::Status::ERROR; in setupFunctions()
210 if (callback) callback->setCurrentUsbFunctionsCb(functions, V1_0::Status::SUCCESS); in setupFunctions()
211 return V1_0::Status::SUCCESS; in setupFunctions()
225 functions, pullup ? V1_0::Status::SUCCESS : V1_0::Status::ERROR); in setupFunctions()
229 return V1_0::Status::SUCCESS; in setupFunctions()
241 V1_0::Status status = tearDownGadget(); in setCurrentUsbFunctions()
242 if (status != V1_0::Status::SUCCESS) { in setCurrentUsbFunctions()
253 Return<void> ret = callback->setCurrentUsbFunctionsCb(functions, V1_0::Status::SUCCESS); in setCurrentUsbFunctions()
261 if (status != V1_0::Status::SUCCESS) { in setCurrentUsbFunctions()
266 if (status != V1_0::Status::SUCCESS) { in setCurrentUsbFunctions()