Searched refs:Common (Results 1 – 7 of 7) sorted by relevance
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | SoundGenerator.java | 15 int pipNum = Common.PIP_NUM; in SoundGenerator() 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() 20 Common.PIP_DURATION_S + Common.PAUSE_DURATION_S, Common.PLAYING_SAMPLE_RATE_HZ); in SoundGenerator() 21 int sampleLength = prefixTotalLength + Common.REPETITIONS * repetitionLength; in SoundGenerator() 25 System.arraycopy(Common.PREFIX_FOR_PLAYER, 0, sample, in SoundGenerator() 26 Util.toLength(Common.PAUSE_BEFORE_PREFIX_DURATION_S, Common.PLAYING_SAMPLE_RATE_HZ), in SoundGenerator() 27 Common.PREFIX_FOR_PLAYER.length); in SoundGenerator() 30 for (int i = 0; i < pipNum * Common.REPETITIONS; i++) { in SoundGenerator() [all …]
|
D | WavAnalyzer.java | 78 double[] coeffOfVar = new double[Common.PIP_NUM]; in isConsistent() 79 for (int i = 0; i < Common.PIP_NUM; i++) { in isConsistent() 80 double[] powerAtFreq = new double[Common.REPETITIONS]; in isConsistent() 81 for (int j = 0; j < Common.REPETITIONS; j++) { in isConsistent() 107 if (Util.mean(dB) - Util.mean(noiseDB) < Common.SIGNAL_MIN_STRENGTH_DB_ABOVE_NOISE) { in responsePassesHifiTest() 113 int indexOf2000Hz = Util.findClosest(Common.FREQUENCIES_ORIGINAL, 2000.0); in responsePassesHifiTest() 114 threshold = dB[indexOf2000Hz] + Common.PASSING_THRESHOLD_DB; in responsePassesHifiTest() 115 int indexOf18500Hz = Util.findClosest(Common.FREQUENCIES_ORIGINAL, 18500.0); in responsePassesHifiTest() 116 int indexOf20000Hz = Util.findClosest(Common.FREQUENCIES_ORIGINAL, 20000.0); in responsePassesHifiTest() 135 + Util.toLength(Common.PREFIX_LENGTH_S + Common.PAUSE_AFTER_PREFIX_DURATION_S, sampleRate); in measurePipStrength() [all …]
|
D | HifiUltrasoundTestActivity.java | 164 + Common.PREFIX_LENGTH_S in onCreate() 165 + Common.PAUSE_BEFORE_PREFIX_DURATION_S in onCreate() 166 + Common.PAUSE_AFTER_PREFIX_DURATION_S in onCreate() 167 + Common.PIP_NUM * (Common.PIP_DURATION_S + Common.PAUSE_DURATION_S) in onCreate() 168 * Common.REPETITIONS)); in onCreate() 224 Double[] frequencies = new Double[Common.PIP_NUM]; in plotResponse() 225 for (int i = 0; i < Common.PIP_NUM; i++) { in plotResponse() 226 frequencies[i] = new Double(Common.FREQUENCIES_ORIGINAL[i]); in plotResponse() 233 for(int i = 0; i < Common.REPETITIONS; i++) { in plotResponse() 234 Double[] powerWrap = new Double[Common.PIP_NUM]; in plotResponse() [all …]
|
D | HifiUltrasoundSpeakerTestActivity.java | 184 + Common.PREFIX_LENGTH_S in onCreate() 185 + Common.PAUSE_BEFORE_PREFIX_DURATION_S in onCreate() 186 + Common.PAUSE_AFTER_PREFIX_DURATION_S in onCreate() 187 + Common.PIP_NUM * (Common.PIP_DURATION_S + Common.PAUSE_DURATION_S) in onCreate() 188 * Common.REPETITIONS)); in onCreate() 265 Double[] frequencies = new Double[Common.PIP_NUM]; in plotResponse() 266 for (int i = 0; i < Common.PIP_NUM; i++) { in plotResponse() 267 frequencies[i] = new Double(Common.FREQUENCIES_ORIGINAL[i]); in plotResponse() 273 for(int i = 0; i < Common.REPETITIONS; i++) { in plotResponse() 274 Double[] powerWrap = new Double[Common.PIP_NUM]; in plotResponse() [all …]
|
D | Common.java | 12 public class Common { class 98 double[] randomFrequencies = new double[Common.REPETITIONS * originalFrequencies.length]; in frequencies() 111 double frequency = Common.MIN_FREQUENCY_HZ; in originalFrequencies() 112 while (frequency <= Common.MAX_FREQUENCY_HZ) { in originalFrequencies() 115 frequency += Common.FREQUENCY_STEP_HZ; in originalFrequencies() 117 frequency += Common.FREQUENCY_STEP_HZ * 10; in originalFrequencies()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/scripts/ |
D | ca.conf | 104 commonName = Common Name
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | small_structs.rscript | 42 /* Common code */
|