Home
last modified time | relevance | path

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

12345678910>>...21

/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/lib_controllers/
Dwlan_policy_controller.py18 import time
57 end_time = time.time() + timeout
60 while time.time() < end_time:
66 time.sleep(1)
72 while time.time() < end_time:
77 time.sleep(1)
84 time.sleep(1)
342 end_time = time.time() + timeout
343 while time.time() < end_time:
344 time_left = max(1, int(end_time - time.time()))
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/test_actions/
Dapollo_acts.py20 import time
100 time.sleep(1)
101 ini_time = time.time()
105 if (time.time() - ini_time) > timeout:
108 time.sleep(1)
251 time.sleep(2)
267 time.sleep(2)
356 start_time = time.time()
373 if time.time() - start_time > timeout:
385 connect_start_time = time.time()
[all …]
Dbt_utils.py33 import time
102 start_time = time.time()
128 end_time = time.time()
142 start_time = end_time = time.time()
162 end_time = time.time()
201 start_time = end_time = time.time()
220 end_time = time.time()
/tools/test/connectivity/acts_tests/tests/google/bt/audio_lab/
DBtFunhausMetricsTest.py14 import time
58 start_time = time.time()
62 time.sleep(20)
63 bt_duration = time.time() - start_time
111 start_time = time.time()
114 a2dp_duration += (time.time() - start_time)
115 time.sleep(20)
116 bt_duration += (time.time() - start_time)
157 start_time = time.time()
160 time.sleep(20)
[all …]
/tools/test/connectivity/acts_tests/tests/google/tel/live/
DTelLiveSmsTest.py20 import time
336 time.sleep(WAIT_TIME_ANDROID_STATE_SETTLING)
360 time.sleep(WAIT_TIME_ANDROID_STATE_SETTLING)
383 time.sleep(WAIT_TIME_ANDROID_STATE_SETTLING)
407 time.sleep(WAIT_TIME_ANDROID_STATE_SETTLING)
430 time.sleep(WAIT_TIME_ANDROID_STATE_SETTLING)
454 time.sleep(WAIT_TIME_ANDROID_STATE_SETTLING)
478 time.sleep(WAIT_TIME_ANDROID_STATE_SETTLING)
502 time.sleep(WAIT_TIME_ANDROID_STATE_SETTLING)
578 time.sleep(WAIT_TIME_ANDROID_STATE_SETTLING)
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/
Dbt_carkit_lib.py17 import time
70 end_time = time.time() + default_timeout + 10
72 while connected_hsp_devices != 1 and time.time() < end_time:
75 time.sleep(3)
100 time.sleep(self.short_timeout)
175 time.sleep(grace_timeout)
181 start_time = time.time()
185 while time.time() < start_time + 10 and len(connected_devices) != 1:
188 time.sleep(1)
204 time.sleep(self.short_timeout)
[all …]
Dbt_test_utils.py23 import time
116 end_time = time.time() + timeout_sec
117 while not ad.droid.bluetoothCheckState() and time.time() < end_time:
118 time.sleep(1)
191 time.sleep(1)
228 start_time = time.time()
230 while not connected and (time.time() - start_time < timeout):
248 time.sleep(connection_check_period)
269 time.sleep(2)
318 end_time = time.time() + 10
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/coex/
Dcoex_test_utils.py22 import time
89 time.sleep(AVRCP_WAIT_TIME)
93 time.sleep(AVRCP_WAIT_TIME)
97 time.sleep(AVRCP_WAIT_TIME)
104 time.sleep(AVRCP_WAIT_TIME)
106 time.sleep(AVRCP_WAIT_TIME)
185 time.sleep(AP_START_TIME)
218 end_time = time.time() + 10
223 while (time.time() < end_time and
248 time.sleep(0.1)
[all …]
/tools/test/connectivity/acts_tests/tests/google/net/
DSocketKeepaliveTest.py18 import time
108 time.sleep(3)
188 if pkt.time < beg:
190 if pkt.time > end:
197 time_stamps.append(pkt.time)
232 if pkt.time < beg:
234 if pkt.time > end:
238 ka_dict[pkt[UDP].sport] = [float(pkt.time)]
240 ka_dict[pkt[UDP].sport].append(float(pkt.time))
396 beg_time = time.time()
[all …]
DDataUsageTest.py17 import time
144 end_time = time.time() + TIMEOUT
145 while time.time() < end_time:
152 time.sleep(RETRY_SLEEP*2) # wait to check if download is complete
166 end_time = int(time.time() * 1000) + 2 * HOUR_IN_MILLIS
185 end_time = int(time.time() * 1000) + 2 * HOUR_IN_MILLIS
201 end_time = int(time.time() * 1000) + 2 * HOUR_IN_MILLIS
240 curr_time = time.time()
242 while time.time() < curr_time + TIMEOUT:
292 time.sleep(WIFI_SLEEP)
[all …]
DDataCostTest.py21 import time
89 time.sleep(30)
125 end_time = int(time.time() * 1000) + 2 * 1000 * 60 * 60
210 curr_time = time.time()
211 while time.time() < curr_time + TIMEOUT:
218 time.sleep(1)
260 curr_time = time.time()
261 while time.time() < curr_time + TIMEOUT:
268 time.sleep(1)
/tools/test/connectivity/acts/framework/acts/controllers/
Darduino_wifi_dongle.py22 import time
325 curr_time = time.time()
326 while time.time() < curr_time + timeout:
330 time.sleep(1)
340 curr_time = time.time()
341 while time.time() < curr_time + timeout:
345 time.sleep(1)
362 curr_time = time.time()
363 while time.time() < curr_time + timeout:
367 time.sleep(1)
[all …]
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiStressTest.py20 import time
163 time.sleep(secs)
201 time.sleep(self.pno_interval)
206 time.sleep(60)
242 startTime = time.time()
244 startup_time = time.time() - startTime
263 startTime = time.time()
265 startup_time = time.time() - startTime
300 time.sleep(WAIT_BEFORE_CONNECTION)
324 start_time = time.time()
[all …]
DWifiIFSTwTest.py19 import time
136 time.sleep(10)
140 time.sleep(5)
149 time.sleep(1)
153 time.sleep(5)
162 time.sleep(1)
169 file_name = time.strftime("%Y-%m-%d_%H:%M:%S", time.localtime())
211 time.sleep(1)
218 time.sleep(10)
258 start_time = time.time()
[all …]
DWifiWakeTest.py17 import time
206 time.sleep(PRESCAN_DELAY_SEC)
224 time.sleep(LAST_DISCONNECT_TIMEOUT_SEC * 1.2)
226 time.sleep(PRESCAN_DELAY_SEC)
232 time.sleep(WIFI_TOGGLE_DELAY_SEC)
268 time.sleep(LAST_DISCONNECT_TIMEOUT_SEC * 1.2)
270 time.sleep(PRESCAN_DELAY_SEC)
276 time.sleep(WIFI_TOGGLE_DELAY_SEC)
289 time.sleep(PRESCAN_DELAY_SEC)
298 time.sleep(WIFI_TOGGLE_DELAY_SEC)
[all …]
DWifiNetworkSelectorTest.py18 import time
77 time.sleep(ATTN_SLEEP)
125 time.sleep(20)
151 time.sleep(ATTN_SLEEP)
174 time.sleep(ATTN_SLEEP)
198 time.sleep(ATTN_SLEEP)
221 time.sleep(ATTN_SLEEP)
247 time.sleep(ATTN_SLEEP)
253 time.sleep(NETWORK_SELECTION_TIME_GAP)
286 time.sleep(NETWORK_SELECTION_TIME_GAP)
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/fuchsia/
Dbt_test_utils.py20 import time
49 end_time = time.time() + timeout
51 while time.time() < end_time and not found_device:
52 time.sleep(1)
88 end_time = time.time() + timeout
90 while time.time() < end_time and not found_device:
98 time.sleep(1)
137 end_time = time.time() + seconds_allowed_for_state_change
139 while time.time() < end_time and not found_state:
154 time.sleep(1)
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/abstract_devices/
Dwmm_transceiver.py19 import time
264 time) = self._parse_stream_parameters(stream_parameters)
278 'time': time
301 time = pending_stream_config['time']
314 'stream_time': time,
442 start_time = time.time()
451 current_time = time.time()
453 current_time = time.time()
565 end_time = time.time() + DEFAULT_IP_ADDR_TIMEOUT
566 while time.time() < end_time:
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/relay_lib/
Djaybird_x3.py18 import time
50 time.sleep(WAIT_FOR_EFFECT_TIME)
57 time.sleep(WAIT_FOR_EFFECT_TIME)
65 time.sleep(WAIT_FOR_EFFECT_TIME)
70 time.sleep(WAIT_FOR_EFFECT_TIME)
75 time.sleep(WAIT_FOR_EFFECT_TIME)
80 time.sleep(WAIT_FOR_EFFECT_TIME)
85 time.sleep(WAIT_FOR_EFFECT_TIME)
90 time.sleep(WAIT_FOR_EFFECT_TIME)
95 time.sleep(WAIT_FOR_EFFECT_TIME)
[all …]
Dearstudio_receiver.py18 import time
52 time.sleep(WAIT_FOR_EFFECT_TIME)
61 time.sleep(WAIT_FOR_EFFECT_TIME)
70 time.sleep(WAIT_FOR_EFFECT_TIME)
79 time.sleep(WAIT_FOR_EFFECT_TIME)
87 time.sleep(WAIT_FOR_EFFECT_TIME)
95 time.sleep(WAIT_FOR_EFFECT_TIME)
100 time.sleep(WAIT_FOR_EFFECT_TIME)
110 time.sleep(WAIT_FOR_EFFECT_TIME)
115 time.sleep(WAIT_FOR_EFFECT_TIME)
[all …]
/tools/test/connectivity/acts_tests/tests/google/bt/test_tools/
DToolsTest.py20 import time
52 start_time = time.time()
55 while time.time() < start_time + 10 and len(
57 time.sleep(1)
86 time.sleep(6)
88 start_time = time.time()
91 while time.time() < start_time + 10 and len(
93 time.sleep(1)
112 time.sleep(3)
/tools/test/connectivity/acts_tests/tests/google/bt/headphone_automation/
DHeadphoneTest.py25 import time
51 time.sleep(10)
57 end_time = time.time() + 20
60 while time.time() < end_time:
73 time.sleep(3)
79 time.sleep(3)
143 time.sleep(6)
148 time.sleep(6)
185 time.sleep(6)
190 time.sleep(6)
[all …]
/tools/asuite/atest-py2/metrics/
Dclearcut_client.py28 import time
97 log_request.request_time_ms = int(time.time() * 1000)
116 and self._scheduled_flush_time > time.time()):
126 min_wait_sec = self._min_next_request_time - time.time()
131 self._scheduled_flush_time = time.time() + time_from_now
145 if self._min_next_request_time > time.time():
168 / 1000 + time.time())
/tools/asuite/atest/metrics/
Dclearcut_client.py28 import time
97 log_request.request_time_ms = int(time.time() * 1000)
116 and self._scheduled_flush_time > time.time()):
126 min_wait_sec = self._min_next_request_time - time.time()
132 self._scheduled_flush_time = time.time() + time_from_now
146 if self._min_next_request_time > time.time():
169 / 1000 + time.time())
/tools/test/connectivity/acts_tests/tests/google/bt/performance/
DBtA2dpOtaRangeTest.py11 import time
55 t0 = time.time()
59 if (time.time() - t0) > MAXTRAVELTIME:
70 t0 = time.time()
74 if (time.time() - t0) > 2:
215 time.sleep(1)
245 time.sleep(1)
247 time.sleep(self.audio_params['duration'])
283 time_start = time.time()
284 while time.time() < time_start + 5:
[all …]

12345678910>>...21