Home
last modified time | relevance | path

Searched refs:dut (Results 1 – 25 of 46) sorted by relevance

12

/packages/modules/Uwb/tests/cts/hostsidetests/multidevices/uwb/UwbManagerTests/
Duwb_manager_test.py38 self.dut = self.android_devices[0]
43 self.handler = self.dut.uwb.registerUwbAdapterStateCallback(self.callback)
44 if not uwb_test_utils.get_uwb_state(self.dut):
45 uwb_test_utils.set_uwb_state_and_verify(self.dut, True, self.handler)
49 uwb_test_utils.set_airplane_mode(self.dut, False)
50 self.dut.uwb.unregisterUwbAdapterStateCallback(self.callback)
56 dut: android_device.AndroidDevice,
67 uwb_test_utils.set_uwb_state_and_verify(dut, state)
68 dut.reboot()
69 uwb_test_utils.initialize_uwb_country_code_if_not_set(dut)
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/topshim/power/
Dsuspend_test.py28 self.dut().clear_event_mask()
29 self.dut().clear_event_filter()
30 self.dut().clear_filter_accept_list()
31 self.dut().stop_advertising()
32 self.dut().stop_scanning()
33 self.dut().disconnect_all_acls()
34 self.dut().le_rand()
38 self.dut().set_default_event_mask_except(0, 0)
39 self.dut().set_event_filter_inquiry_result_all_devices()
40 self.dut().set_event_filter_connection_setup_all_devices()
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/lib/
Dgd_sl4a_base_test.py59 self.dut = self.android_devices[0]
60 setup_sl4a(self.dut, server_port, forwarded_port)
63 self.dut.adb.root()
64 self.dut.adb.shell("setprop persist.bluetooth.btsnooplogmode full")
65 getprop_result = self.dut.adb.getprop("persist.bluetooth.btsnooplogmode")
67 self.dut.log.warning(
70 self.ble = BleLib(dut=self.dut)
73 teardown_sl4a(self.dut)
82 self.dut.ed.clear_all_events()
83 self.dut.sl4a.setScreenTimeout(500)
[all …]
Dble_lib.py107 def __init__(self, dut): argument
109 self.dut = dut
118 event = self.dut.ed.pop_events(regex, 5, small_timeout)
134 … self.dut.sl4a.bleSetAdvertiseSettingsAdvertiseMode(ble_advertise_settings_modes['low_latency'])
135 self.dut.sl4a.bleSetAdvertiseSettingsIsConnectable(True)
136 …tise_callback, advertise_data, advertise_settings = (generate_ble_advertise_objects(self.dut.sl4a))
138 …self.dut.sl4a.bleStartBleAdvertisingWithScanResponse(advertise_callback, advertise_data, advertise…
141 … self.dut.sl4a.bleStartBleAdvertising(advertise_callback, advertise_data, advertise_settings)
149 adv_callback = self.dut.sl4a.bleAdvSetGenCallback()
153 self.dut.sl4a.bleAdvSetStartAdvertisingSet({
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/hci/
Dle_advanced_scanning_test.py165 event_info = self.dut.ed.pop_event(expected_event_name, self.default_timeout)
182 self.dut.sl4a.bleStopBleScan(scan_callback)
199 self.dut.sl4a.bleSetScanSettingsScanMode(ble_scan_settings_modes['low_latency'])
200 filter_list, scan_settings, scan_callback = generate_ble_scan_objects(self.dut.sl4a)
204 self.dut.sl4a.bleSetScanFilterDeviceAddressTypeAndIrk(PUBLIC_ADDRESS, int(addr_type),
206 self.dut.sl4a.bleBuildScanFilter(filter_list)
207 self.dut.sl4a.bleStartBleScan(filter_list, scan_settings, scan_callback)
233 self.dut.sl4a.bleSetScanSettingsScanMode(ble_scan_settings_modes['low_latency'])
234 filter_list, scan_settings, scan_callback = generate_ble_scan_objects(self.dut.sl4a)
241 self.dut.sl4a.bleSetScanFilterDeviceAddressTypeAndIrk(PUBLIC_ADDRESS, int(addr_type),
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/topshim/hfp/
Dhfp_test.py29 self.dut().enable_inquiry_scan()
31 self.dut().toggle_discovery(True)
32 self.__paired_device = self.dut().find_device()
33 self.dut().create_bond(address=self.__paired_device, transport=TRANSPORT_CLASSIC)
38 self.dut().toggle_discovery(False)
39 self.dut().disable_page_scan()
43 state, _ = self.dut().start_slc(address=self.__paired_device)
45 state, _ = self.dut().wait_for_hfp_connection_state_change()
47 state, conn_addr = self.dut().wait_for_hfp_connection_state_change()
52 self.dut().remove_bonded_device(self.__paired_device)
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/gatt/
Dgatt_connect_low_layer_test.py59 self.dut.sl4a.gattClientClose(bluetooth_gatt)
97 self.dut.sl4a.bleSetScanSettingsScanMode(ble_scan_settings_modes['low_latency'])
98 filter_list, scan_settings, scan_callback = generate_ble_scan_objects(self.dut.sl4a)
100 self.dut.sl4a.bleSetScanFilterDeviceAddressAndType(address, int(address_type))
101 self.dut.sl4a.bleBuildScanFilter(filter_list)
102 self.dut.sl4a.bleStartBleScan(filter_list, scan_settings, scan_callback)
108 event_info = self.dut.ed.pop_event(expected_event_name, self.default_timeout)
125 self.dut.sl4a.bleStopBleScan(scan_callback)
191 bluetooth_gatt, gatt_callback = setup_gatt_connection(self.dut,
200 self.dut.log.info("Device {} connected first time".format(RANDOM_ADDRESS))
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd/hci/
Dle_scanning_manager_test.py39 def setup_test(self, cert, dut): argument
41 self.dut = dut
42 self.dut.callback_event_stream = EventStream(
43 self.dut.hci_le_scanning_manager.FetchCallbackEvents(empty_proto.Empty()))
44 self.dut.advertising_report_stream = EventStream(
45 self.dut.hci_le_scanning_manager.FetchAdvertisingReports(empty_proto.Empty()))
48 if self.dut.callback_event_stream is not None:
49 safeClose(self.dut.callback_event_stream)
52 if self.dut.advertising_report_stream is not None:
53 safeClose(self.dut.advertising_report_stream)
[all …]
Dle_advertising_manager_test.py48 self.dut.callback_event_stream = EventStream(
49 self.dut.hci_le_advertising_manager.FetchCallbackEvents(empty_proto.Empty()))
50 self.dut.address_event_stream = EventStream(
51 self.dut.hci_le_advertising_manager.FetchAddressEvents(empty_proto.Empty()))
55 if self.dut.callback_event_stream is not None:
56 safeClose(self.dut.callback_event_stream)
59 if self.dut.address_event_stream is not None:
60 safeClose(self.dut.address_event_stream)
74 self.dut.hci_le_initiator_address.SetPrivacyPolicyForInitiatorAddress(privacy_policy)
88 create_response = self.dut.hci_le_advertising_manager.CreateAdvertiser(request)
[all …]
Dcontroller_test.py34 dut_address = self.dut.hci_controller.GetMacAddressSimple()
40 self.dut.hci_controller.WriteLocalName(controller_facade.NameMsg(name=b'ImTheDUT'))
43 dut_name = self.dut.hci_controller.GetLocalNameSimple()
49 …extended_advertising_supported = self.dut.hci_controller.SupportsBleExtendedAdvertising(empty_prot…
51 …number_of_sets = self.dut.hci_controller.GetLeNumberOfSupportedAdvertisingSets(empty_proto.Empty())
53 supported = self.dut.hci_controller.IsSupportedCommand(
Dacl_manager_test.py36 self.dut_acl_manager = PyAclManager(self.dut)
56 dut_address = self.dut.hci_controller.GetMacAddressSimple()
57 self.dut.neighbor.EnablePageScan(neighbor_facade.EnableMsg(enabled=True))
72 dut_address = self.dut.hci_controller.GetMacAddressSimple()
73 self.dut.neighbor.EnablePageScan(neighbor_facade.EnableMsg(enabled=True))
90 dut_address = self.dut.hci_controller.GetMacAddressSimple()
91 self.dut.neighbor.EnablePageScan(neighbor_facade.EnableMsg(enabled=True))
/packages/modules/Bluetooth/system/blueberry/tests/gd/security/
Dle_security_test.py61 self.dut_security = PyLeSecurity(self.dut)
63 self.dut_hci = PyHci(self.dut)
65 raw_addr = self.dut.hci_controller.GetMacAddress(empty_proto.Empty()).address
72 self.dut.security.SetLeInitiatorAddressPolicy(privacy_policy)
116 create_response = self.dut.hci_le_advertising_manager.CreateAdvertiser(request)
124 self.dut.security.CreateBondLe(self.cert_address)
135 self.dut.security.SetLeIoCapability(DISPLAY_ONLY)
147 self.dut.security.SendUiCallback(
177 self.dut.security.SetLeIoCapability(KEYBOARD_ONLY)
178 self.dut.security.SetLeOobDataPresent(OOB_NOT_PRESENT)
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/topshim/adapter/
Dadapter_test.py30 status, discovery_mode = self.dut().enable_inquiry_scan()
35 status, discovery_mode = self.dut().enable_page_scan()
40 status, discovery_mode = self.dut().disable_page_scan()
45 status, caps = self.dut().set_local_io_caps(3)
50 state = self.dut().toggle_discovery(True)
53 self.dut().toggle_discovery(False)
56 self.dut().toggle_discovery(True)
57 state = self.dut().toggle_discovery(False)
61 self.dut().enable_inquiry_scan()
63 self.dut().toggle_discovery(True)
[all …]
/packages/services/DeviceAsWebcam/tests/
Dwindows_webcam_test.py71 def setup_for_test_fps(dut, supported_resolutions): argument
85 dut.set(cv2.CAP_PROP_FRAME_WIDTH, current_resolution[0])
86 dut.set(cv2.CAP_PROP_FRAME_HEIGHT, current_resolution[1])
89 dut.set(cv2.CAP_PROP_FPS, current_fps)
91 results.append((current_fps, test_fps(dut)))
96 def test_fps(dut): argument
105 num_frames = dut.get(cv2.CAP_PROP_FPS) * _FPS_TEST_DURATION
110 ret = dut.read()
138 dut = cv2.VideoCapture(device_index, cv2.CAP_DSHOW)
140 res = setup_for_test_fps(dut, supported_resolutions)
[all …]
Drun_webcam_test.py112 self.dut = devices[0]
113 self.dut.adb.root()
123 self.dut.adb.shell(['settings', 'put', 'global',
131 dut_webcam_enabled = self.dut.adb.shell(['getprop', 'ro.usb.uvc.enabled'])
147 set_uvc = self.dut.adb.shell(['svc', 'usb', 'setFunctions', 'uvc'])
191 self.dut.adb.shell(['settings', 'put',
/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/lib/
Dsl4a_sl4a_base_test.py65 self.dut = self.android_devices[0]
68 setup_sl4a(self.dut, server_port, forwarded_port)
77 self.dut.adb.root()
78 self.dut.adb.shell("setprop persist.bluetooth.btsnooplogmode full")
79 getprop_result = self.dut.adb.getprop("persist.bluetooth.btsnooplogmode")
81 self.dut.log.warning(
90 self.ble = BleLib(dut=self.dut)
94 teardown_sl4a(self.dut)
112 self.setup_device_for_test(self.dut)
114 self.dut_advertiser_ = LeAdvertiser(self.dut)
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/
DWifiAwareAgentNetworkSpecifierTest.java50 WifiAwareAgentNetworkSpecifier dut = new WifiAwareAgentNetworkSpecifier( in testParcel() local
54 dut.writeToParcel(parcelW, 0); in testParcel()
64 assertEquals(dut, rereadDut); in testParcel()
65 assertEquals(dut.hashCode(), rereadDut.hashCode()); in testParcel()
70 assertTrue(dut.satisfiesAwareNetworkSpecifier(ns)); in testParcel()
80 WifiAwareAgentNetworkSpecifier dut = new WifiAwareAgentNetworkSpecifier(); in testEmptyDoesntMatchAnything() local
82 collector.checkThat("No match expected", ns.canBeSatisfiedBy(dut), equalTo(false)); in testEmptyDoesntMatchAnything()
92 WifiAwareAgentNetworkSpecifier dut = new WifiAwareAgentNetworkSpecifier(nsThis); in testSingleMatch() local
94 collector.checkThat("Match expected", nsThis.canBeSatisfiedBy(dut), equalTo(true)); in testSingleMatch()
95 collector.checkThat("No match expected", nsOther.canBeSatisfiedBy(dut), equalTo(false)); in testSingleMatch()
[all …]
/packages/modules/Bluetooth/android/pandora/test/pairing/
Dsmp_test.py38 dut: PandoraDevice
43 self.dut, self.ref, *_ = self.devices
56 await asyncio.gather(self.dut.reset(), self.ref.reset())
59 dut_pairing_stream = self.dut.aio.security.OnPairing()
100 scan = self.dut.aio.host.Scan(own_address_type=dut_address_type)
106 self.dut.aio.host.ConnectLE(own_address_type=dut_address_type, **ref.address_asdict()),
116 self.dut.aio.security.Secure(connection=dut_ref, le=LE_LEVEL3),
129 self.dut.aio.host.WaitDisconnection(connection=dut_ref),
135 if isinstance(self.dut, BumblePandoraDevice):
158 is_bonded = await self.dut.aio.security_storage.IsBonded(random=ref1.random)
[all …]
/packages/modules/Bluetooth/android/pandora/test/
Dgatt_test.py44 dut: PandoraDevice
54 self.dut, self.ref, *_ = self.devices
62 await asyncio.gather(self.dut.reset(), self.ref.reset())
66 … dut_ref = self.dut.host.ConnectLE(public=self.ref.address, own_address_type=RANDOM).connection
71 gatt = GATT(self.dut.channel)
73 self.dut.log.info(f'DUT services: {services}')
76 advertise = self.dut.host.Advertise(
84 dut = next((x for x in scan if b'pause cafe' in x.data.manufacturer_specific_data))
87 … ref_dut = self.ref.host.ConnectLE(own_address_type=RANDOM, **dut.address_asdict()).connection
103 await self.dut.aio.host.ConnectLE(public=self.ref.address, own_address_type=RANDOM)
[all …]
Dasha_test.py61 dut: PandoraDevice
72 self.dut, ref_left, ref_right, *_ = self.devices
74 if isinstance(self.dut, BumblePandoraDevice):
89 await asyncio.gather(self.dut.reset(), self.ref_left.reset(), self.ref_right.reset())
120 dut_scan = self.dut.aio.host.Scan(own_address_type=dut_address_type)
143 self.dut.aio.host.ConnectLE(own_address_type=dut_address_type, **ref.address_asdict()),
329 self.dut.aio.security.Secure(connection=dut_ref, le=LE_LEVEL3),
369 self.dut.aio.security.Secure(connection=dut_ref_left, le=LE_LEVEL3),
378 self.dut.aio.security.Secure(connection=dut_ref_right, le=LE_LEVEL3),
387 self.dut.aio.host.WaitDisconnection(connection=dut_ref_left),
[all …]
Dsdp_test.py46 dut: PandoraDevice
52 self.dut, self.ref, *_ = self.devices
66 await asyncio.gather(self.dut.reset(), self.ref.reset())
79 self.ref.aio.host.Connect(address=self.dut.address),
80 self.dut.aio.host.WaitConnection(address=self.ref.address),
108 self.ref.aio.host.Connect(address=self.dut.address),
109 self.dut.aio.host.WaitConnection(address=self.ref.address),
152 self.ref.aio.host.Connect(address=self.dut.address),
153 self.dut.aio.host.WaitConnection(address=self.ref.address),
/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/gatt/
Dgatt_connect_with_irk_test.py116 self.dut.sl4a.bleSetScanSettingsScanMode(ble_scan_settings_modes['low_latency'])
117 self.dut.sl4a.bleSetScanSettingsLegacy(False)
118 filter_list, scan_settings, scan_callback = generate_ble_scan_objects(self.dut.sl4a)
122 …self.dut.sl4a.bleSetScanFilterDeviceAddressTypeAndIrkHexString(cert_public_address, int(addr_type)…
123 self.dut.sl4a.bleBuildScanFilter(filter_list)
124 self.dut.sl4a.bleStartBleScan(filter_list, scan_settings, scan_callback)
128 mac_address = self._wait_for_scan_result_event(expected_event_name, self.dut)
133 gatt_callback = self.dut.sl4a.gattCreateGattCallback()
134 bluetooth_gatt = self.dut.sl4a.gattClientConnectGatt(gatt_callback, mac_address, False,
140 assertThat(self._wait_for_event(expected_event_name, self.dut)).isTrue()
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/security/
Dirk_rotation_test.py139 gatt_callback = self.dut.sl4a.gattCreateGattCallback()
140 bluetooth_gatt = self.dut.sl4a.gattClientConnectGatt(gatt_callback, connect_address, False,
144 assertThat(self._wait_for_event(expected_event_name, self.dut)).isTrue()
148 self.dut.sl4a.gattClientClose(bluetooth_gatt)
152 gatt_callback = self.dut.sl4a.gattCreateGattCallback()
153 bluetooth_gatt = self.dut.sl4a.gattClientConnectGatt(gatt_callback, connect_address, False,
157 assertThat(self._wait_for_event(expected_event_name, self.dut)).isTrue()
161 self.dut.sl4a.gattClientDisconnect(gatt_callback)
163 assertThat(self._wait_for_event(expected_event_name, self.dut)).isTrue()
167 self.dut.sl4a.gattClientReconnect(gatt_callback)
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/topshim/security/
Dle_security_test.py30 self.dut().remove_bonded_device(self.DUMMY_ADDRESS)
31 self.dut().le_rand()
34 oob_data = self.dut().generate_local_oob_data(TRANSPORT_CLASSIC)
36 oob_data = self.dut().generate_local_oob_data(TRANSPORT_LE)
Dclassic_security_test.py28 self.dut().enable_inquiry_scan()
30 self.dut().toggle_discovery(True)
31 address = self.dut().find_device()
32 state, conn_addr = self.dut().create_bond(address=address, transport=TRANSPORT_CLASSIC)

12