/cts/tests/tests/media/src/android/media/cts/ |
D | AudioHelper.java | 461 int samples = super.read(audioData, offsetInBytes, sizeInBytes); in read() local 463 Assert.assertEquals(samples, mTrack.write(audioData, offsetInBytes, samples)); in read() 464 mPosition += samples / mTrack.getChannelCount(); in read() 466 return samples; in read() 474 int samples = super.read(audioData, offsetInBytes, sizeInBytes, readMode); in read() local 476 Assert.assertEquals(samples, mTrack.write(audioData, offsetInBytes, samples, in read() 478 mPosition += samples / mTrack.getChannelCount(); in read() 480 return samples; in read() 488 int samples = super.read(audioData, offsetInShorts, sizeInShorts); in read() local 490 Assert.assertEquals(samples, mTrack.write(audioData, offsetInShorts, samples)); in read() [all …]
|
D | AudioTrackTest.java | 1803 int samples = Math.min(data.length - written, samplesPerWrite); in playOnceStreamData() local 1804 int ret = track.write(data, written, samples); in playOnceStreamData() 1805 assertEquals(testName, samples, ret); in playOnceStreamData() 1815 int samples = Math.min(data.length - written, samplesPerWrite); in playOnceStreamData() local 1816 int ret = track.write(data, written, samples); in playOnceStreamData() 1817 assertEquals(testName, samples, ret); in playOnceStreamData() 1827 int samples = Math.min(data.length - written, samplesPerWrite); in playOnceStreamData() local 1828 int ret = track.write(data, written, samples, in playOnceStreamData() 1830 assertEquals(testName, samples, ret); in playOnceStreamData()
|
/cts/suite/audio_quality/test/ |
D | AudioSignalFactoryTest.cpp | 26 AudioHardware::SamplingRate samplingRate, int signalFreq, int samples) { in testSignalBasic() argument 27 ASSERT_TRUE(buffer->getSize() == (unsigned int)(AudioHardware::E2BPS * 2 * samples)); in testSignalBasic() 29 for(int i = 0; i < samples; i++) { in testSignalBasic() 43 const int samples = 8192 * 10; in TEST_F() local 45 maxPositive, AudioHardware::ESampleRate_44100, signalFreq, samples); in TEST_F() 46 testSignalBasic(buffer, maxPositive, AudioHardware::ESampleRate_44100, signalFreq, samples); in TEST_F() 52 const int samples = 8192 * 10; in TEST_F() local 54 maxPositive, samples); in TEST_F() 55 testSignalBasic(buffer, maxPositive, AudioHardware::ESampleRate_44100, signalFreq, samples); in TEST_F()
|
D | ClientInterfaceTest.cpp | 66 const int samples = 8192*2; in TEST_F() local 68 maxPositive, AudioHardware::ESampleRate_44100, signalFreq, samples); in TEST_F() 85 const int samples = 44100 * 4; in TEST_F() local 86 android::sp<Buffer> buffer(new Buffer(samples * 2, samples * 2, false)); in TEST_F() 91 ASSERT_TRUE(buffer->amountHandled() == (samples * 2)); in TEST_F()
|
/cts/suite/audio_quality/lib/src/audio/ |
D | AudioSignalFactory.cpp | 25 int samples, bool stereo) in generateSineWave() argument 27 int bufferSize = samples * (stereo? 2 : 1) * BPS; in generateSineWave() 33 for (int i = 0; i < samples; i++) { in generateSineWave() 46 int maxPositive, int samples, bool stereo) in generateWhiteNoise() argument 48 int bufferSize = samples * (stereo? 2 : 1) * BPS; in generateWhiteNoise() 56 for (int i = 0; i < samples; i++) { in generateWhiteNoise() 71 int samples, bool stereo) in generateZeroSound() argument 73 int bufferSize = samples * (stereo? 2 : 1) * BPS; in generateZeroSound() 78 for (int i = 0; i < samples; i++) { in generateZeroSound()
|
D | AudioProtocol.cpp | 140 uint32_t samples = param.mBuffer->getSize() / (param.mStereo ? 4 : 2); in sendCommand() local 141 mBuffer[5] = htonl(samples); in sendCommand()
|
/cts/suite/audio_quality/test_description/processing/ |
D | gen_random.py | 31 samples = durationInMSec * samplingRate / 1000 32 result = np.zeros(samples * 2 if stereo else samples, dtype=np.int16) 33 randomSignal = np.random.normal(scale = peakAmpl * 2 / 3, size=samples) 35 freqSamples = samples/2 44 if (samples - 2 *freqSamples) != 0: 45 fftData[samples - 1] = 0
|
D | calc_thd.py | 52 samples = float(samplingRate) * float(durationInSec) variable 53 index = np.linspace(0.0, samples, num=samples, endpoint=False)
|
D | calc_delay.py | 67 samples = float(samplingRate) * float(durationInSec) variable 68 index = np.linspace(0.0, samples, num=samples, endpoint=False)
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-0811/ |
D | poc.cpp | 41 CryptoPlugin::SubSample samples[ss]; in mediaPoc() local 43 samples[i].mNumBytesOfEncryptedData = 0; in mediaPoc() 44 samples[i].mNumBytesOfClearData = wsize; in mediaPoc() 46 data.write(samples, sizeof(CryptoPlugin::SubSample) * ss); in mediaPoc()
|
/cts/suite/audio_quality/lib/include/audio/ |
D | AudioSignalFactory.h | 31 int maxPositive, AudioHardware::SamplingRate samplingRate, int signalFreq, int samples, 34 int maxPositive, int samples, bool stereo = true); 36 int samples, bool stereo = true);
|
/cts/suite/audio_quality/lib/src/task/ |
D | TaskSound.cpp | 82 int samples = time * AudioHardware::ESampleRate_44100 / 1000; in run() local 84 AudioHardware::ESampleRate_44100, freq, samples, true); in run() 92 int samples = time * AudioHardware::ESampleRate_44100 / 1000; in run() local 94 samples, true); in run()
|
/cts/suite/audio_quality/lib/src/ |
D | BuiltinProcessing.cpp | 56 size_t samples = data->getSize()/2; in rms_mva() local 59 for (size_t i = 0; i < samples; i++) { in rms_mva() 62 rms = (int64_t)sqrt(energy/samples); in rms_mva()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
D | WaveScopeView.java | 116 private void drawChannel16(Canvas cvs, short[] samples, int numFrames, int numChans, in drawChannel16() argument 126 Y = zeroY - (samples[smpl] * yScale); in drawChannel16() 145 private void drawChannelFloat(Canvas cvs, float[] samples, int numFrames, int numChans, in drawChannelFloat() argument 155 Y = zeroY - (samples[smpl] * yScale); in drawChannelFloat()
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_gyro_bias.py | 70 for samples in [xs, ys, zs]: 71 mean = samples.mean() 72 var = numpy.var(samples)
|
/cts/apps/CameraITS/tools/ |
D | dng_noise_model.py | 124 samples = [[], [], [], []] 200 samples[pidx].extend([(s_int, mean, var) for (mean, var) in samples_s[pidx]]) 242 gains = np.asarray([s[0] for s in samples[pidx]]) 243 means = np.asarray([s[1] for s in samples[pidx]]) 244 vars_ = np.asarray([s[2] for s in samples[pidx]])
|
/cts/apps/CtsVerifier/assets/scripts/ |
D | execute_power_tests.py | 849 if FLAGS.samples: 868 while emitted < FLAGS.samples or FLAGS.samples == -1: 872 samples = mon.CollectData() 873 if not samples: break 874 collected.extend(samples)
|
/cts/tests/media/src/android/mediav2/cts/ |
D | EncoderProfileLevelTest.java | 326 private LevelLimitHEVC(int level, int frameRate, long samples, int bitrate) { in getMinLevelHEVC() argument 329 this.samples = samples; in getMinLevelHEVC() 335 private final long samples; in getMinLevelHEVC() field in EncoderProfileLevelTest.LevelLimitHEVC 361 long samples = width * height; in getMinLevelHEVC() local 363 if (samples <= levelLimitsHEVC.samples && frameRate <= levelLimitsHEVC.frameRate in getMinLevelHEVC()
|
/cts/tools/utils/ |
D | monsoon.py | 368 if FLAGS.samples: 387 while emitted < FLAGS.samples or FLAGS.samples == -1:
|
/cts/suite/audio_quality/client/src/com/android/cts/audiotest/ |
D | AudioProtocol.java | 337 final int samples = mDataBuffer.getInt(3 * 4); in handleStartRecording() local 346 mRecordingLength = samples * 2; in handleStartRecording() 359 Log.d(TAG, "recording started " + " samples " + samples + " mode " + mode + in handleStartRecording()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | NativeAudioThread.java | 94 public native int slesProcessNext(long sles_data, double[] samples, long offset); in slesProcessNext() argument
|
/cts/tests/tests/graphics/jni/ |
D | VulkanTestHelpers.cpp | 256 .samples = VK_SAMPLE_COUNT_1_BIT, in init() 465 .samples = VK_SAMPLE_COUNT_1_BIT, in init() 518 .samples = VK_SAMPLE_COUNT_1_BIT, in init()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 821 int samples = (int)Math.ceil((mSumX - window) / average); in movingAverageOverSum() local 822 double[] avgs = new double[samples]; in movingAverageOverSum() 844 while (ix < samples) { in movingAverageOverSum()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 928 int samples = (int)Math.ceil((mSumX - window) / average); in movingAverageOverSum() local 929 double[] avgs = new double[samples]; in movingAverageOverSum() 951 while (ix < samples) { in movingAverageOverSum()
|
/cts/tests/vr/jni/ |
D | VrExtensionsJni.cpp | 197 const int samples[] = {1, 2, 4}; in Java_android_vr_cts_VrExtensionBehaviorTest_nativeTestEglImageArray() local 198 for (int nsamples : samples) { in Java_android_vr_cts_VrExtensionBehaviorTest_nativeTestEglImageArray()
|