Lines Matching refs:functions
128 static V1_0::Status validateAndSetVidPid(uint64_t functions) { in validateAndSetVidPid() argument
131 switch (functions) { in validateAndSetVidPid()
191 V1_0::Status UsbGadget::setupFunctions(uint64_t functions, in setupFunctions() argument
197 if (addGenericAndroidFunctions(&monitorFfs, functions, &ffsEnabled, &i) != in setupFunctions()
201 if ((functions & V1_2::GadgetFunction::ADB) != 0) { in setupFunctions()
210 if (callback) callback->setCurrentUsbFunctionsCb(functions, V1_0::Status::SUCCESS); in setupFunctions()
225 functions, pullup ? V1_0::Status::SUCCESS : V1_0::Status::ERROR); in setupFunctions()
232 Return<void> UsbGadget::setCurrentUsbFunctions(uint64_t functions, in setCurrentUsbFunctions() argument
237 mCurrentUsbFunctions = functions; in setCurrentUsbFunctions()
251 if (functions == static_cast<uint64_t>(V1_2::GadgetFunction::NONE)) { in setCurrentUsbFunctions()
253 Return<void> ret = callback->setCurrentUsbFunctionsCb(functions, V1_0::Status::SUCCESS); in setCurrentUsbFunctions()
259 status = validateAndSetVidPid(functions); in setCurrentUsbFunctions()
265 status = setupFunctions(functions, callback, timeout); in setCurrentUsbFunctions()
276 Return<void> ret = callback->setCurrentUsbFunctionsCb(functions, status); in setCurrentUsbFunctions()