/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 51 return rh.shell.cmd_to_str(self.cmd) 156 shell = kwargs.pop('shell', False) 157 if not shell: 263 shell=False, env=None, extra_env=None, ignore_sigint=False, argument 374 if not shell: 377 shell = False 378 elif shell: 395 stderr=stderr, shell=False, env=env,
|
/tools/test/connectivity/acts/tests/google/wifi/ |
D | WifiPowerTest.py | 78 self.dut.adb.shell("settings put system screen_brightness 0") 122 self.dut.adb.shell(start_pmc_cmd) 123 self.dut.adb.shell("setprop log.tag.PMC VERBOSE") 126 self.dut.adb.shell("%sServerIP %s" % (pmc_set_params, 128 self.dut.adb.shell("%sServerPort %s" % (pmc_set_params, 131 self.dut.adb.shell("rm %s" % pmc_iperf_json_file) 144 self.dut.adb.shell("rm %s" % pmc_iperf_json_file) 168 self.dut.adb.shell(pmc_stop_iperf_client) 201 self.dut.adb.shell(pmc_interval_cmd % self.scan_interval) 202 self.dut.adb.shell(pmc_start_connect_scan_cmd) [all …]
|
D | WifiConnectedMacRandomizationTest.py | 64 self.dut.adb.shell(TURN_ON_MAC_RANDOMIZATION) 66 self.dut.adb.shell(GET_MAC_RANDOMIZATION_STATUS), "1", 119 return ad.adb.shell(GET_MAC_ADDRESS) 138 self.dut.adb.shell(TURN_OFF_MAC_RANDOMIZATION) 140 self.dut.adb.shell(GET_MAC_RANDOMIZATION_STATUS), "0", 241 self.dut_softap.adb.shell(LOG_CLEAR) 256 log = self.dut_softap.adb.shell(LOG_GREP.format(mac)) 258 log = self.dut_softap.adb.shell(LOG_GREP.format(self.dut_factory_mac))
|
D | WifiDiagnosticsTest.py | 93 self.dut.adb.shell("rm data/vendor/tombstones/wifi/*") 95 self.dut.adb.shell("lshal debug android.hardware.wifi@1.2::IWifi") 100 file_count_plus_one = self.dut.adb.shell("ls -l data/vendor/tombstones/wifi | wc -l")
|
/tools/test/connectivity/acts/framework/acts/test_utils/bt/ |
D | shell_commands_lib.py | 31 self.dut.adb.shell("dumpsys battery set level {}".format(level)) 35 self.dut.adb.shell("settings put global ble_scan_always_enabled 0") 39 self.dut.adb.shell("settings put global ble_scan_always_enabled 1") 43 self.dut.adb.shell("echo $$ > /dev/cpuset/top-app/tasks") 44 self.dut.adb.shell("cat /dev/urandom > /dev/null &")
|
D | native_bt_test_utils.py | 28 pid = n.adb.shell("pidof -s bluetoothtbd") 32 shell=True)
|
/tools/test/connectivity/tools/lab/metrics/ |
D | metric.py | 18 from utils import shell 28 def __init__(self, shell=shell.ShellCommand(job)): argument 29 self._shell = shell
|
D | network_metric.py | 19 from utils import shell 32 def __init__(self, ip_list=None, shell=shell.ShellCommand(job)): argument 33 Metric.__init__(self, shell=shell)
|
/tools/test/connectivity/acts/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/test/connectivity/tools/lab/tests/ |
D | version_metric_test.py | 30 metric_obj = version_metric.FastbootVersionMetric(shell=fake_shell) 44 metric_obj = version_metric.FastbootVersionMetric(shell=fake_shell) 58 metric_obj = version_metric.FastbootVersionMetric(shell=fake_shell) 72 metric_obj = version_metric.AdbVersionMetric(shell=fake_shell) 86 metric_obj = version_metric.AdbVersionMetric(shell=fake_shell) 98 metric_obj = version_metric.PythonVersionMetric(shell=fake_shell) 110 metric_obj = version_metric.KernelVersionMetric(shell=fake_shell)
|
D | process_time_metric_test.py | 28 metric_obj = process_time_metric.ProcessTimeMetric(shell=fake_shell) 35 metric_obj = process_time_metric.ProcessTimeMetric(shell=fake_shell) 45 metric_obj = process_time_metric.ProcessTimeMetric(shell=fake_shell) 57 metric_obj = process_time_metric.ProcessTimeMetric(shell=fake_shell) 80 metric_obj = process_time_metric.ProcessTimeMetric(shell=fake_shell)
|
D | network_metric_test.py | 28 metric_obj = NetworkMetric(['8.8.8.8'], shell=fake_shell) 34 metric_obj = NetworkMetric(shell=fake.MockShellCommand( 41 metric_obj = NetworkMetric(shell=fake.MockShellCommand( 49 ['8.8.8.8'], shell=fake.MockShellCommand(fake_result=mock_result))
|
D | verify_metric_test.py | 28 metric_obj = verify_metric.VerifyMetric(shell=fake_shell) 44 metric_obj = verify_metric.VerifyMetric(shell=fake_shell) 60 metric_obj = verify_metric.VerifyMetric(shell=fake_shell) 78 metric_obj = verify_metric.VerifyMetric(shell=fake_shell) 95 metric_obj = verify_metric.VerifyMetric(shell=fake_shell) 111 metric_obj = verify_metric.VerifyMetric(shell=fake_shell)
|
D | zombie_metric_test.py | 30 metric_obj = zombie_metric.ZombieMetric(shell=fake_shell) 46 metric_obj = zombie_metric.ZombieMetric(shell=fake_shell) 63 metric_obj = zombie_metric.ZombieMetric(shell=fake_shell) 79 metric_obj = zombie_metric.ZombieMetric(shell=fake_shell) 95 metric_obj = zombie_metric.ZombieMetric(shell=fake_shell)
|
D | uptime_metric_test.py | 30 metric_obj = uptime_metric.UptimeMetric(shell=fake_shell) 39 metric_obj = uptime_metric.UptimeMetric(shell=fake_shell)
|
D | time_sync_metric_test.py | 30 metric_obj = time_sync_metric.TimeSyncMetric(shell=fake_shell) 41 metric_obj = time_sync_metric.TimeSyncMetric(shell=fake_shell)
|
/tools/test/connectivity/acts/framework/acts/test_utils/power/ |
D | PowerBaseTest.py | 135 self.dut.adb.shell('mv /vendor/bin/chre /vendor/bin/chre_renamed') 136 self.dut.adb.shell('pkill chre') 244 self.dut.adb.shell(AOD_OFF) 247 self.dut.adb.shell(LIFT) 248 self.dut.adb.shell(DOUBLE_TAP) 249 self.dut.adb.shell(JUMP_TO_CAMERA) 250 self.dut.adb.shell(RAISE_TO_CAMERA) 251 self.dut.adb.shell(FLIP_CAMERA) 252 self.dut.adb.shell(ASSIST_GESTURE) 253 self.dut.adb.shell(ASSIST_GESTURE_ALERT) [all …]
|
D | PowerBTBaseTest.py | 45 self.dut.adb.shell(START_PMC_CMD) 46 self.dut.adb.shell(PMC_VERBOSE_CMD) 56 self.dut.adb.shell(BLE_LOCATION_SCAN_DISABLE) 77 self.dut.adb.shell(BLE_LOCATION_SCAN_ENABLE) 135 self.dut.adb.shell(msg)
|
/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) 294 self.adb.shell(_SL4A_CLOSE_SERVER_CMD % port)
|
/tools/acloud/public/acloud_kernel/ |
D | kernel_swapper_test.py | 62 self.subprocess_call.assert_called_once_with(scp_cmd, shell=True) 71 self.subprocess_call.assert_called_once_with(reboot_cmd, shell=True) 90 mount_cmd, shell=True), mock.call( 91 scp_cmd, shell=True), mock.call( 92 reboot_cmd, shell=True)
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | native_android_device.py | 100 pid = self.adb.shell("pidof -s sl4n", ignore_status=True) 102 self.adb.shell("kill {}".format(pid)) 103 pid = self.adb.shell("pidof -s sl4n", ignore_status=True) 106 shell=True)
|
D | android_device.py | 492 return "0" == self.adb.shell("id -u") 496 return "0" == self.adb.shell("id -u") 633 out = self.adb.shell( 737 self.adb.shell("logpersist.stop --clear") 738 self.adb.shell("logpersist.start") 789 output = self.adb.shell( 809 self.adb.shell( 831 out = self.adb.shell( 857 self.adb.shell( 878 stdout = self.adb.shell("bugreportz -v") [all …]
|
/tools/test/connectivity/acts/tests/google/ble/power/ |
D | GattPowerTest.py | 66 self.per_ad.adb.shell(PowerBaseTest.START_PMC_CMD) 67 self.per_ad.adb.shell(self.PMC_VERBOSE_CMD) 106 self.per_ad.adb.shell(self.GATT_SERVER_MSG) 115 self.cen_ad.adb.shell(clientmsg)
|
/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
|