Home
last modified time | relevance | path

Searched refs:sink (Results 1 – 22 of 22) sorted by relevance

/tools/apksig/src/test/java/com/android/apksig/util/
DDataSinkTestBase.java49 T sink = c.getDataSink(); in testConsumeFromArray() local
51 sink.consume(input, 2, 3); // "cde" in testConsumeFromArray()
52 sink.consume(input, 0, 1); // "a" in testConsumeFromArray()
53 assertContentsEquals("cdea", sink); in testConsumeFromArray()
56 sink.consume(input, 0, 0); in testConsumeFromArray()
57 sink.consume(input, 1, 0); in testConsumeFromArray()
58 sink.consume(input, input.length - 2, 0); in testConsumeFromArray()
59 sink.consume(input, input.length - 1, 0); in testConsumeFromArray()
60 sink.consume(input, input.length, 0); in testConsumeFromArray()
63 assertConsumeArrayThrowsIOOB(sink, input, -1, 0); in testConsumeFromArray()
[all …]
DInMemoryDataSinkDataSourceTest.java30 ReadableDataSink sink = DataSinks.newInMemoryDataSink(); in createDataSource() local
31 sink.consume(contents, 0, contents.length); in createDataSource()
32 return CloseableWithDataSource.of(sink); in createDataSource()
/tools/netsim/rust/daemon/src/grpc_server/
Dfrontend.rs27 fn get_version(&mut self, ctx: RpcContext<'_>, req: Empty, sink: UnarySink<VersionResponse>) { in get_version()
30 let f = sink in get_version()
41 sink: grpcio::UnarySink<netsim_proto::frontend::ListDeviceResponse>, in list_device()
44 Ok(response) => sink.success(response), in list_device()
47 sink.fail(RpcStatus::with_message(RpcStatusCode::INTERNAL, e)) in list_device()
63 fn reset(&mut self, ctx: grpcio::RpcContext, _req: Empty, sink: grpcio::UnarySink<Empty>) { in reset()
65 Ok(_) => sink.success(Empty::new()), in reset()
68 sink.fail(RpcStatus::with_message(RpcStatusCode::INTERNAL, e)) in reset()
Dbackend.rs80 sink: ::grpcio::DuplexSink<PacketResponse>, in stream_packets()
91 register_transport(result.chip_id, Box::new(RustGrpcTransport { sink })); in stream_packets()
/tools/netsim/rust/proto/src/
Dfrontend_grpc.rs426 sink: ::grpcio::UnarySink<super::frontend::VersionResponse>, in get_version()
428 grpcio::unimplemented_call!(ctx, sink) in get_version()
434 sink: ::grpcio::UnarySink<super::frontend::CreateDeviceResponse>, in create_device()
436 grpcio::unimplemented_call!(ctx, sink) in create_device()
442 sink: ::grpcio::UnarySink<super::empty::Empty>, in delete_chip()
444 grpcio::unimplemented_call!(ctx, sink) in delete_chip()
450 sink: ::grpcio::UnarySink<super::empty::Empty>, in patch_device()
452 grpcio::unimplemented_call!(ctx, sink) in patch_device()
458 sink: ::grpcio::UnarySink<super::empty::Empty>, in reset()
460 grpcio::unimplemented_call!(ctx, sink) in reset()
[all …]
Dpacket_streamer_grpc.rs69 sink: ::grpcio::DuplexSink<super::packet_streamer::PacketResponse>, in stream_packets()
71 grpcio::unimplemented_call!(ctx, sink) in stream_packets()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DTeeDataSink.java36 for (DataSink sink : mSinks) { in consume()
37 sink.consume(buf, offset, length); in consume()
DByteArrayDataSink.java124 public void feed(long offset, long size, DataSink sink) throws IOException { in feed() argument
128 sink.consume(mArray, (int) offset, (int) size); in feed()
186 public void feed(long offset, long size, DataSink sink) throws IOException { in feed() argument
190 sink.consume(mArray, (int) (mSliceOffset + offset), (int) size); in feed()
DChainedDataSource.java43 public void feed(long offset, long size, DataSink sink) throws IOException { in feed() argument
58 src.feed(offset, size, sink); in feed()
63 src.feed(offset, remaining, sink); in feed()
DByteBufferDataSource.java83 public void feed(long offset, long size, DataSink sink) throws IOException { in feed() argument
87 sink.consume(getByteBuffer(offset, (int) size)); in feed()
DFileChannelDataSource.java93 public void feed(long offset, long size, DataSink sink) throws IOException { in feed() argument
119 sink.consume(buf); in feed()
/tools/netsim/rust/daemon/src/transport/
Dgrpc.rs54 pub sink: grpcio::DuplexSink<PacketResponse>, field
71 let _ = self.sink.send((response, WriteFlags::default())).await; in response()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DChainedDataSourceTest.java54 ReadableDataSink sink = DataSinks.newInMemoryDataSink(size); in feedAllPossibleRanges() local
55 mChain.feed(begin, size, sink); in feedAllPossibleRanges()
58 sink.getByteBuffer(0, size)); in feedAllPossibleRanges()
/tools/netsim/rust/daemon/
DCargo.toml36 futures-channel = { version = "0.3.30", features = ["sink"] }
38 futures-util = { version = "0.3.30", default-features = false, features = ["sink"] }
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/
DCloseableDelegateByteSource.java129 public long copyTo(@Nonnull ByteSink sink) throws IOException { in copyTo() argument
130 return get().copyTo(sink); in copyTo()
/tools/apksig/src/main/java/com/android/apksig/internal/zip/
DLocalFileRecord.java379 DataSink sink) throws IOException, ZipFormatException { in outputUncompressedData() argument
383 try (InflateSinkAdapter inflateAdapter = new InflateSinkAdapter(sink)) { in outputUncompressedData()
399 lfhSection.feed(dataStartOffsetInArchive, mDataSize, sink); in outputUncompressedData()
421 DataSink sink) throws ZipFormatException, IOException { in outputUncompressedData() argument
434 lfhRecord.outputUncompressedData(source, sink); in outputUncompressedData()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DLazyDelegateByteSource.java123 public long copyTo(@Nonnull ByteSink sink) throws IOException { in copyTo() argument
124 return get().copyTo(sink); in copyTo()
/tools/netsim/rust/frontend/src/
Dnetsim_test_server.rs25 sink: UnarySink<VersionResponse>, in get_version()
31 let f = sink in get_version()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DZFileDataSource.java101 public void feed(long offset, long size, @Nonnull DataSink sink) throws IOException { in feed() argument
118 sink.consume(buf, 0, readSize); in feed()
/tools/apksig/src/main/java/com/android/apksig/util/
DDataSource.java69 void feed(long offset, long size, DataSink sink) throws IOException; in feed() argument
/tools/netsim/rust/daemon/src/wireless/
Duwb.rs16 use futures::{channel::mpsc::UnboundedSender, sink::SinkExt, StreamExt};
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/
Dbt_test_utils.py1077 def is_a2dp_connected(sink, source): argument
1089 devices = sink.droid.bluetoothA2dpSinkGetConnectedDevices()
1091 sink.log.info("A2dp Connected device {}".format(device["name"]))