Lines Matching refs:functions
305 static V1_0::Status validateAndSetVidPid(uint64_t functions) { in validateAndSetVidPid() argument
309 switch (functions) { in validateAndSetVidPid()
422 uint64_t functions, const sp<V1_0::IUsbGadgetCallback> &callback, in setupFunctions() argument
436 if (((functions & GadgetFunction::MTP) != 0)) { in setupFunctions()
450 } else if (((functions & GadgetFunction::PTP) != 0)) { in setupFunctions()
467 if ((functions & GadgetFunction::MIDI) != 0) { in setupFunctions()
472 if ((functions & GadgetFunction::ACCESSORY) != 0) { in setupFunctions()
477 if ((functions & GadgetFunction::AUDIO_SOURCE) != 0) { in setupFunctions()
482 if ((functions & GadgetFunction::RNDIS) != 0) { in setupFunctions()
502 if ((functions & GadgetFunction::ADB) != 0) { in setupFunctions()
519 callback->setCurrentUsbFunctionsCb(functions, Status::SUCCESS); in setupFunctions()
560 functions, gadgetPullup ? Status::SUCCESS : Status::ERROR); in setupFunctions()
569 uint64_t functions, const sp<V1_0::IUsbGadgetCallback> &callback, in setCurrentUsbFunctions() argument
573 mCurrentUsbFunctions = functions; in setCurrentUsbFunctions()
585 if (functions == static_cast<uint64_t>(GadgetFunction::NONE)) { in setCurrentUsbFunctions()
588 callback->setCurrentUsbFunctionsCb(functions, Status::SUCCESS); in setCurrentUsbFunctions()
595 status = validateAndSetVidPid(functions); in setCurrentUsbFunctions()
601 status = setupFunctions(functions, callback, timeout); in setCurrentUsbFunctions()
612 Return<void> ret = callback->setCurrentUsbFunctionsCb(functions, status); in setCurrentUsbFunctions()