Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DAudioUtils.java71 public static int sampleSizeInBytes(int encoding) { in sampleSizeInBytes() argument
72 switch (encoding) { in sampleSizeInBytes()
84 public static int calcFrameSizeInBytes(int encoding, int numChannels) { in calcFrameSizeInBytes() argument
85 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/tests/tests/media/src/android/media/cts/
DAudioTrackSurroundTest.java111 for (int encoding : info.getEncodings()) { in scanDevicesForEncodings()
112 text += String.format("0x%08X, ", encoding); in scanDevicesForEncodings()
123 for (int encoding : info.getEncodings()) { in scanDevicesForEncodings()
124 switch (encoding) { in scanDevicesForEncodings()
196 private static AudioTrack createAudioTrack(int sampleRate, int encoding, int channelConfig) { in createAudioTrack() argument
200 encoding); in createAudioTrack()
205 encoding, bufferSize, in createAudioTrack()
326 SamplePlayerBase(int sampleRate, int encoding, int channelConfig) { in SamplePlayerBase() argument
328 mEncoding = encoding; in SamplePlayerBase()
455 SamplePlayerShorts(int sampleRate, int encoding, int channelConfig) { in SamplePlayerShorts() argument
[all …]
DMediaCodecTest.java931 int encoding = metrics.getInt(MediaCodec.MetricsConstants.ENCODER, -1); in testDequeueSurface() local
932 if (encoding != 1) { in testDequeueSurface()
933 fail("getMetrics() returns bad encoder value " + encoding); in testDequeueSurface()
1001 int encoding = metrics.getInt(MediaCodec.MetricsConstants.ENCODER, -1); in testReconfigureWithoutSurface() local
1002 if (encoding != 1) { in testReconfigureWithoutSurface()
1003 fail("getMetrics() returns bad encoder value " + encoding); in testReconfigureWithoutSurface()
1083 int encoding = metrics.getInt(MediaCodec.MetricsConstants.ENCODER, -1); in testDecodeAfterFlush()
1084 if (encoding != 0) { in testDecodeAfterFlush()
1085 fail("getMetrics() returns bad encoder value " + encoding); in testDecodeAfterFlush()
DAudioTrackTest.java2044 private void doTestTimestamp(int sampleRate, int channelMask, int encoding, int transferMode, in doTestTimestamp() argument
2057 AudioFormat.getBytesPerSample(encoding) in doTestTimestamp()
2072 .setEncoding(encoding) in doTestTimestamp()
/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/tools/dasm/src/dasm/
DMain.java53 private static String encoding = null; field in Main
69 if (encoding == null) in createReader()
72 ir = new InputStreamReader(fs, encoding); in createReader()
219 encoding = args[i]; in main()
/cts/tests/tests/media/res/raw/
Dvoice12_48k_128kbps_15s_ac3_readme.txt6 encoding=AC3
/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/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/security/securityPatch/CVE-2016-2471/
Dpoc.c95 struct iw_point encoding; /* Encoding stuff : tokens */ member
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewOnUiThread.java519 final String mimeType, final String encoding) {
523 mWebView.loadData(data, mimeType, encoding);
529 final String data, final String mimeType, final String encoding,
534 mWebView.loadDataWithBaseURL(baseUrl, data, mimeType, encoding,
/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/webkit/src/android/webkit/cts/
DWebViewTest.java1433 private String readTextFile(File file, Charset encoding)
1439 return new String(bytes, encoding);
/cts/tests/libcore/javautilcollections/libs/
Dguava-20.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...