/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/ |
D | IntegerArrayStreamTest.java | 30 IntegerArrayStream stream = new IntegerArrayStream(DATA_SET); in testPeekConsume() local 31 assertEquals(1, stream.peek()); in testPeekConsume() 32 assertEquals(1, stream.consume()); in testPeekConsume() 33 assertEquals(2, stream.peek()); in testPeekConsume() 34 assertEquals(2, stream.consume()); in testPeekConsume() 39 IntegerArrayStream stream = new IntegerArrayStream(DATA_SET); in testResidualLength() local 40 assertEquals(DATA_SET.length, stream.residualLength()); in testResidualLength() 41 stream.consume(); in testResidualLength() 42 assertEquals(DATA_SET.length - 1, stream.residualLength()); in testResidualLength() 47 IntegerArrayStream stream = new IntegerArrayStream(DATA_SET); in testHasAtLeast() local [all …]
|
/packages/apps/SecureElement/src/com/android/se/security/gpac/ |
D | BerTlv.java | 168 public static void encodeLength(int length, ByteArrayOutputStream stream) { in encodeLength() argument 171 stream.write(0x83); in encodeLength() 172 stream.write(((length & 0x00FF0000) >> 16)); in encodeLength() 173 stream.write(((length & 0x0000FF00) >> 8)); in encodeLength() 174 stream.write((length & 0x000000FF)); in encodeLength() 176 stream.write(0x82); in encodeLength() 177 stream.write(((length & 0x0000FF00) >> 8)); in encodeLength() 178 stream.write((length & 0x000000FF)); in encodeLength() 180 stream.write(0x81); in encodeLength() 181 stream.write((length & 0x000000FF)); in encodeLength() [all …]
|
D | AID_REF_DO.java | 144 public void build(ByteArrayOutputStream stream) throws DO_Exception { in build() argument 150 stream.write(getTag()); in build() 151 stream.write(0x00); in build() 161 stream.write(getTag()); in build() 162 stream.write(mAid.length); in build() 164 stream.write(mAid); in build()
|
D | APDU_AR_DO.java | 162 public void build(ByteArrayOutputStream stream) throws DO_Exception { in build() argument 171 stream.write(getTag()); in build() 175 stream.write(0x01); in build() 176 stream.write(this.mApduAllowed ? 0x01 : 0x00); in build() 195 BerTlv.encodeLength(temp.size(), stream); in build() local 197 stream.write(temp.toByteArray()); in build()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | AudioHelper.java | 63 public int getLastAudibleStreamVolume(int stream) { in getLastAudibleStreamVolume() argument 64 return mAudioManager.getLastAudibleStreamVolume(stream); in getLastAudibleStreamVolume() 67 public int getStreamVolume(int stream) { in getStreamVolume() argument 68 return mAudioManager.getStreamVolume(stream); in getStreamVolume() 71 public boolean setStreamVolume(int stream, int volume) { in setStreamVolume() argument 72 mAudioManager.setStreamVolume(stream, volume, 0); in setStreamVolume() 76 public int getMaxVolume(int stream) { in getMaxVolume() argument 77 return mAudioManager.getStreamMaxVolume(stream); in getMaxVolume() 80 public int getMinVolume(int stream) { in getMinVolume() argument 83 minVolume = mAudioManager.getStreamMinVolume(stream); in getMinVolume() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/ |
D | stream.md | 3 …g JSON. Here we first show how to use streams provided. And then see how to create a custom stream. 13 `StringStream` is the most basic input stream. It represents a complete, read-only JSON stored in m… 37 …tringStream<UTF8<> >`, user may use another encodings to represent the character set of the stream. 41 `StringBuffer` is a simple output stream. It allocates a memory buffer for writing the whole JSON. … 91 …ng streams, `FileReadStream` is byte stream. It does not handle encodings. If the file is not UTF-… 97 `FileWriteStream` is buffered output stream. Its usage is very similar to `FileReadStream`. 128 …k). When reading from a byte stream, it is needed to detect or just consume the BOM if exists. Whe… 130 If the encoding of stream is known in compile-time, you may use `EncodedInputStream` and `EncodedOu… 132 … than file. For example, you may have a file in memory, or a custom byte stream, be wrapped in enc… 136 …`UTF16LE`, defined in `rapidjson/encodings.h`. The second one is the class of stream to be wrapped. [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/ |
D | ContentTypeParser.java | 129 public ContentTypeParser(java.io.InputStream stream) { in ContentTypeParser() argument 130 this(stream, null); in ContentTypeParser() 132 public ContentTypeParser(java.io.InputStream stream, String encoding) { in ContentTypeParser() argument 133 …try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedE… in ContentTypeParser() 141 public void ReInit(java.io.InputStream stream) { in ReInit() argument 142 ReInit(stream, null); in ReInit() 144 public void ReInit(java.io.InputStream stream, String encoding) { in ReInit() argument 145 …try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException… in ReInit() 153 public ContentTypeParser(java.io.Reader stream) { in ContentTypeParser() argument 154 jj_input_stream = new SimpleCharStream(stream, 1, 1); in ContentTypeParser() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | AudioHelper.java | 61 public int getLastAudibleStreamVolume(int stream) { in getLastAudibleStreamVolume() argument 62 return mAudioManager.getLastAudibleStreamVolume(stream); in getLastAudibleStreamVolume() 65 public int getStreamVolume(int stream) { in getStreamVolume() argument 66 return mAudioManager.getStreamVolume(stream); in getStreamVolume() 69 public boolean setStreamVolume(int stream, int volume) { in setStreamVolume() argument 70 mAudioManager.setStreamVolume(stream, volume, 0); in setStreamVolume() 74 public int getMaxVolume(int stream) { in getMaxVolume() argument 75 return mAudioManager.getStreamMaxVolume(stream); in getMaxVolume()
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/ |
D | DateTimeParser.java | 428 public DateTimeParser(java.io.InputStream stream) { in DateTimeParser() argument 429 this(stream, null); in DateTimeParser() 431 public DateTimeParser(java.io.InputStream stream, String encoding) { in DateTimeParser() argument 432 …try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedE… in DateTimeParser() 440 public void ReInit(java.io.InputStream stream) { in ReInit() argument 441 ReInit(stream, null); in ReInit() 443 public void ReInit(java.io.InputStream stream, String encoding) { in ReInit() argument 444 …try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException… in ReInit() 452 public DateTimeParser(java.io.Reader stream) { in DateTimeParser() argument 453 jj_input_stream = new SimpleCharStream(stream, 1, 1); in DateTimeParser() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/ |
D | ContextualCardManager.java | 23 import static java.util.stream.Collectors.groupingBy; 54 import java.util.stream.Collectors; 152 return cards.stream() in sortCards() 174 cardsToKeep = mContextualCards.stream() in onContextualCardUpdated() 178 cardsToKeep = mContextualCards.stream() in onContextualCardUpdated() 186 updateList.values().stream().flatMap(List::stream).collect(Collectors.toList())); in onContextualCardUpdated() 211 onContextualCardUpdated(cardsToKeep.stream() in onFinishCardLoading() 220 onContextualCardUpdated(cards.stream() in onFinishCardLoading() 241 final ArrayList<String> cards = mContextualCards.stream() in onSaveInstanceState() 328 final List<ContextualCard> cardsToKeep = cards.stream() in getCardsToKeep() [all …]
|
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ |
D | ManagedImageReader.java | 108 AllocatingImageStream stream = new AllocatingImageStream(capacity, in createUnallocatedStream() local 110 mLifetime.add(stream); in createUnallocatedStream() 112 return stream; in createUnallocatedStream() 150 AllocatingImageStream stream = createUnallocatedStream(capacity); in createPreallocatedStream() local 152 stream.allocate(); in createPreallocatedStream() 153 return stream; in createPreallocatedStream() 156 stream.close(); in createPreallocatedStream()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCardManager.java | 23 import static java.util.stream.Collectors.groupingBy; 56 import java.util.stream.Collectors; 155 return cards.stream() in sortCards() 177 cardsToKeep = mContextualCards.stream() in onContextualCardUpdated() 181 cardsToKeep = mContextualCards.stream() in onContextualCardUpdated() 189 updateList.values().stream().flatMap(List::stream).collect(Collectors.toList())); in onContextualCardUpdated() 217 onContextualCardUpdated(cardsToKeep.stream() in onFinishCardLoading() 227 onContextualCardUpdated(cards.stream() in onFinishCardLoading() 249 final ArrayList<String> cards = mContextualCards.stream() in onSaveInstanceState() 352 final List<ContextualCard> cardsToKeep = cards.stream() in getCardsToKeep() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/ |
D | FileWriterWithEncoding.java | 230 OutputStream stream = null; in initWriter() local 233 stream = new FileOutputStream(file, append); in initWriter() 235 writer = new OutputStreamWriter(stream, (Charset)encoding); in initWriter() 237 writer = new OutputStreamWriter(stream, (CharsetEncoder)encoding); in initWriter() 239 writer = new OutputStreamWriter(stream, (String)encoding); in initWriter() 243 IOUtils.closeQuietly(stream); in initWriter() 250 IOUtils.closeQuietly(stream); in initWriter()
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/ |
D | QuotedPrintableInputStream.java | 40 private InputStream stream; field in QuotedPrintableInputStream 45 public QuotedPrintableInputStream(InputStream stream) { in QuotedPrintableInputStream() argument 46 this.stream = stream; in QuotedPrintableInputStream() 55 stream.close(); in close() 87 int i = stream.read(); in populatePushbackQueue()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/ |
D | ControllerRendererPoolTest.java | 55 ContextualCardLookupTable.LOOKUP_TABLE.stream().forEach(mapping -> assertThat( in getController_hasSupportedCardType_shouldReturnCorrespondingController() 62 final long count = ContextualCardLookupTable.LOOKUP_TABLE.stream().map( in getController_hasSupportedCardType_shouldHaveTwoControllersInPool() 65 ContextualCardLookupTable.LOOKUP_TABLE.stream().forEach( in getController_hasSupportedCardType_shouldHaveTwoControllersInPool() 82 ContextualCardLookupTable.LOOKUP_TABLE.stream().forEach(mapping -> assertThat( in getRenderer_hasSupportedViewType_shouldReturnCorrespondingRenderer() 89 final long count = ContextualCardLookupTable.LOOKUP_TABLE.stream().map( in getRenderer_hasSupportedViewType_shouldHaveDistinctRenderersInPool() 92 ContextualCardLookupTable.LOOKUP_TABLE.stream().forEach( in getRenderer_hasSupportedViewType_shouldHaveDistinctRenderersInPool()
|
/packages/apps/SecureElement/src/com/android/se/security/ara/ |
D | AccessRuleApplet.java | 69 ByteArrayOutputStream stream = new ByteArrayOutputStream(); in readAllAccessRules() local 91 stream.write(response.getData()); in readAllAccessRules() 98 while (stream.size() < overallLen) { in readAllAccessRules() 99 le = overallLen - stream.size(); in readAllAccessRules() 112 stream.write(response.getData()); in readAllAccessRules() 122 return stream.toByteArray(); in readAllAccessRules()
|
/packages/apps/TV/src/com/android/tv/license/ |
D | Licenses.java | 90 InputStream stream = in getTextFromResource() local 92 return getTextFromInputStream(stream, offset, length); in getTextFromResource() 95 private static String getTextFromInputStream(InputStream stream, long offset, int length) { in getTextFromInputStream() argument 100 stream.skip(offset); in getTextFromInputStream() 105 && (bytes = stream.read(buffer, 0, Math.min(bytesRemaining, buffer.length))) in getTextFromInputStream() 110 stream.close(); in getTextFromInputStream()
|
/packages/apps/Dialer/java/com/android/dialer/about/ |
D | Licenses.java | 77 InputStream stream = in getTextFromResource() local 79 return getTextFromInputStream(stream, offset, length); in getTextFromResource() 82 private static String getTextFromInputStream(InputStream stream, long offset, int length) { in getTextFromInputStream() argument 87 stream.skip(offset); in getTextFromInputStream() 92 && (bytes = stream.read(buffer, 0, Math.min(bytesRemaining, buffer.length))) != -1) { in getTextFromInputStream() 96 stream.close(); in getTextFromInputStream()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | PhoneAccountSuggestionHelper.java | 43 import java.util.stream.Collectors; 44 import java.util.stream.Stream; 153 List<PhoneAccountHandle> handlesInSuggestions = providedSuggestions.stream() in addDefaultsToProvidedSuggestions() 156 List<PhoneAccountHandle> handlesToFillIn = availableAccountHandles.stream() in addDefaultsToProvidedSuggestions() 160 return Stream.concat(suggestionsToAppend.stream(), providedSuggestions.stream()) in addDefaultsToProvidedSuggestions() 204 return phoneAccountHandles.stream().map(phoneAccountHandle -> in getDefaultSuggestions()
|
D | InCallTonePlayer.java | 342 int stream = AudioManager.STREAM_VOICE_CALL; in run() local 344 stream = AudioManager.STREAM_BLUETOOTH_SCO; in run() 348 playToneGeneratorTone(stream, toneVolume, toneType, toneLengthMillis); in run() 350 playMediaTone(stream, mediaResourceId); in run() 365 private void playToneGeneratorTone(int stream, int toneVolume, int toneType, in playToneGeneratorTone() argument 372 toneGenerator = mToneGenerator.get(stream, toneVolume); in playToneGeneratorTone() 411 private void playMediaTone(int stream, int toneResourceId) { in playMediaTone() argument 420 .setLegacyStreamType(stream) in playMediaTone()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | NotificationPlayer.java | 51 int stream; field in NotificationPlayer.Command 58 return "{ code=" + code + " looping=" + looping + " stream=" + stream in toString() 90 player.setAudioStreamType(mCmd.stream); in run() 97 audioManager.requestAudioFocus(null, mCmd.stream, in run() 278 public void play(final Uri uri, final boolean looping, final int stream, final float volume) { in play() argument 284 cmd.stream = stream; in play()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/ |
D | FailureWatcher.java | 26 final ByteArrayOutputStream stream = new ByteArrayOutputStream(); in dumpViewHierarchy() local 28 mDevice.dumpWindowHierarchy(stream); in dumpViewHierarchy() 29 stream.flush(); in dumpViewHierarchy() 30 stream.close(); in dumpViewHierarchy() 31 for (String line : stream.toString().split("\\r?\\n")) { in dumpViewHierarchy()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | VolumeSeekBarPreferenceTest.java | 53 final int stream = 5; in setStream_shouldSetMinMaxAndProgress() local 57 when(mAudioManager.getStreamMaxVolume(stream)).thenReturn(max); in setStream_shouldSetMinMaxAndProgress() 58 when(mAudioManager.getStreamMinVolumeInt(stream)).thenReturn(min); in setStream_shouldSetMinMaxAndProgress() 59 when(mAudioManager.getStreamVolume(stream)).thenReturn(progress); in setStream_shouldSetMinMaxAndProgress() 62 mPreference.setStream(stream); in setStream_shouldSetMinMaxAndProgress()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/nonrequiredapps/ |
D | SystemAppsSnapshot.java | 101 FileOutputStream stream = new FileOutputStream(systemAppsFile, false); in writeSystemApps() local 103 serializer.setOutput(stream, "utf-8"); in writeSystemApps() 113 stream.close(); in writeSystemApps() 125 FileInputStream stream = new FileInputStream(systemAppsFile); in readSystemApps() local 128 parser.setInput(stream, null); in readSystemApps() 145 stream.close(); in readSystemApps()
|
/packages/services/Car/obd2-lib/src/com/android/car/obd2/ |
D | Obd2Command.java | 161 IntegerArrayStream stream = new IntegerArrayStream(data); in run() local 162 if (stream.expect(RESPONSE_MARKER, mSemanticHandler.getPid())) { in run() 163 return mSemanticHandler.consume(stream); in run() 189 IntegerArrayStream stream = new IntegerArrayStream(data); in run() local 190 if (stream.expect(RESPONSE_MARKER, mSemanticHandler.getPid(), mFrameId)) { in run() 191 return mSemanticHandler.consume(stream); in run()
|