Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 16 of 16) sorted by relevance

/device/lge/hammerhead/liblight/
Dlights.c67 int bytes = snprintf(buffer, sizeof(buffer), "%d\n", value); in write_int() local
68 int amt = write(fd, buffer, bytes); in write_int()
88 int bytes = snprintf(buffer, sizeof(buffer), "%d %d\n", on, off); in write_on_off() local
89 int amt = write(fd, buffer, bytes); in write_on_off()
/device/lge/bullhead/liblight/
Dlights.c67 int bytes = snprintf(buffer, sizeof(buffer), "%d\n", value); in write_int() local
68 int amt = write(fd, buffer, bytes); in write_int()
88 int bytes = snprintf(buffer, sizeof(buffer), "%d %d\n", on, off); in write_on_off() local
89 int amt = write(fd, buffer, bytes); in write_on_off()
/device/huawei/angler/liblight/
Dlights.c96 int bytes = snprintf(buffer, sizeof(buffer), "%d\n", value); in write_int() local
97 ssize_t amt = write(fd, buffer, (size_t)bytes); in write_int()
118 int bytes = snprintf(buffer, sizeof(buffer), "%d %d\n", on, off); in write_on_off() local
119 int amt = write(fd, buffer, bytes); in write_on_off()
/device/generic/goldfish/audio/
Daudio_hw.c184 size_t bytes) in out_write() argument
191 bytes = write(adev->fd, buffer, bytes); in out_write()
194 return bytes; in out_write()
336 size_t bytes) in in_read() argument
343 bytes = read(adev->fd, buffer, bytes); in in_read()
344 if (adev->mic_mute && (bytes > 0)) { in in_read()
345 memset(buffer, 0, bytes); in in_read()
349 return bytes; in in_read()
/device/asus/fugu/libaudio/
DAudioStreamIn.cpp254 ssize_t AudioStreamIn::read(void* buffer, size_t bytes) in read() argument
272 int ret = readFrames_l(buffer, bytes / getFrameSize()); in read()
277 memset(buffer, 0, bytes); in read()
284 usleep(bytes * 1000000 / getFrameSize() / mRequestedSampleRate); in read()
289 memset(buffer, 0, bytes); in read()
293 return bytes; in read()
DAudioStreamOut.h69 ssize_t write(const void* buffer, size_t bytes);
141 ssize_t writeInternal(const void* buffer, size_t bytes);
DAudioStreamOut.cpp574 ssize_t AudioStreamOut::write(const void* buffer, size_t bytes) in write() argument
581 bytes, data[0], data[1], data[2], data[3], in write()
651 (*I)->processOneChunk((uint8_t *)buffer, bytes, hasActiveOutputs, mInputFormat); in write()
657 uint32_t framesWritten = bytes / mInputFrameSize; in write()
668 return static_cast<ssize_t>(bytes); in write()
Daudio_hal_thunks.cpp184 size_t bytes) in out_write() argument
189 return tstream->impl->write(buffer, bytes); in out_write()
336 size_t bytes) in in_read() argument
341 return tstream->impl->read(buffer, bytes); in in_read()
DAudioStreamIn.h50 ssize_t read(void* buffer, size_t bytes);
/device/htc/flounder/sensor_hub/libsensors/
DSensorBase.cpp72 const char *path, const char *value, int bytes) in write_sys_attribute() argument
83 amt = write(fd, value, bytes); in write_sys_attribute()
DSensorBase.h51 char const *path, char const *value, int bytes);
/device/htc/flounder/lights/
Dlights.c44 int bytes = snprintf(buffer, 20, "%d\n", value); in write_int() local
45 int amt = write(fd, buffer, bytes); in write_int()
/device/htc/flounder/audio/hal/
Daudio_hw.c2980 size_t bytes) in out_write() argument
2992 size_t in_frames = bytes / frame_size; in out_write()
3053 ALOGVV("%s: writing buffer (%d bytes) to compress device", __func__, bytes); in out_write()
3068 ret = compress_write(out->compr, buffer, bytes); in out_write()
3069 … ALOGVV("%s: writing buffer (%d bytes) to compress device returned %d", __func__, bytes, ret); in out_write()
3070 if (ret >= 0 && ret < (ssize_t)bytes) { in out_write()
3106 memset((void *)buffer, 0, bytes); in out_write()
3110 if (bytes * pcm_device->pcm_profile->config.rate / out->sample_rate + frame_size in out_write()
3113bytes * pcm_device->pcm_profile->config.rate / out->sample_rate + frame_size; in out_write()
3119 frames_rq = bytes / frame_size; in out_write()
[all …]
/device/generic/goldfish/opengl/system/renderControl_enc/
DREADME19 is the negative number of bytes required to store the string value
35 of required bytes is returned otherwise the function returns the number
/device/asus/flo/
DWCNSS_qcom_cfg.ini138 # Default Country Code is 2 bytes, 3rd byte is optional indoor or out door.
/device/lge/bullhead/wifi/
DWCNSS_qcom_cfg.ini203 # Default Country Code is 2 bytes, 3rd byte is optional indoor or out door.