Home
last modified time | relevance | path

Searched refs:readFile (Results 1 – 13 of 13) sorted by relevance

/device/google/coral/usb/
DUsb.cpp58 int32_t readFile(const std::string &filename, std::string *contents) { in readFile() function
91 if ((ret != EOF) && !readFile(filename, &written) && written == contents) in writeFile()
108 if (readFile(kEnabledPath, &enabled)) { in queryMoistureDetectionStatus()
114 if (readFile(kDetectedPath, &status)) { in queryMoistureDetectionStatus()
323 if ((ret != EOF) && !readFile(filename, &written)) { in switchRole()
357 if (readFile(filename, accessory)) { in getAccessoryConnected()
402 if (readFile(filename, &roleName)) { in getCurrentRoleHelper()
465 if (!readFile(filename, &supportsPD)) { in canSwitchRoleHelper()
/device/google/wahoo/usb/
DUsb.cpp52 static int32_t readFile(const std::string &filename, std::string *contents) { in readFile() function
265 if ((ret != EOF) && !readFile(filename, &written)) { in switchRole()
301 if (readFile(filename, accessory)) { in getAccessoryConnected()
346 if (readFile(filename, &roleName)) { in getCurrentRoleHelper()
411 if (!readFile(filename, &supportsPD)) { in canSwitchRoleHelper()
763 readFile(devicePath + "/idVendor", &deviceIdVendor); in canUsbDeviceAutoSuspend()
764 readFile(devicePath + "/idProduct", &deviceIdProduct); in canUsbDeviceAutoSuspend()
/device/google/contexthub/lib/include/nanohub/
Dnanoapp.h29 bool readFile(void *dst, uint32_t len, const char *fileName);
/device/google/cuttlefish/guest/hals/camera/
DVSoCEmulatedCameraHotplugThread.cpp83 int EmulatedCameraHotplugThread::readFile(String8 /*filePath*/) const { in readFile() function in android::EmulatedCameraHotplugThread
DEmulatedCameraHotplugThread.h58 int readFile(String8 filePath) const;
DEmulatedCameraHotplugThread.cpp177 int newStatus = readFile(filePath); in threadLoop()
314 int EmulatedCameraHotplugThread::readFile(String8 filePath) const { in readFile() function in android::EmulatedCameraHotplugThread
/device/generic/goldfish/camera/
DEmulatedCameraHotplugThread.h61 int readFile(const String8& filePath) const;
DEmulatedCameraHotplugThread.cpp180 int newStatus = readFile(filePath); in threadLoop()
300 int EmulatedCameraHotplugThread::readFile(const String8& filePath) const { in readFile() function in android::EmulatedCameraHotplugThread
/device/google/bonito/usb/
DUsb.cpp47 int32_t readFile(const std::string &filename, std::string *contents) { in readFile() function
239 if ((ret != EOF) && !readFile(filename, &written)) { in switchRole()
275 if (readFile(filename, accessory)) { in getAccessoryConnected()
320 if (readFile(filename, &roleName)) { in getCurrentRoleHelper()
385 if (!readFile(filename, &supportsPD)) { in canSwitchRoleHelper()
/device/google/crosshatch/usb/
DUsb.cpp49 int32_t readFile(const std::string &filename, std::string *contents) { in readFile() function
241 if ((ret != EOF) && !readFile(filename, &written)) { in switchRole()
277 if (readFile(filename, accessory)) { in getAccessoryConnected()
322 if (readFile(filename, &roleName)) { in getCurrentRoleHelper()
387 if (!readFile(filename, &supportsPD)) { in canSwitchRoleHelper()
/device/google/contexthub/lib/nanohub/
Dnanoapp.c46 bool readFile(void *dst, uint32_t len, const char *fileName) in readFile() function
/device/google/contexthub/util/nanoapp_sign/
Dnanoapp_sign.c503 if (!readFile(rsa.exponent, sizeof(rsa.exponent), keyPvtFile)) in main()
512 if (!readFile(rsa.modulus, sizeof(rsa.modulus), keyPubFile)) in main()
/device/google/contexthub/util/nanoapp_encr/
Dnanoapp_encr.c329 if (!readFile(key, sizeof(key), keyFile)) in main()