Lines Matching refs:ad
50 for ad in self.android_devices:
51 wutils.reset_wifi(ad)
52 ad.droid.telephonyToggleDataConnection(True)
53 wait_for_cell_data_connection(self.log, ad, True)
55 verify_http_connection(self.log, ad),
59 for ad in self.android_devices:
60 wutils.reset_wifi(ad)
61 ad.droid.telephonyToggleDataConnection(True)
65 def _get_total_data_usage_for_device(self, ad, conn_type, sub_id): argument
80 data_usage = ad.droid.connectivityQuerySummaryForDevice(
100 ad, argument
115 ad.droid.connectivityGetMultipathPreferenceForNetwork(wifi_network)
117 ad.droid.connectivityGetMultipathPreferenceForNetwork(cell_network)
137 ad = self.android_devices[0]
138 sub_id = str(ad.droid.telephonyGetSubscriberId())
139 cell_network = ad.droid.connectivityGetActiveNetwork()
141 wutils.wifi_connect(ad, self.wifi_network)
142 wifi_network = ad.droid.connectivityGetActiveNetwork()
147 ad, RELIABLE, RELIABLE, wifi_network, cell_network)
150 total_pre = self._get_total_data_usage_for_device(ad, 0, sub_id)
152 ad.droid.connectivitySetDataUsageLimit(
155 ad.droid.connectivitySetDataWarningLimit(
159 ad.droid.connectivityFactoryResetNetworkPolicies(sub_id)
160 ad.droid.connectivitySetDataWarningLimit(sub_id, -1)
164 ad, RELIABLE, NONE, wifi_network, cell_network)
177 ad = self.android_devices[1]
178 cell_network = ad.droid.connectivityGetActiveNetwork()
180 wutils.wifi_connect(ad, self.wifi_network)
181 wifi_network = ad.droid.connectivityGetActiveNetwork()
186 ad, RELIABLE, RELIABLE, wifi_network, cell_network)
189 ad.droid.connectivityNetworkOpenConnection(cell_network,
195 if _check_file_existance(ad, file_path):
197 ad.adb.shell("rm -rf %s%s" % (DOWNLOAD_PATH, file_name))
201 ad, RELIABLE, NONE, wifi_network, cell_network)