Home
last modified time | relevance | path

Searched refs:discoverServices (Results 1 – 25 of 37) sorted by relevance

12

/packages/modules/Connectivity/tests/unit/java/android/net/nsd/
DNsdManagerTest.java324 manager.discoverServices("a_type", PROTOCOL, listener); in doTestDiscoverService()
326 verify(mServiceConn).discoverServices(req.capture(), any())); in doTestDiscoverService()
333 manager.discoverServices("a_type", PROTOCOL, listener); in doTestDiscoverService()
335 verify(mServiceConn, times(2)).discoverServices(req.capture(), any())); in doTestDiscoverService()
373 manager.discoverServices("a_type", PROTOCOL, listener); in doTestDiscoverService()
375 verify(mServiceConn, times(3)).discoverServices(req.capture(), any())); in doTestDiscoverService()
511 mustFail(() -> { manager.discoverServices(null, -1, null); }); in doTestInvalidCalls()
512 mustFail(() -> { manager.discoverServices(null, PROTOCOL, listener2); }); in doTestInvalidCalls()
513 mustFail(() -> { manager.discoverServices("a_service", -1, listener2); }); in doTestInvalidCalls()
514 mustFail(() -> { manager.discoverServices("a_service", PROTOCOL, null); }); in doTestInvalidCalls()
[all …]
/packages/modules/Bluetooth/framework/tests/bumble/src/android/bluetooth/
DGattClientTest.java172 gatt.discoverServices(); in clientGattDiscoverServices()
190 gatt.discoverServices(); in clientGattReadCharacteristics()
216 gatt.discoverServices(); in clientGattWriteCharacteristic()
246 gatt.discoverServices(); in clientGattNotifyOrIndicateCharacteristic()
314 gatt.discoverServices(); in consecutiveWriteCharacteristicFails_thenSuccess()
315 gatt2.discoverServices(); in consecutiveWriteCharacteristicFails_thenSuccess()
DDckGattTest.kt200 bumbleGatt.discoverServices() in testDiscoverDkGattService()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/ble/
DGattTransportClientProviderTest.java267 doAnswer(notifyGattServicesDiscovered).when(mMockBluetoothGatt).discoverServices(); in setupGattServicesDiscover()
321 when(mMockBluetoothGatt.discoverServices()).thenReturn(true); in testStartProcessing_serviceNotDiscovered()
325 verify(mMockBluetoothGatt, times(1)).discoverServices(); in testStartProcessing_serviceNotDiscovered()
339 verify(mMockBluetoothGatt, times(1)).discoverServices(); in testStartProcessing_capabilitiesNotWritten()
363 verify(mMockBluetoothGatt, times(1)).discoverServices(); in testStartProcessing_notificationNotEnabled()
384 verify(mMockBluetoothGatt, times(1)).discoverServices(); in testStartProcessing_succeed()
430 verify(mMockBluetoothGatt, times(2)).discoverServices(); in testServiceChanged()
482 when(mMockBluetoothGatt.discoverServices()).thenReturn(true); in testSetCapabilities_serviceNotDiscovered()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DNsdServiceTest.java368 client.discoverServices(SERVICE_TYPE, PROTOCOL, listener2); in testClientRequestsAreGCedAtDisconnection()
433 client.discoverServices(SERVICE_TYPE, PROTOCOL, discListener); in testDiscoverOnTetheringDownstream()
530 client.discoverServices(SERVICE_TYPE, PROTOCOL, discListener); in testDiscoverOnTetheringDownstream_DiscoveryManager()
581 client.discoverServices(SERVICE_TYPE, PROTOCOL, discListener); in testDiscoverOnBlackholeNetwork()
669 client.discoverServices(SERVICE_TYPE, PROTOCOL, discListener); in testServiceDiscoveryFailed()
810 client1.discoverServices(testType1, NsdManager.PROTOCOL_DNS_SD, in testPerClientListenerLimit()
817 client2.discoverServices(testType2, NsdManager.PROTOCOL_DNS_SD, in testPerClientListenerLimit()
841 client1.discoverServices(testType1, NsdManager.PROTOCOL_DNS_SD, in testPerClientListenerLimit()
852 client1.discoverServices(testType2, NsdManager.PROTOCOL_DNS_SD, in testPerClientListenerLimit()
1129 client.discoverServices(SERVICE_TYPE, PROTOCOL, discListenerWithoutFeature); in testMdnsDiscoveryManagerFeature()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNsdManagerDownstreamTetheringTest.kt90 nsdManager.discoverServices(serviceType, NsdManager.PROTOCOL_DNS_SD, discoveryRecord) in testMdnsDiscoveryCanSendPacketOnLocalOnlyDownstreamTetheringInterface()
137 nsdManager.discoverServices(serviceType, NsdManager.PROTOCOL_DNS_SD, discoveryRecord) in testMdnsDiscoveryWorkOnTetheringInterface()
/packages/modules/Connectivity/framework-t/src/android/net/nsd/
DNsdManager.java532 discoverServices(mServiceType, mProtocolType, network, Runnable::run,
1439 public void discoverServices(String serviceType, int protocolType, DiscoveryListener listener) { in discoverServices() method in NsdManager
1440 discoverServices(serviceType, protocolType, (Network) null, Runnable::run, listener); in discoverServices()
1471 public void discoverServices(@NonNull String serviceType, int protocolType, in discoverServices() method in NsdManager
1479 discoverServices(request, executor, listener); in discoverServices()
1510 public void discoverServices(@NonNull DiscoveryRequest discoveryRequest, in discoverServices() method in NsdManager
1514 mService.discoverServices(key, discoveryRequest); in discoverServices()
1558 public void discoverServices(@NonNull String serviceType, int protocolType, in discoverServices() method in NsdManager
DINsdServiceConnector.aidl34 void discoverServices(int listenerKey, in DiscoveryRequest discoveryRequest); in discoverServices() method
/packages/apps/Settings/src/com/android/settings/accessibility/
DHearingDevicePairingFragment.java351 discoverServices(cachedDevice); in handleLeScanResult()
456 void discoverServices(CachedBluetoothDevice cachedDevice) { in discoverServices() method in HearingDevicePairingFragment
472 gatt.discoverServices(); in discoverServices()
/packages/modules/Bluetooth/android/pandora/server/src/
DGatt.kt140 override fun discoverServices( in discoverServices() method in com.android.pandora.Gatt
147 check(gattInstance.mGatt.discoverServices()) in discoverServices()
461 if (!gattInstance.servicesDiscovered() && !gattInstance.mGatt.discoverServices()) { in tryDiscoverServices()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DGattClientListener.java166 mBluetoothGatt.discoverServices(); in onReceive()
191 mBluetoothGatt.discoverServices(); in onConnectionStateChange()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DHearingDevicePairingFragmentTest.java189 verify(mFragment).discoverServices(mCachedDevice); in handleLeScanResult_isNotAndroidCompatible_discoverServices()
202 verify(mFragment, never()).discoverServices(mCachedDevice); in handleLeScanResult_alreadyBonded_doNothing()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/gatt/
DGattServiceBinderTest.java268 public void discoverServices() throws Exception { in discoverServices() method in GattServiceBinderTest
272 mBinder.discoverServices(clientIf, address, mAttributionSource); in discoverServices()
274 verify(mService).discoverServices(clientIf, address, mAttributionSource); in discoverServices()
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/ble/
DGattTransportClientProvider.java121 gatt.discoverServices();
507 mBluetoothGatt.discoverServices(); in startProcessing()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/
DIntegrationTestUtils.java329 nsdManager.discoverServices(serviceType, NsdManager.PROTOCOL_DNS_SD, listener); in discoverService()
353 nsdManager.discoverServices(serviceType, NsdManager.PROTOCOL_DNS_SD, listener); in discoverForServiceLost()
/packages/modules/Connectivity/framework-t/api/
Dcurrent.txt230 method public void discoverServices(String, int, android.net.nsd.NsdManager.DiscoveryListener);
231 …method public void discoverServices(@NonNull String, int, @Nullable android.net.Network, @NonNull …
232 …i("com.android.net.flags.nsd_subtypes_support_enabled") public void discoverServices(@NonNull andr…
233 …ssion(android.Manifest.permission.ACCESS_NETWORK_STATE) public void discoverServices(@NonNull Stri…
/packages/modules/Wifi/framework/api/
Dlint-baseline.txt68 RequiresPermission: android.net.wifi.p2p.WifiP2pManager#discoverServices(android.net.wifi.p2p.WifiP…
69 …Method 'discoverServices' documentation mentions permissions already declared by @RequiresPermissi…
Dmodule-lib-lint-baseline.txt128 RequiresPermission: android.net.wifi.p2p.WifiP2pManager#discoverServices(android.net.wifi.p2p.WifiP…
129 …Method 'discoverServices' documentation mentions permissions already declared by @RequiresPermissi…
Dsystem-lint-baseline.txt148 RequiresPermission: android.net.wifi.p2p.WifiP2pManager#discoverServices(android.net.wifi.p2p.WifiP…
149 …Method 'discoverServices' documentation mentions permissions already declared by @RequiresPermissi…
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DNsdPublisherTest.java480 .discoverServices( in discoverService_serviceDiscovered()
505 .discoverServices( in discoverService_serviceLost()
530 .discoverServices( in stopServiceDiscovery()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DMdnsDiscovery.java153 nsdManager.discoverServices(mServiceName, NsdManager.PROTOCOL_DNS_SD, serviceListener); in onStart()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pShellCommandTest.java167 verify(mWifiP2pManager).discoverServices(eq(mWifiP2pChannel), any()); in testP2pServiceDiscovery()
/packages/modules/Bluetooth/android/app/aidl/android/bluetooth/
DIBluetoothGatt.aidl118 … void discoverServices(in int clientIf, in String address, in AttributionSource attributionSource); in discoverServices() method
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bas/
DBatteryStateMachine.java488 mBluetoothGatt.discoverServices(); in enter()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothAccessoryFragment.java255 gatt.discoverServices(); in onConnectionStateChange()

12