Home
last modified time | relevance | path

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

123

/development/tools/winscope/src/
DdecodeVideo.js36 function parseUintNLE(buffer, position, bytes) { argument
40 num += buffer[position + i];
45 function parseUint32LE(buffer, position) { argument
46 return parseUintNLE(buffer, position, 4)
49 function parseUint64LE(buffer, position) { argument
50 return parseUintNLE(buffer, position, 8)
53 function mp4Decoder(buffer) { argument
54 var dataStart = findFirstInArray(buffer, WINSCOPE_META_MAGIC_STRING);
59 var frameNum = parseUint32LE(buffer, dataStart);
63 timeline.push(parseUint64LE(buffer, dataStart) * 1000);
[all …]
Ddecode.js249 function protoDecoder(buffer, fileType, fileName, store) { argument
250 var decoded = fileType.decoderParams.protoType.decode(buffer);
259 let blobUrl = URL.createObjectURL(new Blob([buffer], { type: fileType.dataType.mime }));
263 function videoDecoder(buffer, fileType, fileName, store) { argument
264 let [data, timeline] = fileType.decoderParams.videoDecoder(buffer);
299 function decodedFile(fileType, buffer, fileName, store) { argument
300 return [fileType, fileType.decoder(buffer, fileType, fileName, store)];
303 function detectAndDecode(buffer, fileName, store) { argument
304 if (arrayStartsWith(buffer, LAYER_TRACE_MAGIC_NUMBER)) {
305 return decodedFile(FILE_TYPES['layers_trace'], buffer, fileName, store);
[all …]
/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.h290 void* buffer,
311 void* buffer,
493 void* buffer,
516 void* buffer,
536 void* buffer,
555 void* buffer,
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 …]
/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()
69 byte[] buffer = msg.getBytes(); in write()
73 oStream.write(buffer); in write()
/development/samples/ApiDemos/src/com/example/android/mmslib/pdu/
DQuotedPrintable.java43 ByteArrayOutputStream buffer = new ByteArrayOutputStream(); in decodeQuotedPrintable() local
58 buffer.write((char) ((u << 4) + l)); in decodeQuotedPrintable()
63 buffer.write(b); in decodeQuotedPrintable()
66 return buffer.toByteArray(); in decodeQuotedPrintable()
DPduPart.java210 byte[] buffer = new byte[contentId.length + 2]; in setContentId()
211 buffer[0] = (byte) (0xff & '<'); in setContentId()
212 buffer[buffer.length - 1] = (byte) (0xff & '>'); in setContentId()
213 System.arraycopy(contentId, 0, buffer, 1, contentId.length); in setContentId()
214 mPartHeader.put(P_CONTENT_ID, buffer); in setContentId()
/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/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/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/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/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/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/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/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/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/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()

123