Searched refs:stream (Results 1 - 25 of 186) sorted by relevance

12345678

/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/
H A DIntegerArrayStreamTest.java30 IntegerArrayStream stream = new IntegerArrayStream(DATA_SET);
31 assertEquals(1, stream.peek());
32 assertEquals(1, stream.consume());
33 assertEquals(2, stream.peek());
34 assertEquals(2, stream.consume());
39 IntegerArrayStream stream = new IntegerArrayStream(DATA_SET);
40 assertEquals(DATA_SET.length, stream.residualLength());
41 stream.consume();
42 assertEquals(DATA_SET.length - 1, stream.residualLength());
47 IntegerArrayStream stream
[all...]
H A DUtils.java30 return arrayList.stream().mapToInt(Integer::intValue).toArray();
39 int totalSize = Arrays.stream(arrays).mapToInt((int[] array) -> array.length).sum();
/packages/apps/Dialer/java/com/android/incallui/ringtone/
H A DToneGeneratorFactory.java27 * @param stream the stream through which to play tones.
31 public ToneGenerator newInCallToneGenerator(int stream, int volume) { argument
32 return new ToneGenerator(stream, volume);
/packages/apps/Settings/src/com/android/settings/notification/
H A DAudioHelper.java60 public int getLastAudibleStreamVolume(int stream) { argument
61 return mAudioManager.getLastAudibleStreamVolume(stream);
64 public int getStreamVolume(int stream) { argument
65 return mAudioManager.getStreamVolume(stream);
68 public boolean setStreamVolume(int stream, int volume) { argument
69 mAudioManager.setStreamVolume(stream, volume, 0);
73 public int getMaxVolume(int stream) { argument
74 return mAudioManager.getStreamMaxVolume(stream);
/packages/apps/SecureElement/src/com/android/se/security/gpac/
H A DNFC_AR_DO.java103 public void build(ByteArrayOutputStream stream) throws DO_Exception { argument
106 stream.write(getTag());
107 stream.write(0x01);
108 stream.write(mNfcAllowed ? 0x01 : 0x00);
H A DBerTlv.java168 public static void encodeLength(int length, ByteArrayOutputStream stream) { argument
171 stream.write(0x83);
172 stream.write(((length & 0x00FF0000) >> 16));
173 stream.write(((length & 0x0000FF00) >> 8));
174 stream.write((length & 0x000000FF));
176 stream.write(0x82);
177 stream.write(((length & 0x0000FF00) >> 8));
178 stream.write((length & 0x000000FF));
180 stream.write(0x81);
181 stream
199 build(ByteArrayOutputStream stream) argument
[all...]
H A DAID_REF_DO.java145 public void build(ByteArrayOutputStream stream) throws DO_Exception { argument
151 stream.write(getTag());
152 stream.write(0x00);
162 stream.write(getTag());
163 stream.write(mAid.length);
165 stream.write(mAid);
H A DAPDU_AR_DO.java162 public void build(ByteArrayOutputStream stream) throws DO_Exception { argument
171 stream.write(getTag());
175 stream.write(0x01);
176 stream.write(this.mApduAllowed ? 0x01 : 0x00);
195 BerTlv.encodeLength(temp.size(), stream);
197 stream.write(temp.toByteArray());
H A DAR_DO.java123 public void build(ByteArrayOutputStream stream) throws DO_Exception { argument
126 stream.write(getTag());
137 BerTlv.encodeLength(temp.size(), stream);
139 stream.write(temp.toByteArray());
H A DHash_REF_DO.java134 public void build(ByteArrayOutputStream stream) throws DO_Exception { argument
141 stream.write(getTag());
144 stream.write(mHash.length);
145 stream.write(mHash);
H A DREF_AR_DO.java125 public void build(ByteArrayOutputStream stream) throws DO_Exception { argument
131 stream.write(getTag());
137 BerTlv.encodeLength(data.length, stream);
139 stream.write(data);
/packages/services/Car/service/src/com/android/car/
H A DSlidingWindow.java21 import java.util.stream.Stream;
53 public Stream<T> stream() { method in class:SlidingWindow
54 return mElements.stream();
62 return (int)stream().filter(predicate).count();
H A DSparseArrayStream.java20 import java.util.stream.IntStream;
21 import java.util.stream.Stream;
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
H A DVolumeSeekBarPreferenceTest.java54 final int stream = 5;
58 when(mAudioManager.getStreamMaxVolume(stream)).thenReturn(max);
59 when(mAudioManager.getStreamMinVolumeInt(stream)).thenReturn(min);
60 when(mAudioManager.getStreamVolume(stream)).thenReturn(progress);
63 mPreference.setStream(stream);
/packages/apps/Camera2/src/com/android/camera/util/
H A DFileUtil.java60 FileInputStream stream = new FileInputStream(file);
64 offset += stream.read(data, offset, length - offset);
69 stream.close();
/packages/apps/Camera2/src/com/android/camera/async/
H A DRefCountedBufferQueueController.java27 public RefCountedBufferQueueController(BufferQueueController<T> stream) { argument
28 mBuffer = new RefCountBase<BufferQueueController>(stream, 1);
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/
H A DManagedImageReader.java46 * // Create a stream which holds 3 images.
47 * ImageStream stream = managedImageReader.createStream(3);
49 * builder.addStream(stream);
57 * ImageProxy image1 = stream.getNext();
58 * ImageProxy image2 = stream.getNext();
59 * ImageProxy image3 = stream.getNext();
61 * // Close the stream when no more images are expected.
62 * stream.close();
108 AllocatingImageStream stream = new AllocatingImageStream(capacity,
110 mLifetime.add(stream);
[all...]
/packages/apps/Dialer/java/com/android/dialer/about/
H A DLicenses.java77 InputStream stream =
79 return getTextFromInputStream(stream, offset, length);
82 private static String getTextFromInputStream(InputStream stream, long offset, int length) { argument
87 stream.skip(offset);
92 && (bytes = stream.read(buffer, 0, Math.min(bytesRemaining, buffer.length))) != -1) {
96 stream.close();
/packages/apps/TV/src/com/android/tv/license/
H A DLicenses.java90 InputStream stream =
92 return getTextFromInputStream(stream, offset, length);
95 private static String getTextFromInputStream(InputStream stream, long offset, int length) { argument
100 stream.skip(offset);
105 && (bytes = stream.read(buffer, 0, Math.min(bytesRemaining, buffer.length)))
110 stream.close();
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/
H A DQuotedPrintableInputStream.java31 * Performs Quoted-Printable decoding on an underlying stream.
40 private InputStream stream; field in class:QuotedPrintableInputStream
45 public QuotedPrintableInputStream(InputStream stream) { argument
46 this.stream = stream;
50 * Closes the underlying stream.
55 stream.close();
72 * Pulls bytes out of the underlying stream and places them in the
74 * underlying stream directly) to detect and filter out "transport
78 * @throws IOException Underlying stream thre
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
H A DRequestGetFolderListing.java59 protected void readResponse(InputStream stream) { argument
60 mResponse = new FolderListing(stream);
/packages/apps/Settings/src/com/android/settings/datetime/timezone/model/
H A DFilteredCountryTimeZones.java23 import java.util.stream.Collectors;
39 List<String> timeZoneIds = countryTimeZones.getTimeZoneMappings().stream()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/
H A DDemuxOutputStream.java23 * Data written to this stream is forwarded to a stream that has been associated
35 * Bind the specified stream to the current thread.
37 * @param output the stream to bind
42 OutputStream stream = getStream();
44 return stream;
48 * Closes stream associated with current thread.
64 * Flushes stream associated with current thread.
80 * Writes byte to stream associated with current thread.
82 * @param ch the byte to write to stream
[all...]
/packages/apps/Car/libs/car-stream-ui-lib/
H A DAndroid.mk30 LOCAL_MODULE := car-stream-ui-lib
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
H A DHexDump.java48 * @param stream the OutputStream to which the data is to be
53 * the data to stream
56 * @throws IllegalArgumentException if the output stream is null
60 OutputStream stream, int index)
69 if (stream == null) {
98 stream.write(buffer.toString().getBytes());
99 stream.flush();
59 dump(byte[] data, long offset, OutputStream stream, int index) argument

Completed in 776 milliseconds

12345678