Searched refs:Common (Results 1 – 6 of 6) 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 | 160 + 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 …]
|
D | HifiUltrasoundSpeakerTestActivity.java | 178 + 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 …]
|
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/suite/cts/deviceTests/browserbench/assets/octane/ |
D | box2d.js | 24 …sion.Shapes={};if(typeof Box2D.Common==="undefined")Box2D.Common={};if(typeof Box2D.Common.Math===… 44 …Common.b2internal="Box2D.Common.b2internal";Box2D.Common.b2Color=a;Box2D.Common.b2Settings=c;Box2D… 50 ….b2Shape,y=Box2D.Common.b2Settings,w=Box2D.Common.Math.b2Math,A=Box2D.Common.Math.b2Sweep,U=Box2D.… 121 …Common.b2Settings,G=Box2D.Collision.Shapes.b2CircleShape,K=Box2D.Collision.Shapes.b2EdgeChainDef,y… 155 (function(){var F=Box2D.Common.b2Color,G=Box2D.Common.b2Settings,K=Box2D.Common.Math.b2Math;F.b2Col… 157 …(y){if(!y)throw"Assertion Failed";};Box2D.postDefs.push(function(){Box2D.Common.b2Settings.VERSION= 158 …Common.b2Settings.USHRT_MAX=65535;Box2D.Common.b2Settings.b2_pi=Math.PI;Box2D.Common.b2Settings.b2… 159 …Common.b2Settings.b2_velocityThreshold=1;Box2D.Common.b2Settings.b2_maxLinearCorrection=0.2;Box2D.… 160 0.5;Box2D.Common.b2Settings.b2_linearSleepTolerance=0.01;Box2D.Common.b2Settings.b2_angularSleepTol… 161 …Common.Math.b2Mat22,G=Box2D.Common.Math.b2Mat33,K=Box2D.Common.Math.b2Math,y=Box2D.Common.Math.b2S… [all …]
|