Lines Matching refs:ad

40         self.ad = self.android_devices[0]
66 gutils._init_device(self.ad)
68 gutils.clear_logd_gnss_qxdm_log(self.ad)
69 tutils.start_qxdm_logger(self.ad, self.begin_time)
70 tutils.start_adb_tcpdump(self.ad)
74 if int(self.ad.adb.shell('settings get secure location_mode')) != 3:
75 self.ad.adb.shell('settings put secure location_mode 3')
76 if not self.ad.droid.wifiCheckState():
77 wutils.wifi_toggle_state(self.ad, True)
78 gutils.connect_to_wifi_network(self.ad, self.wifi_network)
79 if int(self.ad.adb.shell('settings get global mobile_data')) != 1:
80 gutils.set_mobile_data(self.ad, True)
82 self.ad.adb.shell('pm grant com.android.gpstool %s' %
86 tutils.stop_qxdm_logger(self.ad)
87 gutils.get_gnss_qxdm_log(self.ad, self.qdsp6m_path)
88 tutils.stop_adb_tcpdump(self.ad)
89 tutils.get_tcpdump_log(self.ad, 'location_platinum', self.begin_time)
90 self.ad.take_bug_report('location_platinum', self.begin_time)
100 self.ad.log.info('%s permission:%s' % (action, permission))
101 self.ad.adb.shell('pm %s %s %s' %
109 self.ad.adb.shell('input keyevent 61')
111 self.ad.adb.shell('input keyevent 66')
125 gutils.process_gnss_by_gtw_gpstool(self.ad,
129 self.ad, ttff_mode=mode, iteration=1, aid_data=True)
130 ttff_data = gutils.process_ttff_by_gtw_gpstool(self.ad, begin_time,
133 self.ad,
169 gutils.set_mobile_data(self.ad, False)
172 self.ad, 1, 'networkLocationType=wifi', self.nlp_criteria),
181 wutils.wifi_toggle_state(self.ad, False)
184 self.ad, 1, 'networkLocationType=cell', self.nlp_criteria),
193 self.ad.adb.shell('settings put secure location_mode 0')
194 self.ad.adb.shell('settings put secure location_mode 3')
195 gutils.launch_google_map(self.ad)
197 gutils.check_location_api(self.ad, retries=1),
206 self.ad.adb.shell('settings put secure location_mode 0')
207 gutils.launch_google_map(self.ad)
209 gutils.check_location_api(self.ad, retries=1),
220 gutils.launch_google_map(self.ad)
222 gutils.check_location_api(self.ad, retries=1),
232 gutils.launch_google_map(self.ad)
234 gutils.check_location_api(self.ad, retries=1),
246 self.ad.log.info('Revoke background permission')
247 self.ad.adb.shell('pm revoke com.android.gpstool %s' %
249 gutils.start_gnss_by_gtw_gpstool(self.ad, True)
252 gutils.check_location_api(self.ad, retries=1),
254 self.ad.log.info('Trun GPSTool from foreground to background')
255 self.ad.adb.shell('input keyevent 3')
257 self.ad.log.info('Wait 60 seconds for app clean up')
259 result = self.ad.search_logcat(