Home
last modified time | relevance | path

Searched refs:Common (Results 1 – 11 of 11) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DSoundGenerator.java15 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 …]
DWavAnalyzer.java78 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 …]
DHifiUltrasoundTestActivity.java160 + Common.PREFIX_LENGTH_S in onCreate()
161 + Common.PAUSE_BEFORE_PREFIX_DURATION_S in onCreate()
162 + Common.PAUSE_AFTER_PREFIX_DURATION_S in onCreate()
163 + Common.PIP_NUM * (Common.PIP_DURATION_S + Common.PAUSE_DURATION_S) in onCreate()
164 * Common.REPETITIONS)); in onCreate()
220 Double[] frequencies = new Double[Common.PIP_NUM]; in plotResponse()
221 for (int i = 0; i < Common.PIP_NUM; i++) { in plotResponse()
222 frequencies[i] = new Double(Common.FREQUENCIES_ORIGINAL[i]); in plotResponse()
228 for(int i = 0; i < Common.REPETITIONS; i++) { in plotResponse()
229 Double[] powerWrap = new Double[Common.PIP_NUM]; in plotResponse()
[all …]
DHifiUltrasoundSpeakerTestActivity.java178 + Common.PREFIX_LENGTH_S in onCreate()
179 + Common.PAUSE_BEFORE_PREFIX_DURATION_S in onCreate()
180 + Common.PAUSE_AFTER_PREFIX_DURATION_S in onCreate()
181 + Common.PIP_NUM * (Common.PIP_DURATION_S + Common.PAUSE_DURATION_S) in onCreate()
182 * Common.REPETITIONS)); in onCreate()
259 Double[] frequencies = new Double[Common.PIP_NUM]; in plotResponse()
260 for (int i = 0; i < Common.PIP_NUM; i++) { in plotResponse()
261 frequencies[i] = new Double(Common.FREQUENCIES_ORIGINAL[i]); in plotResponse()
267 for(int i = 0; i < Common.REPETITIONS; i++) { in plotResponse()
268 Double[] powerWrap = new Double[Common.PIP_NUM]; in plotResponse()
[all …]
DCommon.java12 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/net/app2/src/com/android/cts/net/hostside/app2/
DMyBroadcastReceiver.java21 import static com.android.cts.net.hostside.app2.Common.ACTION_CHECK_NETWORK;
22 import static com.android.cts.net.hostside.app2.Common.ACTION_GET_COUNTERS;
23 import static com.android.cts.net.hostside.app2.Common.ACTION_GET_RESTRICT_BACKGROUND_STATUS;
24 import static com.android.cts.net.hostside.app2.Common.ACTION_RECEIVER_READY;
25 import static com.android.cts.net.hostside.app2.Common.ACTION_SEND_NOTIFICATION;
26 import static com.android.cts.net.hostside.app2.Common.EXTRA_ACTION;
27 import static com.android.cts.net.hostside.app2.Common.EXTRA_NOTIFICATION_ID;
28 import static com.android.cts.net.hostside.app2.Common.EXTRA_RECEIVER_NAME;
29 import static com.android.cts.net.hostside.app2.Common.MANIFEST_RECEIVER;
30 import static com.android.cts.net.hostside.app2.Common.TAG;
[all …]
DMyService.java19 import static com.android.cts.net.hostside.app2.Common.ACTION_RECEIVER_READY;
20 import static com.android.cts.net.hostside.app2.Common.DYNAMIC_RECEIVER;
21 import static com.android.cts.net.hostside.app2.Common.TAG;
DMyActivity.java18 import static com.android.cts.net.hostside.app2.Common.ACTION_FINISH_ACTIVITY;
19 import static com.android.cts.net.hostside.app2.Common.TAG;
DCommon.java21 public final class Common { class
DMyForegroundService.java18 import static com.android.cts.net.hostside.app2.Common.TAG;
/cts/hostsidetests/devicepolicy/app/DeviceOwner/assets/
Dca.conf104 commonName = Common Name