/cts/tests/tests/net/src/android/net/rtp/cts/ |
D | AudioStreamTest.java | 27 AudioStream stream = new AudioStream(address); in testRtpStream() local 28 assertEquals(stream.getLocalAddress(), address); in testRtpStream() 29 assertEquals(stream.getLocalPort() % 2, 0); in testRtpStream() 31 assertNull(stream.getRemoteAddress()); in testRtpStream() 32 assertEquals(stream.getRemotePort(), -1); in testRtpStream() 33 stream.associate(address, 1000); in testRtpStream() 34 assertEquals(stream.getRemoteAddress(), address); in testRtpStream() 35 assertEquals(stream.getRemotePort(), 1000); in testRtpStream() 37 assertFalse(stream.isBusy()); in testRtpStream() 38 stream.release(); in testRtpStream() [all …]
|
/cts/tests/tests/media/res/raw/ |
D | vp90_2_09_subpixel_00_vp9_md5 | 1 50233551e96b74ebfdaabbc8a154303c vp90-hantro-stream-001-320x180-0001.i420 2 047109ae2e488be8ee953dca4f09a0e2 vp90-hantro-stream-001-320x180-0002.i420 3 5e2ba01240e39566a607f10f0d7eaed3 vp90-hantro-stream-001-320x180-0003.i420 4 01f1c635ce56efcc13def2ac3bcccc3f vp90-hantro-stream-001-320x180-0004.i420 5 6e800d75da797409eb2f5b458027b05d vp90-hantro-stream-001-320x180-0005.i420 6 a88b9c2cfad5367d934fd067c2c6452d vp90-hantro-stream-001-320x180-0006.i420 7 a898a33e443dba4c2d61c27caa0fb068 vp90-hantro-stream-001-320x180-0007.i420 8 321f16df155169f1fbd117a258b065ed vp90-hantro-stream-001-320x180-0008.i420 9 a71b4df17c37e423a2a6129be8058c66 vp90-hantro-stream-001-320x180-0009.i420 10 b168dad8dd0be2e945ada495320e1ec3 vp90-hantro-stream-001-320x180-0010.i420 [all …]
|
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/ |
D | Ipv4Packet.java | 42 public Ipv4Packet(DataInputStream stream) throws IOException { in Ipv4Packet() argument 43 int versionIhl = stream.readUnsignedByte(); in Ipv4Packet() 47 type = stream.readUnsignedByte(); in Ipv4Packet() 48 totalLength = stream.readUnsignedShort(); in Ipv4Packet() 49 identification = stream.readUnsignedShort(); in Ipv4Packet() 50 flagsAndOffset = stream.readUnsignedShort(); in Ipv4Packet() 51 timeToLive = stream.readUnsignedByte(); in Ipv4Packet() 52 protocol = stream.readUnsignedByte(); in Ipv4Packet() 53 int checksum = stream.readUnsignedShort(); in Ipv4Packet() 57 stream.read(address, 0, address.length); in Ipv4Packet() [all …]
|
D | IcmpMessage.java | 31 IcmpMessage(DataInputStream stream, int length) throws IOException { in IcmpMessage() argument 32 type = stream.readUnsignedByte(); in IcmpMessage() 33 code = stream.readUnsignedByte(); in IcmpMessage() 34 int checksum = stream.readUnsignedShort(); in IcmpMessage() 35 quench = stream.readInt() & 0xFFFFFFFFL; in IcmpMessage() 39 int len = stream.read(data, 0, dataLength); in IcmpMessage() 45 stream.reset(); in IcmpMessage() 46 stream.readFully(original); in IcmpMessage() 54 DataOutputStream stream = new DataOutputStream(output); in getEncoded() local 56 stream.writeByte(type); in getEncoded() [all …]
|
/cts/tests/tests/nativemedia/aaudio/jni/ |
D | test_aaudio.cpp | 47 AAudioStream* stream() const { return mHelper->stream(); } in stream() function in AAudioStreamTest 87 EXPECT_EQ(0, AAudioStream_getFramesRead(stream())); in TEST_P() 88 EXPECT_EQ(0, AAudioStream_getFramesWritten(stream())); in TEST_P() 92 ASSERT_NE(AAUDIO_UNSPECIFIED, AAudioStream_getDeviceId(stream())); in TEST_P() 95 stream(), &mData[0], std::min(framesToRecord, mFramesPerRead), in TEST_P() 101 EXPECT_GE(AAudioStream_getFramesRead(stream()), framesToRecord); in TEST_P() 102 EXPECT_GE(AAudioStream_getFramesWritten(stream()), framesToRecord); in TEST_P() 103 EXPECT_GE(AAudioStream_getXRunCount(stream()), 0); in TEST_P() 111 EXPECT_EQ(0, AAudioStream_getFramesRead(stream())); in TEST_P() 112 EXPECT_EQ(0, AAudioStream_getFramesWritten(stream())); in TEST_P() [all …]
|
D | test_aaudio_callback.cpp | 30 static int32_t measureLatency(AAudioStream *stream) { in measureLatency() argument 34 int32_t sampleRate = AAudioStream_getSampleRate(stream); in measureLatency() 35 int64_t framesWritten = AAudioStream_getFramesWritten(stream); in measureLatency() 36 aaudio_result_t result = AAudioStream_getTimestamp(stream, in measureLatency() 109 static void MyErrorCallbackProc(AAudioStream *stream, void *userData, aaudio_result_t error); 112 AAudioStream* stream() const { return mHelper->stream(); } in stream() function in AAudioStreamCallbackTest 133 AAudioStream *stream, void *userData, void *audioData, int32_t numFrames); 168 const int32_t actualFramesPerDataCallback = AAudioStream_getFramesPerDataCallback(stream()); in TEST_P() 178 EXPECT_NE(AAUDIO_UNSPECIFIED, AAudioStream_getDeviceId(stream())); in TEST_P() 221 AAudioStream *stream, void *userData, void *audioData, int32_t numFrames); [all …]
|
D | test_aaudio_mmap.cpp | 99 AAudioStream *stream = nullptr; in TEST() local 116 result = AAudioStreamBuilder_openStream(builder, &stream); in TEST() 123 AAudioStream_close(stream); in TEST()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeEventStreamTestUtils.java | 80 public static ImeEvent expectEvent(@NonNull ImeEventStream stream, in expectEvent() argument 82 return expectEvent(stream, condition, EventFilterMode.CHECK_ENTER_EVENT_ONLY, timeout); in expectEvent() 101 public static ImeEvent expectEvent(@NonNull ImeEventStream stream, in expectEvent() argument 109 "event not found within the timeout: " + stream.dump()); in expectEvent() 125 result = stream.seekToFirst(combinedCondition); in expectEvent() 134 throw new NullPointerException("found event is null: " + stream.dump()); in expectEvent() 136 stream.skip(1); in expectEvent() 139 throw new RuntimeException("expectEvent failed: " + stream.dump(), e); in expectEvent() 177 public static ImeEvent expectCommand(@NonNull ImeEventStream stream, 187 return expectEvent(stream, predicate, EventFilterMode.CHECK_EXIT_EVENT_ONLY, timeout); [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | RingerModeActivity.java | 151 private void testStreamMuting(int stream) { in testStreamMuting() argument 152 if (stream == AudioManager.STREAM_VOICE_CALL) { in testStreamMuting() 154 mAudioManager.adjustStreamVolume(stream, AudioManager.ADJUST_MUTE, 0); in testStreamMuting() 155 … assertFalse("Muting stream " + stream + " should require MODIFY_PHONE_STATE permission.", in testStreamMuting() 156 mAudioManager.isStreamMute(stream)); in testStreamMuting() 158 mAudioManager.adjustStreamVolume(stream, AudioManager.ADJUST_MUTE, 0); in testStreamMuting() 159 assertTrue("Muting stream " + stream + " failed.", in testStreamMuting() 160 mAudioManager.isStreamMute(stream)); in testStreamMuting() 162 mAudioManager.adjustStreamVolume(stream, AudioManager.ADJUST_UNMUTE, 0); in testStreamMuting() 163 assertFalse("Unmuting stream " + stream + " failed.", in testStreamMuting() [all …]
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | FocusHandlingTest.java | 103 final ImeEventStream stream = imeSession.openEventStream(); in testOnStartInputCalledOnceIme() local 109 expectBindInput(stream, Process.myPid(), TIMEOUT); in testOnStartInputCalledOnceIme() 117 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testOnStartInputCalledOnceIme() 119 assertFalse(stream.dump(), onStart.getEnterState().hasDummyInputConnection()); in testOnStartInputCalledOnceIme() 120 assertFalse(stream.dump(), onStart.getArguments().getBoolean("restarting")); in testOnStartInputCalledOnceIme() 123 notExpectEvent(stream, editorMatcher("onStartInput", marker), NOT_EXPECT_TIMEOUT); in testOnStartInputCalledOnceIme() 133 final ImeEventStream stream = imeSession.openEventStream(); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() local 157 notExpectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() 159 … notExpectEvent(stream, event -> "showSoftInput".equals(event.getEventName()), TIMEOUT); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() 162 expectBindInput(stream, Process.myPid(), TIMEOUT); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() [all …]
|
D | KeyboardVisibilityControlTest.java | 140 final ImeEventStream stream = imeSession.openEventStream(); 145 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); 146 notExpectEvent(stream, editorMatcher("onStartInputView", marker), TIMEOUT); 155 expectEvent(stream, showSoftInputMatcher(InputMethod.SHOW_EXPLICIT), TIMEOUT); 156 expectEvent(stream, editorMatcher("onStartInputView", marker), TIMEOUT); 162 expectEvent(stream, hideSoftInputMatcher(), TIMEOUT); 163 expectEvent(stream, onFinishInputViewMatcher(false), TIMEOUT); 176 final ImeEventStream stream = imeSession.openEventStream(); 184 expectEvent(stream, editorMatcher("onStartInput", focusedMarker), TIMEOUT); 190 notExpectEvent(stream, showSoftInputMatcher(InputMethod.SHOW_EXPLICIT), TIMEOUT); [all …]
|
D | InputMethodServiceTest.java | 107 final ImeEventStream stream = imeSession.openEventStream(); 110 expectEvent(stream, event -> "onStartInputView".equals(event.getEventName()), TIMEOUT); 113 expectCommand(stream, command, TIMEOUT); 120 expectEvent(stream, backKeyDownMatcher(true), CHECK_EXIT_EVENT_ONLY, TIMEOUT); 159 final ImeEventStream stream = imeSession.openEventStream(); 162 expectEvent(stream, event -> "onStartInputView".equals(event.getEventName()), TIMEOUT); 165 expectEvent(stream, event -> "hideSoftInput".equals(event.getEventName()), TIMEOUT); 166 expectEvent(stream, event -> "onFinishInputView".equals(event.getEventName()), TIMEOUT); 176 final ImeEventStream stream = imeSession.openEventStream(); 180 stream, event -> "onStartInputView".equals(event.getEventName()), TIMEOUT); [all …]
|
D | SearchViewTest.java | 81 final ImeEventStream stream = imeSession.openEventStream(); in testTapThenSetQuery() local 90 expectBindInput(stream, Process.myPid(), TIMEOUT); in testTapThenSetQuery() 93 expectEvent(stream, event -> in testTapThenSetQuery() 101 expectEvent(stream, event -> "hideSoftInput".equals(event.getEventName()), TIMEOUT); in testTapThenSetQuery()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioManagerTest.java | 645 for (int stream : streams) { in testVolume() 649 int maxVolume = mAudioManager.getStreamMaxVolume(stream); in testVolume() 650 int minVolume = mAudioManager.getStreamMinVolume(stream); in testVolume() 658 mAudioManager.setStreamVolume(stream, 1, 0); in testVolume() 660 assertEquals(maxVolume, mAudioManager.getStreamVolume(stream)); in testVolume() 663 assertEquals(String.format("stream=%d", stream), in testVolume() 664 1, mAudioManager.getStreamVolume(stream)); in testVolume() 666 if (stream == AudioManager.STREAM_MUSIC && mAudioManager.isWiredHeadsetOn()) { in testVolume() 676 mAudioManager.adjustStreamVolume(stream, ADJUST_RAISE, 0); in testVolume() 677 curvol = mAudioManager.getStreamVolume(stream); in testVolume() [all …]
|
D | SoundPoolTest.java | 228 for (int stream : streamIds) { in testLoadMore() 229 assertTrue(stream != 0); in testLoadMore() 230 mSoundPool.stop(stream); in testLoadMore() 318 for (int stream : streamIds) { in testAutoPauseResume() 319 assertTrue(stream != 0); in testAutoPauseResume() 320 soundPool.stop(stream); in testAutoPauseResume() 354 int stream = 0; in waitUntilLoaded() local 355 while (stream == 0) { in waitUntilLoaded() 357 stream = mSoundPool.play(sampleId, SILENT, SILENT, 1, 0, 1); in waitUntilLoaded() 359 mSoundPool.stop(stream); in waitUntilLoaded()
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
D | GenerateBitmapTask.java | 79 FileOutputStream stream = null; in doInBackground() local 81 stream = new FileOutputStream(file); in doInBackground() 82 success = bitmap.compress(CompressFormat.PNG, 100, stream); in doInBackground() 84 if (stream != null) { in doInBackground() 85 stream.flush(); in doInBackground() 86 stream.close(); in doInBackground()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/ |
D | StreamingVideoActivity.java | 82 Stream stream = (Stream) o; in equals() local 83 return name.equals(stream.name) in equals() 84 && code.equals(stream.code) in equals() 85 && uri.equals(stream.uri); in equals() 192 for (Stream stream : HTTP_STREAMS) { 193 addStreamToTests(adapter, stream); 212 Stream stream = new Stream(name, code, rtspUrl); 213 addStreamToTests(adapter, stream); 216 private void addStreamToTests(ArrayTestListAdapter streams, Stream stream) { 218 i.putExtra(PlayVideoActivity.EXTRA_STREAM, stream); [all …]
|
/cts/hostsidetests/api/src/com/android/cts/api/ |
D | ApprovedApis.java | 29 import java.util.stream.Collectors; 30 import java.util.stream.Stream; 53 definedApiMethods.putAll(definedApiClasses.values().stream() in ApprovedApis() 54 .flatMap(c -> c.getMethods().stream()) // all methods from all classes in ApprovedApis() 58 definedApiFields.putAll(definedApiClasses.values().stream() in ApprovedApis() 59 .flatMap(c -> c.getFields().stream()) // all fields from all classes in ApprovedApis() 66 definedApiClasses.values().stream().sorted() in ApprovedApis() 69 definedApiMethods.values().stream().sorted() in ApprovedApis() 73 definedApiFields.values().stream().sorted() in ApprovedApis() 97 apiInfo.getPackages().values().stream() in parse() [all …]
|
D | DexAnalyzer.java | 31 import java.util.stream.Collectors; 32 import java.util.stream.Stream; 33 import java.util.stream.StreamSupport; 111 fromList.stream().forEach(name -> joiner.add(name)); in printReferencedFrom() 259 definedMethodsInDex.putAll(definedClassesInDex.values().stream() in DexAnalyzer() 261 .flatMap(methods -> methods.stream()) in DexAnalyzer() 265 definedFieldsInDex.putAll(definedClassesInDex.values().stream() in DexAnalyzer() 267 .flatMap(fields -> fields.stream()) in DexAnalyzer() 272 definedClassesInDex.values().stream().sorted() in DexAnalyzer() 275 definedMethodsInDex.values().stream().sorted() in DexAnalyzer() [all …]
|
D | DefinedClass.java | 22 import java.util.stream.Collectors; 59 methodSignatures.addAll(methods.stream() in addNewMembers() 64 fieldSignatures.addAll(fields.stream() in addNewMembers()
|
/cts/suite/audio_quality/client/src/com/android/cts/audiotest/ |
D | CtsAudioClientActivity.java | 68 int setVolume(int stream, int level) { in setVolume() argument 70 mgr.setStreamMute(stream, false); in setVolume() 74 targetLevel = mgr.getStreamMaxVolume(stream); in setVolume() 76 mgr.setStreamVolume(stream, targetLevel, 0); in setVolume()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
D | LightNavigationBarVerifier.java | 160 if (Arrays.stream(channelDiffs).allMatch( in verify() 161 diffs -> Arrays.stream(diffs).allMatch(diff -> diff == 0))) { in verify() 166 if (Arrays.stream(channelDiffs).anyMatch(diffs -> { in verify() 167 final OptionalDouble average = Arrays.stream(diffs).filter(diff -> diff != 0).average(); in verify() 178 if (Arrays.stream(channelDiffs).allMatch(diffs -> { in verify() 179 final OptionalDouble average = Arrays.stream(diffs).filter(diff -> diff != 0).average(); in verify() 203 Arrays.stream(channel).sorted().forEachOrdered( in dumpDiffStreams()
|
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
D | MoreCollectors.java | 21 import java.util.stream.Collector; 22 import java.util.stream.Stream; 23 import java.util.stream.Stream.Builder;
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | NoWallpaperPermissionsTest.java | 106 ByteArrayInputStream stream = new ByteArrayInputStream(new byte[32]); in testSetStream() local 109 mWM.setStream(stream); in testSetStream() 114 mWM.setStream(stream, null, false); in testSetStream() 119 mWM.setStream(stream, null, false, FLAG_LOCK); in testSetStream()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/vpn/ |
D | VpnTestHelper.java | 208 DataOutputStream stream = new DataOutputStream(output); in createIcmpMessage() local 209 stream.writeByte(type); in createIcmpMessage() 210 stream.writeByte(code); in createIcmpMessage() 211 stream.writeShort(/* checksum */ 0); in createIcmpMessage() 212 stream.writeShort((short) extra1); in createIcmpMessage() 213 stream.writeShort((short) extra2); in createIcmpMessage() 214 stream.write(data, 0, data.length); in createIcmpMessage()
|