/tools/test/connectivity/acts_tests/tests/google/ble/api/ |
D | BleAdvertiseApiTest.py | 68 droid = self.ad_dut.droid 69 adv_settings = droid.bleBuildAdvertiseSettings() 70 adv_mode = droid.bleGetAdvertiseSettingsMode(adv_settings) 71 tx_power_level = droid.bleGetAdvertiseSettingsTxPowerLevel( 73 is_connectable = droid.bleGetAdvertiseSettingsIsConnectable( 120 droid = self.ad_dut.droid 121 adv_data = droid.bleBuildAdvertiseData() 122 service_uuids = droid.bleGetAdvertiseDataServiceUuids(adv_data) 123 include_tx_power_level = droid.bleGetAdvertiseDataIncludeTxPowerLevel( 125 include_device_name = droid.bleGetAdvertiseDataIncludeDeviceName( [all …]
|
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/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/acts_contrib/test_utils/bt/ |
D | bt_test_utils.py | 104 if not ad.droid.bluetoothCheckState(): 105 ad.droid.bluetoothToggleState(True) 113 if ad.droid.bluetoothCheckState(): 119 while not ad.droid.bluetoothCheckState() and time.time() < end_time: 121 return ad.droid.bluetoothCheckState() 124 def check_device_supported_profiles(droid): argument 134 profile_dict['hid'] = droid.bluetoothHidIsReady() 135 profile_dict['hsp'] = droid.bluetoothHspIsReady() 136 profile_dict['a2dp'] = droid.bluetoothA2dpIsReady() 137 profile_dict['avrcp'] = droid.bluetoothAvrcpIsReady() [all …]
|
D | gattc_lib.py | 53 self.dut.droid.bleSetScanSettingsScanMode( 55 filter_list = self.dut.droid.bleGenFilterList() 56 scan_settings = self.dut.droid.bleBuildScanSetting() 57 scan_callback = self.dut.droid.bleGenScanCallback() 59 self.dut.droid.bleSetScanFilterDeviceName("BLE Rect") 60 self.dut.droid.bleBuildScanFilter(filter_list) 61 self.dut.droid.bleStartBleScan(filter_list, scan_settings, 72 self.dut.droid.bleStopBleScan(scan_callback) 101 self.dut.droid.gattClientClose(self.bluetooth_gatt) 107 self.dut.droid.gattClientDiscoverServices(self.bluetooth_gatt) [all …]
|
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 | gatts_lib.py | 58 for service in self.dut.droid.gattGetServiceUuidList(self.gatt_server): 62 instance_id = self.dut.droid.gattServerGetCharacteristicInstanceId( 64 uuid = self.dut.droid.gattServerGetCharacteristicUuid( 73 self.gatt_server_callback = self.dut.droid.gattServerCreateGattServerCallback( 75 self.gatt_server = self.dut.droid.gattServerOpenGattServer( 81 self.dut.droid.gattServerClearServices(self.gatt_server) 87 self.dut.droid.gattServerClose(btgs) 98 self.dut.droid.gattServerCharacteristicSetValueByInstanceId( 103 self.dut.droid.gattServerNotifyCharacteristicChangedByInstanceId( 142 self.dut.droid.gattServerSetByteArrayValueByInstanceId( [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 | 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( 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 …]
|
/tools/test/connectivity/acts_tests/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/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 | BleScanScreenStateTest.py | 52 self.adv_ad.droid.bleSetAdvertiseSettingsAdvertiseMode( 55 generate_ble_advertise_objects(self.adv_ad.droid)) 56 self.adv_ad.droid.bleStartBleAdvertising(self.advertise_callback, 68 generate_ble_scan_objects(self.scn_ad.droid) 69 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings, 112 self.scn_ad.droid.wakeUpNow() 122 self.adv_ad.droid.bleStopBleAdvertising(self.advertise_callback) 123 self.scn_ad.droid.bleStopBleScan(self.scan_callback) 156 self.scn_ad.droid.goToSleepNow() 168 self.adv_ad.droid.bleStopBleAdvertising(self.advertise_callback) [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 | 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_tests/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 | 127 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(True) 128 self.scn_ad.droid.bleSetScanFilterDeviceName( 129 self.adv_ad.droid.bluetoothGetLocalName()) 159 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(False) 160 self.scn_ad.droid.bleSetScanFilterDeviceName( 161 self.adv_ad.droid.bluetoothGetLocalName()) 191 self.scn_ad.droid.bleSetScanFilterManufacturerData(1, [1]) 192 self.adv_ad.droid.bleAddAdvertiseDataManufacturerId(1, [1]) 222 self.scn_ad.droid.bleSetScanFilterManufacturerData(1, [1], [1]) 223 self.adv_ad.droid.bleAddAdvertiseDataManufacturerId(1, [1]) [all …]
|
/tools/test/connectivity/acts_tests/tests/google/ble/gatt/ |
D | GattConnectTest.py | 79 self.cen_ad.droid.gattClientClose(bluetooth_gatt) 81 self.per_ad.droid.gattServerClose(gatt_server) 83 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_tests/acts_contrib/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/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/acts_contrib/test_utils/tel/ |
D | tel_ims_utils.py | 116 sub_id = ad.droid.subscriptionGetDefaultVoiceSubId() 119 current_state = ad.droid.imsMmTelIsAdvancedCallingEnabled(sub_id) 130 ad.droid.imsMmTelSetAdvancedCallingEnabled(sub_id, new_state) 131 check_state = ad.droid.imsMmTelIsAdvancedCallingEnabled(sub_id) 149 if not ad.droid.imsIsEnhanced4gLteModeSettingEnabledByPlatform(): 155 current_state = ad.droid.imsIsEnhanced4gLteModeSettingEnabledByUser() 167 ad.droid.imsSetEnhanced4gMode(new_state) 170 check_state = ad.droid.imsIsEnhanced4gLteModeSettingEnabledByUser() 211 sub_id = ad.droid.subscriptionGetDefaultVoiceSubId() 214 current_state = ad.droid.imsMmTelIsVoWiFiSettingEnabled(sub_id) [all …]
|
D | tel_subscription_utils.py | 60 outgoing_voice_sub_id = ad.droid.subscriptionGetDefaultVoiceSubId() 73 outgoing_message_sub_id = ad.droid.subscriptionGetDefaultSmsSubId() 86 default_data_sub_id = ad.droid.subscriptionGetDefaultDataSubId() 100 incoming_voice_sub_id = ad.droid.subscriptionGetDefaultVoiceSubId() 114 incoming_message_sub_id = ad.droid.subscriptionGetDefaultSmsSubId() 124 return ad.droid.subscriptionGetDefaultDataSubId() 133 return ad.droid.subscriptionGetDefaultSmsSubId() 142 return ad.droid.subscriptionGetDefaultVoiceSubId() 151 return ad.droid.subscriptionGetDefaultVoiceSubId() 160 return ad.droid.subscriptionGetDefaultSmsSubId() [all …]
|
D | tel_voice_utils.py | 173 ad.droid.telecomCallDisconnect(call_id) 280 if not ad.droid.telecomIsInCall(): 284 ad.droid.telephonyStartTrackingCallState() 287 for call in ad.droid.telecomCallGetCallIds(): 288 ad.droid.telecomCallDisconnect(call) 290 ad.droid.telecomEndCall() 302 ad.droid.telephonyStopTrackingCallStateChange() 303 if not wait_for_state(ad.droid.telecomIsInCall, False, 15, 1): 376 ad.droid.telephonyStartTrackingCallStateForSubscription(sub_id) 381 ad.droid.telecomCallEmergencyNumber(callee_number) [all …]
|
/tools/test/connectivity/acts_tests/tests/google/fuchsia/bt/ |
D | BleFuchsiaAndroidTest.py | 36 droid = None variable in BleFuchsiaAndroidTest 49 self.ad.droid.bleSetAdvertiseDataIncludeDeviceName(True) 50 self.ad.droid.bleSetAdvertiseSettingsAdvertiseMode( 52 advertise_data = self.ad.droid.bleBuildAdvertiseData() 53 advertise_settings = self.ad.droid.bleBuildAdvertiseSettings() 54 advertise_callback = self.ad.droid.bleGenBleAdvertiseCallback() 55 self.ad.droid.bleStartBleAdvertising(advertise_callback, 68 self.ad.droid.bluetoothSetLocalName(sample_android_name) 70 droid_name = self.ad.droid.bluetoothGetLocalName() 78 self.ad.droid.bleStopBleAdvertising(adv_callback) [all …]
|
/tools/test/connectivity/acts_tests/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 …]
|