• Home
  • Raw
  • Download

Lines Matching refs:buffer

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
524 if (arrayStartsWith(buffer, LAYER_TRACE_MAGIC_NUMBER)) {
525 return decodedFile(FILE_TYPES.SURFACE_FLINGER_TRACE, buffer, fileName, store);
527 if (arrayStartsWith(buffer, WINDOW_TRACE_MAGIC_NUMBER)) {
528 return decodedFile(FILE_TYPES.WINDOW_MANAGER_TRACE, buffer, fileName, store);
530 if (arrayStartsWith(buffer, MPEG4_MAGIC_NMBER)) {
531 return decodedFile(FILE_TYPES.SCREEN_RECORDING, buffer, fileName, store);
533 if (arrayStartsWith(buffer, WAYLAND_TRACE_MAGIC_NUMBER)) {
534 return decodedFile(FILE_TYPES.WAYLAND_TRACE, buffer, fileName, store);
536 if (arrayStartsWith(buffer, PROTO_LOG_MAGIC_NUMBER)) {
537 return decodedFile(FILE_TYPES.PROTO_LOG, buffer, fileName, store);
539 if (arrayStartsWith(buffer, SYSTEM_UI_MAGIC_NUMBER)) {
540 return decodedFile(FILE_TYPES.SYSTEM_UI, buffer, fileName, store);
542 if (arrayStartsWith(buffer, LAUNCHER_MAGIC_NUMBER)) {
543 return decodedFile(FILE_TYPES.LAUNCHER, buffer, fileName, store);
545 if (arrayStartsWith(buffer, IMC_TRACE_MAGIC_NUMBER)) {
546 return decodedFile(FILE_TYPES.IME_TRACE_CLIENTS, buffer, fileName, store);
548 if (arrayStartsWith(buffer, IMS_TRACE_MAGIC_NUMBER)) {
549 return decodedFile(FILE_TYPES.IME_TRACE_SERVICE, buffer, fileName, store);
551 if (arrayStartsWith(buffer, IMM_TRACE_MAGIC_NUMBER)) {
552 return decodedFile(FILE_TYPES.IME_TRACE_MANAGERSERVICE, buffer, fileName, store);
563 const [, fileData] = decodedFile(filetype, buffer, fileName, store);