Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 150) sorted by relevance

123456

/device/asus/fugu/libaudio/
DAudioStreamIn.cpp181 snprintf(buffer, SIZE, a); \
182 buffer[SIZE - 1] = 0; \
183 result.append(buffer);
188 char buffer[SIZE]; in dump() local
254 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()
289 memset(buffer, 0, bytes); in read()
406 ssize_t AudioStreamIn::readFrames_l(void* buffer, ssize_t frames) in readFrames_l() argument
414 char* outFrame = static_cast<char*>(buffer) + in readFrames_l()
[all …]
DAudioStreamIn.h50 ssize_t read(void* buffer, size_t bytes);
79 ssize_t readFrames_l(void* buffer, ssize_t frames);
84 struct resampler_buffer* buffer);
87 struct resampler_buffer* buffer);
90 int getNextBuffer(struct resampler_buffer* buffer);
91 void releaseBuffer(struct resampler_buffer* buffer);
DHDMIAudioOutput.cpp121 char buffer[SIZE]; in dump() local
123 snprintf(buffer, SIZE, in dump()
132 result.append(buffer); in dump()
/device/asus/fugu/dumpstate/
Ddumpstate.c54 unsigned char buffer[1200]; in fugu_dump_base64() local
58 int ret = read(fd, &buffer[left], sizeof(buffer) - left); in fugu_dump_base64()
65 base64_output3(&buffer[ofs], 3); in fugu_dump_base64()
75 memmove(buffer, &buffer[ofs], left); in fugu_dump_base64()
88 buffer[count++] = 0; in fugu_dump_base64()
90 base64_output3(buffer, left); in fugu_dump_base64()
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/
DDemoKitActivity.java260 byte[] buffer = new byte[16384]; in run()
265 ret = mInputStream.read(buffer); in run()
274 switch (buffer[i]) { in run()
278 m.obj = new SwitchMsg(buffer[i + 1], buffer[i + 2]); in run()
288 m.obj = new TemperatureMsg(composeInt(buffer[i + 1], in run()
289 buffer[i + 2])); in run()
298 m.obj = new LightMsg(composeInt(buffer[i + 1], in run()
299 buffer[i + 2])); in run()
308 m.obj = new JoyMsg(buffer[i + 1], buffer[i + 2]); in run()
315 Log.d(TAG, "unknown msg: " + buffer[i]); in run()
[all …]
/device/moto/shamu/camera/QCamera/HAL/core/src/
DQCameraHWI_Mem.cpp152 char buffer[SIZE]; in dump() local
155 snprintf(buffer, 255, "QualcommCameraHardware::AshmemPool::dump\n"); in dump()
156 result.append(buffer); in dump()
158 snprintf(buffer, 255, "mem pool name (%s)\n", mName); in dump()
159 result.append(buffer); in dump()
162 snprintf(buffer, 255, "heap base(%p), size(%d), flags(%d), device(%s)\n", in dump()
165 result.append(buffer); in dump()
167 snprintf(buffer, 255, in dump()
170 result.append(buffer); in dump()
/device/generic/goldfish/camera/
DPreviewWindow.cpp139 buffer_handle_t* buffer = NULL; in onNextFrameAvailable() local
141 res = mPreviewWindow->dequeue_buffer(mPreviewWindow, &buffer, &stride); in onNextFrameAvailable()
142 if (res != NO_ERROR || buffer == NULL) { in onNextFrameAvailable()
149 res = mPreviewWindow->lock_buffer(mPreviewWindow, buffer); in onNextFrameAvailable()
153 mPreviewWindow->cancel_buffer(mPreviewWindow, buffer); in onNextFrameAvailable()
162 res = grbuffer_mapper.lock(*buffer, GRALLOC_USAGE_SW_WRITE_OFTEN, rect, &img); in onNextFrameAvailable()
166 mPreviewWindow->cancel_buffer(mPreviewWindow, buffer); in onNextFrameAvailable()
176 mPreviewWindow->enqueue_buffer(mPreviewWindow, buffer); in onNextFrameAvailable()
179 mPreviewWindow->cancel_buffer(mPreviewWindow, buffer); in onNextFrameAvailable()
181 grbuffer_mapper.unlock(*buffer); in onNextFrameAvailable()
DEmulatedCameraHotplugThread.cpp148 char buffer[EVENT_BUF_LEN]; in threadLoop() local
150 read(mInotifyFd, buffer, EVENT_BUF_LEN)); in threadLoop()
164 inotify_event* event = (inotify_event*) &buffer[i]; in threadLoop()
348 char buffer[1]; in readFile() local
352 read(fd, buffer, sizeof(buffer))); in readFile()
357 __FUNCTION__, filePath.string(), length, buffer[0]); in readFile()
361 } else if (buffer[0] == '0') { in readFile()
DEmulatedCameraDevice.cpp158 status_t EmulatedCameraDevice::getCurrentPreviewFrame(void* buffer) in getCurrentPreviewFrame() argument
164 if (mCurrentFrame == NULL || buffer == NULL) { in getCurrentPreviewFrame()
172 YV12ToRGB32(mCurrentFrame, buffer, mFrameWidth, mFrameHeight); in getCurrentPreviewFrame()
175 YU12ToRGB32(mCurrentFrame, buffer, mFrameWidth, mFrameHeight); in getCurrentPreviewFrame()
178 NV21ToRGB32(mCurrentFrame, buffer, mFrameWidth, mFrameHeight); in getCurrentPreviewFrame()
181 NV12ToRGB32(mCurrentFrame, buffer, mFrameWidth, mFrameHeight); in getCurrentPreviewFrame()
/device/generic/goldfish/opengl/system/renderControl_enc/
DrenderControl.attrib12 dir buffer out
13 len buffer bufferSize
16 dir buffer out
17 len buffer bufferSize
24 dir buffer out
25 len buffer bufSize
DrenderControl_entry.cpp11 EGLint rcQueryEGLString(EGLenum name, void* buffer, EGLint bufferSize);
12 EGLint rcGetGLString(EGLenum name, void* buffer, EGLint bufferSize);
14 EGLint rcGetConfigs(uint32_t bufSize, GLuint* buffer);
56 EGLint rcQueryEGLString(EGLenum name, void* buffer, EGLint bufferSize) in rcQueryEGLString() argument
59 return ctx->rcQueryEGLString(ctx, name, buffer, bufferSize); in rcQueryEGLString()
62 EGLint rcGetGLString(EGLenum name, void* buffer, EGLint bufferSize) in rcGetGLString() argument
65 return ctx->rcGetGLString(ctx, name, buffer, bufferSize); in rcGetGLString()
74 EGLint rcGetConfigs(uint32_t bufSize, GLuint* buffer) in rcGetConfigs() argument
77 return ctx->rcGetConfigs(ctx, bufSize, buffer); in rcGetConfigs()
DREADME16 EGLint rcQueryEGLString(EGLenum name, void* buffer, EGLint bufferSize);
18 if buffer is NULL or the bufferSize is not big enough the return value
20 otherwise the string value is copied to buffer and its size is
28 EGLint rcGetConfigs(uint32_t bufSize, GLuint* buffer);
31 bufSize is the size of buffer, the size should be at least equal to
36 of configs and buffer is filled as follows: The first 'numAttribs'
91 This flushes the current window color buffer
94 This set the target color buffer for a windowSurface, when set the
105 immediatly, the buffer will be displayed at the next swap interval.
118 posts for the buffer requested previously through rcFBPost has been
[all …]
DrenderControl.in3 GL_ENTRY(EGLint, rcQueryEGLString, EGLenum name, void *buffer, EGLint bufferSize)
4 GL_ENTRY(EGLint, rcGetGLString, EGLenum name, void *buffer, EGLint bufferSize)
6 GL_ENTRY(EGLint, rcGetConfigs, uint32_t bufSize, GLuint *buffer)
/device/moto/shamu/camera/QCamera/HAL/usbcamcore/src/
DQCameraUsbParm.cpp377 char buffer[32]; in create_sizes_str() local
380 snprintf(buffer, sizeof(buffer), "%dx%d", sizes[0].width, sizes[0].height); in create_sizes_str()
381 str.append(buffer); in create_sizes_str()
384 snprintf(buffer, sizeof(buffer), ",%dx%d", sizes[i].width, sizes[i].height); in create_sizes_str()
385 str.append(buffer); in create_sizes_str()
431 char buffer[32]; in create_fps_str() local
434 snprintf(buffer, sizeof(buffer), "(%d,%d)", fps[0].minFPS, fps[0].maxFPS); in create_fps_str()
435 str.append(buffer); in create_fps_str()
438 snprintf(buffer, sizeof(buffer), ",(%d,%d)", fps[i].minFPS, fps[i].maxFPS); in create_fps_str()
439 str.append(buffer); in create_fps_str()
[all …]
/device/lge/hammerhead/liblight/
Dlights.c66 char buffer[32] = {0,}; in write_int() local
67 int bytes = snprintf(buffer, sizeof(buffer), "%d\n", value); in write_int()
68 int amt = write(fd, buffer, bytes); in write_int()
87 char buffer[32] = {0,}; in write_on_off() local
88 int bytes = snprintf(buffer, sizeof(buffer), "%d %d\n", on, off); in write_on_off()
89 int amt = write(fd, buffer, bytes); in write_on_off()
/device/generic/goldfish/libqemu/
Dtest_guest_2.c58 uint8_t* buffer; in main() local
152 buffer = malloc(bufferSize); in main()
156 buffer[nn] = (uint8_t)nn; in main()
163 int ret = pipe_send(pipe, buffer, bufferSize); in main()
189 if (memcmp(buffer, buffer2, bufferSize) != 0) { in main()
200 if (memcmp(buffer+nn, buffer2+nn, avail) != 0) { in main()
208 printf(" %02x", buffer[nn+mm]); in main()
/device/generic/goldfish/lights/
Dlights_qemu.c85 char buffer[64]; in set_light_backlight() local
86 snprintf( buffer, sizeof(buffer), "power:light:brightness:lcd_backlight:%d", brightness ); in set_light_backlight()
87 D( "%s: lcd_backlight command: %s", __FUNCTION__, buffer ); in set_light_backlight()
90 if (qemud_channel_send( fd, buffer, -1 ) < 0) { in set_light_backlight()
/device/lge/hammerhead/camera/QCamera2/HAL3/
DQCamera3Channel.h50 camera3_stream_buffer_t *buffer,
84 virtual int32_t registerBuffer(buffer_handle_t *buffer) = 0;
137 virtual int32_t request(buffer_handle_t *buffer, uint32_t frameNumber);
143 mm_camera_buf_def_t* getInternalFormatBuffer(buffer_handle_t* buffer);
144 virtual int32_t registerBuffer(buffer_handle_t *buffer);
170 virtual int32_t request(buffer_handle_t *buffer, uint32_t frameNumber);
197 virtual int32_t request(buffer_handle_t *buffer, uint32_t frameNumber);
259 virtual int32_t request(buffer_handle_t *buffer,
282 virtual int32_t registerBuffer(buffer_handle_t *buffer);
368 virtual int32_t request(buffer_handle_t *buffer, uint32_t frameNumber);
/device/moto/shamu/camera/QCamera2/HAL3/
DQCamera3Channel.h50 camera3_stream_buffer_t *buffer,
87 virtual int32_t registerBuffer(buffer_handle_t *buffer, cam_is_type_t isType) = 0;
149 virtual int32_t request(buffer_handle_t *buffer, uint32_t frameNumber);
155 virtual int32_t registerBuffer(buffer_handle_t *buffer, cam_is_type_t isType);
184 virtual int32_t request(buffer_handle_t *buffer, uint32_t frameNumber);
250 virtual int32_t request(buffer_handle_t *buffer, uint32_t frameNumber);
280 virtual int32_t request(buffer_handle_t *buffer,
303 virtual int32_t registerBuffer(buffer_handle_t *buffer, cam_is_type_t isType);
410 virtual int32_t request(buffer_handle_t *buffer, uint32_t frameNumber);
DQCamera3HWI.h145 camera3_stream_buffer_t *buffer, uint32_t frame_number,
180 camera3_stream_buffer_t *buffer, uint32_t frame_number);
215 void handleBufferWithLock(camera3_stream_buffer_t *buffer,
271 camera3_stream_buffer_t *buffer; member
299 buffer_handle_t *buffer; member
311 camera3_stream_buffer_t buffer; member
/device/moto/shamu/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_reprocess.c66 pme->jpeg_buf.buf.buffer = (uint8_t *)malloc(m_frame->frame_len); in mm_app_reprocess_notify_cb()
67 if ( NULL == pme->jpeg_buf.buf.buffer ) { in mm_app_reprocess_notify_cb()
77 free(pme->jpeg_buf.buf.buffer); in mm_app_reprocess_notify_cb()
126 cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); in mm_app_add_reprocess_stream_from_source()
144 stream->s_config.stream_info = (cam_stream_info_t *)stream->s_info_buf.buf.buffer; in mm_app_add_reprocess_stream_from_source()
145 source_stream_info = (cam_stream_info_t *) source->s_info_buf.buf.buffer; in mm_app_add_reprocess_stream_from_source()
193 cam_capability_t *caps = ( cam_capability_t * ) ( test_obj->cap_buf.buf.buffer ); in mm_app_add_reprocess_channel()
Dmm_qcamera_snapshot.c71 free(pme->jpeg_buf.buf.buffer); in jpeg_encode_cb()
82 cam_capability_t *cam_cap = (cam_capability_t *)(test_obj->cap_buf.buf.buffer); in encodeData()
152 encode_param.src_main_buf[0].buf_vaddr = (uint8_t *)m_frame->buffer; in createEncodingSession()
161 encode_param.dest_buf[0].buf_vaddr = (uint8_t *)test_obj->jpeg_buf.buf.buffer; in createEncodingSession()
226 memcpy(pme->metadata , frame->buffer, sizeof(metadata_buffer_t)); in mm_app_snapshot_metadata_notify_cb()
228 pMetadata = (metadata_buffer_t *)frame->buffer; in mm_app_snapshot_metadata_notify_cb()
394 pme->jpeg_buf.buf.buffer = (uint8_t *)malloc(m_frame->frame_len); in mm_app_snapshot_notify_cb()
395 if ( NULL == pme->jpeg_buf.buf.buffer ) { in mm_app_snapshot_notify_cb()
405 free(pme->jpeg_buf.buf.buffer); in mm_app_snapshot_notify_cb()
413 free(pme->jpeg_buf.buf.buffer); in mm_app_snapshot_notify_cb()
[all …]
/device/asus/fugu/recovery/
Drecovery_updater.c288 unsigned char *buffer = NULL; in FlashIfwiFuguFn() local
319 if ((buffer = malloc(ifwi_size)) == NULL) { in FlashIfwiFuguFn()
323 fread(buffer, ifwi_size, 1, f); in FlashIfwiFuguFn()
326 if(flash_ifwi_scu_emmc(buffer, ifwi_size) !=0) { in FlashIfwiFuguFn()
328 free(buffer); in FlashIfwiFuguFn()
332 free(buffer); in FlashIfwiFuguFn()
/device/generic/goldfish/opengl/system/egl/
Degl.cpp248 android_native_buffer_t* buffer; member
256 buffer(NULL) in egl_window_surface_t()
269 if (nativeWindow->dequeueBuffer_DEPRECATED(nativeWindow, &buffer) != NO_ERROR) { in init()
281 ((cb_handle_t*)(buffer->handle))->hostHandle); in init()
304 if (buffer) { in ~egl_window_surface_t()
305 nativeWindow->cancelBuffer_DEPRECATED(nativeWindow, buffer); in ~egl_window_surface_t()
321 nativeWindow->queueBuffer_DEPRECATED(nativeWindow, buffer); in swapBuffers()
322 if (nativeWindow->dequeueBuffer_DEPRECATED(nativeWindow, &buffer)) { in swapBuffers()
323 buffer = NULL; in swapBuffers()
328 ((cb_handle_t *)(buffer->handle))->hostHandle); in swapBuffers()
[all …]
/device/htc/flounder/lights/
Dlights.c43 char buffer[20]; in write_int() local
44 int bytes = snprintf(buffer, 20, "%d\n", value); in write_int()
45 int amt = write(fd, buffer, bytes); in write_int()

123456