Home
last modified time | relevance | path

Searched refs:time (Results 1 – 25 of 95) sorted by relevance

1234

/test/vts/testcases/host/kernel_proc_file_api_test/
Dproc_utils.py20 import time
90 start = time.time()
94 if time.time() - start >= timeout:
97 time.sleep(1)
122 start = time.time()
123 while (time.time() - start) <= timeout:
126 time.sleep(1)
140 time.sleep(1)
/test/vts/utils/python/controllers/
Dandroid.py26 import time
68 timeout_time = time.time() + self._SOCKET_CONNECT_TIMEOUT
72 (addr, port), max(1, timeout_time - time.time()))
82 if time.time() + 1 >= timeout_time:
85 time.sleep(1)
Dandroid_device.py30 import time
859 start = time.time()
868 if time.time() - start >= timeout:
871 time.sleep(1)
1008 start = time.time()
1015 if time.time() - start >= timeout_secs:
1018 time.sleep(1)
1063 start = time.time()
1065 if time.time() - start >= timeout_secs:
1070 time.sleep(1)
/test/vti/dashboard/src/test/java/com/android/vts/job/
DVtsProfilingStatsJobServletTest.java46 import java.time.Instant;
47 import java.time.LocalDateTime;
48 import java.time.Month;
49 import java.time.ZonedDateTime;
83 long time = TimeUnit.MILLISECONDS.toMicros(d.getTime()); in createProfilingRun() local
84 long canonicalTime = VtsProfilingStatsJobServlet.getCanonicalTime(time); in createProfilingRun()
95 Key testRunKey = KeyFactory.createKey(testKey, TestRunEntity.KIND, time); in createProfilingRun()
182 long time = TimeUnit.SECONDS.toMicros(zdt.toEpochSecond()); in testCanonicalTimeMidday() local
183 long canonicalTime = VtsProfilingStatsJobServlet.getCanonicalTime(time); in testCanonicalTimeMidday()
203 long time = TimeUnit.SECONDS.toMicros(zdt.toEpochSecond()); in testCanonicalTimeMidnight() local
[all …]
/test/vti/test_serving/configs/infra/test/androidtestcenter-test/scripts/
Dhome_bot_config.py26 import time
109 if self._properties is None or time.time() > self._stale_state_ts:
120 if self._properties is None or time.time() > self._stale_state_ts:
164 self._stale_state_ts = time.time() + self._STALE_STATE_DELTA
262 return {'Authorization': 'Bearer %s' % tok}, time.time() + 5*60
/test/vti/test_serving/configs/infra/prod/androidtestcenter/scripts/
Dhome_bot_config.py26 import time
109 if self._properties is None or time.time() > self._stale_state_ts:
120 if self._properties is None or time.time() > self._stale_state_ts:
164 self._stale_state_ts = time.time() + self._STALE_STATE_DELTA
262 return {'Authorization': 'Bearer %s' % tok}, time.time() + 5*60
/test/vti/dashboard/src/main/java/com/android/vts/servlet/
DShowPlanRunServlet.java59 String time = request.getParameter("time"); in getBreadcrumbLinks() local
60 links.add(new Page(PageType.PLAN_RUN, "?plan=" + planName + "&time=" + time)); in getBreadcrumbLinks()
67 Long time = null; // time in microseconds in doGetHandler() local
76 time = Long.parseLong(timeString); in doGetHandler()
77 time = time > 0 ? time : null; in doGetHandler()
79 time = null; in doGetHandler()
94 Key planRunKey = KeyFactory.createKey(planKey, TestPlanRunEntity.KIND, time); in doGetHandler()
DShowCoverageServlet.java89 long time = -1; in doGetHandler() local
91 time = Long.parseLong(timeString); in doGetHandler()
101 .create(testKey, TestRunEntity.class, time); in doGetHandler()
/test/vts/utils/python/instrumentation/
Dtest_framework_instrumentation_event.py17 import time
123 timestamp_begin_cpu = time.clock()
124 timestamp_begin_wall = time.time()
161 timestamp_end_cpu = time.clock()
162 timestamp_end_wall = time.time()
Dtest_framework_instrumentation.py20 import time
120 counts[(name, category)] = [time.time()]
122 counts[name, category].append(time.time())
/test/vti/dashboard/src/test/java/com/android/vts/util/
DTimeUtilTest.java28 long time = 1504286976352052l; in testFormatDateTime() local
30 String timeString = TimeUtil.getDateTimeZoneString(time); in testFormatDateTime()
37 long time = 1504248634455491l; in testFormatDate() local
39 String timeString = TimeUtil.getDateString(time); in testFormatDate()
/test/vti/dashboard/src/main/webapp/js/
Dtime.js26 var time = moment(timestamp / 1000);
31 return time.format(format);
41 var time = moment(timestamp / 1000);
46 return time.format(format);
/test/vti/dashboard/src/main/java/com/android/vts/util/
DTimeUtil.java18 import java.time.Instant;
19 import java.time.ZoneId;
20 import java.time.ZonedDateTime;
21 import java.time.format.DateTimeFormatter;
DPerformanceSummary.java58 public boolean contains(long time) { in contains() argument
59 return time >= startTime && time <= endTime; in contains()
/test/vts/testcases/host/kernel_proc_file_api_test/proc_tests/
DProcUidConcurrentTimeTests.py59 row_lengths_match = all(len(time[1]) == int(cpus) for time in times)
105 row_lengths_match = all(len(time[1]) == int(cpus) for time in times)
DProcUidTimeInStateTest.py57 return all(len(time[1]) == len(freqs) for time in times)
/test/vts/runners/host/
Dutils.py29 import time
130 return int(round(time.time() * 1000))
139 return time.strftime("%m-%d-%Y %H:%M:%S ")
170 tzoffset = int(time.timezone / 3600)
390 time.sleep(terminate_timeout)
462 time.sleep(check_health_delay)
638 time.sleep(5)
/test/vts/utils/python/web/
Dfeature_utils.py17 import time
22 return int(time.time() * 1000000)
/test/vti/dashboard/src/main/java/com/android/vts/job/
DVtsProfilingStatsJobServlet.java41 import java.time.Instant;
42 import java.time.ZonedDateTime;
76 public static long getCanonicalTime(long time) { in getCanonicalTime() argument
77 long timeMillis = TimeUnit.MICROSECONDS.toMillis(time); in getCanonicalTime()
115 long time) { in updateSummaries() argument
149 profilingPoint.getKey(), branch, device, option, time)); in updateSummaries() local
186 profilingPoint.getKey(), branch, device, option, time); in updateSummaries()
/test/vts/utils/python/common/
Dtimeout_utils_test.py19 import time
46 time.sleep(2)
56 time.sleep(2)
/test/vts-testcase/kernel/checkpoint/
Dvts_kernel_checkpoint_test.py19 import time
87 time.sleep(1)
94 time.sleep(1)
104 time.sleep(1)
DVtsKernelCheckpointTest.py23 import time
83 time.sleep(1)
90 time.sleep(1)
100 time.sleep(1)
/test/vts-testcase/nbu/src/
Dble_test.py3 import time
153 time.sleep(SCAN_TIMEOUT)
222 time.sleep(CONNECTION_TIMEOUT)
265 time.sleep(CANCEL_CONNECTION_WAIT_TIME)
271 time.sleep(CANCEL_CONNECTION_WAIT_TIME)
274 time.sleep(CONNECTION_TIMEOUT)
325 time.sleep(CONNECTION_TIMEOUT)
/test/vts/utils/python/systrace/
Dsystrace_utils.py114 time = feature_utils.GetTimestamp()
118 test=test_name, process=process, time=time)
/test/vti/dashboard/src/main/webapp/WEB-INF/jsp/
Dshow_performance_digest.jsp33 var time = $('#date').datepicker('getDate').getTime() - 1;
34 time = time * MICRO_PER_MILLI + ONE_DAY; // end of day
38 '&startTime=' + time;

1234