Home
last modified time | relevance | path

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

12

/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/framework/acts/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]
365 def determine_max_advertisements(android_device): argument
375 android_device.log.info(
380 if not android_device.droid.bluetoothCheckState():
381 android_device.droid.bluetoothToggleState(True)
383 android_device.ed.pop_event(expected_bluetooth_on_event_name,
386 android_device.log.info(
[all …]
DBluetoothBaseTest.py28 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 …]
Dbt_power_test_utils.py33 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')
Dsimulated_carkit_device.py19 from acts.controllers import android_device
28 self.ad = android_device.create(serial)[0]
/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/acts/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/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)
/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_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/tradefederation/core/python-lib/tradefed_py/
Dbase_test.py17 import android_device
42 self.android_device = android_device.AndroidTestDevice(serial, stream)
/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_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/framework/acts/test_utils/abstract_devices/
Dwlan_device.py27 from acts.controllers.android_device import AndroidDevice
167 def __init__(self, android_device): argument
168 super().__init__(android_device)
Dbluetooth_device.py22 from acts.controllers.android_device import AndroidDevice
367 def __init__(self, android_device): argument
368 super().__init__(android_device)
/tools/test/connectivity/acts/framework/acts/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/framework/acts/test_utils/gnss/
Dgnss_test_utils.py30 from acts.controllers.android_device import list_adb_devices
31 from acts.controllers.android_device import list_fastboot_devices
32 from acts.controllers.android_device import DEFAULT_QXDM_LOG_PATH
33 from acts.controllers.android_device import SL4A_APK_NAME
/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/framework/acts/controllers/buds_lib/test_actions/
Daudio_utils.py66 android_device): argument
92 interpretation = android_device.agsa_interpretation(

12