Lines Matching refs:fd
84 int fd = open(SENSOR_SERVICE_HMAC_KEY_FILE, O_RDONLY|O_CLOEXEC);
85 if (fd != -1) {
86 int result = read(fd, sHmacGlobalKey, sizeof(sHmacGlobalKey));
87 close(fd);
102 fd = open(SENSOR_SERVICE_HMAC_KEY_FILE, O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC,
104 if (fd != -1) {
105 int result = write(fd, sHmacGlobalKey, sizeof(sHmacGlobalKey));
106 close(fd);
304 status_t SensorService::dump(int fd, const Vector<String16>& args) {
453 write(fd, result.string(), result.size());