/tools/test/connectivity/acts/framework/acts/test_utils/gnss/ |
D | gnss_test_utils.py | 109 if not int(ad.adb.shell("settings get global mobile_data")) == 1: 122 ad.adb.shell("echo -e '\nDEBUG_LEVEL = 5' >> /vendor/etc/gps.conf") 123 ad.adb.shell("echo %r >> /data/local.prop" % LOCAL_PROP_FILE_CONTENTS) 124 ad.adb.shell("chmod 644 /data/local.prop") 125 ad.adb.shell("setprop persist.logd.logpersistd.size 20000") 126 ad.adb.shell("setprop persist.logd.size 16777216") 127 ad.adb.shell("setprop persist.vendor.radio.adb_log_on 1") 128 ad.adb.shell("setprop persist.logd.logpersistd logcatd") 129 ad.adb.shell("setprop log.tag.copresGcore VERBOSE") 130 ad.adb.shell("sync") [all …]
|
D | dut_log_test_utils.py | 48 device_mask_file = ad.adb.shell('test -e %s && echo exists' % cfg_path) 61 ad.adb.shell(NOHUP_CMD.format(cfg_path, DEVICE_DIAGMDLOG_FOLDER)) 73 mask_folder_exists = ad.adb.shell( 75 diag_folder_exists = ad.adb.shell( 78 ad.adb.shell("mkdir " + DEVICE_CFG_FOLDER) 79 ad.adb.shell("mkdir " + DEVICE_DIAGMDLOG_FOLDER) 108 output = ad.adb.shell("pgrep diag_mdlog") 127 ps_output = ad.adb.shell("pgrep diag_mdlog") 130 output = ad.adb.shell("diag_mdlog -k") 137 ad.adb.shell("rm -rf " + DEVICE_DIAGMDLOG_FOLDER + "*.*") [all …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/tel/ |
D | tel_test_utils.py | 241 ad.adb.shell("service call iphonesubinfo 13")) 245 return ad.adb.shell("service call iphonesubinfo 11") 263 return ad.adb.shell("service call iphonesubinfo 5") 569 cur_state = bool(int(ad.adb.shell("settings get global airplane_mode_on"))) 577 ad.adb.shell("settings put global airplane_mode_on %s" % int(new_state)) 578 ad.adb.shell("am broadcast -a android.intent.action.AIRPLANE_MODE") 582 changed_state = bool(int(ad.adb.shell("settings get global airplane_mode_on"))) 631 out = ad.adb.shell( 639 out = ad.adb.shell( 657 out = ad.adb.shell("dumpsys network_stack " \ [all …]
|
/tools/test/connectivity/acts/framework/acts/ |
D | utils.py | 401 shell=True) 440 def start_standing_subprocess(cmd, check_health_delay=0, shell=True): argument 463 shell=shell, 523 ad.adb.shell("settings put global auto_time 0", ignore_status=True) 524 ad.adb.shell("settings put global auto_time_zone 0", ignore_status=True) 630 ad.adb.shell("settings put global airplane_mode_on {}".format( 632 ad.adb.shell("am broadcast -a android.intent.action.AIRPLANE_MODE") 645 output = ad.adb.shell("dumpsys battery") 661 adb_shell_result = ad.adb.shell("dumpsys deviceidle get charging") 676 ad.adb.shell("dumpsys battery unplug") [all …]
|
/tools/test/openhst/resources/ |
D | device_config.common.ascii_proto | 71 setup_command: "shell setprop log.tag.AlwaysOnHotwordDetector DEBUG" 72 setup_command: "shell setprop log.tag.ClockworkHomeGoogle DEBUG" 73 setup_command: "shell setprop log.tag.DSPMicrophoneIS DEBUG" 74 setup_command: "shell setprop log.tag.DSPMicrophoneInputStrea DEBUG" 75 setup_command: "shell setprop log.tag.GsaVoiceInteractionSrv DEBUG" 76 setup_command: "shell setprop log.tag.HotwordAudioProvider DEBUG" 77 setup_command: "shell setprop log.tag.HotwordConfig DEBUG" 78 setup_command: "shell setprop log.tag.HotwordConfigController DEBUG" 79 setup_command: "shell setprop log.tag.HotwordDetector DEBUG" 80 setup_command: "shell setprop log.tag.HotwordHelper DEBUG" [all …]
|
D | stress_test.dsp_trigger_sw_rejection.ascii_proto | 9 command: "shell input keyevent 3" 13 command: "shell input keyevent 26" 17 command: "shell dumpsys battery unplug" 21 command: "shell dumpsys deviceidle force-idle" 30 command: "shell input keyevent 3" 34 command: "shell input keyevent 26" 38 command: "shell dumpsys battery unplug" 42 command: "shell dumpsys deviceidle force-idle"
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | android_device.py | 491 self.adb.shell('getprop ro.build.version.sdk')) 505 return "0" == self.adb.shell("id -u") 509 return "0" == self.adb.shell("id -u") 662 out = self.adb.shell( 809 self.adb.shell("logpersist.stop --clear") 810 self.adb.shell("logpersist.start") 843 output = self.adb.shell( 863 self.adb.shell( 887 out = self.adb.shell( 914 self.adb.shell( [all …]
|
/tools/repohooks/rh/ |
D | shell_unittest.py | 34 import rh.shell 91 return rh.shell.shell_unquote(rh.shell.shell_quote(s)) 93 self._testData(rh.shell.shell_quote, tests_quote) 94 self._testData(rh.shell.shell_unquote, tests_unquote) 114 self._testData(rh.shell.cmd_to_str, tests) 123 self.assertTrue(rh.shell.boolean_shell_value(v, True)) 124 self.assertFalse(rh.shell.boolean_shell_value(v, False)) 127 self.assertRaises(ValueError, rh.shell.boolean_shell_value, v, True) 130 self.assertTrue(rh.shell.boolean_shell_value(v, True)) 131 self.assertTrue(rh.shell.boolean_shell_value(v, False)) [all …]
|
D | utils.py | 35 import rh.shell 84 return rh.shell.cmd_to_str(self.cmd) 120 return '' if self.cmd is None else rh.shell.cmd_to_str(self.cmd) 267 shell=False, env=None, extra_env=None, combine_stdout_stderr=False, argument 365 if not shell: 368 shell = False 369 elif shell: 382 stderr=popen_stderr, shell=False, env=env,
|
/tools/test/connectivity/acts_tests/tests/google/tel/live/ |
D | TelLiveEmergencyBase.py | 82 output = self.dut.adb.shell("dumpsys carrier_config") 91 self.dut.adb.shell(" ".join( 118 output = self.dut.adb.shell("dumpsys carrier_config") 122 self.dut.adb.shell(" ".join( 133 self.dut.adb.shell(cmd) 143 self.dut.adb.shell(cmd) 155 qcril_database_path = self.dut.adb.shell("find /data -iname qcril.db") 160 self.dut.adb.shell( 223 output = self.dut.adb.shell( 229 self.dut.adb.shell(cmd) [all …]
|
D | TelLiveConnectivityMonitorBaseTest.py | 145 if "Permissive" not in self.dut.adb.shell("su root getenforce"): 146 self.dut.adb.shell("su root setenforce 0") 262 if self.dut.adb.shell("getprop vendor.radio.call_end_reason"): 263 self.dut.adb.shell("setprop vendor.radio.call_end_reason ''") 265 if self.dut.adb.shell("getprop vendor.radio.call_end_reason" 270 self.dut.adb.shell(cmd) 339 self.dut.adb.shell( 344 self.dut.adb.shell( 349 output = self.dut.adb.shell( 357 output = self.dut.adb.shell( [all …]
|
D | TelLiveProjectFiTest.py | 117 ad.adb.shell(cmd) 139 ad.adb.shell( 148 ad.adb.shell('pm enable %s' % _TYCHO_PKG) 226 if ad.adb.shell( 229 ad.adb.shell( 394 return "isInSilentMode\" value=\"true" in ad.adb.shell( 407 return "switchingInProgress\" value=\"true" in ad.adb.shell( 443 switching_preferences = ad.adb.shell("cat %s" % _SWITCHING_PREF_FILE)
|
/tools/test/connectivity/acts/framework/acts/test_utils/net/ |
D | net_test_utils.py | 75 ad.adb.shell(cmd) 91 ping_result = ad.adb.shell("ping -c 3 -W 2 %s" % vpn_ping_addr) 117 ad.adb.shell("ip xfrm state flush") 129 ip_xfrm_state = ad.adb.shell("ip xfrm state") 239 ad.adb.shell("killall -9 tcpdump") 242 out = ad.adb.shell("ls -l %s" % TCPDUMP_PATH) 244 ad.adb.shell("mkdir %s" % TCPDUMP_PATH) 246 ad.adb.shell("rm -rf %s/*" % TCPDUMP_PATH, ignore_status=True) 288 ad.adb.shell("rm -rf %s/*" % TCPDUMP_PATH, ignore_status=True) 344 ad.adb.shell(USB_TETHERING_MODE, ignore_status=True) [all …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/bt/ |
D | bt_carkit_lib.py | 285 pri_dut.adb.shell(KEYCODE_EVENT_PREVIOUS) 303 pri_dut.adb.shell(KEYCODE_EVENT_PLAY_PAUSE) 707 pri_dut.adb.shell(KEYCODE_EVENT_PREVIOUS) 713 pri_dut.adb.shell(KEYCODE_EVENT_PLAY_PAUSE) 719 pri_dut.adb.shell(KEYCODE_EVENT_PREVIOUS) 724 pri_dut.adb.shell(KEYCODE_EVENT_NEXT) 726 pri_dut.adb.shell(KEYCODE_EVENT_PREVIOUS) 727 pri_dut.adb.shell(KEYCODE_EVENT_PREVIOUS) 735 pri_dut.adb.shell(KEYCODE_EVENT_PREVIOUS) 740 pri_dut.adb.shell(KEYCODE_EVENT_NEXT) [all …]
|
D | bt_test_utils.py | 656 out = android_device.adb.shell("dumpsys bluetooth_manager") 673 ad.adb.shell('svc bluetooth disable') 675 otp_output = ad.adb.shell('bluetooth_sar_test -r') 676 ad.adb.shell('svc bluetooth enable') 827 ad.adb.shell("setprop persist.bluetooth.bqr.event_mask {}".format( 829 ad.adb.shell("setprop persist.bluetooth.bqr.min_interval_ms {}".format( 851 ad.adb.shell("setprop persist.bluetooth.bqr.event_mask {}".format( 1102 pid = ad.adb.shell( 1104 call(["adb -s " + ad.serial + " shell kill " + pid], shell=True) 1422 out = android_device.adb.shell(command) [all …]
|
/tools/test/connectivity/acts/framework/tests/controllers/sl4a_lib/ |
D | sl4a_manager_test.py | 159 adb.shell = lambda _, **kwargs: '' 184 adb.shell = lambda _, **kwargs: '' 249 adb.shell = lambda _: '' 261 adb.shell = lambda _: '12345 67890' 274 adb.shell = lambda _: '12345 67890' 286 adb.shell = lambda _, **kwargs: 'asdf' 296 adb.shell = lambda _, **kwargs: '' 321 adb.shell = mock.Mock(side_effect=['', '', '']) 329 adb.shell.assert_called_with(sl4a_manager._SL4A_START_SERVICE_CMD) 424 adb.shell = close
|
/tools/test/connectivity/acts_tests/tests/google/gnss/ |
D | LocationPlatinumTest.py | 69 if int(self.ad.adb.shell('settings get secure location_mode')) != 3: 70 self.ad.adb.shell('settings put secure location_mode 3') 74 if int(self.ad.adb.shell('settings get global mobile_data')) != 1: 77 self.ad.adb.shell('pm grant com.android.gpstool %s' % 166 self.ad.adb.shell('settings put secure location_mode 0') 167 self.ad.adb.shell('settings put secure location_mode 3') 179 self.ad.adb.shell('settings put secure location_mode 0') 220 self.ad.adb.shell('pm revoke com.android.gpstool %s' % 227 self.ad.adb.shell('input keyevent 3')
|
/tools/test/connectivity/acts_tests/tests/google/nfc/ |
D | NfcBasicFunctionalityTest.py | 32 self.dut.adb.shell("setprop nfc.app_log_level 255") 33 self.dut.adb.shell("setprop nfc.enable_protocol_log 255") 34 self.dut.adb.shell("setprop nfc.nxp_log_level_global 5") 35 self.dut.adb.shell("setprop nfc.nxp_log_level_extns 5") 36 self.dut.adb.shell("setprop nfc.nxp_log_level_hal 5") 37 self.dut.adb.shell("setprop nfc.nxp_log_level_nci 5") 38 self.dut.adb.shell("setprop nfc.nxp_log_level_tml 5") 39 self.dut.adb.shell("setprop nfc.nxp_log_level_dnld 5")
|
/tools/asuite/atest/test_runners/ |
D | robolectric_test_runner_unittest.py | 73 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True) 74 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True) 88 subprocess.Popen("echo -n '%s' >> %s" %(data1, event_file.name), shell=True) 93 shell=True) 109 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True) 110 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True) 140 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True) 141 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True)
|
/tools/tradefederation/core/atest/test_runners/ |
D | robolectric_test_runner_unittest.py | 70 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True) 71 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True) 85 subprocess.Popen("echo -n '%s' >> %s" %(data1, event_file.name), shell=True) 90 shell=True) 106 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True) 107 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True) 137 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True) 138 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True)
|
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/ |
D | sl4a_manager.py | 148 self.adb.shell(_SL4A_LAUNCH_SERVER_CMD % device_port) 183 return self.adb.shell(self._get_all_ports_command()).split() 206 self.adb.shell( 221 if self.adb.shell( 226 self.adb.shell( 228 self.adb.shell( 231 self.adb.shell(_SL4A_START_SERVICE_CMD) 298 self.adb.shell(_SL4A_CLOSE_SERVER_CMD % port)
|
/tools/test/connectivity/acts_tests/tests/google/usb/ |
D | UsbTetheringThroughputTest.py | 85 self.dut.adb.shell(USB_TETHERING_MODE, ignore_status=True) 88 if 'rndis' not in self.dut.adb.shell(DEVICE_IP_ADDRESS): 119 check_usb_tethering = self.dut.adb.shell('ifconfig') 162 ping = self.dut.adb.shell( 183 result = self.dut.adb.shell(cmd, ignore_status=True) 225 usb_controller_address = self.dut.adb.shell( 227 usb_speed = self.dut.adb.shell( 285 self.dut.adb.shell(
|
/tools/test/connectivity/acts/tests/google/wifi/ |
D | WifiConnectedMacRandomizationTest.py | 63 self.dut.adb.shell(TURN_ON_MAC_RANDOMIZATION) 65 self.dut.adb.shell(GET_MAC_RANDOMIZATION_STATUS), "1", 118 return ad.adb.shell(GET_MAC_ADDRESS) 137 self.dut.adb.shell(TURN_OFF_MAC_RANDOMIZATION) 139 self.dut.adb.shell(GET_MAC_RANDOMIZATION_STATUS), "0", 240 self.dut_softap.adb.shell(LOG_CLEAR) 255 log = self.dut_softap.adb.shell(LOG_GREP.format(mac)) 257 log = self.dut_softap.adb.shell(LOG_GREP.format(self.dut_factory_mac))
|
/tools/test/connectivity/acts_tests/tests/google/tel/lab/ |
D | TelLabProjectFiTest.py | 124 self.ad.adb.shell("settings put secure cmas_additional_broadcast_pkg " 213 ad.adb.shell(cmd) 235 ad.adb.shell( 244 ad.adb.shell('pm enable %s' % _TYCHO_PKG) 322 if ad.adb.shell( 325 ad.adb.shell( 501 return "isInSilentMode\" value=\"true" in ad.adb.shell( 514 return "switchingInProgress\" value=\"true" in ad.adb.shell( 551 switching_preferences = ad.adb.shell("cat %s" % _SWITCHING_PREF_FILE)
|
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/ |
D | wifi_performance_test_utils.py | 87 llstats_output = self.dut.adb.shell(self.LLSTATS_CMD, timeout=0.1) 664 ping_output = src_device.adb.shell(ping_cmd, 732 status_output = dut.adb.shell(WPA_CLI_STATUS) 743 signal_poll_output = dut.adb.shell(SIGNAL_POLL) 768 per_chain_rssi = dut.adb.shell(STATION_DUMP) 832 scan_output = dut.adb.shell(SCAN) 834 scan_output = dut.adb.shell(SCAN_RESULTS) 1161 dut.adb.shell( 1235 bdf_output = dut.adb.shell('cksum /vendor/firmware/bdwlan*') 1240 fw_output = dut.adb.shell('halutil -logger -get fw') [all …]
|