Lines Matching refs:functions
77 static V1_0::Status validateAndSetVidPid(uint64_t functions) { in validateAndSetVidPid() argument
80 switch (functions) { in validateAndSetVidPid()
134 V1_0::Status UsbGadget::setupFunctions(uint64_t functions, in setupFunctions() argument
140 if (addGenericAndroidFunctions(&monitorFfs, functions, &ffsEnabled, &i) != in setupFunctions()
144 if ((functions & V1_0::GadgetFunction::ADB) != 0) { in setupFunctions()
153 if (callback) callback->setCurrentUsbFunctionsCb(functions, V1_0::Status::SUCCESS); in setupFunctions()
168 functions, pullup ? V1_0::Status::SUCCESS : V1_0::Status::ERROR); in setupFunctions()
175 Return<void> UsbGadget::setCurrentUsbFunctions(uint64_t functions, in setCurrentUsbFunctions() argument
180 mCurrentUsbFunctions = functions; in setCurrentUsbFunctions()
194 if (functions == static_cast<uint64_t>(V1_0::GadgetFunction::NONE)) { in setCurrentUsbFunctions()
196 Return<void> ret = callback->setCurrentUsbFunctionsCb(functions, V1_0::Status::SUCCESS); in setCurrentUsbFunctions()
202 status = validateAndSetVidPid(functions); in setCurrentUsbFunctions()
208 status = setupFunctions(functions, callback, timeout); in setCurrentUsbFunctions()
219 Return<void> ret = callback->setCurrentUsbFunctionsCb(functions, status); in setCurrentUsbFunctions()