/tools/test/connectivity/acts_tests/tests/google/ble/api/ |
D | BleAdvertiseApiTest.py | 66 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 …]
|
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/framework/acts/test_utils/bt/ |
D | bt_test_utils.py | 101 if not ad.droid.bluetoothCheckState(): 102 ad.droid.bluetoothToggleState(True) 111 if ad.droid.bluetoothCheckState(): 117 while not ad.droid.bluetoothCheckState() and time.time() < end_time: 119 return ad.droid.bluetoothCheckState() 122 def check_device_supported_profiles(droid): argument 132 profile_dict['hid'] = droid.bluetoothHidIsReady() 133 profile_dict['hsp'] = droid.bluetoothHspIsReady() 134 profile_dict['a2dp'] = droid.bluetoothA2dpIsReady() 135 profile_dict['avrcp'] = droid.bluetoothAvrcpIsReady() [all …]
|
D | gattc_lib.py | 54 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 …]
|
D | gatts_lib.py | 59 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 …]
|
D | bt_carkit_lib.py | 71 connected_hsp_devices = len(ad.droid.bluetoothHspGetConnectedDevices()) 74 ad.droid.bluetoothHspConnect(self.target_mac_address) 76 if len(ad.droid.bluetoothHspGetConnectedDevices() == 1): 81 ad.droid.bluetoothConnectBonded(self.target_mac_address) 85 ad.droid.bluetoothHspGetConnectedDevices()) 173 pri_dut.droid.bluetoothDisconnectConnected(self.target_mac_address) 178 pri_dut.droid.bluetoothConnectBonded(self.target_mac_address) 182 connected_devices = pri_dut.droid.bluetoothGetConnectedDevices() 186 connected_devices = pri_dut.droid.bluetoothGetConnectedDevices( 201 if not pri_dut.droid.bluetoothA2dpDisconnect(self.target_mac_address): [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/framework/acts/test_utils/tel/ |
D | tel_test_utils.py | 382 droid = ad.droid 383 sub_info_list = droid.subscriptionGetAllSubInfoList() 406 "iccid"] = droid.telephonyGetSimSerialNumberForSubscription( 417 "phone_type"] = droid.telephonyGetPhoneTypeForSubscription( 421 sub_record["phone_type"] = droid.telephonyGetPhoneType() 423 "sim_plmn"] = droid.telephonyGetSimOperatorForSubscription( 426 "sim_operator_name"] = droid.telephonyGetSimOperatorNameForSubscription( 429 "network_plmn"] = droid.telephonyGetNetworkOperatorForSubscription( 432 "network_operator_name"] = droid.telephonyGetNetworkOperatorNameForSubscription( 435 "sim_country"] = droid.telephonyGetSimCountryIsoForSubscription( [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 | 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 | 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/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_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/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 | 128 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(True) 129 self.scn_ad.droid.bleSetScanFilterDeviceName( 130 self.adv_ad.droid.bluetoothGetLocalName()) 160 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(False) 161 self.scn_ad.droid.bleSetScanFilterDeviceName( 162 self.adv_ad.droid.bluetoothGetLocalName()) 192 self.scn_ad.droid.bleSetScanFilterManufacturerData(1, [1]) 193 self.adv_ad.droid.bleAddAdvertiseDataManufacturerId(1, [1]) 223 self.scn_ad.droid.bleSetScanFilterManufacturerData(1, [1], [1]) 224 self.adv_ad.droid.bleAddAdvertiseDataManufacturerId(1, [1]) [all …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/ |
D | wifi_test_utils.py | 590 if state == ad.droid.wifiCheckState(): 594 ad.droid.wifiStartTrackingStateChange() 602 asserts.assert_equal(state, ad.droid.wifiCheckState(), fail_msg) 604 ad.droid.wifiStopTrackingStateChange() 635 new_state = not ad.droid.wifiCheckState() 636 elif new_state == ad.droid.wifiCheckState(): 640 ad.droid.wifiStartTrackingStateChange() 644 ad.droid.wifiToggleState(new_state) 652 asserts.assert_equal(new_state, ad.droid.wifiCheckState(), fail_msg) 654 ad.droid.wifiStopTrackingStateChange() [all …]
|
/tools/test/connectivity/acts/tests/google/wifi/rtt/functional/ |
D | AwareDiscoveryWithRangingTest.py | 83 p_id = p_dut.droid.wifiAwareAttach(False) 86 s_id = s_dut.droid.wifiAwareAttach(False) 90 p_disc_id = p_dut.droid.wifiAwarePublish(p_id, p_config) 94 s_disc_id = s_dut.droid.wifiAwareSubscribe(s_id, s_config) 146 p_dut.droid.wifiAwareUpdatePublish(p_disc_id, p_config) 148 s_dut.droid.wifiAwareUpdateSubscribe(s_disc_id, s_config) 1131 p_id = p_dut.droid.wifiAwareAttach(False) 1134 s_id = s_dut.droid.wifiAwareAttach(False) 1138 aa_s_disc_id = s_dut.droid.wifiAwareSubscribe( 1145 bb_s_disc_id = s_dut.droid.wifiAwareSubscribe( [all …]
|
/tools/test/connectivity/acts/tests/google/wifi/aware/functional/ |
D | DataPathTest.py | 78 return dut.droid.connectivityRequestWifiAwareNetwork(network_req) 103 p_id = p_dut.droid.wifiAwareAttach() 106 s_id = s_dut.droid.wifiAwareAttach() 110 p_disc_id = p_dut.droid.wifiAwarePublish(p_id, 120 s_dut.droid.wifiAwarePublish(s_id, p2_config) 124 s_disc_id = s_dut.droid.wifiAwareSubscribe(s_id, 137 s_dut.droid.wifiAwareSendMessage(s_disc_id, peer_id_on_sub, 201 p_dut.droid.wifiAwareCreateNetworkSpecifier( 207 p_dut.droid.wifiAwareCreateNetworkSpecifier( 214 s_dut.droid.wifiAwareCreateNetworkSpecifier( [all …]
|
D | DiscoveryTest.py | 150 p_id = p_dut.droid.wifiAwareAttach(False) 153 s_id = s_dut.droid.wifiAwareAttach(False) 164 p_disc_id = p_dut.droid.wifiAwarePublish(p_id, p_config) 175 s_disc_id = s_dut.droid.wifiAwareSubscribe(s_id, s_config) 202 s_dut.droid.wifiAwareSendMessage(s_disc_id, peer_id_on_sub, 219 p_dut.droid.wifiAwareSendMessage(p_disc_id, peer_id_on_pub, 244 p_dut.droid.wifiAwareUpdatePublish(p_disc_id, p_config) 280 s_dut.droid.wifiAwareUpdateSubscribe(s_disc_id, s_config) 285 p_dut.droid.wifiAwareDestroyDiscoverySession(p_disc_id) 286 s_dut.droid.wifiAwareDestroyDiscoverySession(s_disc_id) [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 …]
|
/tools/test/connectivity/acts_tests/tests/google/tel/live/ |
D | TelLiveDataTest.py | 301 sub_id = ad.droid.subscriptionGetDefaultSubId() 630 .droid.subscriptionGetDefaultDataSubId(), nw_gen, 638 .droid.subscriptionGetDefaultVoiceSubId(), 645 self.android_devices[0].droid.telephonyToggleDataConnection(True) 679 self.android_devices[0].droid.telephonyToggleDataConnection( 690 self.android_devices[0].droid.telephonyToggleDataConnection( 720 self.android_devices[0].droid.telephonyToggleDataConnection( 968 self.provider.droid.telephonyToggleDataConnection(True) 972 if self.provider.droid.wifiIsApEnabled(): 976 disable_bluetooth(self.provider.droid) [all …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/p2p/ |
D | wifi_p2p_test_utils.py | 50 ad.droid.wifiP2pRequestConnectionInfo() 63 ad.droid.wifiP2pRemoveGroup() 88 ad.droid.wifiP2pRequestConnectionInfo() 105 ad.droid.wifiP2pRequestConnectionInfo() 133 ad1.droid.wifiP2pConnect(wifi_p2p_config) 138 ad1.droid.requestP2pPeerConfigure() 143 ad2.droid.requestP2pPeerConfigure() 157 ad2.droid.setP2pPeerConfigure(ad2_peerConfig['data']) 160 ad2.droid.wifiP2pAcceptConnection() 170 ad1.droid.setP2pPeerConfigure(ad1_peerConfig['data']) [all …]
|
/tools/test/connectivity/acts_tests/tests/google/net/ |
D | IpSecTest.py | 47 self.ipv4_dut_a = self.dut_a.droid.connectivityGetIPv4Addresses(WLAN)[0] 48 self.ipv4_dut_b = self.dut_b.droid.connectivityGetIPv4Addresses(WLAN)[0] 49 self.ipv6_dut_a = self.dut_a.droid.connectivityGetIPv6Addresses(WLAN)[0] 50 self.ipv6_dut_b = self.dut_b.droid.connectivityGetIPv6Addresses(WLAN)[0] 79 key = dut.droid.ipSecAllocateSecurityParameterIndex(ip, req_spi) 80 spi = dut.droid.ipSecGetSecurityParameterIndex(key) 82 dut.droid.ipSecReleaseSecurityParameterIndex(key) 84 spi = dut.droid.ipSecGetSecurityParameterIndex(key) 90 key = dut.droid.ipSecAllocateSecurityParameterIndex(ip) 91 spi = dut.droid.ipSecGetSecurityParameterIndex(key) [all …]
|
/tools/test/connectivity/acts/tests/google/wifi/ |
D | WifiManagerTest.py | 84 ad.droid.wakeLockAcquireBright() 85 ad.droid.wakeUpNow() 90 ad.droid.wakeLockRelease() 91 ad.droid.goToSleepNow() 115 droid = ad.droid 135 connect_data = dut.droid.wifiGetConnectionInfo() 169 wifi_info = self.dut.droid.wifiGetConnectionInfo() 186 network_info = self.dut.droid.wifiGetConfiguredNetworks() 227 connect_data = self.dut.droid.wifiGetConnectionInfo() 304 actual_support = self.dut.droid.wifiIsEnhancedPowerReportingSupported() [all …]
|