Home
last modified time | relevance | path

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

12345

/development/ndk/samples/hello-neon/jni/
Dhelloneon.c85 char buffer[512]; in Java_com_example_neon_HelloNeon_stringFromJNI() local
110 strlcpy(buffer, str, sizeof buffer); in Java_com_example_neon_HelloNeon_stringFromJNI()
113 strlcat(buffer, "Neon version : ", sizeof buffer); in Java_com_example_neon_HelloNeon_stringFromJNI()
116 strlcat(buffer, "Not an ARM CPU !\n", sizeof buffer); in Java_com_example_neon_HelloNeon_stringFromJNI()
122 strlcat(buffer, "Not an ARMv7 CPU !\n", sizeof buffer); in Java_com_example_neon_HelloNeon_stringFromJNI()
129 strlcat(buffer, "CPU doesn't support NEON !\n", sizeof buffer); in Java_com_example_neon_HelloNeon_stringFromJNI()
144 strlcat(buffer, str, sizeof buffer); in Java_com_example_neon_HelloNeon_stringFromJNI()
159 strlcat(buffer, "Program not compiled with ARMv7 support !\n", sizeof buffer); in Java_com_example_neon_HelloNeon_stringFromJNI()
162 return (*env)->NewStringUTF(env, buffer); in Java_com_example_neon_HelloNeon_stringFromJNI()
/development/host/windows/usb/api/
Dadb_endpoint_object.cpp50 ADBAPIHANDLE AdbEndpointObject::AsyncRead(void* buffer, in AsyncRead() argument
56 buffer, in AsyncRead()
63 ADBAPIHANDLE AdbEndpointObject::AsyncWrite(void* buffer, in AsyncWrite() argument
69 buffer, in AsyncWrite()
76 bool AdbEndpointObject::SyncRead(void* buffer, in SyncRead() argument
81 buffer, in SyncRead()
87 bool AdbEndpointObject::SyncWrite(void* buffer, in SyncWrite() argument
92 buffer, in SyncWrite()
Dadb_endpoint_object.h76 void* buffer,
95 void* buffer,
127 virtual ADBAPIHANDLE AsyncRead(void* buffer,
147 virtual ADBAPIHANDLE AsyncWrite(void* buffer,
164 virtual bool SyncRead(void* buffer,
180 virtual bool SyncWrite(void* buffer,
Dadb_legacy_endpoint_object.cpp45 void* buffer, in CommonAsyncReadWrite() argument
83 buffer, in CommonAsyncReadWrite()
88 buffer, in CommonAsyncReadWrite()
97 transfer_param.SetWriteBuffer(is_read ? NULL : buffer); in CommonAsyncReadWrite()
102 is_read ? buffer : adb_io_completion->transferred_bytes_ptr(), in CommonAsyncReadWrite()
129 void* buffer, in CommonSyncReadWrite() argument
155 ReadFile(usb_handle(), buffer, bytes_to_transfer, bytes_transferred, &overlapped) : in CommonSyncReadWrite()
156 WriteFile(usb_handle(), buffer, bytes_to_transfer, bytes_transferred, &overlapped); in CommonSyncReadWrite()
162 transfer_param.SetWriteBuffer(is_read ? NULL : buffer); in CommonSyncReadWrite()
168 is_read ? buffer : &ioctl_write_transferred, in CommonSyncReadWrite()
Dadb_interface.cpp34 bool AdbInterfaceObject::GetInterfaceName(void* buffer, in GetInterfaceName() argument
44 if ((NULL == buffer) || (*buffer_char_size < name_len)) { in GetInterfaceName()
52 wcscpy(reinterpret_cast<wchar_t*>(buffer), interface_name().c_str()); in GetInterfaceName()
61 reinterpret_cast<PSTR>(buffer), in GetInterfaceName()
Dadb_helper_routines.cpp199 PSP_DEVICE_INTERFACE_DETAIL_DATA buffer = in GetUsbDeviceDetails() local
202 if (NULL == buffer) { in GetUsbDeviceDetails()
207 buffer->cbSize = sizeof(SP_DEVICE_INTERFACE_DETAIL_DATA); in GetUsbDeviceDetails()
212 buffer, in GetUsbDeviceDetails()
216 *dev_info_detail_data = buffer; in GetUsbDeviceDetails()
220 free(buffer); in GetUsbDeviceDetails()
Dadb_api.cpp200 void* buffer, in AdbGetInterfaceName() argument
209 bool ret = adb_object->GetInterfaceName(buffer, buffer_char_size, ansi); in AdbGetInterfaceName()
219 void* buffer, in AdbGetSerialNumber() argument
228 bool ret = adb_object->GetSerialNumber(buffer, buffer_char_size, ansi); in AdbGetSerialNumber()
392 void* buffer, in AdbReadEndpointAsync() argument
403 ADBAPIHANDLE ret = adb_object->AsyncRead(buffer, in AdbReadEndpointAsync()
417 void* buffer, in AdbWriteEndpointAsync() argument
428 ADBAPIHANDLE ret = adb_object->AsyncWrite(buffer, in AdbWriteEndpointAsync()
442 void* buffer, in AdbReadEndpointSync() argument
453 adb_object->SyncRead(buffer, bytes_to_read, bytes_read, time_out); in AdbReadEndpointSync()
[all …]
Dadb_api.h309 void* buffer,
330 void* buffer,
512 void* buffer,
535 void* buffer,
555 void* buffer,
574 void* buffer,
Dadb_legacy_endpoint_object.h73 void* buffer,
92 void* buffer,
/development/tools/emulator/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
/development/tools/emulator/system/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()
175 mPreviewWindow->enqueue_buffer(mPreviewWindow, buffer); in onNextFrameAvailable()
178 mPreviewWindow->cancel_buffer(mPreviewWindow, buffer); in onNextFrameAvailable()
180 grbuffer_mapper.unlock(*buffer); in onNextFrameAvailable()
/development/tools/idegen/src/
DFiles.java29 char[] buffer = new char[0x1000]; // 4k in toString() local
33 while ((read = in.read(buffer)) > -1) { in toString()
34 builder.append(buffer, 0, read); in toString()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyPowerEvent.java107 StringBuffer buffer = new StringBuffer(); in writeLogEvents() local
110 buffer.append(MonkeyUtils.toCalendarTime(event.getAsLong("date"))); in writeLogEvents()
111 buffer.append(event.getAsString("tag")); in writeLogEvents()
114 buffer.append(" "); in writeLogEvents()
115 buffer.append(value.replace('\n', '/')); in writeLogEvents()
117 buffer.append("\n"); in writeLogEvents()
120 writer.write(buffer.toString()); in writeLogEvents()
/development/host/windows/usb/winusb/
Dadb_winusb_endpoint_object.cpp49 void* buffer, in CommonAsyncReadWrite() argument
78 reinterpret_cast<PUCHAR>(buffer), in CommonAsyncReadWrite()
84 reinterpret_cast<PUCHAR>(buffer), in CommonAsyncReadWrite()
109 void* buffer, in CommonSyncReadWrite() argument
129 reinterpret_cast<PUCHAR>(buffer), in CommonSyncReadWrite()
135 reinterpret_cast<PUCHAR>(buffer), in CommonSyncReadWrite()
Dadb_winusb_endpoint_object.h96 void* buffer,
115 void* buffer,
Dadb_winusb_interface.cpp142 bool AdbWinUsbInterfaceObject::GetSerialNumber(void* buffer, in GetSerialNumber() argument
202 if ((NULL == buffer) || (*buffer_char_size < (str_len + 1))) { in GetSerialNumber()
216 reinterpret_cast<PSTR>(buffer), in GetSerialNumber()
220 reinterpret_cast<char*>(buffer)[str_len] = '\0'; in GetSerialNumber()
227 CopyMemory(buffer, ser_num->bString, bytes_written); in GetSerialNumber()
228 reinterpret_cast<wchar_t*>(buffer)[str_len] = L'\0'; in GetSerialNumber()
/development/tools/glesv2debugger/src/com/android/glesv2debugger/
DGLServerVertex.java67 public GLBuffer buffer; field in GLAttribPointer
75 if (buffer != null) in clone()
76 copy.buffer = copyBuffers.get(buffer.name); in clone()
231 ByteBuffer buffer = ByteBuffer.allocate(attribBuffer.data.capacity()); in glBufferSubData() local
232 buffer.order(SampleView.targetByteOrder); in glBufferSubData()
233 buffer.put(attribBuffer.data); in glBufferSubData()
234 attribBuffer.data = buffer; in glBufferSubData()
240 ByteBuffer buffer = ByteBuffer.allocate(indexBuffer.data.capacity()); in glBufferSubData() local
241 buffer.order(SampleView.targetByteOrder); in glBufferSubData()
242 buffer.put(indexBuffer.data); in glBufferSubData()
[all …]
/development/ndk/platforms/android-3/include/
Dlibgen.h52 extern int dirname_r(const char* path, char* buffer, size_t bufflen);
53 extern int basename_r(const char* path, char* buffer, size_t bufflen);
/development/samples/ApiDemos/src/com/example/android/apis/content/
DReadAsset.java57 byte[] buffer = new byte[size]; in onCreate()
58 is.read(buffer); in onCreate()
62 String text = new String(buffer); in onCreate()
/development/tools/emulator/system/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()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
DGLFace.java76 public void putIndices(ShortBuffer buffer) { in putIndices() argument
85 buffer.put(v0.index); in putIndices()
86 buffer.put(v1.index); in putIndices()
87 buffer.put(vn.index); in putIndices()
/development/tools/emulator/system/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()
/development/tools/emulator/opengl/host/libs/libOpenglRender/
DRenderControl.cpp43 static EGLint rcQueryEGLString(EGLenum name, void* buffer, EGLint bufferSize) in rcQueryEGLString() argument
56 if (!buffer || len > bufferSize) { in rcQueryEGLString()
60 strcpy((char *)buffer, str); in rcQueryEGLString()
64 static EGLint rcGetGLString(EGLenum name, void* buffer, EGLint bufferSize) in rcGetGLString() argument
88 if (!buffer || len > bufferSize) { in rcGetGLString()
92 strcpy((char *)buffer, str); in rcGetGLString()
104 static EGLint rcGetConfigs(uint32_t bufSize, GLuint* buffer) in rcGetConfigs() argument
109 if (!buffer || bufSize < neededSize) { in rcGetConfigs()
112 FBConfig::packConfigsInfo(buffer); in rcGetConfigs()
/development/ndk/platforms/android-3/include/linux/
Dxattr.h37 int (*get)(struct inode *inode, const char *name, void *buffer,
39 int (*set)(struct inode *inode, const char *name, const void *buffer,
/development/ndk/platforms/android-3/include/linux/nfsd/
Dxdr.h68 char * buffer; member
91 u32 * buffer; member
118 u32 * buffer; member

12345