/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 | PKG_REF_DO.java | 99 public void build(ByteArrayOutputStream stream) throws DO_Exception { in build() argument 106 stream.write(getTag()); in build() 109 stream.write(pkg.length); in build() 110 stream.write(pkg); in build() 133 ByteArrayOutputStream stream = new ByteArrayOutputStream(); in hashCode() local 135 this.build(stream); in hashCode() 139 byte[] data = stream.toByteArray(); in hashCode()
|
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 …]
|
D | dom.md | 78 // (2) Using the same Encoding for stream 105 …torial.md) uses (8) for normal parsing of string. The examples of [stream](doc/stream.md) uses the… 116 …stream, stop further processing the rest of stream. When this flag is used, parser will not genera… 121 The `SourceEncoding` parameter defines what encoding is in the stream. This can be differed to the … 123 And the `InputStream` is type of input stream. 148 The offset of error is defined as the character number from beginning of stream. Currently RapidJSO… 218 2. The source encoding in stream and target encoding in document must be the same. 226 …stream can be different from the encoding of the DOM. For example, the source stream contains a UT… 228 …riting a JSON from DOM to output stream, transcoding can also be used. An example is in [EncodedOu… 232 When the source encoding of stream is the same as encoding of DOM, by default, the parser will *not…
|
/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/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; 57 import java.util.stream.Collectors; 160 return cards.stream() in sortCards() 182 cardsToKeep = mContextualCards.stream() in onContextualCardUpdated() 186 cardsToKeep = mContextualCards.stream() in onContextualCardUpdated() 194 updateList.values().stream().flatMap(List::stream).collect(Collectors.toList())); in onContextualCardUpdated() 222 onContextualCardUpdated(cardsToKeep.stream() in onFinishCardLoading() 232 onContextualCardUpdated(cards.stream() in onFinishCardLoading() 254 final ArrayList<String> cards = mContextualCards.stream() in onSaveInstanceState() 357 final List<ContextualCard> cardsToKeep = cards.stream() in getCardsToKeep() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CarModeTracker.java | 32 import java.util.stream.Collectors; 103 if (mCarModeApps.stream().anyMatch(c -> c.getPriority() == priority)) { in handleEnterCarMode() 109 if (mCarModeApps.stream().anyMatch(c -> c.getPackageName().equals(packageName))) { in handleEnterCarMode() 127 if (!mCarModeApps.stream().anyMatch(c -> c.getPriority() == priority)) { in handleExitCarMode() 133 if (priority != UiModeManager.DEFAULT_PRIORITY && !mCarModeApps.stream().anyMatch( in handleExitCarMode() 153 .stream() in getCarModeApps() 161 .stream() in getCarModePriorityString()
|
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/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/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/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/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/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/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/Launcher3/tests/src/com/android/launcher3/util/rule/ |
D | FailureWatcher.java | 25 final ByteArrayOutputStream stream = new ByteArrayOutputStream(); in dumpViewHierarchy() local 27 device.dumpWindowHierarchy(stream); in dumpViewHierarchy() 28 stream.flush(); in dumpViewHierarchy() 29 stream.close(); in dumpViewHierarchy() 30 for (String line : stream.toString().split("\\r?\\n")) { in dumpViewHierarchy()
|
/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()
|
/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/apps/Dialer/java/com/android/incallui/ringtone/ |
D | InCallTonePlayer.java | 109 toneGenerator = toneGeneratorFactory.newInCallToneGenerator(info.stream, info.volume); in playOnBackgroundThread() 147 public final int stream; field in InCallTonePlayer.ToneGeneratorInfo 149 public ToneGeneratorInfo(int toneGeneratorType, int volume, int toneLengthMillis, int stream) { in ToneGeneratorInfo() argument 153 this.stream = stream; in ToneGeneratorInfo()
|