/development/tools/winscope/src/ |
D | decodeVideo.js | 36 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 …]
|
D | decode.js | 460 function decodeAndTransformProto(buffer, params, displayDefaults) { argument 461 const decoded = params.protoType.decode(buffer); 468 function protoDecoder(buffer, params, fileName, store) { argument 469 const transformed = decodeAndTransformProto(buffer, params, store.displayDefaults); 476 const blobUrl = URL.createObjectURL(new Blob([buffer], {type: params.mime})); 480 function videoDecoder(buffer, params, fileName, store) { argument 481 const [data, timeline] = params.videoDecoder(buffer); 518 function decodedFile(fileType, buffer, fileName, store) { argument 520 return [fileType, fileDecoder.decoder(buffer, fileDecoder.decoderParams, fileName, store)]; 523 function detectAndDecode(buffer, fileName, store) { argument [all …]
|
/development/host/windows/usb/api/ |
D | adb_endpoint_object.cpp | 50 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()
|
D | adb_endpoint_object.h | 76 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,
|
D | adb_legacy_endpoint_object.cpp | 45 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()
|
D | adb_interface.cpp | 34 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()
|
D | adb_helper_routines.cpp | 199 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()
|
D | adb_api.h | 290 void* buffer, 311 void* buffer, 493 void* buffer, 516 void* buffer, 536 void* buffer, 555 void* buffer,
|
D | adb_api.cpp | 200 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/ |
D | ChatManager.java | 36 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/ |
D | QuotedPrintable.java | 43 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()
|
D | PduPart.java | 210 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/ |
D | MonkeyPowerEvent.java | 107 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/ |
D | Files.java | 29 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/BasicRenderScript/src/com.example.android.common.media/ |
D | MediaCodecWrapper.java | 51 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/ |
D | MediaCodecWrapper.java | 51 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/ |
D | MediaCodecWrapper.java | 51 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/ |
D | JsonUtils.java | 41 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/ |
D | ReadAsset.java | 57 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/ |
D | adb_winusb_endpoint_object.cpp | 98 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()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/ |
D | GLFace.java | 76 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/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/ |
D | AssetUtils.java | 34 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/browseable/WearSpeakerSample/src/com.example.android.wearable.speaker/ |
D | SoundRecorder.java | 99 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/ |
D | Utils.java | 62 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/tools/winscope/spec/ |
D | ProtoTransformSpec.js | 19 const buffer = new Uint8Array(traceBuffer); constant 20 const data = decodeAndTransformProto(buffer, FILE_TYPES.layers_trace, true);
|