Home
last modified time | relevance | path

Searched refs:droid (Results 1 – 25 of 311) sorted by relevance

12345678910>>...13

/tools/test/connectivity/acts_tests/tests/google/ble/api/
DBleAdvertiseApiTest.py66 droid = self.ad_dut.droid
67 adv_settings = droid.bleBuildAdvertiseSettings()
68 adv_mode = droid.bleGetAdvertiseSettingsMode(adv_settings)
69 tx_power_level = droid.bleGetAdvertiseSettingsTxPowerLevel(
71 is_connectable = droid.bleGetAdvertiseSettingsIsConnectable(
118 droid = self.ad_dut.droid
119 adv_data = droid.bleBuildAdvertiseData()
120 service_uuids = droid.bleGetAdvertiseDataServiceUuids(adv_data)
121 include_tx_power_level = droid.bleGetAdvertiseDataIncludeTxPowerLevel(
123 include_device_name = droid.bleGetAdvertiseDataIncludeDeviceName(
[all …]
/tools/test/connectivity/acts_tests/tests/google/ble/bt5/
DBt5ScanTest.py68 if not self.scn_ad.droid.bluetoothIsLeExtendedAdvertisingSupported():
72 if not self.adv_ad.droid.bluetoothIsLeExtendedAdvertisingSupported():
106 d = self.scn_ad.droid
117 d = self.adv_ad.droid
154 adv_callback = self.adv_ad.droid.bleAdvSetGenCallback()
155 self.adv_ad.droid.bleAdvSetStartAdvertisingSet({
163 self.scn_ad.droid.bleSetScanSettingsLegacy(False)
164 self.scn_ad.droid.bleSetScanSettingsPhy(ble_scan_settings_phys['1m'])
167 self.scn_ad.droid)
169 adv_device_name = self.adv_ad.droid.bluetoothGetLocalName()
[all …]
/tools/test/connectivity/acts_tests/tests/google/ble/concurrency/
DConcurrentBleScanningTest.py84 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(True)
85 self.scn_ad.droid.bleSetScanSettingsCallbackType(
87 self.scn_ad.droid.bleSetScanSettingsScanMode(ble_scan_settings_modes[
89 self.adv_ad.droid.bleSetAdvertiseSettingsAdvertiseMode(
92 generate_ble_advertise_objects(self.adv_ad.droid))
93 self.adv_ad.droid.bleSetAdvertiseSettingsIsConnectable(False)
94 self.adv_ad.droid.bleStartBleAdvertising(
110 filter_list = self.scn_ad.droid.bleGenFilterList()
111 self.scn_ad.droid.bleSetScanFilterDeviceName(
112 self.adv_ad.droid.bluetoothGetLocalName())
[all …]
DConcurrentBleAdvertisingTest.py129 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(True)
130 self.scn_ad.droid.bleSetScanFilterDeviceName(
131 self.adv_ad.droid.bluetoothGetLocalName())
161 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(False)
162 self.scn_ad.droid.bleSetScanFilterDeviceName(
163 self.adv_ad.droid.bluetoothGetLocalName())
193 self.scn_ad.droid.bleSetScanFilterManufacturerData(1, [1])
194 self.adv_ad.droid.bleAddAdvertiseDataManufacturerId(1, [1])
224 self.scn_ad.droid.bleSetScanFilterManufacturerData(1, [1], [1])
225 self.adv_ad.droid.bleAddAdvertiseDataManufacturerId(1, [1])
[all …]
/tools/test/connectivity/acts_tests/tests/google/ble/scan/
DBleOpportunisticScanTest.py69 self.adv_ad.droid)
70 self.adv_ad.droid.bleStartBleAdvertising(adv_callback, adv_data,
107 self.scn_ad.droid.bleSetScanSettingsScanMode(ble_scan_settings_modes[
110 self.scn_ad.droid)
111 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings,
116 self.scn_ad.droid.bleStopBleScan(scan_callback)
144 self.scn_ad.droid.bleSetScanSettingsScanMode(ble_scan_settings_modes[
146 self.scn_ad.droid.bleSetScanSettingsReportDelayMillis(
149 self.scn_ad.droid)
150 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings,
[all …]
DBleScanScreenStateTest.py55 self.adv_ad.droid.bleSetAdvertiseSettingsAdvertiseMode(
58 generate_ble_advertise_objects(self.adv_ad.droid))
59 self.adv_ad.droid.bleStartBleAdvertising(
70 generate_ble_scan_objects(self.scn_ad.droid)
71 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings,
114 self.scn_ad.droid.wakeUpNow()
124 self.adv_ad.droid.bleStopBleAdvertising(self.advertise_callback)
125 self.scn_ad.droid.bleStopBleScan(self.scan_callback)
158 self.scn_ad.droid.goToSleepNow()
170 self.adv_ad.droid.bleStopBleAdvertising(self.advertise_callback)
[all …]
DBleOnLostOnFoundTest.py62 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(True)
63 self.adv_ad.droid.bleSetAdvertiseSettingsAdvertiseMode(
65 advertise_data = self.adv_ad.droid.bleBuildAdvertiseData()
66 advertise_settings = self.adv_ad.droid.bleBuildAdvertiseSettings()
67 advertise_callback = self.adv_ad.droid.bleGenBleAdvertiseCallback()
68 self.adv_ad.droid.bleStartBleAdvertising(
113 filter_list = self.scn_ad.droid.bleGenFilterList()
114 self.scn_ad.droid.bleSetScanFilterDeviceName(
115 self.adv_ad.droid.bluetoothGetLocalName())
116 self.scn_ad.droid.bleSetScanSettingsScanMode(ble_scan_settings_modes[
[all …]
DBleBackgroundScanTest.py59 enable_bluetooth(self.scn_ad.droid, self.scn_ad.ed)
60 self.scn_ad.droid.bluetoothDisableBLE()
73 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(True)
75 self.adv_ad.droid)
76 self.adv_ad.droid.bleStartBleAdvertising(adv_callback, adv_data,
105 self.scn_ad.droid.bluetoothEnableBLE()
107 self.scn_ad.droid.bleSetScanSettingsScanMode(
110 self.scn_ad.droid)
111 self.scn_ad.droid.bleSetScanFilterDeviceName(
112 self.adv_ad.droid.bluetoothGetLocalName())
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/
Dsimulated_carkit_device.py31 self.mac_address = self.ad.droid.bluetoothGetLocalAddress()
32 self.ad.droid.bluetoothToggleState(False)
33 self.ad.droid.bluetoothMediaConnectToCarMBS()
39 return self.ad.droid.telecomAcceptRingingCall(None)
42 return self.ad.droid.telecomEndCall()
45 self.ad.droid.bluetoothStartPairingHelper(True)
46 return self.ad.droid.bluetoothMakeDiscoverable()
49 return self.ad.droid.bluetoothMediaPassthrough("skipNext")
52 return self.ad.droid.bluetoothMediaPassthrough("pause")
55 return self.ad.droid.bluetoothMediaPassthrough("play")
[all …]
Dgattc_lib.py54 self.dut.droid.bleSetScanSettingsScanMode(
56 filter_list = self.dut.droid.bleGenFilterList()
57 scan_settings = self.dut.droid.bleBuildScanSetting()
58 scan_callback = self.dut.droid.bleGenScanCallback()
60 self.dut.droid.bleSetScanFilterDeviceName("BLE Rect")
61 self.dut.droid.bleBuildScanFilter(filter_list)
62 self.dut.droid.bleStartBleScan(filter_list, scan_settings,
73 self.dut.droid.bleStopBleScan(scan_callback)
102 self.dut.droid.gattClientClose(self.bluetooth_gatt)
108 self.dut.droid.gattClientDiscoverServices(self.bluetooth_gatt)
[all …]
Dbta_lib.py42 self.dut.droid.bluetoothSetLocalName(line)
46 self.dut.droid.bluetoothToggleState(True)
50 self.dut.droid.bluetoothToggleState(False)
54 self.dut.droid.bluetoothDiscoverAndBond(self.target_mac_addr)
58 self.dut.droid.bluetoothStartDiscovery()
62 self.dut.droid.bluetoothCancelDiscovery()
66 if self.dut.droid.bluetoothIsDiscovering():
67 self.dut.droid.bluetoothCancelDiscovery()
69 pprint.pformat(self.dut.droid.bluetoothGetDiscoveredDevices()))
73 self.dut.droid.bluetoothBond(self.target_mac_addr)
[all …]
Dgatts_lib.py59 for service in self.dut.droid.gattGetServiceUuidList(self.gatt_server):
63 instance_id = self.dut.droid.gattServerGetCharacteristicInstanceId(
65 uuid = self.dut.droid.gattServerGetCharacteristicUuid(
74 self.gatt_server_callback = self.dut.droid.gattServerCreateGattServerCallback(
76 self.gatt_server = self.dut.droid.gattServerOpenGattServer(
82 self.dut.droid.gattServerClearServices(self.gatt_server)
88 self.dut.droid.gattServerClose(btgs)
99 self.dut.droid.gattServerCharacteristicSetValueByInstanceId(
104 self.dut.droid.gattServerNotifyCharacteristicChangedByInstanceId(
143 self.dut.droid.gattServerSetByteArrayValueByInstanceId(
[all …]
Dbt_coc_test_utils.py80 client_ad.droid.bluetoothConnectionThroughputSend(
90 client_ad.droid.bluetoothConnectionThroughputSend(
98 server_ad.droid.bluetoothConnectionThroughputRead(
107 server_ad.droid.bluetoothConnectionThroughputRead(
156 server_ad.droid.bluetoothStartPairingHelper()
157 client_ad.droid.bluetoothStartPairingHelper()
175 mac_address = server_ad.droid.bluetoothGetLocalAddress()
193 client_ad.droid.bleStopBleScan(scan_callback)
197 server_ad.droid.bleStopBleAdvertising(adv_callback)
211 return_status = client_ad.droid.gattClientRequestLeConnectionParameters(
[all …]
Dbt_gatt_utils.py45 gatt_callback = cen_ad.droid.gattCreateGattCallback()
47 bluetooth_gatt = cen_ad.droid.gattClientConnectGatt(
61 cen_ad.droid.gattClientClose(bluetooth_gatt)
72 cen_ad.droid.gattClientClose(bluetooth_gatt)
78 cen_ad.droid.gattClientDisconnect(bluetooth_gatt)
115 mac_address = per_ad.droid.bluetoothGetLocalAddress()
187 def setup_characteristics_and_descriptors(droid): argument
230 characteristic_list = setup_gatt_characteristics(droid,
232 descriptor_list = setup_gatt_descriptors(droid, descriptor_input)
237 per_droid, per_ed = per_ad.droid, per_ad.ed
[all …]
DGattConnectedBaseTest.py63 self.per_ad.droid.bleStopBleAdvertising(self.adv_callback)
67 if self.cen_ad.droid.gattClientDiscoverServices(self.bluetooth_gatt):
70 services_count = self.cen_ad.droid.gattClientGetDiscoveredServicesCount(
75 self.cen_ad.droid.gattClientGetDiscoveredServiceUuid(
85 connected_device_list = self.per_ad.droid.gattServerGetConnectedDevices(
94 self.per_ad.droid.gattServerClearServices(self.gatt_server)
95 self.per_ad.droid.gattServerClose(self.gatt_server)
112 def _timed_pop(self, gatt_event, droid, gatt_callback): argument
115 return droid.ed.pop_event(expected_event, bt_default_timeout)
119 def _setup_characteristics_and_descriptors(self, droid): argument
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/car/
Dcar_telecom_utils.py50 if ad.droid.telecomIsInCall():
55 ad.droid.telecomStartListeningForCallAdded()
59 ad.droid.telecomCallTelUri(uri)
72 ad.droid.telecomStopListeningForCallAdded()
100 ad.droid.telecomCallStartListeningForEvent(
104 if ad.droid.telecomCallGetCallState(call_id) == state:
107 ad.droid.telecomCallStopListeningForEvent(call_id,
122 ad.droid.telecomCallStopListeningForEvent(call_id,
132 ad.droid.telecomCallStopListeningForEvent(call_id,
151 if not ad.droid.telecomIsInCall():
[all …]
Dtel_telecom_utils.py44 ad.droid.telecomStartListeningForCallAdded()
46 ad.droid.telecomCallTelUri(uri)
59 ad.droid.telecomStopListeningForCallAdded()
86 ad.droid.telecomCallStartListeningForEvent(
90 if ad.droid.telecomCallGetCallState(call_id) == state:
106 ad.droid.telecomCallStopListeningForEvent(call_id,
124 if not ad.droid.telecomIsInCall():
129 ad.droid.telecomStartListeningForCallRemoved()
132 ad.droid.telecomCallDisconnect(call_id)
144 ad.droid.telecomStopListeningForCallRemoved()
[all …]
/tools/test/connectivity/acts_tests/tests/google/ble/gatt/
DGattConnectTest.py80 self.cen_ad.droid.gattClientClose(bluetooth_gatt)
82 self.per_ad.droid.gattServerClose(gatt_server)
84 self.per_ad.droid.bleStopBleAdvertising(adv)
174 gatt_server_cb = self.per_ad.droid.gattServerCreateGattServerCallback()
175 gatt_server = self.per_ad.droid.gattServerOpenGattServer(
218 gatt_server_cb = self.per_ad.droid.gattServerCreateGattServerCallback()
219 gatt_server = self.per_ad.droid.gattServerOpenGattServer(
229 self.per_ad.droid.bleStopBleAdvertising(adv_callback)
275 gatt_server_cb = self.per_ad.droid.gattServerCreateGattServerCallback()
276 gatt_server = self.per_ad.droid.gattServerOpenGattServer(
[all …]
DGattWriteTest.py58 self.cen_ad.droid.gattClientCharacteristicSetValue(
62 self.cen_ad.droid.gattClientCharacteristicSetWriteType(
67 self.cen_ad.droid.gattClientWriteCharacteristic(
83 self.per_ad.droid.gattServerGetConnectedDevices(self.gatt_server)
84 self.per_ad.droid.gattServerSendResponse(
116 self.cen_ad.droid.gattClientDescriptorSetValue(
121 self.cen_ad.droid.gattClientWriteDescriptor(
138 self.per_ad.droid.gattServerGetConnectedDevices(self.gatt_server)
139 self.per_ad.droid.gattServerSendResponse(
171 self.cen_ad.droid.gattClientCharacteristicSetValue(
[all …]
/tools/test/connectivity/acts_tests/tests/google/bt/hid/
DHidDeviceTest.py50 while not self.device_ad.droid.bluetoothHidDeviceIsReady():
57 if not self.device_ad.droid.bluetoothHidDeviceRegisterApp():
66 self.device_ad.droid.bluetoothHidDeviceUnregisterApp()
104 self.device_ad.droid.bluetoothGetBondedDevices()))
106 self.host_ad.droid.bluetoothGetBondedDevices()))
108 host_id = self.host_ad.droid.bluetoothGetLocalAddress()
109 device_id = self.device_ad.droid.bluetoothGetLocalAddress()
111 self.host_ad.droid.bluetoothConnectBonded(device_id)
115 self.device_ad.droid.bluetoothHidDeviceGetConnectedDevices()))
118 self.host_ad.droid.bluetoothHidSetReport(
[all …]
/tools/test/connectivity/acts_tests/tests/google/fuchsia/bt/
DBleFuchsiaAndroidTest.py38 droid = None variable in BleFuchsiaAndroidTest
51 self.ad.droid.bleSetAdvertiseDataIncludeDeviceName(True)
52 self.ad.droid.bleSetAdvertiseSettingsAdvertiseMode(
54 advertise_data = self.ad.droid.bleBuildAdvertiseData()
55 advertise_settings = self.ad.droid.bleBuildAdvertiseSettings()
56 advertise_callback = self.ad.droid.bleGenBleAdvertiseCallback()
57 self.ad.droid.bleStartBleAdvertising(advertise_callback,
70 self.ad.droid.bluetoothSetLocalName(sample_android_name)
72 droid_name = self.ad.droid.bluetoothGetLocalName()
83 self.ad.droid.bleStopBleAdvertising(adv_callback)
[all …]
/tools/test/connectivity/acts_tests/tests/google/ble/system_tests/
DBleStressTest.py62 bonded_devices = self.scn_ad.droid.bluetoothGetBondedDevices()
95 self.scn_ad.droid)
96 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings,
98 self.scn_ad.droid.bleStopBleScan(scan_callback)
128 self.adv_ad.droid)
129 self.adv_ad.droid.bleStartBleAdvertising(adv_callback, adv_data,
133 self.scn_ad.droid)
134 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings,
138 self.scn_ad.droid.bleStopBleScan(scan_callback)
168 self.adv_ad.droid)
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/tel/
Dtel_subscription_utils.py57 outgoing_voice_sub_id = ad.droid.subscriptionGetDefaultVoiceSubId()
70 outgoing_message_sub_id = ad.droid.subscriptionGetDefaultSmsSubId()
83 default_data_sub_id = ad.droid.subscriptionGetDefaultDataSubId()
97 incoming_voice_sub_id = ad.droid.subscriptionGetDefaultVoiceSubId()
111 incoming_message_sub_id = ad.droid.subscriptionGetDefaultSmsSubId()
121 return ad.droid.subscriptionGetDefaultDataSubId()
130 return ad.droid.subscriptionGetDefaultSmsSubId()
139 return ad.droid.subscriptionGetDefaultVoiceSubId()
148 return ad.droid.subscriptionGetDefaultVoiceSubId()
157 return ad.droid.subscriptionGetDefaultSmsSubId()
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/net/
Dsocket_test_utils.py41 fd_key = ad.droid.openSocket(domain, sock_type, ip, port)
53 status = ad.droid.closeSocket(fd_key)
72 server.droid.listenSocket(server_fd)
73 client.droid.connectSocket(client_fd, server_ip, server_port)
74 sock = server.droid.acceptSocket(server_fd)
102 client.droid.sendDataOverSocket(server_ip, server_port, msg, client_fd)
103 recv_msg = server.droid.recvDataOverSocket(server_fd)
123 socket_key = ad.droid.openDatagramSocket(ip, port)
134 status = ad.droid.closeDatagramSocket(socket_key)
161 client.droid.sendDataOverDatagramSocket(client_sock,
[all …]
Dipsec_test_utils.py47 in_spi_key = ad.droid.ipSecAllocateSecurityParameterIndex(ip_a, in_spi)
48 in_spi = ad.droid.ipSecGetSecurityParameterIndex(in_spi_key)
51 out_spi_key = ad.droid.ipSecAllocateSecurityParameterIndex(ip_b, out_spi)
52 out_spi = ad.droid.ipSecGetSecurityParameterIndex(out_spi_key)
66 ad.droid.ipSecReleaseSecurityParameterIndex(spi_key)
67 spi = ad.droid.ipSecGetSecurityParameterIndex(spi_key)
94 in_transform = ad.droid.ipSecCreateTransportModeTransform(
98 out_transform = ad.droid.ipSecCreateTransportModeTransform(
114 ad.droid.ipSecDestroyTransportModeTransform(transform)
115 status = ad.droid.ipSecGetTransformStatus(transform)
[all …]

12345678910>>...13