Home
last modified time | relevance | path

Searched refs:encoding (Results 1 – 19 of 19) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DAudioTrackSurroundTest.java119 for (int encoding : info.getEncodings()) { in scanDevicesForEncodings()
120 text += String.format("0x%08X, ", encoding); in scanDevicesForEncodings()
131 for (int encoding : info.getEncodings()) { in scanDevicesForEncodings()
132 switch (encoding) { in scanDevicesForEncodings()
199 private static AudioTrack createAudioTrack(int sampleRate, int encoding, int channelConfig) { in createAudioTrack() argument
203 encoding); in createAudioTrack()
208 encoding, bufferSize, in createAudioTrack()
329 SamplePlayerBase(int sampleRate, int encoding, int channelConfig) { in SamplePlayerBase() argument
331 mEncoding = encoding; in SamplePlayerBase()
458 SamplePlayerShorts(int sampleRate, int encoding, int channelConfig) { in SamplePlayerShorts() argument
[all …]
DAudioFormatTest.java187 for (int encoding : encodings) { in testFrameSize()
189 .setEncoding(encoding) in testFrameSize()
194 assertEquals("AudioFormat with encoding " + encoding + " has the wrong frame size", in testFrameSize()
DAudioTrackOffloadTest.java159 private static AudioFormat getAudioFormatWithEncoding(int encoding) { in getAudioFormatWithEncoding() argument
161 .setEncoding(encoding) in getAudioFormatWithEncoding()
DMediaCodecTest.java945 int encoding = metrics.getInt(MediaCodec.MetricsConstants.ENCODER, -1); in testDequeueSurface() local
946 if (encoding != 1) { in testDequeueSurface()
947 fail("getMetrics() returns bad encoder value " + encoding); in testDequeueSurface()
1018 int encoding = metrics.getInt(MediaCodec.MetricsConstants.ENCODER, -1); in testReconfigureWithoutSurface() local
1019 if (encoding != 1) { in testReconfigureWithoutSurface()
1020 fail("getMetrics() returns bad encoder value " + encoding); in testReconfigureWithoutSurface()
1100 int encoding = metrics.getInt(MediaCodec.MetricsConstants.ENCODER, -1); in testDecodeAfterFlush()
1101 if (encoding != 0) { in testDecodeAfterFlush()
1102 fail("getMetrics() returns bad encoder value " + encoding); in testDecodeAfterFlush()
DAudioTrackTest.java2126 private void doTestTimestamp(int sampleRate, int channelMask, int encoding, int transferMode, in doTestTimestamp() argument
2137 AudioFormat.getBytesPerSample(encoding) in doTestTimestamp()
2152 .setEncoding(encoding) in doTestTimestamp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DAudioUtils.java68 public static int sampleSizeInBytes(int encoding) { in sampleSizeInBytes() argument
69 switch (encoding) { in sampleSizeInBytes()
81 public static int calcFrameSizeInBytes(int encoding, int numChannels) { in calcFrameSizeInBytes() argument
82 return sampleSizeInBytes(encoding) * numChannels; in calcFrameSizeInBytes()
DStreamRecorder.java59 public static int calcNumBufferBytes(int numChannels, int sampleRate, int encoding) { in calcNumBufferBytes() argument
65 encoding); in calcNumBufferBytes()
69 AudioUtils.countToInPositionMask(numChannels), encoding); in calcNumBufferBytes()
75 public static int calcNumBufferFrames(int numChannels, int sampleRate, int encoding) { in calcNumBufferFrames() argument
76 return calcNumBufferBytes(numChannels, sampleRate, encoding) / in calcNumBufferFrames()
77 AudioUtils.calcFrameSizeInBytes(encoding, numChannels); in calcNumBufferFrames()
DStreamPlayer.java90 private static int calcNumBufferBytes(int sampleRate, int numChannels, int encoding) { in calcNumBufferBytes() argument
93 encoding); in calcNumBufferBytes()
96 private static int calcNumBufferFrames(int sampleRate, int numChannels, int encoding) { in calcNumBufferFrames() argument
97 return calcNumBufferBytes(sampleRate, numChannels, encoding) in calcNumBufferFrames()
98 / AudioUtils.calcFrameSizeInBytes(encoding, numChannels); in calcNumBufferFrames()
/cts/tools/utils/cts/
Dtools.py71 self.encoding = 'UTF-8'
106 doc.writexml(writer, addindent=' ', newl='\n', encoding=self.encoding)
215 doc.writexml(stream, addindent=' ', newl='\n', encoding='UTF-8')
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewSyncLoader.java209 final String mimeType, final String encoding) { in loadDataAndWaitForCompletion() argument
210 callAndWait(() -> mWebView.loadData(data, mimeType, encoding)); in loadDataAndWaitForCompletion()
220 final String data, final String mimeType, final String encoding, in loadDataWithBaseURLAndWaitForCompletion() argument
223 () -> mWebView.loadDataWithBaseURL(baseUrl, data, mimeType, encoding, historyUrl)); in loadDataWithBaseURLAndWaitForCompletion()
/cts/tests/tests/assist/common/src/android/assist/common/
DMyWebView.java39 public void myLoadData(String url, String data, String mimeType, String encoding) { in myLoadData() argument
41 super.loadData(data, mimeType, encoding); in myLoadData()
/cts/tests/tests/media/res/raw/
Dvoice12_48k_128kbps_15s_ac3_readme.txt6 encoding=AC3
/cts/tools/signature-tools/src/signature/converter/doclet/
DDocletFactory.java82 String encoding = null; in getRootDoc() local
117 RootDocImpl root = comp.getRootDocImpl(docLocale, encoding, showAccess, in getRootDoc()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2471/
Dpoc.c95 struct iw_point encoding; /* Encoding stuff : tokens */ member
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DProAudioActivity.java143 for (int encoding : encodings) { in isHDMIValid()
144 if (encoding == AudioFormat.ENCODING_PCM_FLOAT) { in isHDMIValid()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebChromeClientTest.java375 final String encoding = "base64"; in testOnConsoleMessage() local
377 mOnUiThread.loadDataAndWaitForCompletion(encodedHtml, mimeType, encoding); in testOnConsoleMessage()
DWebViewTest.java1249 private String readTextFile(File file, Charset encoding) in readTextFile() argument
1255 return new String(bytes, encoding); in readTextFile()
/cts/tools/cts-media/
Dget_achievable_rates.py334 jsonData = json.load(jsonFile, encoding='utf-8')
341 jsonData = json.load(jsonFile, encoding='utf-8', object_pairs_hook=lambda items: items)
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dreduce.rscript448 // The oorrBadPos encoding is as follows:
456 // (encoding is C + length(vector)*E)