Home
last modified time | relevance | path

Searched refs:samples (Results 1 – 6 of 6) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audioquality/
DUtils.java135 short[] samples = new short[len / 2]; in byteToShortArray() local
139 samples[i] = bb.getShort(); in byteToShortArray()
141 return samples; in byteToShortArray()
153 short[] samples = new short[len]; in byteToShortArray() local
157 samples[i] = bb.getShort(); in byteToShortArray()
159 return samples; in byteToShortArray()
169 public static byte[] shortToByteArray(short[] samples) { in shortToByteArray() argument
170 int len = samples.length; in shortToByteArray()
175 bb.putShort(samples[i]); in shortToByteArray()
187 public static short[] scale(short[] samples, float db) { in scale() argument
[all …]
DCalibrateVolumeActivity.java207 short[] samples = Utils.byteToShortArray(mBuffer, 0, bytes); in run() local
208 float[] results = mNative.measureRms(samples, in run()
216 for (short x : samples) { in run()
219 verifyRms /= samples.length; in run()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audioquality/experiments/
DLoopbackExperiment.java65 int samples = playbackData.length / 2; in loopback() local
66 int duration = (samples * 1000) / AudioQualityVerifierActivity.SAMPLE_RATE; // In ms in loopback()
68 int totalSamples = samples + 2 * padSamples; in loopback()
120 Recorder(byte[] buffer, int samples) { in Recorder() argument
122 mSamples = samples; in Recorder()
DGlitchExperiment.java64 private void addGlitches(short[] samples) { in addGlitches() argument
67 samples[random.nextInt(samples.length)] = 0; in addGlitches()
DGainLinearityExperiment.java59 short[] samples = Utils.scale(mReference, db); in getStim() local
60 return Utils.shortToByteArray(samples); in getStim()
DWarmLatencyExperiment.java304 short[] samples = Utils.byteToShortArray(mBuffer, 0, numBytesRead);
305 float[] results = mNative.measureRms(samples,