Home
last modified time | relevance | path

Searched refs:Uint8List (Results 1 – 25 of 79) sorted by relevance

1234

/third_party/flutter/flutter/packages/flutter_tools/test/src/
Dtestbed.dart358 …final Stream<Uint8List> _delegate = Stream<Uint8List>.fromIterable(const Iterable<Uint8List>.empty…
389 …StreamSubscription<Uint8List> listen(void Function(Uint8List event) onData, { Function onError, vo…
390 …return const Stream<Uint8List>.empty().listen(onData, onError: onError, onDone: onDone, cancelOnEr…
411 Future<bool> any(bool Function(Uint8List element) test) {
416 Stream<Uint8List> asBroadcastStream({
417 void Function(StreamSubscription<Uint8List> subscription) onListen,
418 void Function(StreamSubscription<Uint8List> subscription) onCancel,
424 Stream<E> asyncExpand<E>(Stream<E> Function(Uint8List event) convert) {
429 Stream<E> asyncMap<E>(FutureOr<E> Function(Uint8List event) convert) {
444 Stream<Uint8List> distinct([bool Function(Uint8List previous, Uint8List next) equals]) {
[all …]
/third_party/flutter/flutter/packages/flutter/test/services/
Dfont_loader_test.dart15 Future<void> loadFont(Uint8List list, String family) async {
19 List<Uint8List> fontAssets = <Uint8List>[];
26 final List<Uint8List> expectedAssets = <Uint8List>[
27 Uint8List.fromList(<int>[100]),
28 Uint8List.fromList(<int>[10, 20, 30]),
29 Uint8List.fromList(<int>[200]),
32 for (Uint8List asset in expectedAssets) {
Dmessage_codecs_test.dart82 Uint8List(253),
87 Uint8List(254),
92 Uint8List(0xffff),
97 Uint8List(0xffff + 1),
126 Uint8List.fromList(<int>[0xBA, 0x5E, 0xBA, 0x11]),
Dmessage_codecs_testing.dart52 if (valueA is Uint8List)
53 return valueB is Uint8List && deepEqualsList(valueA, valueB);
Dfake_platform_views.dart102 final Uint8List creationParams = args['params'];
255 final Uint8List creationParams = args['params'];
311 final Uint8List creationParams;
369 final Uint8List creationParams;
/third_party/flutter/flutter/packages/flutter/test/foundation/
Dconsolidate_response_test.dart18 final Uint8List chunkOne = Uint8List.fromList(<int>[0, 1, 2, 3, 4, 5]);
19 final Uint8List chunkTwo = Uint8List.fromList(<int>[6, 7, 8, 9, 10]);
36 return Stream<Uint8List>.fromIterable(
37 <Uint8List>[chunkOne, chunkTwo]).listen(
102 return Stream<Uint8List>.fromFuture(
103 Future<Uint8List>.error(Exception('Test Error')))
130 final Uint8List gzipped = gzip.encode(chunkOne.followedBy(chunkTwo).toList());
131 final Uint8List gzippedChunkOne = gzipped.sublist(0, gzipped.length ~/ 2);
132 final Uint8List gzippedChunkTwo = gzipped.sublist(gzipped.length ~/ 2);
147 return Stream<Uint8List>.fromIterable(
[all …]
/third_party/flutter/engine/flutter/testing/dart/
Dimage_resize_test.dart15 final Uint8List bytes = await readFile('4x4.png');
25 final Uint8List bytes = await readFile('4x4.png');
35 final Uint8List bytes = await readFile('4x4.png');
45 final Uint8List bytes = await readFile('4x4.png');
55 final Uint8List bytes = await readFile('4x4.png');
106 final Uint8List pixels =
107 Uint8List.fromList(List<int>.filled(width * height * 4, 0));
121 final Uint8List pixels;
124 Future<Uint8List> readFile(String fileName) async {
Dencoding_test.dart25 expect(Uint8List.view(data.buffer), Square4x4Image.bytes);
31 final Uint8List bytes = data.buffer.asUint8List();
41 expect(Uint8List.view(data.buffer), Square4x4Image.bytes);
47 final Uint8List bytes = data.buffer.asUint8List();
58 expect(Uint8List.view(data.buffer), expected);
116 final Uint8List bytes = await readFile('4x4.png');
134 Future<Uint8List> readFile(String fileName) async {
Dcodec_test.dart15 Uint8List data = await _getSkiaResource('alphabetAnim.gif').readAsBytes();
29 final Uint8List data = Uint8List.fromList(<int>[1, 2, 3]);
37 final Uint8List data = await _getSkiaResource('test640x479.gif').readAsBytes();
58 final Uint8List data = await _getSkiaResource('baby_tux.png').readAsBytes();
/third_party/flutter/flutter/packages/flutter/lib/src/foundation/
Dconsolidate_response.dart11 /// consolidating the bytes of an [HttpClientResponse] into a [Uint8List].
29 /// [Uint8List].
46 Future<Uint8List> consolidateHttpClientResponseBytes(
52 final Completer<Uint8List> completer = Completer<Uint8List>.sync();
101 Uint8List _bytes;
116 _bytes = Uint8List(_contentLength);
125 Uint8List get bytes {
Dserialization.dart25 Uint8List _eightBytesAsList;
63 /// Write all the values from a [Uint8List] into the buffer.
64 void putUint8List(Uint8List list) {
161 Uint8List getUint8List(int length) {
162 final Uint8List list = data.buffer.asUint8List(data.offsetInBytes + _position, length);
/third_party/flutter/flutter/packages/flutter/lib/src/services/
Dfont_loader.dart24 _fontFutures = <Future<Uint8List>>[];
41 (ByteData data) => Uint8List.view(data.buffer, data.offsetInBytes, data.lengthInBytes)
61 (Future<Uint8List> f) => f.then<void>(
62 (Uint8List list) => loadFont(list, family)
74 Future<void> loadFont(Uint8List list, String family) {
79 final List<Future<Uint8List>> _fontFutures;
/third_party/flutter/engine/flutter/shell/platform/fuchsia/dart-pkg/zircon/test/
Dvmo_test.dart23 Uint8List fileData = fileVmo.map();
30 Uint8List data = Uint8List.fromList(fuchsia.codeUnits);
38 Uint8List vmoData = duplicatedVmo.map();
/third_party/flutter/flutter/packages/flutter/test/painting/
Dbinding_test.dart5 import 'dart:typed_data' show Uint8List;
20 final Uint8List bytes = Uint8List.fromList(kTransparentImage);
Dimage_provider_test.dart32 final Uint8List bytes = Uint8List.fromList(kTransparentImage);
46 final Uint8List bytes = Uint8List.fromList(kTransparentImage);
240 final List<Uint8List> chunks = <Uint8List>[];
243 chunks.add(Uint8List.fromList(kTransparentImage.skip(offset).take(chunkSize).toList()));
263 return Stream<Uint8List>.fromIterable(chunks).listen(
/third_party/flutter/flutter/packages/flutter_test/lib/src/
Dbinding.dart833 final Uint8List encoded = Uint8List.fromList(asset.readAsBytesSync());
1788 // TODO(tvolkert): Change to `extends Stream<Uint8List>` once
1791 …final Stream<Uint8List> _delegate = Stream<Uint8List>.fromIterable(const Iterable<Uint8List>.empty…
1822 …StreamSubscription<Uint8List> listen(void Function(Uint8List event) onData, { Function onError, vo…
1823 …return const Stream<Uint8List>.empty().listen(onData, onError: onError, onDone: onDone, cancelOnEr…
1844 Future<bool> any(bool Function(Uint8List element) test) {
1849 Stream<Uint8List> asBroadcastStream({
1850 void Function(StreamSubscription<Uint8List> subscription) onListen,
1851 void Function(StreamSubscription<Uint8List> subscription) onCancel,
1857 Stream<E> asyncExpand<E>(Stream<E> Function(Uint8List event) convert) {
[all …]
Dgoldens.dart37 Future<bool> compare(Uint8List imageBytes, Uri golden);
47 Future<void> update(Uri golden, Uint8List imageBytes);
140 Future<bool> compare(Uint8List imageBytes, Uri golden) {
146 Future<void> update(Uri golden, Uint8List imageBytes) {
202 Future<bool> compare(Uint8List imageBytes, Uri golden) async {
212 Future<void> update(Uri golden, Uint8List imageBytes) async {
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/engine/services/
Dserialization.dart23 Uint8List _eightBytesAsList;
61 /// Write all the values from a [Uint8List] into the buffer.
62 void putUint8List(Uint8List list) {
162 Uint8List getUint8List(int length) {
163 final Uint8List list =
/third_party/flutter/engine/flutter/shell/common/fixtures/
Dshell_test.dart74 Uint8List.fromList(utf8.encode(json)).buffer.asByteData(),
85 final Uint8List pixels = Uint8List.fromList(List<int>.generate(
/third_party/flutter/flutter/packages/flutter_goldens/test/
Dflutter_goldens_test.dart127 await comparator.compare(Uint8List.fromList(<int>[1, 2, 3]), Uri.parse('test.png'));
138 …final bool result = await comparator.compare(Uint8List.fromList(<int>[1, 2, 3]), Uri.parse('test.p…
146 …final bool result = await comparator.compare(Uint8List.fromList(<int>[1, 2, 3]), Uri.parse('test.p…
155 await comparator.update(Uri.parse('test.png'), Uint8List.fromList(<int>[1, 2, 3]));
164 await comparator.update(Uri.parse('test.png'), Uint8List.fromList(<int>[1, 2, 3]));
/third_party/flutter/flutter/packages/flutter_tools/test/general.shard/base/
Dnet_test.dart272 StreamSubscription<Uint8List> listen(
273 void onData(Uint8List event), {
278 return Stream<Uint8List>.fromFuture(Future<Uint8List>.error(const io.SocketException('test')))
283 Future<dynamic> forEach(void Function(Uint8List element) action) {
/third_party/flutter/flutter/packages/flutter_goldens/lib/
Dflutter_goldens.dart66 Future<void> update(Uri golden, Uint8List imageBytes) async {
150 Future<bool> compare(Uint8List imageBytes, Uri golden) async {
226 Future<bool> compare(Uint8List imageBytes, Uri golden) async {
287 Future<bool> compare(Uint8List imageBytes, Uri golden) async {
296 Future<void> update(Uri golden, Uint8List imageBytes) => null;
/third_party/flutter/engine/flutter/lib/ui/painting/
Dcodec.cc171 tonic::Uint8List list = in InstantiateImageCodec()
172 tonic::DartConverter<tonic::Uint8List>::FromArguments(args, 0, in InstantiateImageCodec()
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/engine/
Dhtml_image_codec.dart111 return _toByteData(format.index, (Uint8List encoded) {
118 String _toByteData(int format, Callback<Uint8List> callback) => null;
/third_party/flutter/flutter/dev/integration_tests/channels/lib/
Dmain.dart46 static final Uint8List someUint8s = Uint8List.fromList(<int>[

1234