Home
last modified time | relevance | path

Searched refs:timeInMSec (Results 1 – 6 of 6) sorted by relevance

/cts/common/util/src/com/android/compatibility/common/util/
DStat.java164 public static double calcRatePerSec(double change, double timeInMSec) { in calcRatePerSec() argument
165 if (timeInMSec == 0) { in calcRatePerSec()
168 return change * 1000.0 / timeInMSec; in calcRatePerSec()
175 public static double[] calcRatePerSecArray(double change, double[] timeInMSec) { in calcRatePerSecArray() argument
176 double[] result = new double[timeInMSec.length]; in calcRatePerSecArray()
178 for (int i = 0; i < timeInMSec.length; i++) { in calcRatePerSecArray()
179 if (timeInMSec[i] == 0) { in calcRatePerSecArray()
182 result[i] = change / timeInMSec[i]; in calcRatePerSecArray()
/cts/libs/commonutil/src/com/android/cts/util/
DReportLog.java174 public static double calcRatePerSec(double change, double timeInMSec) { in calcRatePerSec() argument
175 if (timeInMSec == 0) { in calcRatePerSec()
178 return change * 1000.0 / timeInMSec; in calcRatePerSec()
185 public static double[] calcRatePerSecArray(double change, double[] timeInMSec) { in calcRatePerSecArray() argument
186 double[] result = new double[timeInMSec.length]; in calcRatePerSecArray()
188 for (int i = 0; i < timeInMSec.length; i++) { in calcRatePerSecArray()
189 if (timeInMSec[i] == 0) { in calcRatePerSecArray()
192 result[i] = change / timeInMSec[i]; in calcRatePerSecArray()
/cts/suite/audio_quality/lib/src/
DSemaphore.cpp46 bool Semaphore::timedWait(int timeInMSec) in timedWait() argument
55 int secToGo = timeInMSec / ONE_SEC_IN_MSEC; in timedWait()
56 int msecToGo = timeInMSec - (ONE_SEC_IN_MSEC * secToGo); in timedWait()
/cts/suite/audio_quality/lib/include/audio/
DRemoteAudio.h79 bool waitForCompletion(android::sp<android::MessageHandler>& command, int timeInMSec);
121 bool timedWait(int timeInMSec) { in timedWait() argument
122 return mClientWait.timedWait(timeInMSec); in timedWait()
/cts/suite/audio_quality/lib/include/
DSemaphore.h39 bool timedWait(int timeInMSec);
/cts/suite/audio_quality/lib/src/audio/
DRemoteAudio.cpp156 bool RemoteAudio::waitForCompletion(android::sp<android::MessageHandler>& command, int timeInMSec) in waitForCompletion() argument
158 LOGV("waitForCompletion %d", timeInMSec); in waitForCompletion()
159 return toCommandHandler(command)->timedWait(timeInMSec); in waitForCompletion()