Lines Matching refs:functions
154 Status UsbGadget::setupFunctions(long functions, in setupFunctions() argument
162 if ((functions & GadgetFunction::ADB) != 0) { in setupFunctions()
166 if ((functions & GadgetFunction::NCM) != 0) { in setupFunctions()
174 callback->setCurrentUsbFunctionsCb(functions, Status::SUCCESS, in_transactionId); in setupFunctions()
204 ScopedAStatus UsbGadget::setCurrentUsbFunctions(int64_t functions, in setCurrentUsbFunctions() argument
214 mCurrentUsbFunctions = functions; in setCurrentUsbFunctions()
236 if (functions == GadgetFunction::NONE) { in setCurrentUsbFunctions()
240 …ScopedAStatus ret = callback->setCurrentUsbFunctionsCb(functions, Status::SUCCESS, in_transactionI… in setCurrentUsbFunctions()
247 status = setupFunctions(functions, callback, timeoutMs, in_transactionId); in setCurrentUsbFunctions()
252 if (functions & GadgetFunction::NCM) { in setCurrentUsbFunctions()
270 if (functions & GadgetFunction::ACCESSORY && in setCurrentUsbFunctions()
296 ScopedAStatus ret = callback->setCurrentUsbFunctionsCb(functions, status, in_transactionId); in setCurrentUsbFunctions()