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.c86 char buffer[512]; in Java_com_example_neon_HelloNeon_stringFromJNI() local
111 strlcpy(buffer, str, sizeof buffer); in Java_com_example_neon_HelloNeon_stringFromJNI()
114 strlcat(buffer, "Neon version : ", sizeof buffer); in Java_com_example_neon_HelloNeon_stringFromJNI()
120 strlcat(buffer, "Not an ARM and not an X86 CPU !\n", sizeof buffer); in Java_com_example_neon_HelloNeon_stringFromJNI()
128 strlcat(buffer, "Not an ARMv7 and not an X86 SSSE3 CPU !\n", sizeof buffer); in Java_com_example_neon_HelloNeon_stringFromJNI()
137 strlcat(buffer, "CPU doesn't support NEON !\n", sizeof buffer); in Java_com_example_neon_HelloNeon_stringFromJNI()
152 strlcat(buffer, str, sizeof buffer); in Java_com_example_neon_HelloNeon_stringFromJNI()
167 strlcat(buffer, "Program not compiled with ARMv7 support !\n", sizeof buffer); in Java_com_example_neon_HelloNeon_stringFromJNI()
170 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.h290 void* buffer,
311 void* buffer,
493 void* buffer,
516 void* buffer,
536 void* buffer,
555 void* buffer,
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
DChatManager.java36 byte[] buffer = new byte[1024]; in run()
44 bytes = iStream.read(buffer); in run()
50 Log.d(TAG, "Rec:" + String.valueOf(buffer)); in run()
52 bytes, -1, buffer).sendToTarget(); in run()
68 public void write(byte[] buffer) { in write() argument
70 oStream.write(buffer); in write()
/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/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
DMediaCodecWrapper.java51 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer); in outputSample() argument
196 ByteBuffer buffer = mInputBuffers[index]; in writeSample() local
199 if (size > buffer.capacity()) { in writeSample()
204 buffer.capacity())); in writeSample()
207 buffer.clear(); in writeSample()
208 buffer.put(input); in writeSample()
251 ByteBuffer buffer = mInputBuffers[index]; in writeSample() local
254 int size = extractor.readSampleData(buffer, 0); in writeSample()
315 ByteBuffer buffer = mOutputBuffers[index]; in popSample() local
317 mOutputSampleListener.outputSample(this, info, buffer); in popSample()
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
DMediaCodecWrapper.java51 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer); in outputSample() argument
196 ByteBuffer buffer = mInputBuffers[index]; in writeSample() local
199 if (size > buffer.capacity()) { in writeSample()
204 buffer.capacity())); in writeSample()
207 buffer.clear(); in writeSample()
208 buffer.put(input); in writeSample()
251 ByteBuffer buffer = mInputBuffers[index]; in writeSample() local
254 int size = extractor.readSampleData(buffer, 0); in writeSample()
315 ByteBuffer buffer = mOutputBuffers[index]; in popSample() local
317 mOutputSampleListener.outputSample(this, info, buffer); in popSample()
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
DMediaCodecWrapper.java51 void outputSample(MediaCodecWrapper sender, MediaCodec.BufferInfo info, ByteBuffer buffer); in outputSample() argument
196 ByteBuffer buffer = mInputBuffers[index]; in writeSample() local
199 if (size > buffer.capacity()) { in writeSample()
204 buffer.capacity())); in writeSample()
207 buffer.clear(); in writeSample()
208 buffer.put(input); in writeSample()
251 ByteBuffer buffer = mInputBuffers[index]; in writeSample() local
254 int size = extractor.readSampleData(buffer, 0); in writeSample()
315 ByteBuffer buffer = mOutputBuffers[index]; in popSample() local
317 mOutputSampleListener.outputSample(this, info, buffer); in popSample()
/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/host/windows/usb/winusb/
Dadb_winusb_endpoint_object.cpp98 void* buffer, in CommonAsyncReadWrite() argument
130 reinterpret_cast<PUCHAR>(buffer), in CommonAsyncReadWrite()
136 reinterpret_cast<PUCHAR>(buffer), in CommonAsyncReadWrite()
161 void* buffer, in CommonSyncReadWrite() argument
199 reinterpret_cast<PUCHAR>(buffer), in CommonSyncReadWrite()
205 reinterpret_cast<PUCHAR>(buffer), in CommonSyncReadWrite()
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/samples/browseable/Quiz/Application/src/com.example.android.wearable.quiz/
DJsonUtils.java41 byte[] buffer = new byte[size]; in loadJsonFile()
42 is.read(buffer); in loadJsonFile()
44 String jsonString = new String(buffer); in loadJsonFile()
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
DAssetUtils.java34 byte[] buffer = null; in loadAsset()
38 buffer = new byte[size]; in loadAsset()
39 is.read(buffer); in loadAsset()
44 return buffer; in loadAsset()
/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/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/samples/browseable/WearSpeakerSample/src/com.example.android.wearable.speaker/
DSoundRecorder.java99 byte[] buffer = new byte[BUFFER_SIZE]; in startRecording()
102 int read = mAudioRecord.read(buffer, 0, buffer.length); in startRecording()
103 bufferedOutputStream.write(buffer, 0, read); in startRecording()
193 byte[] buffer = new byte[intSize * 2]; in startPlay()
202 while (!isCancelled() && (read = bis.read(buffer, 0, buffer.length)) > 0) { in startPlay()
203 mAudioTrack.write(buffer, 0, read); in startPlay()
/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/Vault/src/com/example/android/vault/
DUtils.java62 byte[] buffer = new byte[1024]; in readFully()
64 while ((count = in.read(buffer)) != -1) { in readFully()
65 bytes.write(buffer, 0, count); in readFully()
/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