Home
last modified time | relevance | path

Searched full:androiddevice (Results 1 – 25 of 30) sorted by relevance

12

/packages/modules/Bluetooth/system/blueberry/utils/
Dandroid_bluetooth_decorator.py3 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):
89 raise TypeError('Must apply AndroidBluetoothDecorator to an ' 'AndroidDevice')
225 def connect_with_rfcomm(self, other_ad: android_device.AndroidDevice) -> bool: argument
248 other_ad: android_device.AndroidDevice, argument
290 """Waits for a device to be discovered by AndroidDevice.
318 """Waits for a device to pair with the AndroidDevice.
[all …]
Dbt_gatt_utils.py35 from mobly.controllers.android_device import AndroidDevice
47 def setup_gatt_connection(central: AndroidDevice, argument
72 def wait_for_gatt_connection(central: AndroidDevice, gatt_callback, bluetooth_gatt, timeout): argument
90 def close_gatt_client(central: AndroidDevice, bluetooth_gatt): argument
97 def disconnect_gatt_connection(central: AndroidDevice, bluetooth_gatt, gatt_callback): argument
103 def wait_for_gatt_disconnect_event(central: AndroidDevice, gatt_callback): argument
117 def orchestrate_gatt_connection(central: AndroidDevice, argument
118 peripheral: AndroidDevice, argument
223 def setup_multiple_services(peripheral: AndroidDevice): argument
314 def setup_gatt_mtu(central: AndroidDevice, bluetooth_gatt, gatt_callback, mtu): argument
[all …]
Dmobly_sl4a_utils.py20 from mobly.controllers.android_device import AndroidDevice
35 def setup_sl4a(device: AndroidDevice, server_port: int, forwarded_port: int): argument
38 :param device: an AndroidDevice instance
64 def teardown_sl4a(device: AndroidDevice): argument
67 :param device: an AndroidDevice instance that already contains SL4a
Dbt_test_utils.py25 from mobly.controllers.android_device import AndroidDevice
250 def clear_bonded_devices(ad: AndroidDevice): argument
/packages/modules/Bluetooth/system/blueberry/decorators/
Dandroid_bluetooth_client_decorator.py13 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')
Dandroid_bluetooth_client_test_decorator.py8 from mobly.controllers.android_device import AndroidDevice
11 class AndroidBluetoothClientTestDecorator(AndroidDevice):
16 if not isinstance(self._ad, AndroidDevice):
18 'AndroidDevice')
/packages/modules/Uwb/generic_ranging/tests/multidevices/test_utils/
Duwb_test_utils.py30 ad: android_device.AndroidDevice, argument
69 def get_uwb_state(ad: android_device.AndroidDevice) -> bool: argument
86 ad: android_device.AndroidDevice, argument
122 def set_airplane_mode(ad: android_device.AndroidDevice, state: bool): argument
137 def get_airplane_mode(ad: android_device.AndroidDevice) -> bool: argument
150 def set_screen_rotation(ad: android_device.AndroidDevice, val: int): argument
162 ad: android_device.AndroidDevice, argument
/packages/modules/Virtualization/tests/hostside/helper/java/com/android/microdroid/test/host/
DMicrodroidHostTestCaseBase.java88 public static void prepareVirtualizationTestSetup(ITestDevice androidDevice) in prepareVirtualizationTestSetup() argument
90 CommandRunner android = new CommandRunner(androidDevice); in prepareVirtualizationTestSetup()
104 public static void cleanUpVirtualizationTestSetup(ITestDevice androidDevice) in cleanUpVirtualizationTestSetup() argument
106 CommandRunner android = new CommandRunner(androidDevice); in cleanUpVirtualizationTestSetup()
134 public static void assumeDeviceIsCapable(ITestDevice androidDevice) throws Exception { in assumeDeviceIsCapable() argument
135 assumeTrue("Need an actual TestDevice", androidDevice instanceof TestDevice); in assumeDeviceIsCapable()
136 TestDevice testDevice = (TestDevice) androidDevice; in assumeDeviceIsCapable()
142 CommandRunner android = new CommandRunner(androidDevice); in assumeDeviceIsCapable()
143 long vendorApiLevel = androidDevice.getIntProperty("ro.board.api_level", 0); in assumeDeviceIsCapable()
/packages/modules/Bluetooth/system/blueberry/tests/pan/
Dbluetooth_pan_test.py79 device: AndroidDevice, A device is used to check this connection.
111 initiator_device: AndroidDevice, A device intiating connection.
141 initiator_device: AndroidDevice, A device intiating disconnection.
167 nap_device: AndroidDevice, A device sharing internet connection via
169 panu_device: AndroidDevice, A device gaining internet access via
241 device: AndroidDevice, Device to be check internet state.
/packages/modules/Wifi/tests/hostsidetests/multidevices/test/direct/
Dwifi_direct_test.py48 ad: android_device.AndroidDevice, argument
68 ads: Sequence[android_device.AndroidDevice]
70 def _setup_device(self, ad: android_device.AndroidDevice) -> None: argument
/packages/modules/Uwb/tests/cts/hostsidetests/multidevices/uwb/UwbManagerTests/
Duwb_manager_test.py56 dut: android_device.AndroidDevice, argument
78 dut: android_device.AndroidDevice, argument
/packages/services/DeviceAsWebcam/tests/
Dconfig.yml5 AndroidDevice:
/packages/modules/Bluetooth/system/blueberry/
Dsample_testbed.yaml4 AndroidDevice:
/packages/modules/Bluetooth/android/pandora/test/
Dconfig.yml6 AndroidDevice: '*'
/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/
Dsl4a_sl4a_device_config.yaml5 AndroidDevice:
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/gatt/
Dgatt_connect_low_layer_test.py39 from mobly.controllers.android_device import AndroidDevice
128 def _disconnect_gatt(self, device: AndroidDevice, bluetooth_gatt, gatt_callback): argument
139 def _wait_for_gatt_connection(self, device: AndroidDevice, gatt_callback, bluetooth_gatt): argument
146 def _wait_for_gatt_disconnection(self, device: AndroidDevice, gatt_callback): argument
/packages/modules/Uwb/generic_ranging/tests/multidevices/lib/
Dgeneric_ranging_decorator.py14 def __init__(self, ad: android_device.AndroidDevice): argument
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/
Dgd_sl4a_device_config.yaml25 AndroidDevice:
/packages/modules/Bluetooth/system/blueberry/utils/ui_pages/fitbit_companion/
Dcontext.py19 def __init__(self, ad: android_device.AndroidDevice, argument
D__init__.py13 def get_context(ad: android_device.AndroidDevice, argument
/packages/modules/Virtualization/authfs/tests/common/src/java/com/android/fs/common/
DAuthFsTestRule.java100 TestDevice androidDevice = getDevice(); in setUpAndroid() local
101 sAndroid = new CommandRunner(androidDevice); in setUpAndroid()
/packages/modules/Bluetooth/system/blueberry/controllers/
Dandroid_bt_target_device.py71 self._ad = android_device.AndroidDevice(self.serial)
135 def add_pri_ad_device(self, pri_ad: android_device.AndroidDevice) -> None: argument
156 def add_sec_ad_device(self, sec_ad: android_device.AndroidDevice) -> None: argument
Dderived_bt_device.py117 """Activates pairing mode on an AndroidDevice."""
/packages/modules/Uwb/tests/cts/hostsidetests/multidevices/uwb/lib/
Duwb_base_test.py68 if record.controller_name == "AndroidDevice" and record.controller_info:
/packages/modules/Bluetooth/system/blueberry/tests/pbap/
Dbluetooth_pbap_test.py181 device: AndroidDevice, Mobly Android controller class.
216 device: AndroidDevice, Mobly Android controller class.

12