/aosp_15_r20/tools/test/connectivity/acts/framework/tests/ |
D | acts_android_device_test.py | 44 """Generates a list of mock AndroidDevice objects. 49 num: An integer that is the number of mock AndroidDevice objects to 54 ad = mock.MagicMock(name="AndroidDevice", serial=i, h_port=None) 118 logging.log_path, "AndroidDevice%s" % self.serial, 119 "AndroidDevice%s_%s.txt" % 172 # These tests use mock AndroidDevice instances. 227 """Makes sure when an AndroidDevice fails to start some services, all 228 AndroidDevice objects get cleaned up. 245 # Tests for android_device.AndroidDevice class. 256 """Verifies the AndroidDevice object's basic attributes are correctly [all …]
|
/aosp_15_r20/external/python/mobly/tests/mobly/controllers/ |
D | android_device_test.py | 57 # These tests use mock AndroidDevice instances. 159 @mock.patch('mobly.controllers.android_device.AndroidDevice') 173 @mock.patch('mobly.controllers.android_device.AndroidDevice') 189 @mock.patch('mobly.controllers.android_device.AndroidDevice') 205 f'Required value "serial" is missing in AndroidDevice config {config}', 212 @mock.patch('mobly.controllers.android_device.AndroidDevice') 279 """Makes sure when an AndroidDevice fails to start some services, all 280 AndroidDevice objects get cleaned up. 350 # Tests for android_device.AndroidDevice class. 363 """Verifies the AndroidDevice object's basic attributes are correctly [all …]
|
/aosp_15_r20/external/python/mobly/mobly/controllers/ |
D | android_device.py | 38 MOBLY_CONTROLLER_CONFIG_NAME = 'AndroidDevice' 41 _DEBUG_PREFIX_TEMPLATE = '[AndroidDevice|%s] %s' 48 # System properties that are cached by the `AndroidDevice.build_info` property. 94 """Creates AndroidDevice controller objects. 101 A list of AndroidDevice objects. 122 """Cleans up AndroidDevice objects. 125 ads: A list of AndroidDevice objects. 135 """Get information on a list of AndroidDevice objects. 138 ads: A list of AndroidDevice objects. 141 A list of dict, each representing info for an AndroidDevice objects. [all …]
|
/aosp_15_r20/tools/netsim/testing/mobly/ |
H A D | ble_utils.py | 133 scanner: android_device.AndroidDevice, argument 134 advertiser: android_device.AndroidDevice, argument 146 scanner: AndroidDevice. The device that starts BLE scan to find target. 147 advertiser: AndroidDevice. The device that keeps advertising so other 222 scanner: android_device.AndroidDevice, scan_duration: int argument 234 scanner: AndroidDevice. The device that starts BLE scan to find advertisers. 293 scanner: android_device.AndroidDevice, argument 294 advertiser: android_device.AndroidDevice, argument 303 scanner: AndroidDevice. The device that starts BLE scan to find target. 304 advertiser: AndroidDevice. The device that keeps advertising so other [all …]
|
/aosp_15_r20/packages/modules/Bluetooth/system/blueberry/utils/ |
D | android_bluetooth_decorator.py | 3 This decorator is used for giving an AndroidDevice Bluetooth-specific 82 class AndroidBluetoothDecorator(android_device.AndroidDevice): 83 """Decorates an AndroidDevice with Bluetooth-specific functionality.""" 85 def __init__(self, ad: android_device.AndroidDevice): argument 88 if not self._ad or not isinstance(self._ad, android_device.AndroidDevice): 90 'AndroidDevice') 227 def connect_with_rfcomm(self, other_ad: android_device.AndroidDevice) -> bool: argument 250 other_ad: android_device.AndroidDevice, argument 292 """Waits for a device to be discovered by AndroidDevice. 320 """Waits for a device to pair with the AndroidDevice. [all …]
|
D | bt_gatt_utils.py | 34 from mobly.controllers.android_device import AndroidDevice 46 def setup_gatt_connection(central: AndroidDevice, argument 71 def wait_for_gatt_connection(central: AndroidDevice, gatt_callback, bluetooth_gatt, timeout): argument 89 def close_gatt_client(central: AndroidDevice, bluetooth_gatt): argument 96 def disconnect_gatt_connection(central: AndroidDevice, bluetooth_gatt, gatt_callback): argument 102 def wait_for_gatt_disconnect_event(central: AndroidDevice, gatt_callback): argument 201 def setup_multiple_services(peripheral: AndroidDevice): argument 292 def setup_gatt_mtu(central: AndroidDevice, bluetooth_gatt, gatt_callback, mtu): argument 322 def log_gatt_server_uuids(central: AndroidDevice, discovered_services_index, bluetooth_gatt=None): argument
|
/aosp_15_r20/tools/test/connectivity/acts_tests/acts_contrib/test_utils/gnss/ |
D | gnss_test_utils.py | 131 ad: An AndroidDevice object. 148 ad: An AndroidDevice object. 163 ad: An AndroidDevice object. 200 ad: An AndroidDevice object. 231 ad: An AndroidDevice object. 243 ad: An AndroidDevice object. 254 ad: An AndroidDevice object. 269 ad: An AndroidDevice object. 288 ad: An AndroidDevice object. 302 ad: An AndroidDevice object. [all …]
|
D | dut_log_test_utils.py | 35 ad: the target android device, AndroidDevice object 59 ad: the target android device, AndroidDevice object 73 ad: the target android device, AndroidDevice object 89 ad: the target android device, AndroidDevice object 123 ad: the target android device, AndroidDevice object 168 ad: the target android device, AndroidDevice object 189 ad: the target android device, AndroidDevice object
|
/aosp_15_r20/external/python/mobly/ |
D | CHANGELOG.md | 125 * API for taking screenshots in `AndroidDevice` 137 ## Mobly Release 1.10: Framework and `AndroidDevice` Output Improvements 142 * `AndroidDevice` now has a new `is_emulator` property. 143 * Better multi-user support in `AndroidDevice`. 149 Due to the standardization of output files for both Mobly and `AndroidDevice` 154 * Names of `AndroidDevice`'s output files have been standardized #633 158 * `AndroidDevice`'s service manager behavior for reboot and USB disconnect. 171 ## Mobly Release 1.9: UID Support; `AndroidDevice` and General Runner Improvements 186 including `AndroidDevice#load_sl4a`. 191 * Improvements in `AndroidDevice` service management [all …]
|
/aosp_15_r20/tools/test/connectivity/acts/framework/acts/controllers/ |
D | android_device.py | 47 MOBLY_CONTROLLER_CONFIG_NAME = "AndroidDevice" 82 """Creates AndroidDevice controller objects. 89 A list of AndroidDevice objects. 122 """Cleans up AndroidDevice objects. 125 ads: A list of AndroidDevice objects. 135 """Get information on a list of AndroidDevice objects. 138 ads: A list of AndroidDevice objects. 141 A list of dict, each representing info for an AndroidDevice objects. 152 """Starts long running services on multiple AndroidDevice objects. 154 If any one AndroidDevice object fails to start services, cleans up all [all …]
|
D | iperf_client.py | 26 from acts.controllers.android_device import AndroidDevice 47 If configs contain ssh settings or and AndroidDevice, remote iperf clients 56 if type(c) is dict and 'AndroidDevice' in c: 58 IPerfClientOverAdb(c['AndroidDevice'], 263 android_device_or_serial: Either an AndroidDevice object, or the 264 serial that corresponds to the AndroidDevice. Note that the 265 serial must be present in an AndroidDevice entry in the ACTS 275 if isinstance(self._android_device_or_serial, AndroidDevice):
|
/aosp_15_r20/external/python/mobly/tests/mobly/controllers/android_device_lib/services/ |
D | logcat_test.py | 72 """Tests for Logcat service and its integration with AndroidDevice.""" 118 """Verifies the steps of collecting adb logcat on an AndroidDevice 124 ad = android_device.AndroidDevice(serial=mock_serial) 131 'AndroidDevice%s' % ad.serial, 166 ad = android_device.AndroidDevice(serial=mock_serial) 195 ad = android_device.AndroidDevice(serial=mock_serial) 237 ad = android_device.AndroidDevice(serial=mock_serial) 278 ad = android_device.AndroidDevice(serial=mock_serial) 316 ad = android_device.AndroidDevice(serial=mock_serial) 406 """Verifies the steps of collecting adb logcat on an AndroidDevice [all …]
|
/aosp_15_r20/tools/test/connectivity/acts_tests/acts_contrib/test_utils/power/cellular/ |
D | modem_logs.py | 53 dut: android_device.AndroidDevice, argument 60 dut: A mobly AndroidDevice controller object. 81 dut: android_device.AndroidDevice, argument 88 dut: A mobly AndroidDevice controller object. 108 def clear_modem_logging(dut: android_device.AndroidDevice) -> None: argument 112 dut: A mobly AndroidDevice controller object. 121 dut: android_device.AndroidDevice, argument 129 dut: An mobly AndroidDevice controller object. 148 def get_modem_log_profile(dut: android_device.AndroidDevice) -> str: argument 152 dut: An mobly AndroidDevice controller object. [all …]
|
/aosp_15_r20/test/vts-testcase/nbu/src/ |
D | ble_test.py | 136 scanner: AndroidDevice. The device that starts ble scan to find target. 137 advertiser: AndroidDevice. The device that keeps advertising so other 176 scanner: AndroidDevice. The device that starts ble scan to find target. 177 advertiser: AndroidDevice. The device that keeps advertising so other 195 client: AndroidDevice. The device that behaves as GATT client. 196 server: AndroidDevice. The device that behaves as GATT server. 236 client: AndroidDevice. The device that behaves as GATT client. 237 server: AndroidDevice. The device that behaves as GATT server. 288 client: AndroidDevice. The device that behaves as GATT client. 289 server: AndroidDevice. The device that behaves as GATT server. [all …]
|
/aosp_15_r20/packages/modules/Connectivity/staticlibs/testutils/host/python/ |
D | apf_utils.py | 32 ad: android_device.AndroidDevice, iface: str, counter_name: str argument 39 ad: android_device.AndroidDevice, iface_name: str argument 87 ad: android_device.AndroidDevice, iface_name: str argument 119 ad: android_device.AndroidDevice, iface_name: str argument 151 ad: android_device.AndroidDevice, iface_name: str argument 182 ad: android_device.AndroidDevice, argument 207 ad: android_device.AndroidDevice, argument 220 ad: android_device.AndroidDevice, argument 232 ad: The AndroidDevice object representing the connected device. 261 ad: android_device.AndroidDevice, argument [all …]
|
D | adb_utils.py | 22 def set_doze_mode(ad: android_device.AndroidDevice, enable: bool) -> None: argument 49 ad: android_device.AndroidDevice, target_state: bool argument 59 def _get_screen_state(ad: android_device.AndroidDevice) -> bool: argument 64 ad: android_device.AndroidDevice, service: str, key: str argument 82 ad: android_device.AndroidDevice, argument 101 ad: android_device.AndroidDevice, service: str argument 106 def adb_shell(ad: android_device.AndroidDevice, shell_cmd: str) -> str: argument
|
/aosp_15_r20/development/python-packages/adb/adb/ |
H A D | __init__.py | 78 ) -> AndroidDevice: 82 return AndroidDevice(devices[0], product, adb_path) 87 ) -> AndroidDevice: 90 return AndroidDevice(serial, product, adb_path) 96 ) -> AndroidDevice: 97 """Get a uniquely identified AndroidDevice if one is available. 110 An AndroidDevice associated with the first non-None identifier in the 127 def _get_device_by_type(flag: str, adb_path: str) -> AndroidDevice: 141 def get_usb_device(adb_path: str = 'adb') -> AndroidDevice: 142 """Get the unique USB-connected AndroidDevice if it is available. [all …]
|
/aosp_15_r20/packages/modules/Uwb/ranging/tests/multidevices/lib/ |
D | utils.py | 24 def initialize_uwb_country_code_if_necessary(ad: android_device.AndroidDevice): argument 53 ad: android_device.AndroidDevice, argument 75 ad: android_device.AndroidDevice, argument 90 def set_airplane_mode(ad: android_device.AndroidDevice, state: bool): argument 105 def get_airplane_mode(ad: android_device.AndroidDevice) -> bool: argument 118 ad: android_device.AndroidDevice, argument 133 ad: android_device.AndroidDevice argument 153 ad: android_device.AndroidDevice, argument 175 ad: android_device.AndroidDevice, isLandscape: bool argument 194 ad: android_device.AndroidDevice, isForeground: bool argument [all …]
|
/aosp_15_r20/packages/modules/Wifi/tests/hostsidetests/multidevices/test/direct/ |
D | group_owner_negotiation_test.py | 46 ad: android_device.AndroidDevice 51 def _setup_wifi_p2p(ad: android_device.AndroidDevice) -> DeviceState: argument 68 ad: android_device.AndroidDevice, argument 98 ad: android_device.AndroidDevice, argument 106 ad: android_device.AndroidDevice, argument 127 ad: android_device.AndroidDevice, argument 140 ad: android_device.AndroidDevice, argument 382 def _teardown_wifi_p2p(ad: android_device.AndroidDevice): argument 393 ads: Sequence[android_device.AndroidDevice] 394 requester_ad: android_device.AndroidDevice [all …]
|
/aosp_15_r20/packages/modules/Wifi/tests/hostsidetests/multidevices/test/aware/ |
D | aware_lib_utils.py | 69 ad: android_device.AndroidDevice, argument 100 def _check_wifi_status(ad: android_device.AndroidDevice): argument 118 def set_doze_mode(ad: android_device.AndroidDevice, state: bool) -> bool: argument 155 def _dumpsys(ad: android_device.AndroidDevice, command: str) -> str: argument 169 ad: android_device.AndroidDevice, argument 190 def _get_airplane_mode(ad: android_device.AndroidDevice) -> bool: argument 203 def set_airplane_mode(ad: android_device.AndroidDevice, state: bool): argument 291 def validate_forbidden_callbacks(ad: android_device.AndroidDevice, argument 324 def reset_device_parameters(ad: android_device.AndroidDevice): argument 336 def reset_device_statistics(ad: android_device.AndroidDevice,): argument [all …]
|
/aosp_15_r20/tools/test/connectivity/acts/framework/acts/controllers/android_lib/ |
D | events.py | 21 """The base class for AndroidDevice-related events.""" 32 """The event posted when an AndroidDevice begins its services.""" 36 """The event posted when an AndroidDevice ends its services.""" 40 """The event posted when an AndroidDevice has rebooted.""" 44 """The event posted when an AndroidDevice has disconnected.""" 48 """The event posted when an AndroidDevice has disconnected.""" 52 """The event posted when an AndroidDevice captures a bugreport."""
|
/aosp_15_r20/packages/modules/Virtualization/tests/hostside/helper/java/com/android/microdroid/test/host/ |
D | MicrodroidHostTestCaseBase.java | 90 public static void prepareVirtualizationTestSetup(ITestDevice androidDevice) in prepareVirtualizationTestSetup() argument 92 CommandRunner android = new CommandRunner(androidDevice); in prepareVirtualizationTestSetup() 106 public static void cleanUpVirtualizationTestSetup(ITestDevice androidDevice) in cleanUpVirtualizationTestSetup() argument 108 CommandRunner android = new CommandRunner(androidDevice); in cleanUpVirtualizationTestSetup() 136 public static void assumeDeviceIsCapable(ITestDevice androidDevice) throws Exception { in assumeDeviceIsCapable() argument 137 assumeTrue("Need an actual TestDevice", androidDevice instanceof TestDevice); in assumeDeviceIsCapable() 138 TestDevice testDevice = (TestDevice) androidDevice; in assumeDeviceIsCapable() 144 CommandRunner android = new CommandRunner(androidDevice); in assumeDeviceIsCapable() 145 long vendorApiLevel = androidDevice.getIntProperty("ro.board.api_level", 0); in assumeDeviceIsCapable()
|
/aosp_15_r20/packages/modules/Bluetooth/system/blueberry/decorators/ |
D | android_bluetooth_client_decorator.py | 13 from mobly.controllers.android_device import AndroidDevice 17 """Utility to decorate an AndroidDevice. 20 ad: Device, must be of type AndroidDevice. 23 AndroidDevice object. 26 if not isinstance(ad, AndroidDevice): 28 'AndroidDevice')
|
/aosp_15_r20/packages/modules/Uwb/tests/cts/hostsidetests/multidevices/uwb/test_utils/ |
D | uwb_test_utils.py | 17 ad: android_device.AndroidDevice, argument 56 def get_uwb_state(ad: android_device.AndroidDevice) -> bool: argument 73 ad: android_device.AndroidDevice, argument 111 def set_airplane_mode(ad: android_device.AndroidDevice, state: bool): argument 126 def get_airplane_mode(ad: android_device.AndroidDevice) -> bool: argument 139 def set_screen_rotation(ad: android_device.AndroidDevice, val: int): argument 151 ad: android_device.AndroidDevice, argument
|
/aosp_15_r20/tools/test/connectivity/acts/framework/acts/libs/ota/ota_runners/ |
D | ota_runner_factory.py | 31 """Creates a new OtaTool for each given AndroidDevice. 43 indexes match the indexes of the corresponding AndroidDevice in 50 """Creates a new OtaTool for the given AndroidDevice. 116 android_device: The AndroidDevice to run the OTA Update on. 140 android_device: The AndroidDevice to run the OTA Update on. 173 """Returns a key for the given AndroidDevice. 178 android_device: An AndroidDevice
|