Searched refs:toLength (Results 1 – 4 of 4) sorted by relevance
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | SoundGenerator.java | 16 int prefixTotalLength = Util.toLength(Common.PREFIX_LENGTH_S, Common.PLAYING_SAMPLE_RATE_HZ) in SoundGenerator() 17 + Util.toLength(Common.PAUSE_BEFORE_PREFIX_DURATION_S, Common.PLAYING_SAMPLE_RATE_HZ) in SoundGenerator() 18 + Util.toLength(Common.PAUSE_AFTER_PREFIX_DURATION_S, Common.PLAYING_SAMPLE_RATE_HZ); in SoundGenerator() 19 int repetitionLength = pipNum * Util.toLength( in SoundGenerator() 26 Util.toLength(Common.PAUSE_BEFORE_PREFIX_DURATION_S, Common.PLAYING_SAMPLE_RATE_HZ), in SoundGenerator() 33 prefixTotalLength + i * Util.toLength( in SoundGenerator()
|
D | Common.java | 41 hann(Util.toLength(PIP_DURATION_S, RECORDING_SAMPLE_RATE_HZ)); 43 hann(Util.toLength(PIP_DURATION_S, PLAYING_SAMPLE_RATE_HZ));
|
D | WavAnalyzer.java | 135 + Util.toLength(Common.PREFIX_LENGTH_S + Common.PAUSE_AFTER_PREFIX_DURATION_S, sampleRate); in measurePipStrength() 189 + Util.toLength(i * (Common.PIP_DURATION_S + Common.PAUSE_DURATION_S), sampleRate); in measurePipStrength() 223 final int zeroPad = Util.toLength(Common.PREFIX_LENGTH_S, Common.RECORDING_SAMPLE_RATE_HZ) - 1; in alignData()
|
D | Util.java | 17 public static int toLength(double duration, int sampleRate) { in toLength() method in Util
|