Searched defs:time (Results 1 - 25 of 211) sorted by relevance

123456789

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DBatteryStatsStopwatchTimerTest.java143 private static long updateTime(MockClocks clocks, long time) { argument
144 return clocks.realtime = clocks.uptime = time;
/frameworks/base/tests/JankBench/scripts/
H A Drunall.py5 import time namespace
47 time.sleep(3)
/frameworks/av/media/libaaudio/src/utility/
H A DAudioClock.h22 #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 DMtpObjectInfo.cpp60 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 DTimeSparseArray.java38 * 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 DDateSorter.java85 * @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 DZipEntryReader.java42 * 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 DClientWakelockTrackerTest.java34 /* 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 DColorMatrix.java54 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 DGrain.java43 public void animateBars(float time) { argument
44 mScript.set_gNoiseStrength(time % 1.f);
H A DGroupTest.java75 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 DColorMatrix.java61 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 DResult.java29 // 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 DGrain.java48 public void animateBars(float time) { argument
49 mScript.set_gNoiseStrength(time % 1.f);
H A DGroupTest.java82 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 DTimerStat.java23 * 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 DMovieImpl.cpp11 // 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 DUnixCalendar.java30 public UnixCalendar(long time) { argument
31 mTime = time;
50 public void setTimeInMillis(long time) { argument
51 mTime = time;
/frameworks/native/include/ui/
H A DFence.h42 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 DFence.h42 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 DFence.h42 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 DRecyclerViewPrefetchTest.java66 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 DCircularProgressLayoutTest.java103 private void waitForTimer(long time) { argument
105 Thread.sleep(time);
/frameworks/av/media/libnbaio/
H A DAudioStreamOutSink.cpp81 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 DBluetoothStressTest.java35 /** The amount of time to sleep between issuing start/stop SCO in ms. */
363 private void sleep(long time) { argument
365 Thread.sleep(time);

Completed in 6182 milliseconds

123456789