/tools/test/connectivity/acts/tests/google/ble/filtering/ |
D | UniqueFilteringTest.py | 112 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(True) 113 self.adv_ad.droid.bleSetAdvertiseSettingsAdvertiseMode( 116 self.scn_ad.droid) 119 generate_ble_advertise_objects(self.adv_ad.droid)) 120 self.adv_ad.droid.bleStartBleAdvertising( 122 self.scn_ad.droid.bleSetScanFilterDeviceName( 123 self.adv_ad.droid.bluetoothGetLocalName()) 124 self.scn_ad.droid.bleBuildScanFilter(filter_list) 126 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings, 128 self.scn_ad.droid.bleFlushPendingScanResults(scan_callback) [all …]
|
/tools/test/connectivity/acts/tests/google/ble/bt5/ |
D | Bt5ScanTest.py | 68 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/google/ble/concurrency/ |
D | ConcurrentBleScanningTest.py | 84 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 …]
|
D | ConcurrentBleAdvertisingTest.py | 129 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/framework/acts/test_utils/bt/ |
D | simulated_carkit_device.py | 31 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 …]
|
D | bt_test_utils.py | 100 if not ad.droid.bluetoothCheckState(): 101 ad.droid.bluetoothToggleState(True) 110 if ad.droid.bluetoothCheckState(): 116 while not ad.droid.bluetoothCheckState() and time.time() < end_time: 118 return ad.droid.bluetoothCheckState() 121 def check_device_supported_profiles(droid): argument 131 profile_dict['hid'] = droid.bluetoothHidIsReady() 132 profile_dict['hsp'] = droid.bluetoothHspIsReady() 133 profile_dict['a2dp'] = droid.bluetoothA2dpIsReady() 134 profile_dict['avrcp'] = droid.bluetoothAvrcpIsReady() [all …]
|
D | bta_lib.py | 42 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 …]
|
D | rfcomm_lib.py | 42 self.dut.droid.bluetoothRfcommBeginConnectThread( 45 self.dut.droid.bluetoothRfcommBeginConnectThread( 50 self.dut.droid.rfcommCreateRfcommSocket(self.target_mac_addr, 1) 54 self.dut.droid.rfcommCreateL2capSocket(self.target_mac_addr, 1) 58 self.dut.droid.bluetoothRfcommWrite(line) 62 self.dut.droid.bluetoothRfcommWriteBinary(line) 66 self.dut.droid.bluetoothRfcommEndConnectThread() 74 self.dut.droid.bluetoothRfcommBeginAcceptThread(uuid) 76 self.dut.droid.bluetoothRfcommBeginAcceptThread( 81 self.dut.droid.bluetoothRfcommStop() [all …]
|
D | bt_coc_test_utils.py | 80 client_ad.droid.bluetoothConnectionThroughputSend( 90 client_ad.droid.bluetoothConnectionThroughputSend( 98 server_ad.droid.bluetoothConnectionThroughputRead( 107 server_ad.droid.bluetoothConnectionThroughputRead( 153 server_ad.droid.bluetoothStartPairingHelper() 154 client_ad.droid.bluetoothStartPairingHelper() 172 mac_address = server_ad.droid.bluetoothGetLocalAddress() 190 client_ad.droid.bleStopBleScan(scan_callback) 194 server_ad.droid.bleStopBleAdvertising(adv_callback) 208 return_status = client_ad.droid.gattClientRequestLeConnectionParameters( [all …]
|
D | ble_lib.py | 65 self.dut.droid.bleSetAdvertiseSettingsAdvertiseMode( 67 self.dut.droid.bleSetAdvertiseSettingsIsConnectable(True) 69 generate_ble_advertise_objects(self.dut.droid)) 71 self.dut.droid.bleStartBleAdvertisingWithScanResponse( 75 self.dut.droid.bleStartBleAdvertising( 85 adv_callback = self.dut.droid.bleAdvSetGenCallback() 89 self.dut.droid.bleAdvSetStartAdvertisingSet( 112 self.dut.droid.bleAdvSetStopAdvertisingSet(adv) 125 self.dut.droid.bleSetAdvertiseDataSetServiceUuids(uuid_list) 129 self.dut.droid.bleSetAdvertiseDataIncludeDeviceName(bool(is_included)) [all …]
|
/tools/test/connectivity/acts/tests/google/ble/api/ |
D | BleScanApiTest.py | 74 def validate_scan_settings_helper(self, input, droid): argument 81 filter_list = droid.bleGenFilterList() 84 droid.bleSetScanSettingsCallbackType(input['ScanSettings'][0]) 85 droid.bleSetScanSettingsReportDelayMillis( 87 droid.bleSetScanSettingsScanMode(input['ScanSettings'][2]) 88 droid.bleSetScanSettingsResultType(input['ScanSettings'][3]) 94 droid.bleSetScanFilterDeviceName(input['ScanFilterDeviceName']) 101 droid.bleSetScanFilterDeviceAddress( 110 droid.bleSetScanFilterManufacturerData( 122 droid.bleSetScanFilterManufacturerData( [all …]
|
/tools/test/connectivity/acts/tests/google/ble/scan/ |
D | BleOpportunisticScanTest.py | 69 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 …]
|
D | BleOnLostOnFoundTest.py | 62 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 …]
|
D | BleScanScreenStateTest.py | 55 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 …]
|
D | BleBackgroundScanTest.py | 59 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/framework/acts/test_utils/car/ |
D | car_telecom_utils.py | 50 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 …]
|
D | tel_telecom_utils.py | 44 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/google/fuchsia/bt/ |
D | BleFuchsiaAndroidTest.py | 38 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/google/bt/hid/ |
D | HidDeviceTest.py | 50 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/google/ble/gatt/ |
D | GattConnectTest.py | 80 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 …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/p2p/ |
D | WifiP2pBaseTest.py | 37 ad.droid.wakeLockAcquireBright() 38 ad.droid.wakeUpNow() 60 self.dut1.droid.wifiP2pInitialize() 62 asserts.assert_true(self.dut1.droid.wifiP2pIsEnabled(), 65 self.dut1.droid.wifiP2pSetDeviceName(self.dut1.name) 68 self.dut2.droid.wifiP2pInitialize() 70 asserts.assert_true(self.dut2.droid.wifiP2pIsEnabled(), 73 self.dut2.droid.wifiP2pSetDeviceName(self.dut2.name) 80 self.dut3.droid.wifiP2pInitialize() 83 self.dut3.droid.wifiP2pIsEnabled(), [all …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/tel/ |
D | tel_subscription_utils.py | 56 outgoing_voice_sub_id = ad.droid.subscriptionGetDefaultVoiceSubId() 69 outgoing_message_sub_id = ad.droid.subscriptionGetDefaultSmsSubId() 82 default_data_sub_id = ad.droid.subscriptionGetDefaultDataSubId() 96 incoming_voice_sub_id = ad.droid.subscriptionGetDefaultVoiceSubId() 110 incoming_message_sub_id = ad.droid.subscriptionGetDefaultSmsSubId() 120 return ad.droid.subscriptionGetDefaultDataSubId() 129 return ad.droid.subscriptionGetDefaultSmsSubId() 138 return ad.droid.subscriptionGetDefaultVoiceSubId() 147 return ad.droid.subscriptionGetDefaultVoiceSubId() 156 return ad.droid.subscriptionGetDefaultSmsSubId() [all …]
|
/tools/test/connectivity/acts/tests/google/ble/system_tests/ |
D | BleStressTest.py | 62 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/google/native/ |
D | NativeTest.py | 37 self.droid = self.native_android_devices[0].droid 40 return self.droid.TestBoolTrueReturn() 43 return not self.droid.TestBoolFalseReturn() 46 return not self.droid.TestNullReturn() 49 return self.droid.TestStringEmptyReturn() == "" 55 return test_string == self.droid.TestStringMaxReturn(test_string) 59 return self.droid.TestSpecificParamNaming(a)
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | native_android_device.py | 109 droid = self.start_new_session() 111 droid = self.start_new_session() 112 return droid 127 droid = native.NativeAndroid(port=self.h_port) 128 droid.open() 129 if droid.uid in self._droid_sessions: 132 return droid 133 self._droid_sessions[droid.uid] = [droid] 134 return droid
|