Lines Matching refs:functions
330 static V1_0::Status validateAndSetVidPid(uint64_t functions) { in validateAndSetVidPid() argument
334 switch (functions) { in validateAndSetVidPid()
447 uint64_t functions, const sp<V1_0::IUsbGadgetCallback> &callback, in setupFunctions() argument
461 if (((functions & GadgetFunction::MTP) != 0)) { in setupFunctions()
475 } else if (((functions & GadgetFunction::PTP) != 0)) { in setupFunctions()
492 if ((functions & GadgetFunction::MIDI) != 0) { in setupFunctions()
497 if ((functions & GadgetFunction::ACCESSORY) != 0) { in setupFunctions()
502 if ((functions & GadgetFunction::AUDIO_SOURCE) != 0) { in setupFunctions()
507 if ((functions & GadgetFunction::RNDIS) != 0) { in setupFunctions()
527 if ((functions & GadgetFunction::ADB) != 0) { in setupFunctions()
544 callback->setCurrentUsbFunctionsCb(functions, Status::SUCCESS); in setupFunctions()
585 functions, gadgetPullup ? Status::SUCCESS : Status::ERROR); in setupFunctions()
594 uint64_t functions, const sp<V1_0::IUsbGadgetCallback> &callback, in setCurrentUsbFunctions() argument
598 mCurrentUsbFunctions = functions; in setCurrentUsbFunctions()
612 if (functions == static_cast<uint64_t>(GadgetFunction::NONE)) { in setCurrentUsbFunctions()
615 callback->setCurrentUsbFunctionsCb(functions, Status::SUCCESS); in setCurrentUsbFunctions()
622 status = validateAndSetVidPid(functions); in setCurrentUsbFunctions()
628 status = setupFunctions(functions, callback, timeout); in setCurrentUsbFunctions()
639 Return<void> ret = callback->setCurrentUsbFunctionsCb(functions, status); in setCurrentUsbFunctions()