Lines Matching refs:ERROR

249   if (!WriteStringToFile("0", DEVICE_CLASS_PATH)) return Status::ERROR;  in tearDownGadget()
251 if (!WriteStringToFile("0", DEVICE_SUB_CLASS_PATH)) return Status::ERROR; in tearDownGadget()
253 if (!WriteStringToFile("0", DEVICE_PROTOCOL_PATH)) return Status::ERROR; in tearDownGadget()
255 if (!WriteStringToFile("0", DESC_USE_PATH)) return Status::ERROR; in tearDownGadget()
257 if (unlinkFunctions(CONFIG_PATH)) return Status::ERROR; in tearDownGadget()
300 if (!WriteStringToFile(vid, VENDOR_ID_PATH)) return Status::ERROR; in setVidPid()
302 if (!WriteStringToFile(pid, PRODUCT_ID_PATH)) return Status::ERROR; in setVidPid()
454 return Status::ERROR; in setupFunctions()
464 if (!WriteStringToFile("1", DESC_USE_PATH)) return Status::ERROR; in setupFunctions()
467 return Status::ERROR; in setupFunctions()
469 if (linkFunction("ffs.mtp", i++)) return Status::ERROR; in setupFunctions()
478 if (!WriteStringToFile("1", DESC_USE_PATH)) return Status::ERROR; in setupFunctions()
481 return Status::ERROR; in setupFunctions()
484 if (linkFunction("ffs.ptp", i++)) return Status::ERROR; in setupFunctions()
494 if (linkFunction("midi.gs5", i++)) return Status::ERROR; in setupFunctions()
499 if (linkFunction("accessory.gs2", i++)) return Status::ERROR; in setupFunctions()
504 if (linkFunction("audio_source.gs3", i++)) return Status::ERROR; in setupFunctions()
509 if (linkFunction("gsi.rndis", i++)) return Status::ERROR; in setupFunctions()
518 return Status::ERROR; in setupFunctions()
520 return Status::ERROR; in setupFunctions()
522 return Status::ERROR; in setupFunctions()
531 return Status::ERROR; in setupFunctions()
533 if (linkFunction("ffs.adb", i++)) return Status::ERROR; in setupFunctions()
541 if (!WriteStringToFile(GADGET_NAME, PULLUP_PATH)) return Status::ERROR; in setupFunctions()
551 return Status::ERROR; in setupFunctions()
557 return Status::ERROR; in setupFunctions()
560 if (addEpollFd(epollFd, inotifyFd) == -1) return Status::ERROR; in setupFunctions()
562 if (addEpollFd(epollFd, eventFd) == -1) return Status::ERROR; in setupFunctions()
585 functions, gadgetPullup ? Status::SUCCESS : Status::ERROR); in setupFunctions()