Home
last modified time | relevance | path

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

12345

/test/framework/harnesses/host_controller/tradefed/
Dremote_client.py19 import time
125 deadline = time.time() + timeout
131 if time.time() > deadline:
133 time.sleep(poll_interval)
134 if time.time() > deadline:
/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.py27 import time
836 start = time.time()
845 if time.time() - start >= timeout:
848 time.sleep(1)
985 start = time.time()
992 if time.time() - start >= timeout_secs:
995 time.sleep(1)
1040 start = time.time()
1042 if time.time() - start >= timeout_secs:
1047 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/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/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/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()
/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/vts/testcases/vts_selftest/manual_tests/shell_performance/
DVtsSelfTestShellPerformance.py24 import time
74 start = time.time()
76 return time.time() - start
/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/vts-testcase/hal/usb/gadget/V1_0/host/
DVtsHalUsbGadgetV1_0HostTest.py19 import time
95 time.sleep(3)
105 time.sleep(3)
115 time.sleep(3)
125 time.sleep(3)
/test/framework/harnesses/host_controller/
Dmain.py22 import time
76 next_start_time = time.time()
80 current_time = time.time()
87 time.sleep(next_start_time - current_time)
/test/vts/testcases/vts_selftest/manual_tests/flaky_test/
Dvts_selftest_flaky_test.cpp29 struct timeval time; in SetUp() local
30 gettimeofday(&time, NULL); in SetUp()
32 srand((time.tv_sec * 1000) + (time.tv_usec / 1000)); in SetUp()
/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;
/test/vts-testcase/kernel/api/proc/
DProcUidConcurrentTimeTests.py55 row_lengths_match = all(len(time[1]) == int(cpus) for time in times)
97 row_lengths_match = all(len(time[1]) == int(cpus) for time in times)
/test/vts/runners/host/
Dutils.py29 import time
132 return int(round(time.time() * 1000))
141 return time.strftime("%m-%d-%Y %H:%M:%S ")
172 tzoffset = int(time.timezone / 3600)
392 time.sleep(terminate_timeout)
464 time.sleep(check_health_delay)
640 time.sleep(5)
/test/vts-testcase/fuzz/kernel/syzkaller/
Dsyzkaller_test_case.py19 import time
59 test_name = '%s_%s_%d' % (time.strftime('%Y-%m-%d'), self._device_code,
60 int(time.time()))
/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-testcase/hal/vr/V1_0/host/
DVtsHalVrV1_0HostTest.py19 import time
47 time.sleep(1)
52 time.sleep(1)
/test/vts/utils/python/common/
Dtimeout_utils_test.py19 import time
46 time.sleep(2)
56 time.sleep(2)
/test/framework/harnesses/host_controller/tfc/
Dcommand_attempt.py17 import time
104 obj["time"] = int(event_time if event_time is not None else time.time())
/test/framework/harnesses/host_controller/build/
Dbuild_flasher.py24 import time
279 start = time.time()
281 if time.time() - start >= timeout_secs_for_reboot:
286 time.sleep(1)

12345