Searched refs:Uint8Array (Results 1 – 25 of 101) sorted by relevance
12345
/external/perfetto/ui/src/base/ |
D | string_utils.ts | 30 let UTF8Decoder: {decode: (buf: Uint8Array) => string;}; 31 let UTF8Encoder: {encode: (str: string) => Uint8Array;}; 42 UTF8Decoder = {decode: (buf: Uint8Array) => utf8Read(buf, 0, buf.length)}; 45 const arr = new Uint8Array(utf8Len(str)); 53 export function base64Encode(buffer: Uint8Array): string { 57 export function base64Decode(str: string): Uint8Array { 58 const arr = new Uint8Array(b64Len(str)); 64 export function utf8Encode(str: string): Uint8Array { 70 export function utf8Decode(buffer: Uint8Array): string { 83 export function binaryEncode(buf: Uint8Array): string { [all …]
|
D | string_utils_unittest.ts | 26 const buffer = new Uint8Array(bytes); 33 const buffer = new Uint8Array([0xff, 0, 0, 0x81, 0x2a, 0xfe]); 42 expect(buffer).toEqual(new Uint8Array([ 65 const buf = new Uint8Array(256 + 4);
|
D | trace_config_utils.ts | 20 export function extractTraceConfig(enableTracingRequest: Uint8Array): 21 Uint8Array|undefined { 34 export function extractDurationFromTraceConfig(traceConfigProto: Uint8Array) {
|
/external/perfetto/ui/src/common/ |
D | wasm_engine_proxy.ts | 68 respHandler: Deferred<Uint8Array>; 88 async parse(reqData: Uint8Array): Promise<void> { 99 await this.queueRequest('trace_processor_notify_eof', new Uint8Array()); 108 rawQuery(rawQueryArgs: Uint8Array): Promise<Uint8Array> { 112 rawComputeMetric(rawComputeMetric: Uint8Array): Promise<Uint8Array> { 119 'trace_processor_enable_metatrace', new Uint8Array()); 122 disableAndReadMetatrace(): Promise<Uint8Array> { 124 'trace_processor_disable_and_read_metatrace', new Uint8Array()); 131 private queueRequest(methodName: string, reqData: Uint8Array): 132 Deferred<Uint8Array> { [all …]
|
D | http_rpc_engine.ts | 33 reqData?: Uint8Array; 34 resp: Deferred<Uint8Array>; 50 async parse(data: Uint8Array): Promise<void> { 62 rawQuery(rawQueryArgs: Uint8Array): Promise<Uint8Array> { 66 rawComputeMetric(rawComputeMetricArgs: Uint8Array): Promise<Uint8Array> { 74 disableAndReadMetatrace(): Promise<Uint8Array> { 78 enqueueRequest(methodName: string, data?: Uint8Array): Promise<Uint8Array> { 79 const resp = defer<Uint8Array>(); 107 body: req.reqData || new Uint8Array(), 127 req.resp.resolve(new Uint8Array(arrBuf)); [all …]
|
D | engine.ts | 57 abstract parse(data: Uint8Array): Promise<void>; 73 abstract rawQuery(rawQueryArgs: Uint8Array): Promise<Uint8Array>; 79 abstract rawComputeMetric(computeMetricArgs: Uint8Array): Promise<Uint8Array>;
|
/external/perfetto/ui/src/controller/ |
D | adb_socket_controller.ts | 48 params: Uint8Array; 62 private incomingBuffer = new Uint8Array(MAX_IPC_BUFFER_SIZE); 85 async invoke(method: string, params: Uint8Array) { 107 private invokeInternal(method: string, argsProto: Uint8Array) { 129 static generateFrameBufferToSend(frame: Frame): Uint8Array { 130 const frameProto: Uint8Array = 133 const buf = new Uint8Array(WIRE_PROTOCOL_HEADER_SIZE + frameLen); 158 private parseMessageSize(buffer: Uint8Array) { 163 private parseMessage(frameBuffer: Uint8Array) { 166 const arr = new Uint8Array(buf); [all …]
|
D | adb.ts | 245 this.send('AUTH', AuthCmd.SIGNATURE, 0, new Uint8Array(signedToken)); 313 cmd: CmdType, arg0: number, arg1: number, data?: Uint8Array|string) { 335 msg.data = new Uint8Array( 350 publicExponent: new Uint8Array([0x01, 0x00, 0x01]), 361 static checksum(data: Uint8Array): number { 367 sendRaw(buf: Uint8Array): Promise<USBOutTransferResult> { 405 private writeQueue: Uint8Array[] = []; 430 async write(msg: string|Uint8Array) { 483 (raw: Uint8Array): void; 492 data: Uint8Array; [all …]
|
D | adb_interfaces.ts | 28 write(msg: string|Uint8Array): Promise<void>; 35 onData: (raw: Uint8Array) => void; 61 write(_: string|Uint8Array): Promise<void> { 70 onData = (_: Uint8Array) => {}; 80 data: Uint8Array;
|
D | adb_shell_controller.ts | 43 async invoke(method: string, params: Uint8Array) { 68 async enableTracing(enableTracingProto: Uint8Array) { 83 async startRecording(configProto: Uint8Array) { 117 this.generateChunkReadResponse(new Uint8Array(), /* last */ true)); 166 generateChunkReadResponse(data: Uint8Array, last = false): 183 generateStartTracingCommand(tracingConfig: Uint8Array) {
|
D | adb_base_controller.ts | 32 params: Uint8Array; 50 async handleCommand(method: string, params: Uint8Array) { 96 setDurationStatus(enableTracingProto: Uint8Array) { 104 abstract invoke(method: string, argsProto: Uint8Array): void; 106 generateChunkReadResponse(data: Uint8Array, last = false):
|
D | trace_stream.ts | 22 data: Uint8Array; 57 data: new Uint8Array(res), 86 const data = new Uint8Array(this.traceBuf, this.bytesRead, len); 132 {value?: Uint8Array, done: boolean}; 145 data = new Uint8Array(bytesRead);
|
/external/pigweed/pw_web_ui/src/transport/ |
D | serial_mock.ts | 64 data?: Uint8Array; 73 dataFromDevice(data: Uint8Array) { 95 dataToDevice = new Subject<Uint8Array>(); 100 readable = new ReadableStream<Uint8Array>({ 119 writable = new WritableStream<Uint8Array>({ 139 dataFromDevice = (data: Uint8Array) => {
|
D | web_serial_transport.ts | 30 chunks: Observable<Uint8Array>; 35 sendChunk: (chunk: Uint8Array) => Promise<void>; 53 chunks = new Subject<Uint8Array>(); 70 async sendChunk(chunk: Uint8Array): Promise<void> { 141 async function sendChunk(chunk: Uint8Array) { 154 const chunks = new Subject<Uint8Array>();
|
D | web_serial_transport_test.ts | 41 const data = new Uint8Array([1, 2, 3]); 65 const data = new Uint8Array([1, 2, 3]); 69 let writtenData: Uint8Array | undefined = undefined; 83 const data = new Uint8Array([1, 2, 3]);
|
D | device_transport.ts | 18 chunks: Observable<Uint8Array>; 20 sendChunk(chunk: Uint8Array): Promise<void>;
|
/external/grpc-grpc/examples/node/static_codegen/route_guide/ |
D | route_guide_grpc_pb.js | 30 return route_guide_pb.Feature.deserializeBinary(new Uint8Array(buffer_arg)); 41 return route_guide_pb.Point.deserializeBinary(new Uint8Array(buffer_arg)); 52 return route_guide_pb.Rectangle.deserializeBinary(new Uint8Array(buffer_arg)); 63 return route_guide_pb.RouteNote.deserializeBinary(new Uint8Array(buffer_arg)); 74 return route_guide_pb.RouteSummary.deserializeBinary(new Uint8Array(buffer_arg));
|
/external/protobuf/js/binary/ |
D | utils_test.js | 486 var buffer = new Uint8Array(writer.getResultBuffer()); 508 var buffer = new Uint8Array(writer.getResultBuffer()); 521 buffer = new Uint8Array(writer.getResultBuffer()); 540 var buffer = new Uint8Array(writer.getResultBuffer()); 553 buffer = new Uint8Array(writer.getResultBuffer()); 572 var buffer = new Uint8Array(writer.getResultBuffer()); 585 buffer = new Uint8Array(writer.getResultBuffer()); 604 var buffer = new Uint8Array(writer.getResultBuffer()); 617 buffer = new Uint8Array(writer.getResultBuffer()); 644 var sourceBytes = new Uint8Array(sourceData); [all …]
|
/external/protobuf/js/compatibility_tests/v3.1.0/binary/ |
D | utils_test.js | 485 var buffer = new Uint8Array(writer.getResultBuffer()); 507 var buffer = new Uint8Array(writer.getResultBuffer()); 520 buffer = new Uint8Array(writer.getResultBuffer()); 539 var buffer = new Uint8Array(writer.getResultBuffer()); 552 buffer = new Uint8Array(writer.getResultBuffer()); 571 var buffer = new Uint8Array(writer.getResultBuffer()); 584 buffer = new Uint8Array(writer.getResultBuffer()); 603 var buffer = new Uint8Array(writer.getResultBuffer()); 616 buffer = new Uint8Array(writer.getResultBuffer()); 643 var sourceBytes = new Uint8Array(sourceData); [all …]
|
/external/protobuf/js/compatibility_tests/v3.0.0/binary/ |
D | utils_test.js | 485 var buffer = new Uint8Array(writer.getResultBuffer()); 507 var buffer = new Uint8Array(writer.getResultBuffer()); 520 buffer = new Uint8Array(writer.getResultBuffer()); 539 var buffer = new Uint8Array(writer.getResultBuffer()); 552 buffer = new Uint8Array(writer.getResultBuffer()); 571 var buffer = new Uint8Array(writer.getResultBuffer()); 584 buffer = new Uint8Array(writer.getResultBuffer()); 603 var buffer = new Uint8Array(writer.getResultBuffer()); 616 buffer = new Uint8Array(writer.getResultBuffer()); 643 var sourceBytes = new Uint8Array(sourceData); [all …]
|
/external/rust/crates/getrandom/src/ |
D | js.rs | 13 use js_sys::Uint8Array; 21 Browser(BrowserCrypto, Uint8Array), 72 let buf = Uint8Array::new_with_length(BROWSER_CRYPTO_BUFFER_SIZE as u32); in getrandom_init() 94 fn get_random_values(me: &BrowserCrypto, buf: &Uint8Array) -> Result<(), JsValue>; in get_random_values()
|
/external/skia/experimental/wasm-skp-debugger/ |
D | helper.js | 9 var fileContents = new Uint8Array(file_arraybuf); 14 var fileMem = new Uint8Array(DebuggerView.HEAPU8.buffer, fileMemPtr, size);
|
/external/perfetto/ui/src/chrome_extension/ |
D | chrome_tracing_controller.ts | 65 handleCommand(methodName: string, requestData: Uint8Array) { 92 enableTracing(enableTracingRequest: Uint8Array) { 175 slices: [{data: chunk as {} as Uint8Array, lastSliceForPacket: res.eof}] 240 handleStartTracing(traceConfigProto: Uint8Array) {
|
/external/grpc-grpc/examples/node/static_codegen/ |
D | helloworld_grpc_pb.js | 30 return helloworld_pb.HelloReply.deserializeBinary(new Uint8Array(buffer_arg)); 41 return helloworld_pb.HelloRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
/external/perfetto/gn/standalone/ |
D | wasm_typescript_declaration.d.ts | 34 contents: Uint8Array; 56 HEAPU8: Uint8Array;
|
12345