Home
last modified time | relevance | path

Searched refs:np (Results 1 – 15 of 15) sorted by relevance

/cts/suite/audio_quality/test_description/processing/
Dcalc_thd.py17 import numpy as np namespace
25 fftData = abs(fft.fft(data * np.hanning(len(data))))
31 np.argmax(fftData[baseI - iMargain /2: baseI + iMargain/2])
32 peakLoc = np.argmax(fftData[:fftLen])
53 index = np.linspace(0.0, samples, num=samples, endpoint=False)
55 multiplier = 2.0 * np.pi * signalFrequency / float(samplingRate)
56 data = np.sin(index * multiplier)
Dcalc_delay.py17 import numpy as np namespace
29 return np.dot(data0[n:N+n], data1reversed)
57 return np.argmax(result)
68 index = np.linspace(0.0, samples, num=samples, endpoint=False)
70 multiplier = 2.0 * np.pi * signalFrequency / float(samplingRate)
71 data0 = np.sin(index * multiplier)
Dexample.py18 import numpy as np namespace
45 stereo = stereoInt.astype(np.int16)
48 mono = monoInt.astype(np.int16)
Dgen_random.py18 import numpy as np namespace
32 result = np.zeros(samples * 2 if stereo else samples, dtype=np.int16)
33 randomSignal = np.random.normal(scale = peakAmpl * 2 / 3, size=samples)
Dcheck_spectrum_playback.py18 import numpy as np namespace
54 spectrum = np.sqrt(abs(Phh[iLow:iHigh]))
55 spectrumMean = np.mean(spectrum)
63 spectrumResult = np.zeros(len(spectrum), dtype=np.int16)
Dcheck_spectrum.py18 import numpy as np namespace
59 amplitudeRatio = np.sqrt(abs(Pdd[iLow:iHigh]/Phh[iLow:iHigh]))
60 ratioMean = np.mean(amplitudeRatio)
68 RatioResult = np.zeros(len(amplitudeRatio), dtype=np.int16)
76 monoData = np.zeros(n)
Dplayback_thd.py18 import numpy as np namespace
Drecording_thd.py18 import numpy as np namespace
/cts/suite/audio_quality/test_description/conf/
Dcheck_conf.py18 import numpy as np namespace
25 a = np.array([1,2,3])
/cts/suite/audio_quality/test_description/
Dprocessing_main.py18 import numpy as np namespace
174 data = np.fromstring(raw, dtype=np.int16)
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aget_wide/
DTest_aget_wide.java80 } catch (NullPointerException np) { in testE2()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aput_wide/
DTest_aput_wide.java80 } catch (NullPointerException np) { in testE2()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DNinePatchDrawableTest.java336 NinePatch np = new NinePatch(bitmap, bitmap.getNinePatchChunk(), null); in getNinePatchDrawable() local
337 return new NinePatchDrawable(mResources, np); in getNinePatchDrawable()
/cts/tests/tests/media/assets/
Dsegment000001.ts2024 ���T-껌3Q��4��o��jnF�DoE�V��8�����w�}[U��ŝ�`0(Q'��ΣG�,np��@,���hՄ�hY�S��pa4<��\�Uz�<dێ�;��L
Dsegment000000.ts97 �c��wo1�X�7�np��Ql�5�xU?��|�7�uhj�>����G��f���lB�q������&�������?����X�A��k�f�d���k�.�x…