/tools/test/connectivity/acts/framework/acts/libs/ota/ota_runners/ |
D | ota_runner.py | 39 def __init__(self, ota_tool, android_device): argument 41 self.android_device = android_device 42 self.serial = self.android_device.serial 46 log = self.android_device.log 47 old_info = self.android_device.adb.getprop('ro.build.fingerprint') 50 self.android_device.stop_services() 54 self.android_device.wait_for_boot_completion() 55 new_info = self.android_device.adb.getprop('ro.build.fingerprint') 62 self.android_device.root_adb() 64 if self.android_device.skip_sl4a: [all …]
|
D | ota_runner_factory.py | 49 def create_from_configs(config, android_device): argument 66 config, 'ota_tool', android_device) 91 android_device) 92 ota_sl4a = get_ota_value_from_config(config, 'ota_sl4a', android_device) 97 android_device.serial) 98 return create(ota_package, ota_sl4a, android_device, ota_tool_class_name, 104 android_device, argument 124 return create_from_package(ota_package, ota_sl4a, android_device, ota_tool, 130 android_device, argument 147 if android_device in _bound_devices and use_cached_runners: [all …]
|
/tools/test/connectivity/acts/framework/tests/ |
D | acts_android_device_test.py | 25 from acts.controllers import android_device 116 def bugreport(self, params, timeout=android_device.BUG_REPORT_TIMEOUT): 175 android_device, "get_all_instances", new=mock_get_all_instances) 177 android_device, "list_adb_devices", new=mock_list_adb_devices) 179 pick_all_token = android_device.ANDROID_DEVICE_PICK_ALL_TOKEN 180 actual_ads = android_device.create(pick_all_token) 185 expected_msg = android_device.ANDROID_DEVICE_EMPTY_CONFIG_MSG 188 android_device.create([]) 191 expected_msg = android_device.ANDROID_DEVICE_NOT_LIST_CONFIG_MSG 194 android_device.create("HAHA") [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/users/ |
D | users.py | 26 def get_all_users(android_device): argument 28 out = android_device.adb.shell("pm list users") 36 def create_new_user(android_device, user_name): argument 37 out = android_device.adb.shell("pm create-user {}".format(user_name)) 41 def switch_user(android_device, user_id): argument 42 prev_user = get_current_user(android_device) 43 android_device.adb.shell("am switch-user {}".format(user_id)) 44 if not _wait_for_user_to_take_place(android_device, prev_user): 50 def remove_user(android_device, user_id): argument 51 return "Success" in android_device.adb.shell("pm remove-user {}".format(user_id)) [all …]
|
/tools/test/connectivity/acts/framework/acts/libs/ota/ |
D | ota_updater.py | 36 def _check_initialization(android_device): argument 38 if android_device not in ota_runners: 41 'ota_updater.initialize()?' % android_device.serial) 44 def update(android_device, ignore_update_errors=False): argument 55 _check_initialization(android_device) 56 ota_runners[android_device].validate_update() 58 ota_runners[android_device].update() 62 android_device.log.error(e) 63 android_device.take_bug_report('ota_update', 68 def can_update(android_device): argument [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/ |
D | bt_test_utils.py | 74 def _add_android_device_to_dictionary(android_device, profile_list, argument 83 if profile in selector_dict and android_device not in selector_dict[ 85 selector_dict[profile].append(android_device) 87 selector_dict[profile] = [android_device] 371 def determine_max_advertisements(android_device): argument 381 android_device.log.info( 386 if not android_device.droid.bluetoothCheckState(): 387 android_device.droid.bluetoothToggleState(True) 389 android_device.ed.pop_event(expected_bluetooth_on_event_name, 392 android_device.log.info( [all …]
|
D | BluetoothBaseTest.py | 200 def _setup_bt_libs(self, android_device): argument 202 setattr(android_device, "ble", BleLib( 203 log=self.log, dut=android_device)) 205 setattr(android_device, "bta", BtaLib( 206 log=self.log, dut=android_device)) 208 setattr(android_device, "config", 209 ConfigLib(log=self.log, dut=android_device)) 211 setattr(android_device, "gattc", 212 GattClientLib(log=self.log, dut=android_device)) 214 setattr(android_device, "gatts", [all …]
|
D | bt_power_test_utils.py | 35 def __init__(self, android_device, music_file): argument 42 self.android_device = android_device 53 self.android_device.droid.goToSleepNow() 55 self.android_device.droid.wakeUpNow() 57 self.android_device.send_keycode('MENU') 67 self.android_device.adb.shell(PLAY) 74 self.android_device.send_keycode('MEDIA_PAUSE') 81 self.android_device.send_keycode('MEDIA_PLAY') 88 self.android_device.send_keycode('MEDIA_STOP')
|
D | simulated_carkit_device.py | 19 from acts.controllers import android_device 28 self.ad = android_device.create(serial)[0]
|
/tools/test/connectivity/acts/framework/acts/controllers/android_lib/ |
D | events.py | 23 def __init__(self, android_device): argument 24 self.android_device = android_device 28 return self.android_device 54 def __init__(self, android_device, bugreport_dir): argument 55 super().__init__(android_device)
|
D | android_api.py | 20 from acts.controllers.android_device import AndroidDevice
|
/tools/test/connectivity/acts/framework/acts/libs/ota/ota_tools/ |
D | adb_sideload_ota_tool.py | 36 ota_runner.android_device.root_adb() 38 ota_runner.android_device.adb.reboot('sideload') 39 ota_runner.android_device.adb.wait_for_sideload() 43 ota_runner.android_device.adb.sideload( 46 ota_runner.android_device.adb.wait_for_recovery() 47 ota_runner.android_device.reboot(stop_at_lock_screen=True)
|
D | update_device_ota_tool.py | 44 ota_runner.android_device.root_adb() 52 ota_runner.android_device.reboot(stop_at_lock_screen=True)
|
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/api/ |
D | monsoon.py | 161 def attach_device(self, android_device): argument 166 android_device.wait_for_boot_completion() 167 android_device.start_services() 169 android_device.droid.goToSleepNow() 173 android_device.stop_services()
|
/tools/test/connectivity/acts/framework/tests/libs/ota/ota_tools/ |
D | adb_sideload_ota_tool_test.py | 22 from acts.controllers import android_device 34 android_device.AndroidDevice( 66 runner.android_device.adb.getprop = mock.Mock(side_effect=['a', 'b'])
|
D | update_device_ota_tool_test.py | 22 from acts.controllers import android_device 33 android_device.AndroidDevice( 62 runner.return_value.android_device = device
|
/tools/test/connectivity/acts/framework/tests/libs/ota/ota_runners/ |
D | ota_runner_test.py | 23 from acts.controllers import android_device 75 runner.android_device.adb.getprop = mock.Mock(side_effect=['a', 'b']) 90 runner.android_device.adb.getprop = mock.Mock(side_effect=['a', 'a']) 104 self.assertEqual(runner.android_device, device)
|
/tools/test/connectivity/acts/framework/tests/controllers/ |
D | iperf_server_test.py | 330 def test_start_does_not_run_two_concurrent_processes(self, android_device): argument 338 android_device.adb.shell_nb.called, 345 def test_stop_exits_early_if_no_process_has_started(self, android_device, _, argument 354 android_device.adb.shell_nb.called,
|
/tools/test/connectivity/acts_tests/tests/google/tel/etc/ |
D | manage_sim.py | 25 import acts.controllers.android_device as android_device namespace 41 droid_list = android_device.get_all_instances()
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/abstract_devices/ |
D | wlan_device.py | 27 from acts.controllers.android_device import AndroidDevice 193 def __init__(self, android_device): argument 194 super().__init__(android_device) 195 self.identifier = android_device.serial
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/test_actions/ |
D | audio_utils.py | 66 android_device): argument 92 interpretation = android_device.agsa_interpretation(
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/coex/ |
D | CoexBaseTest.py | 23 from acts.controllers import android_device 159 self.inquiry_devices = android_device.create( 178 android_device.destroy(self.inquiry_devices)
|
/tools/test/connectivity/acts_tests/tests/google/tel/lab/ |
D | TelLabGFTModemConnectivityHelperTest.py | 34 from acts.controllers.android_device import DEFAULT_QXDM_LOG_PATH 35 from acts.controllers.android_device import DEFAULT_SDM_LOG_PATH
|
/tools/test/connectivity/acts_tests/tests/google/tel/live/ |
D | TelLiveNoQXDMLogTest.py | 28 from acts.controllers.android_device import SL4A_APK_NAME 29 from acts.controllers.android_device import list_adb_devices 30 from acts.controllers.android_device import list_fastboot_devices
|
/tools/test/connectivity/acts/ |
D | README.md | 87 >>> from acts.controllers import android_device 88 >>> device_list = android_device.get_all_instances()
|