Lines Matching refs:ERROR
78 if (!WriteStringToFile(vid, VENDOR_ID_PATH)) return Status::ERROR; in setVidPid()
80 if (!WriteStringToFile(pid, PRODUCT_ID_PATH)) return Status::ERROR; in setVidPid()
113 if (!WriteStringToFile("0", DEVICE_CLASS_PATH)) return Status::ERROR; in resetGadget()
115 if (!WriteStringToFile("0", DEVICE_SUB_CLASS_PATH)) return Status::ERROR; in resetGadget()
117 if (!WriteStringToFile("0", DEVICE_PROTOCOL_PATH)) return Status::ERROR; in resetGadget()
119 if (!WriteStringToFile("0", DESC_USE_PATH)) return Status::ERROR; in resetGadget()
121 if (unlinkFunctions(CONFIG_PATH)) return Status::ERROR; in resetGadget()
131 if (!WriteStringToFile("1", DESC_USE_PATH)) return Status::ERROR; in addGenericAndroidFunctions()
133 if (!monitorFfs->addInotifyFd("/dev/usb-ffs/mtp/")) return Status::ERROR; in addGenericAndroidFunctions()
135 if (linkFunction("ffs.mtp", (*functionCount)++)) return Status::ERROR; in addGenericAndroidFunctions()
144 if (!WriteStringToFile("1", DESC_USE_PATH)) return Status::ERROR; in addGenericAndroidFunctions()
146 if (!monitorFfs->addInotifyFd("/dev/usb-ffs/ptp/")) return Status::ERROR; in addGenericAndroidFunctions()
148 if (linkFunction("ffs.ptp", (*functionCount)++)) return Status::ERROR; in addGenericAndroidFunctions()
158 if (linkFunction("midi.gs5", (*functionCount)++)) return Status::ERROR; in addGenericAndroidFunctions()
163 if (linkFunction("accessory.gs2", (*functionCount)++)) return Status::ERROR; in addGenericAndroidFunctions()
168 if (linkFunction("audio_source.gs3", (*functionCount)++)) return Status::ERROR; in addGenericAndroidFunctions()
173 if (linkFunction("gsi.rndis", (*functionCount)++)) return Status::ERROR; in addGenericAndroidFunctions()
181 if (!monitorFfs->addInotifyFd("/dev/usb-ffs/adb/")) return Status::ERROR; in addAdb()
183 if (linkFunction("ffs.adb", (*functionCount)++)) return Status::ERROR; in addAdb()