Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 180) sorted by relevance

12345678

/cts/tests/tests/net/src/android/net/rtp/cts/
DAudioStreamTest.java29 AudioStream stream = new AudioStream(address); in testRtpStream() local
30 assertEquals(stream.getLocalAddress(), address); in testRtpStream()
31 assertEquals(stream.getLocalPort() % 2, 0); in testRtpStream()
33 assertNull(stream.getRemoteAddress()); in testRtpStream()
34 assertEquals(stream.getRemotePort(), -1); in testRtpStream()
35 stream.associate(address, 1000); in testRtpStream()
36 assertEquals(stream.getRemoteAddress(), address); in testRtpStream()
37 assertEquals(stream.getRemotePort(), 1000); in testRtpStream()
39 assertFalse(stream.isBusy()); in testRtpStream()
40 stream.release(); in testRtpStream()
[all …]
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/
DIpv4Packet.java42 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 …]
DIcmpMessage.java31 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/media/res/raw/
Dvp90_2_09_subpixel_00_vp9_md51 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/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio.cpp47 AAudioStream* stream() const { return mHelper->stream(); } in stream() function in AAudioStreamTest
88 EXPECT_EQ(0, AAudioStream_getFramesRead(stream())); in TEST_P()
89 EXPECT_EQ(0, AAudioStream_getFramesWritten(stream())); in TEST_P()
93 ASSERT_NE(AAUDIO_UNSPECIFIED, AAudioStream_getDeviceId(stream())); in TEST_P()
96 stream(), &mData[0], std::min(framesToRecord, mFramesPerRead), in TEST_P()
102 EXPECT_GE(AAudioStream_getFramesRead(stream()), framesToRecord); in TEST_P()
103 EXPECT_GE(AAudioStream_getFramesWritten(stream()), framesToRecord); in TEST_P()
104 EXPECT_GE(AAudioStream_getXRunCount(stream()), 0); in TEST_P()
112 EXPECT_EQ(0, AAudioStream_getFramesRead(stream())); in TEST_P()
113 EXPECT_EQ(0, AAudioStream_getFramesWritten(stream())); in TEST_P()
[all …]
Dtest_aaudio_callback.cpp30 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);
169 const int32_t actualFramesPerDataCallback = AAudioStream_getFramesPerDataCallback(stream()); in TEST_P()
179 EXPECT_NE(AAUDIO_UNSPECIFIED, AAudioStream_getDeviceId(stream())); in TEST_P()
222 AAudioStream *stream, void *userData, void *audioData, int32_t numFrames);
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DRingerModeActivity.java153 private void testStreamMuting(int stream) { in testStreamMuting() argument
154 if (stream == AudioManager.STREAM_VOICE_CALL) { in testStreamMuting()
156 mAudioManager.adjustStreamVolume(stream, AudioManager.ADJUST_MUTE, 0); in testStreamMuting()
157 … assertFalse("Muting stream " + stream + " should require MODIFY_PHONE_STATE permission.", in testStreamMuting()
158 mAudioManager.isStreamMute(stream)); in testStreamMuting()
160 mAudioManager.adjustStreamVolume(stream, AudioManager.ADJUST_MUTE, 0); in testStreamMuting()
161 assertTrue("Muting stream " + stream + " failed.", in testStreamMuting()
162 mAudioManager.isStreamMute(stream)); in testStreamMuting()
164 mAudioManager.adjustStreamVolume(stream, AudioManager.ADJUST_UNMUTE, 0); in testStreamMuting()
165 assertFalse("Unmuting stream " + stream + " failed.", in testStreamMuting()
[all …]
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEventStreamTestUtils.java81 public static ImeEvent expectEvent(@NonNull ImeEventStream stream, in expectEvent() argument
83 return expectEvent(stream, condition, EventFilterMode.CHECK_ENTER_EVENT_ONLY, timeout); in expectEvent()
102 public static ImeEvent expectEvent(@NonNull ImeEventStream stream, in expectEvent() argument
110 "event not found within the timeout: " + stream.dump()); in expectEvent()
126 result = stream.seekToFirst(combinedCondition); in expectEvent()
135 throw new NullPointerException("found event is null: " + stream.dump()); in expectEvent()
137 stream.skip(1); in expectEvent()
140 throw new RuntimeException("expectEvent failed: " + stream.dump(), e); in expectEvent()
195 public static ImeEvent expectCommand(@NonNull ImeEventStream stream,
205 return expectEvent(stream, predicate, EventFilterMode.CHECK_EXIT_EVENT_ONLY, timeout);
[all …]
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DFocusHandlingTest.java104 final ImeEventStream stream = imeSession.openEventStream(); in testOnStartInputCalledOnceIme() local
110 expectBindInput(stream, Process.myPid(), TIMEOUT); in testOnStartInputCalledOnceIme()
118 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testOnStartInputCalledOnceIme()
120 assertFalse(stream.dump(), onStart.getEnterState().hasDummyInputConnection()); in testOnStartInputCalledOnceIme()
121 assertFalse(stream.dump(), onStart.getArguments().getBoolean("restarting")); in testOnStartInputCalledOnceIme()
124 notExpectEvent(stream, editorMatcher("onStartInput", marker), NOT_EXPECT_TIMEOUT); in testOnStartInputCalledOnceIme()
134 final ImeEventStream stream = imeSession.openEventStream(); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() local
158 notExpectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView()
160 notExpectEvent(stream, event -> "showSoftInput".equals(event.getEventName()), in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView()
164 expectBindInput(stream, Process.myPid(), TIMEOUT); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView()
[all …]
DKeyboardVisibilityControlTest.java141 final ImeEventStream stream = imeSession.openEventStream();
146 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT);
147 notExpectEvent(stream, editorMatcher("onStartInputView", marker), TIMEOUT);
156 expectEvent(stream, showSoftInputMatcher(InputMethod.SHOW_EXPLICIT), TIMEOUT);
157 expectEvent(stream, editorMatcher("onStartInputView", marker), TIMEOUT);
163 expectEvent(stream, hideSoftInputMatcher(), TIMEOUT);
164 expectEvent(stream, onFinishInputViewMatcher(false), TIMEOUT);
177 final ImeEventStream stream = imeSession.openEventStream();
185 expectEvent(stream, editorMatcher("onStartInput", focusedMarker), TIMEOUT);
191 notExpectEvent(stream, showSoftInputMatcher(InputMethod.SHOW_EXPLICIT), TIMEOUT);
[all …]
DInputMethodServiceTest.java124 final ImeEventStream stream = imeSession.openEventStream();
127 expectEvent(stream, event -> "onStartInputView".equals(event.getEventName()), TIMEOUT);
130 expectCommand(stream, command, TIMEOUT);
137 expectEvent(stream, backKeyDownMatcher(true), CHECK_EXIT_EVENT_ONLY, TIMEOUT);
176 final ImeEventStream stream = imeSession.openEventStream();
179 expectEvent(stream, event -> "onStartInputView".equals(event.getEventName()), TIMEOUT);
182 expectEvent(stream, event -> "hideSoftInput".equals(event.getEventName()), TIMEOUT);
183 expectEvent(stream, event -> "onFinishInputView".equals(event.getEventName()), TIMEOUT);
193 final ImeEventStream stream = imeSession.openEventStream();
197 stream, event -> "onStartInputView".equals(event.getEventName()), TIMEOUT);
[all …]
DSearchViewTest.java86 final ImeEventStream stream = imeSession.openEventStream(); in testTapThenSetQuery() local
95 expectBindInput(stream, Process.myPid(), TIMEOUT); in testTapThenSetQuery()
98 expectEvent(stream, event -> in testTapThenSetQuery()
106 expectEvent(stream, event -> "hideSoftInput".equals(event.getEventName()), TIMEOUT); in testTapThenSetQuery()
116 final ImeEventStream stream = imeSession.openEventStream(); in testShowImeWithSearchViewFocus() local
121 expectBindInput(stream, Process.myPid(), TIMEOUT); in testShowImeWithSearchViewFocus()
129 expectEvent(stream, event -> in testShowImeWithSearchViewFocus()
/cts/tests/tests/media/src/android/media/cts/
DAudioManagerTest.java642 for (int stream : streams) { in testVolume()
644 if (mIsSingleVolume && stream != AudioManager.STREAM_MUSIC) { in testVolume()
651 int maxVolume = mAudioManager.getStreamMaxVolume(stream); in testVolume()
652 int minVolume = mAudioManager.getStreamMinVolume(stream); in testVolume()
660 mAudioManager.setStreamVolume(stream, 1, 0); in testVolume()
662 assertEquals(maxVolume, mAudioManager.getStreamVolume(stream)); in testVolume()
665 assertEquals(String.format("stream=%d", stream), in testVolume()
666 1, mAudioManager.getStreamVolume(stream)); in testVolume()
668 if (stream == AudioManager.STREAM_MUSIC && mAudioManager.isWiredHeadsetOn()) { in testVolume()
678 mAudioManager.adjustStreamVolume(stream, ADJUST_RAISE, 0); in testVolume()
[all …]
DMediaActivityTest.java89 for (Integer stream : ALL_VOLUME_STREAMS) { in setUp()
90 mStreamVolumeMap.put(stream, mAudioManager.getStreamVolume(stream)); in setUp()
110 for (int stream : mStreamVolumeMap.keySet()) { in cleanUp()
111 int volume = mStreamVolumeMap.get(stream); in cleanUp()
112 mAudioManager.setStreamVolume(stream, volume, 0); in cleanUp()
160 for (int stream : mStreamVolumeMap.keySet()) { in testVolumeKey_afterSessionReleased()
161 int volume = mStreamVolumeMap.get(stream); in testVolumeKey_afterSessionReleased()
162 if (mAudioManager.getStreamVolume(stream) != volume) { in testVolumeKey_afterSessionReleased()
172 for (int stream : mStreamVolumeMap.keySet()) { in testVolumeKey_afterSessionReleased()
173 int volume = mStreamVolumeMap.get(stream); in testVolumeKey_afterSessionReleased()
[all …]
DSoundPoolTest.java234 for (int stream : streamIds) { in testLoadMore()
235 assertTrue(stream != 0); in testLoadMore()
236 mSoundPool.stop(stream); in testLoadMore()
324 for (int stream : streamIds) { in testAutoPauseResume()
325 assertTrue(stream != 0); in testAutoPauseResume()
326 soundPool.stop(stream); in testAutoPauseResume()
360 int stream = 0; in waitUntilLoaded() local
361 while (stream == 0) { in waitUntilLoaded()
363 stream = mSoundPool.play(sampleId, SILENT, SILENT, 1, 0, 1); in waitUntilLoaded()
365 mSoundPool.stop(stream); in waitUntilLoaded()
DAudioAttributesTest.java79 final int stream = aa.getVolumeControlStream(); in testGetVolumeControlStreamVsLegacyStream() local
80 assertEquals("Volume control from attributes, stream doesn't match", testType, stream); in testGetVolumeControlStreamVsLegacyStream()
106 final int stream = AudioManager.STREAM_MUSIC; in testSetLegacyStreamOnBuilder() local
108 builder1.setLegacyStreamType(stream); in testSetLegacyStreamOnBuilder()
111 … AudioAttributes.Builder builder2 = new AudioAttributes.Builder().setLegacyStreamType(stream); in testSetLegacyStreamOnBuilder()
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DInputMethodManagerDeviceTest.java74 pollingCheck(() -> mImm.getInputMethodList().stream().anyMatch( in testIme1InInputMethodList()
86 assertFalse(mImm.getInputMethodList().stream().anyMatch( in testIme1NotInInputMethodList()
96 pollingCheck(() -> mImm.getEnabledInputMethodList().stream().anyMatch( in testIme1InEnabledInputMethodList()
108 assertFalse(mImm.getEnabledInputMethodList().stream().anyMatch( in testIme1NotInEnabledInputMethodList()
118 pollingCheck(() -> mImm.getInputMethodList().stream().anyMatch( in testIme2InInputMethodList()
130 assertFalse(mImm.getInputMethodList().stream().anyMatch( in testIme2NotInInputMethodList()
140 pollingCheck(() -> mImm.getEnabledInputMethodList().stream().anyMatch( in testIme2InEnabledInputMethodList()
152 assertFalse(mImm.getEnabledInputMethodList().stream().anyMatch( in testIme2NotInEnabledInputMethodList()
163 pollingCheck(() -> mImm.getInputMethodList().stream() in testIme1ImplicitlyEnabledSubtypeExists()
165 .flatMap(imi -> mImm.getEnabledInputMethodSubtypeList(imi, true).stream()) in testIme1ImplicitlyEnabledSubtypeExists()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/
DStreamingVideoActivity.java82 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/theme/app/src/android/theme/app/
DGenerateBitmapTask.java79 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/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplaySystemDecorationTests.java199 return windowManagerState.getMatchingWindowType(TYPE_WALLPAPER).stream().anyMatch( in isWallpaperOnDisplay()
409 final ImeEventStream stream = mockImeSession.openEventStream(); in testImeWindowCanSwitchToDifferentDisplays() local
412 waitOrderedImeEventsThenAssertImeShown(stream, newDisplay.mId, in testImeWindowCanSwitchToDifferentDisplays()
428 waitOrderedImeEventsThenAssertImeShown(stream, DEFAULT_DISPLAY, in testImeWindowCanSwitchToDifferentDisplays()
461 final ImeEventStream stream = mockImeSession.openEventStream(); in testImeApiForBug118341760() local
463 expectEvent(stream, event -> { in testImeApiForBug118341760()
505 final ImeEventStream stream = mockImeSession1.openEventStream(); in testImeWindowCanSwitchWhenTopFocusedDisplayChange() local
512 waitOrderedImeEventsThenAssertImeShown(stream, defDisplay.getDisplayId(), in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
522 waitOrderedImeEventsThenAssertImeShown(stream, newDisplay.mId, in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
531 waitOrderedImeEventsThenAssertImeShown(stream, defDisplay.getDisplayId(), in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/display/
DTestSequence.java7 import java.util.stream.Collectors;
38 steps.stream().forEach(step -> step.createUiElements()); in init()
55 return steps.stream() in getFailureDetails()
63 boolean allTestStepsPass = steps.stream().allMatch(step -> step.hasPassed()); in onAllStepsDone()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
DLightNavigationBarVerifier.java161 if (Arrays.stream(channelDiffs).allMatch( in verify()
162 diffs -> Arrays.stream(diffs).allMatch(diff -> diff == 0))) { in verify()
167 if (Arrays.stream(channelDiffs).anyMatch(diffs -> { in verify()
168 final OptionalDouble average = Arrays.stream(diffs).filter(diff -> diff != 0).average(); in verify()
179 if (Arrays.stream(channelDiffs).allMatch(diffs -> { in verify()
180 final OptionalDouble average = Arrays.stream(diffs).filter(diff -> diff != 0).average(); in verify()
204 Arrays.stream(channel).sorted().forEachOrdered( in dumpDiffStreams()
/cts/suite/audio_quality/client/src/com/android/cts/audiotest/
DCtsAudioClientActivity.java68 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/jdwp/runner/host-side/src/com/android/compatibility/testtype/
DLibcoreTest.java19 import static java.util.stream.Collectors.toList;
32 import java.util.stream.Stream;
80 mCoreExpectations.stream(), mVirtualDeviceCoreExpectations.stream()) in getCoreExpectations()
/cts/tests/tests/permission/src/android/permission/cts/
DNoWallpaperPermissionsTest.java106 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()

12345678