/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/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/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/tests/media/src/android/media/cts/ |
D | SoundPoolTest.java | 226 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/ |
D | android_security_cts_AudioPolicyBinderTest.cpp | 63 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/ |
D | TemplateStore.java | 38 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/ |
D | HtmlReport.java | 30 import javax.xml.transform.stream.StreamResult; 31 import javax.xml.transform.stream.StreamSource;
|
/cts/libs/json/src/com/android/json/stream/ |
D | JsonScope.java | 17 package com.android.json.stream;
|
D | JsonToken.java | 17 package com.android.json.stream;
|
D | JsonWriter.java | 17 package com.android.json.stream;
|
/cts/tests/tests/net/src/android/net/http/cts/ |
D | ApacheHttpClientTest.java | 81 InputStream stream = response.getEntity().getContent(); in assertDownloadResponse() local 84 int bytesRead = stream.read(buffer); in assertDownloadResponse()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | YuvImageTest.java | 289 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/ |
D | tools.py | 214 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/ |
D | CtsXmlResultReporter.java | 393 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/ |
D | buildCts.py | 51 stream = open(makefile_path, 'r') 52 content = stream.read() 55 stream.close()
|
/cts/hostsidetests/aadb/src/com/android/cts/aadb/ |
D | TestDeviceFuncTest.java | 289 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/ |
D | TestPlan.java | 216 public void serialize(OutputStream stream) throws IOException { in serialize() argument 218 serializer.setOutput(stream, "UTF-8"); in serialize()
|
/cts/tools/signature-tools/ |
D | sig-create | 98 javax.imageio.stream \
|
D | sig-check | 101 javax.imageio.stream \
|
/cts/tools/cts-java-scanner-doclet/src/com/android/cts/javascannerdoclet/ |
D | CtsJavaScannerDoclet.java | 37 import javax.xml.transform.stream.StreamResult;
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | CtsTestServer.java | 899 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/ |
D | ContentResolverTest.java | 548 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/ |
D | FileSystemPermissionTest.java | 64 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/ |
D | ExpectationStore.java | 21 import com.android.json.stream.JsonReader;
|