/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | BatteryStatsStopwatchTimerTest.java | 143 private static long updateTime(MockClocks clocks, long time) { argument 144 return clocks.realtime = clocks.uptime = time;
|
/frameworks/base/tests/JankBench/scripts/ |
H A D | runall.py | 5 import time namespace 47 time.sleep(3)
|
/frameworks/av/media/libaaudio/src/utility/ |
H A D | AudioClock.h | 22 #include <time.h> 35 struct timespec time; local 36 int result = clock_gettime(clockId, &time); 40 return (time.tv_sec * AAUDIO_NANOS_PER_SECOND) + time.tv_nsec; 44 * Sleep until the specified absolute time. 48 * @param nanoTime time to wake up 55 struct timespec time; local 56 time.tv_sec = nanoTime / AAUDIO_NANOS_PER_SECOND; 58 time 84 struct timespec time; local [all...] |
/frameworks/av/media/mtp/ |
H A D | MtpObjectInfo.cpp | 60 time_t time; local 83 if (parseDateTime((const char*)string, time)) 84 mDateCreated = time; 87 if (parseDateTime((const char*)string, time)) 88 mDateModified = time;
|
/frameworks/base/core/java/android/app/usage/ |
H A D | TimeSparseArray.java | 38 * the given time. 40 * @param time The timestamp for which to search the array. 43 public int closestIndexOnOrAfter(long time) { argument 55 if (time > key) { 57 } else if (time < key) { 64 if (time < key) { 66 } else if (time > key && lo < size) { 93 * the given time. 95 * @param time The timestamp for which to search the array. 98 public int closestIndexOnOrBefore(long time) { argument [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | DateSorter.java | 85 * @param time time since the Epoch in milliseconds, such as that 90 public int getIndex(long time) { argument 93 if (time > mBins[i]) return i;
|
/frameworks/multidex/library/test/src/androidx/multidex/ |
H A D | ZipEntryReader.java | 42 * Note: The only bit that we will enforce at this time 65 int time = in.getShort() & 0xffff; 87 entry.setTime(getTime(time, modDate)); 111 private static long getTime(int time, int modDate) { argument 115 modDate & 0x1f, (time >> 11) & 0x1f, (time >> 5) & 0x3f, 116 (time & 0x1f) << 1);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | ClientWakelockTrackerTest.java | 34 /* This test has client "ABC" send 1 message at time t and gets response at t+40, 36 "ABC" is attributed 30ms and "PQR" 90ms of the total wakelock time of 120ms 63 private void assertTimeTaken(ClientWakelockAccountant abc, int time) { argument 64 assertTrue(abc.mRequestStats.getCompletedRequestsWakelockTime() > (time - 1)); 65 assertTrue(abc.mRequestStats.getCompletedRequestsWakelockTime() < (time + 19)); 68 /* This test has client "ABC" send 1 message at time t and gets response at t+40, 95 /* This test has client "ABC" send 1 message at time t and another at time t+20 116 /* This test has client "ABC" send 1 message at time t and client "PQR" sends 1 message 117 at time ( [all...] |
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
H A D | ColorMatrix.java | 54 public void animateBars(float time) { argument 56 m.set(1, 0, (time + 0.2f) % 1.0f); 57 m.set(1, 1, (time + 0.9f) % 1.0f); 58 m.set(1, 2, (time + 0.4f) % 1.0f);
|
H A D | Grain.java | 43 public void animateBars(float time) { argument 44 mScript.set_gNoiseStrength(time % 1.f);
|
H A D | GroupTest.java | 75 public void animateBars(float time) { argument 77 m.set(1, 0, (time + 0.2f) % 1.0f); 78 m.set(1, 1, (time + 0.9f) % 1.0f); 79 m.set(1, 2, (time + 0.4f) % 1.0f);
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | ColorMatrix.java | 61 public void animateBars(float time) { argument 63 m.set(1, 0, (time + 0.2f) % 1.0f); 64 m.set(1, 1, (time + 0.9f) % 1.0f); 65 m.set(1, 2, (time + 0.4f) % 1.0f);
|
H A D | Result.java | 29 // Add time 30 public void add(float time) { argument 31 timeList.add(time); 34 // Get total execution time 37 for (float time : timeList) { 38 total += time; 57 for (float time : timeList) { 58 float diff = time - avg;
|
H A D | Grain.java | 48 public void animateBars(float time) { argument 49 mScript.set_gNoiseStrength(time % 1.f);
|
H A D | GroupTest.java | 82 public void animateBars(float time) { argument 84 m.set(1, 0, (time + 0.2f) % 1.0f); 85 m.set(1, 1, (time + 0.9f) % 1.0f); 86 m.set(1, 2, (time + 0.4f) % 1.0f);
|
/frameworks/base/core/java/android/os/health/ |
H A D | TimerStat.java | 23 * A TimerStat object stores a count and a time. 49 * Construct an empty TimerStat object with the count and time set to 0. 55 * Construct a TimerStat object with the supplied count and time fields. 58 * @param time The time 60 public TimerStat(int count, long time) { argument 62 mTime = time; 104 * Set the time for this timer in milliseconds. 106 public void setTime(long time) { argument 107 mTime = time; [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | MovieImpl.cpp | 11 // We should never see this in normal operation since our time values are 52 bool Movie::setTime(SkMSec time) argument 55 if (time > dur) 56 time = dur; 59 if (time != fCurrTime) 61 fCurrTime = time; 62 changed = this->onSetTime(time);
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
H A D | UnixCalendar.java | 30 public UnixCalendar(long time) { argument 31 mTime = time; 50 public void setTimeInMillis(long time) { argument 51 mTime = time;
|
/frameworks/native/include/ui/ |
H A D | Fence.h | 42 static inline bool isValidTimestamp(nsecs_t time) { argument 43 return time >= 0 && time < INT64_MAX; 102 // getSignalTime returns the system monotonic clock time at which the
|
/frameworks/native/libs/ui/include/ui/ |
H A D | Fence.h | 42 static inline bool isValidTimestamp(nsecs_t time) { argument 43 return time >= 0 && time < INT64_MAX; 102 // getSignalTime returns the system monotonic clock time at which the
|
/frameworks/native/libs/ui/include_vndk/ui/ |
H A D | Fence.h | 42 static inline bool isValidTimestamp(nsecs_t time) { argument 43 return time >= 0 && time < INT64_MAX; 102 // getSignalTime returns the system monotonic clock time at which the
|
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
H A D | RecyclerViewPrefetchTest.java | 66 void waitForPrefetch(int time) throws InterruptedException { argument 67 assertThat(prefetchLatch.await(time, TimeUnit.SECONDS),
|
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/ |
H A D | CircularProgressLayoutTest.java | 103 private void waitForTimer(long time) { argument 105 Thread.sleep(time);
|
/frameworks/av/media/libnbaio/ |
H A D | AudioStreamOutSink.cpp | 81 struct timespec time; local 82 if (mStream->getPresentationPosition(&position64, &time) != OK) { 86 timestamp.mTimeNs[ExtendedTimestamp::LOCATION_KERNEL] = audio_utils_ns_from_timespec(&time);
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
H A D | BluetoothStressTest.java | 35 /** The amount of time to sleep between issuing start/stop SCO in ms. */ 363 private void sleep(long time) { argument 365 Thread.sleep(time);
|