Home
last modified time | relevance | path

Searched refs:android_device (Results 1 – 25 of 51) sorted by relevance

123

/tools/test/connectivity/acts/framework/acts/libs/ota/ota_runners/
Dota_runner.py39 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 …]
Dota_runner_factory.py49 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/
Dacts_android_device_test.py25 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/
Dusers.py26 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/
Dota_updater.py36 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/
Dbt_test_utils.py74 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 …]
DBluetoothBaseTest.py200 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 …]
Dbt_power_test_utils.py35 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')
Dsimulated_carkit_device.py19 from acts.controllers import android_device
28 self.ad = android_device.create(serial)[0]
/tools/test/connectivity/acts/framework/acts/controllers/android_lib/
Devents.py23 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)
Dandroid_api.py20 from acts.controllers.android_device import AndroidDevice
/tools/test/connectivity/acts/framework/acts/libs/ota/ota_tools/
Dadb_sideload_ota_tool.py36 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)
Dupdate_device_ota_tool.py44 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/
Dmonsoon.py161 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/
Dadb_sideload_ota_tool_test.py22 from acts.controllers import android_device
34 android_device.AndroidDevice(
66 runner.android_device.adb.getprop = mock.Mock(side_effect=['a', 'b'])
Dupdate_device_ota_tool_test.py22 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/
Dota_runner_test.py23 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/
Diperf_server_test.py330 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/
Dmanage_sim.py25 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/
Dwlan_device.py27 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/
Daudio_utils.py66 android_device): argument
92 interpretation = android_device.agsa_interpretation(
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/coex/
DCoexBaseTest.py23 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/
DTelLabGFTModemConnectivityHelperTest.py34 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/
DTelLiveNoQXDMLogTest.py28 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/
DREADME.md87 >>> from acts.controllers import android_device
88 >>> device_list = android_device.get_all_instances()

123