Home
last modified time | relevance | path

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

12

/cts/tests/tests/net/src/android/net/rtp/cts/
DAudioStreamTest.java27 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/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/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/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/tests/media/src/android/media/cts/
DSoundPoolTest.java226 for (int stream : streamIds) { in testLoadMore()
227 assertTrue(stream != 0); in testLoadMore()
228 mSoundPool.stop(stream); in testLoadMore()
315 for (int stream : streamIds) { in testAutoPauseResume()
316 assertTrue(stream != 0); in testAutoPauseResume()
317 soundPool.stop(stream); in testAutoPauseResume()
351 int stream = 0; in waitUntilLoaded() local
352 while (stream == 0) { in waitUntilLoaded()
354 stream = mSoundPool.play(sampleId, SILENT, SILENT, 1, 0, 1); in waitUntilLoaded()
356 mSoundPool.stop(stream); in waitUntilLoaded()
/cts/tests/tests/security/jni/
Dandroid_security_cts_AudioPolicyBinderTest.cpp63 for (int stream = AUDIO_STREAM_MIN; stream < AUDIO_STREAM_CNT; stream++) { in init() local
64 *output = AudioSystem::getOutput((audio_stream_type_t)stream); in init()
/cts/tools/signature-tools/src/signature/io/html/
DTemplateStore.java38 InputStream stream = TemplateStore.class.getClassLoader() in initialize() local
40 InputStreamReader reader = new InputStreamReader(stream); in initialize()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DHtmlReport.java30 import javax.xml.transform.stream.StreamResult;
31 import javax.xml.transform.stream.StreamSource;
/cts/libs/json/src/com/android/json/stream/
DJsonScope.java17 package com.android.json.stream;
DJsonToken.java17 package com.android.json.stream;
DJsonWriter.java17 package com.android.json.stream;
/cts/tests/tests/net/src/android/net/http/cts/
DApacheHttpClientTest.java81 InputStream stream = response.getEntity().getContent(); in assertDownloadResponse() local
84 int bytesRead = stream.read(buffer); in assertDownloadResponse()
/cts/tests/tests/graphics/src/android/graphics/cts/
DYuvImageTest.java289 ByteArrayOutputStream stream = new ByteArrayOutputStream(); in compressDecompress() local
291 boolean rt = image.compressToJpeg(rect, 90, stream); in compressDecompress()
293 byte[] jpegData = stream.toByteArray(); in compressDecompress()
402 ByteArrayOutputStream stream = new ByteArrayOutputStream(); in checkParameters() local
407 image.compressToJpeg(rect, 101, stream); in checkParameters()
416 image.compressToJpeg(rect, -1, stream); in checkParameters()
434 image.compressToJpeg(rect, 80, stream); in checkParameters()
/cts/tools/utils/cts/
Dtools.py214 stream = open(file_name, 'w')
215 doc.writexml(stream, addindent=' ', newl='\n', encoding='UTF-8')
216 stream.close()
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/
DCtsXmlResultReporter.java393 OutputStream stream = null; in createXmlResult() local
395 stream = createOutputResultStream(reportFile); in createXmlResult()
397 serializer.setOutput(stream, "UTF-8"); in createXmlResult()
415 StreamUtil.close(stream); in createXmlResult()
/cts/tools/utils/
DbuildCts.py51 stream = open(makefile_path, 'r')
52 content = stream.read()
55 stream.close()
/cts/hostsidetests/aadb/src/com/android/cts/aadb/
DTestDeviceFuncTest.java289 FileOutputStream stream = new FileOutputStream(tmpFile); in doTestSyncFiles() local
290 stream.write(testString.getBytes()); in doTestSyncFiles()
291 stream.close(); in doTestSyncFiles()
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
DTestPlan.java216 public void serialize(OutputStream stream) throws IOException { in serialize() argument
218 serializer.setOutput(stream, "UTF-8"); in serialize()
/cts/tools/signature-tools/
Dsig-create98 javax.imageio.stream \
Dsig-check101 javax.imageio.stream \
/cts/tools/cts-java-scanner-doclet/src/com/android/cts/javascannerdoclet/
DCtsJavaScannerDoclet.java37 import javax.xml.transform.stream.StreamResult;
/cts/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java899 BufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(file)); in createFileEntity() local
906 stream.write(data); in createFileEntity()
908 stream.write(data, 0, numBytes % data.length); in createFileEntity()
909 stream.flush(); in createFileEntity()
911 stream.close(); in createFileEntity()
/cts/tests/tests/content/src/android/content/cts/
DContentResolverTest.java548 FileInputStream stream = null; in consumeAssetFileDescriptor() local
550 stream = afd.createInputStream(); in consumeAssetFileDescriptor()
551 InputStreamReader reader = new InputStreamReader(stream, "UTF-8"); in consumeAssetFileDescriptor()
563 if (stream != null) { in consumeAssetFileDescriptor()
565 stream.close(); in consumeAssetFileDescriptor()
/cts/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java64 FileOutputStream stream = new FileOutputStream(myFile); in testCreateFileHasSanePermissions() local
65 stream.write("hello world".getBytes()); in testCreateFileHasSanePermissions()
66 stream.close(); in testCreateFileHasSanePermissions()
/cts/libs/vogar-expect/src/vogar/
DExpectationStore.java21 import com.android.json.stream.JsonReader;

12