/tools/test/connectivity/acts/framework/acts/libs/ota/ota_runners/ |
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 …]
|
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 …]
|
/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/framework/acts/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/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/test_utils/bt/ |
D | bt_power_test_utils.py | 33 def __init__(self, android_device, music_file): argument 40 self.android_device = android_device 51 self.android_device.droid.goToSleepNow() 53 self.android_device.droid.wakeUpNow() 55 self.android_device.send_keycode('MENU') 65 self.android_device.adb.shell(PLAY) 72 self.android_device.send_keycode('MEDIA_PAUSE') 79 self.android_device.send_keycode('MEDIA_PLAY') 86 self.android_device.send_keycode('MEDIA_STOP')
|
D | BluetoothBaseTest.py | 28 from acts.controllers import android_device 223 def _setup_bt_libs(self, android_device): argument 225 setattr(android_device, "ble", BleLib( 226 log=self.log, dut=android_device)) 228 setattr(android_device, "bta", BtaLib( 229 log=self.log, dut=android_device)) 231 setattr(android_device, "config", 232 ConfigLib(log=self.log, dut=android_device)) 234 setattr(android_device, "gattc", 235 GattClientLib(log=self.log, dut=android_device)) [all …]
|
D | bt_test_utils.py | 73 def _add_android_device_to_dictionary(android_device, profile_list, argument 82 if profile in selector_dict and android_device not in selector_dict[ 84 selector_dict[profile].append(android_device) 86 selector_dict[profile] = [android_device] 364 def determine_max_advertisements(android_device): argument 374 android_device.log.info( 379 if not android_device.droid.bluetoothCheckState(): 380 android_device.droid.bluetoothToggleState(True) 382 android_device.ed.pop_event(expected_bluetooth_on_event_name, 385 android_device.log.info( [all …]
|
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/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/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/tradefederation/core/python-lib/tradefed_py/ |
D | base_test.py | 17 import android_device 42 self.android_device = android_device.AndroidTestDevice(serial, stream)
|
/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/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/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/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/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/tradefederation/core/python-lib/helloWorld/ |
D | test_hello_world.py | 48 res = self.android_device.executeShellCommand('id')
|
/tools/test/connectivity/acts/framework/acts/test_utils/abstract_devices/ |
D | wlan_device.py | 27 from acts.controllers.android_device import AndroidDevice 152 def __init__(self, android_device): argument 153 super().__init__(android_device)
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | native_android_device.py | 17 from acts.controllers.android_device import AndroidDevice
|
/tools/test/connectivity/acts/framework/acts/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)
|