Home
last modified time | relevance | path

Searched refs:ad (Results 1 – 25 of 133) sorted by relevance

123456

/tools/test/connectivity/acts/framework/acts/test_utils/gnss/
Dgnss_test_utils.py41 def remount_device(ad): argument
49 ad.root_adb()
50 remount_result = ad.adb.remount()
51 ad.log.info("Attempt %d - %s" % (retries + 1, remount_result))
54 if ad.adb.getprop("ro.boot.veritymode") == "enforcing":
56 disable_verity_result = ad.adb.disable_verity()
57 ad.log.info("%s" % disable_verity_result)
58 ad.reboot()
59 ad.unlock_screen(password=None)
61 def enable_gnss_verbose_logging(ad): argument
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/tel/
Dtel_test_utils.py237 def get_phone_number_by_adb(ad): argument
239 ad.adb.shell("service call iphonesubinfo 13"))
242 def get_iccid_by_adb(ad): argument
243 return ad.adb.shell("service call iphonesubinfo 11")
246 def get_operator_by_adb(ad): argument
247 operator = ad.adb.getprop("gsm.sim.operator.alpha")
253 def get_plmn_by_adb(ad): argument
254 plmn_id = ad.adb.getprop("gsm.sim.operator.numeric")
260 def get_sub_id_by_adb(ad): argument
261 return ad.adb.shell("service call iphonesubinfo 5")
[all …]
Dtel_voice_utils.py370 ad, argument
395 if CAPABILITY_WFC not in ad.telephony.get("capabilities", []):
396 ad.log.error("WFC is not supported, abort test.")
398 return phone_setup_iwlan_for_subscription(log, ad,
399 get_outgoing_voice_sub_id(ad),
405 ad, argument
431 toggle_airplane_mode(log, ad, is_airplane_mode, strict_checking=False)
434 if wfc_mode != WFC_MODE_DISABLED and not ad.droid.imsIsWfcEnabledByPlatform(
436 ad.log.error("WFC is not enabled on this device by checking "
441 if not ensure_wifi_connected(log, ad, wifi_ssid, wifi_pwd):
[all …]
Dtel_subscription_utils.py26 def initial_set_up_for_subid_infomation(log, ad): argument
49 if hasattr(ad, "default_voice_sim_slot_index"):
51 log, ad, ad.default_voice_sim_slot_index)
52 set_subid_for_outgoing_call(ad, outgoing_voice_sub_id)
54 outgoing_voice_sub_id = ad.droid.subscriptionGetDefaultVoiceSubId()
55 setattr(ad, "outgoing_voice_sub_id", outgoing_voice_sub_id)
62 if hasattr(ad, "default_message_sim_slot_index"):
64 log, ad, ad.default_message_sim_slot_index)
65 set_subid_for_message(ad, outgoing_message_sub_id)
67 outgoing_message_sub_id = ad.droid.subscriptionGetDefaultSmsSubId()
[all …]
Dtel_data_utils.py233 def wifi_cell_switching(log, ad, wifi_network_ssid, wifi_network_pass, nw_gen): argument
256 log, ad, get_default_data_sub_id(ad), nw_gen,
258 ad.log.error("Device failed to register in %s", nw_gen)
261 start_youtube_video(ad)
263 ad.log.info("Make sure phone can connect to live network by WIFI")
264 if not ensure_wifi_connected(log, ad, wifi_network_ssid,
266 ad.log.error("WiFi connect fail.")
271 toggle_airplane_mode(log, ad, False)
272 wifi_toggle_state(log, ad, True)
273 ad.droid.telephonyToggleDataConnection(True)
[all …]
DTelephonyBaseTest.py111 tasks = [(self._init_device, [ad]) for ad in self.android_devices]
131 for ad in self.android_devices:
132 ad.log_path = self.log_path
159 new_crash = ad.check_crash_report(self.test_name,
163 ad.log.error(msg)
165 ad.serial, msg)
195 tasks = [(self._setup_device, [ad, sim_conf_file, qxdm_log_mask_cfg])
196 for ad in self.android_devices]
199 def _init_device(self, ad): argument
200 synchronize_device_time(ad)
[all …]
Dtel_video_utils.py80 def phone_setup_video(log, ad, wfc_mode=WFC_MODE_DISABLED): argument
93 return phone_setup_video_for_subscription(log, ad,
94 get_outgoing_voice_sub_id(ad),
99 ad, argument
116 toggle_airplane_mode(log, ad, False)
117 if not set_wfc_mode(log, ad, wfc_mode):
119 ad.serial, wfc_mode))
121 toggle_volte(log, ad, True)
124 log, ad, GEN_4G, voice_or_data=NETWORK_SERVICE_DATA):
125 log.error("{} voice not in LTE mode.".format(ad.serial))
[all …]
/tools/test/connectivity/acts/tests/google/gnss/
DGNSSSanityTest.py32 self.ad = self.android_devices[0]
50 self.ad.droid.wakeLockAcquireBright()
51 self.ad.droid.wakeUpNow()
52 tutils.print_radio_info(self.ad)
53 gutils.set_attenuator_gnss_signal(self.ad, self.attenuators,
55 gutils._init_device(self.ad)
56 if not tutils.verify_internet_connection(self.ad.log,
57 self.ad,
60 tutils.abort_all_tests(self.ad.log,
62 if not gutils.check_location_service(self.ad):
[all …]
/tools/test/connectivity/acts/tests/google/tel/live/
DTelLiveProjectFiTest.py101 def _install_account_util(self, ad): argument
105 ad.log.info("Install account_util %s", account_util)
106 ad.ensure_screen_on()
107 ad.adb.install("-r %s" % account_util, timeout=300, ignore_status=True)
109 if not ad.is_apk_installed("com.google.android.tradefed.account"):
110 ad.log.info("com.google.android.tradefed.account is not installed")
114 def _account_registration(self, ad): argument
115 toggle_airplane_mode_by_adb(self.log, ad, new_state=False)
117 ad.adb.shell(cmd)
118 if hasattr(ad, "user_account"):
[all …]
DTelLiveNoQXDMLogTest.py108 ad = self.dut
109 toggle_airplane_mode(self.log, ad, False)
110 if not phone_setup_volte(self.log, ad):
111 ad.log.error("Failed to setup VoLTE.")
134 ad.log.info("Telephony Bootup Time Test %s Iteration: %d / %d",
137 ad.log.debug("Begin Time is %s", begin_time)
138 ad.log.info("reboot!")
139 reboot_device(ad)
144 dict_match = ad.search_logcat(
149 ad.log.debug("Datetime for boot_complete is %s",
[all …]
DTelWifiDataTest.py85 ad = self.android_devices[0]
86 toggle_airplane_mode(self.log, ad, False)
87 if not ensure_network_generation(self.log, ad, GEN_4G,
91 if not ensure_wifi_connected(self.log, ad, self.wifi_network_ssid,
93 ad.log.error("connect WiFi failed")
158 def _wifi_cell_irat_task(self, ad, irat_wait_time=60): argument
164 if (not wait_for_wifi_data_connection(self.log, ad, True,
166 or not verify_internet_connection(self.log, ad)):
167 ad.log.error("Data not on WiFi")
168 get_telephony_signal_strength(ad)
[all …]
DTelLivePreflightTest.py56 def _check_wfc_enabled(self, ad): argument
57 if not wait_for_wifi_data_connection(self.log, ad, True):
58 ad.log.error("Failed to connect to WIFI")
60 if not wait_for_wfc_enabled(self.log, ad):
61 ad.log.error("WFC is not enabled")
64 self.log, ad, RAT_FAMILY_WLAN,
66 ad.log.info("Data rat can not go to iwlan mode successfully")
70 def _get_call_verification_function(self, ad): argument
71 user_profile = get_user_config_profile(ad)
79 ad = self.android_devices[0]
[all …]
DTelLiveStressCallTest.py78 for ad in self.android_devices:
80 ad.log,
81 ad,
85 ad.log.error("Phone Wifi connection fails.")
87 ad.log.info("Phone WIFI is connected successfully.")
88 if not set_wfc_mode(self.log, ad, WFC_MODE_WIFI_PREFERRED):
89 ad.log.error("Phone failed to enable Wifi-Calling.")
91 ad.log.info("Phone is set in Wifi-Calling successfully.")
92 if not phone_idle_iwlan(self.log, ad):
93 ad.log.error("Phone is not in WFC enabled state.")
[all …]
DTelLiveStressTest.py130 for ad in self.android_devices:
131 ad.adb.shell("setprop nfc.debug_enable 1")
133 start_adb_tcpdump(ad, interface="any", mask="all")
168 for ad in self.android_devices:
171 ad,
175 ad.log.error("Bringing up Wifi connection fails.")
177 ad.log.info("Phone WIFI is connected successfully.")
178 if not set_wfc_mode(self.log, ad, WFC_MODE_WIFI_PREFERRED):
179 ad.log.error("Phone failed to enable Wifi-Calling.")
181 ad.log.info("Phone is set in Wifi-Calling successfully.")
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_test_utils.py561 def wait_for_wifi_state(ad, state, assert_on_fail=True): argument
575 _wait_for_wifi_state, assert_on_fail, ad, state=state)
578 def _wait_for_wifi_state(ad, state): argument
587 if state == ad.droid.wifiCheckState():
591 ad.droid.wifiStartTrackingStateChange()
593 ad.serial)
595 ad.ed.wait_for_event(wifi_constants.WIFI_STATE_CHANGED,
599 asserts.assert_equal(state, ad.droid.wifiCheckState(), fail_msg)
601 ad.droid.wifiStopTrackingStateChange()
604 def wifi_toggle_state(ad, new_state=None, assert_on_fail=True): argument
[all …]
/tools/test/connectivity/acts/tests/google/tel/lab/
DTelLabProjectFiTest.py118 self.ad = self.android_devices[0]
119 self.ad.sim_card = getattr(self.ad, "sim_card", None)
124 self.ad.adb.shell("settings put secure cmas_additional_broadcast_pkg "
143 toggle_airplane_mode(self.log, self.ad, True)
149 toggle_airplane_mode(self.log, self.ad, True)
161 self.ad.sim_card)
162 set_usim_parameters(self.anritsu, self.ad.sim_card)
165 self.ad.sim_card)
176 self.ad,
183 if self.ad.droid.connectivityCheckAirplaneMode():
[all …]
DTelLabVoiceTest.py81 self.ad = self.android_devices[0]
82 self.ad.sim_card = getattr(self.ad, "sim_card", None)
94 if self.ad.sim_card == "VzW12349":
95 set_preferred_apn_by_adb(self.ad, "VZWINTERNET")
110 self.ad.droid.telephonyFactoryReset()
111 if self.ad.sim_card == "VzW12349":
112 self.ad.droid.imsSetVolteProvisioning(True)
114 self.ad.log.error(e)
115 toggle_airplane_mode_by_adb(self.log, self.ad, True)
123 toggle_airplane_mode_by_adb(self.log, self.ad, True)
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/car/
Dcar_telecom_utils.py35 def dial_number(log, ad, uri): argument
47 ad.serial, uri))
50 if ad.droid.telecomIsInCall():
51 log.info("We're still in call {}".format(ad.serial))
55 ad.droid.telecomStartListeningForCallAdded()
59 ad.droid.telecomCallTelUri(uri)
63 event = ad.ed.pop_event(
72 ad.droid.telecomStopListeningForCallAdded()
75 log.info("Call ID: {} dev {}".format(call_id, ad.serial))
80 if not wait_for_dialing(log, ad):
[all …]
Dtel_telecom_utils.py27 def dial_number(log, ad, uri): argument
41 ad.serial, uri))
44 ad.droid.telecomStartListeningForCallAdded()
46 ad.droid.telecomCallTelUri(uri)
50 event = ad.ed.pop_event(
59 ad.droid.telecomStopListeningForCallAdded()
62 log.info("Call ID: {} dev {}".format(call_id, ad.serial))
67 if not wait_for_dialing(log, ad):
72 def wait_for_call_state(log, ad, call_id, state): argument
86 ad.droid.telecomCallStartListeningForEvent(
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/net/
Dipsec_test_utils.py34 def allocate_spis(ad, ip_a, ip_b, in_spi = None, out_spi = None): argument
47 in_spi_key = ad.droid.ipSecAllocateSecurityParameterIndex(ip_a, in_spi)
48 in_spi = ad.droid.ipSecGetSecurityParameterIndex(in_spi_key)
49 ad.log.info("In SPI: %s" % hex(in_spi))
51 out_spi_key = ad.droid.ipSecAllocateSecurityParameterIndex(ip_b, out_spi)
52 out_spi = ad.droid.ipSecGetSecurityParameterIndex(out_spi_key)
53 ad.log.info("Out SPI: %s" % hex(out_spi))
58 def release_spis(ad, spis): argument
66 ad.droid.ipSecReleaseSecurityParameterIndex(spi_key)
67 spi = ad.droid.ipSecGetSecurityParameterIndex(spi_key)
[all …]
Dnet_test_utils.py43 def verify_lte_data_and_tethering_supported(ad): argument
45 wutils.wifi_toggle_state(ad, False)
46 ad.droid.telephonyToggleDataConnection(True)
47 wait_for_cell_data_connection(ad.log, ad, True)
49 verify_http_connection(ad.log, ad),
52 ad.droid.connectivityIsTetheringSupported(),
54 wutils.wifi_toggle_state(ad, True)
57 def set_chrome_browser_permissions(ad): argument
71 ad.adb.shell(cmd)
73 logging.warning("adb command %s failed on %s" % (cmd, ad.serial))
[all …]
/tools/test/connectivity/acts/framework/acts/
Dutils.py396 for ad in android_devices:
397 msg = "SL4A connection not established properly on %s." % ad.serial
398 assert ad.droid, msg
493 def sync_device_time(ad): argument
501 ad.adb.shell("settings global put auto_time 0", ignore_status=True)
502 ad.adb.shell("settings global put auto_time_zone 0", ignore_status=True)
503 droid = ad.droid
585 def force_airplane_mode(ad, new_state, timeout_value=60): argument
603 def wait_for_device_with_timeout(ad): argument
604 ad.adb.wait_for_device()
[all …]
/tools/test/connectivity/acts/framework/tests/
Dacts_android_device_test.py54 ad = mock.MagicMock(name="AndroidDevice", serial=i, h_port=None)
55 ad.ensure_screen_on = mock.MagicMock(return_value=True)
56 ads.append(ad)
65 return [ad.serial for ad in get_mock_ads(5)]
199 ad = android_device.get_device(ads, serial=expected_serial)
200 self.assertEqual(ad.serial, expected_serial)
207 ad = android_device.get_device(
209 self.assertEqual(ad.serial, expected_serial)
210 self.assertEqual(ad.h_port, expected_h_port)
217 ad = android_device.get_device(ads, serial=len(ads))
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/aware/
DAwareBaseTest.py42 for ad in self.android_devices:
44 not ad.droid.doesDeviceSupportWifiAwareFeature(),
47 wutils.wifi_toggle_state(ad, True)
48 ad.droid.wifiP2pClose()
49 utils.set_location_service(ad, True)
50 aware_avail = ad.droid.wifiIsAwareAvailable()
53 autils.wait_for_event(ad,
55 ad.ed.clear_all_events()
56 ad.aware_capabilities = autils.get_aware_capabilities(ad)
57 self.reset_device_parameters(ad)
[all …]
/tools/test/connectivity/acts/tests/google/net/
DDataCostTest.py49 for ad in self.android_devices:
50 nutils.verify_lte_data_and_tethering_supported(ad)
54 for ad in self.android_devices:
55 sub_id = str(ad.droid.telephonyGetSubscriberId())
56 ad.droid.connectivityFactoryResetNetworkPolicies(sub_id)
57 ad.droid.connectivitySetDataWarningLimit(sub_id, -1)
58 wutils.reset_wifi(ad)
61 for ad in self.android_devices:
62 ad.take_bug_report(test_name, begin_time)
66 def _get_total_data_usage_for_device(self, ad, conn_type, sub_id): argument
[all …]

123456