Home
last modified time | relevance | path

Searched refs:resolveService (Results 1 – 25 of 29) sorted by relevance

12

/packages/modules/Connectivity/tests/unit/java/android/net/nsd/
DNsdManagerTest.java183 manager.resolveService(request, listener); in doTestResolveService()
184 int key1 = getRequestKey(req -> verify(mServiceConn).resolveService(req.capture(), any())); in doTestResolveService()
189 manager.resolveService(request, listener); in doTestResolveService()
191 verify(mServiceConn, times(2)).resolveService(req.capture(), any())); in doTestResolveService()
205 manager.resolveService(request, listener1); in doTestParallelResolveService()
206 int key1 = getRequestKey(req -> verify(mServiceConn).resolveService(req.capture(), any())); in doTestParallelResolveService()
208 manager.resolveService(request, listener2); in doTestParallelResolveService()
210 verify(mServiceConn, times(2)).resolveService(req.capture(), any())); in doTestParallelResolveService()
525 mustFail(() -> { manager.resolveService(null, null); }); in doTestInvalidCalls()
526 mustFail(() -> { manager.resolveService(null, listener3); }); in doTestInvalidCalls()
[all …]
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/
DServiceDiscoveryTest.java25 import static android.net.thread.utils.IntegrationTestUtils.resolveService;
199 NsdServiceInfo resolvedService = resolveService(mNsdManager, discoveredService); in advertisingProxy_multipleSrpClientsRegisterServices_servicesResolvableByMdns()
317 NsdServiceInfo meshcopService = resolveService(mNsdManager, discoveredService); in meshcopOverlay_vendorAndModelNameAreSetToOverlayValue()
370 ftd.resolveService( in discoveryProxy_multipleClientsBrowseAndResolveServiceOverMdns()
439 dnsClient.resolveService("my-service", "_test._udp.default.service.arpa."); in discoveryProxy_browseAndResolveServiceAtSrpServer()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DSmartAutoRotateControllerTest.java91 when(mPackageManager.resolveService(any(), anyInt())).thenReturn(resolveInfo); in setUp()
102 when(mPackageManager.resolveService(any(), anyInt())).thenReturn(null); in getAvailabilityStatus_resolveInfoIsNull_returnUnsupportedOnDevice()
DSmartAutoRotateBatterySaverControllerTest.java67 when(packageManager.resolveService(any(), anyInt())).thenReturn(resolveInfo); in setUp()
DSmartAutoRotateCameraStateControllerTest.java69 when(packageManager.resolveService(any(), anyInt())).thenReturn(resolveInfo); in setUp()
DScreenTimeoutSettingsTest.java131 when(mPackageManager.resolveService(isA(Intent.class), anyInt())).thenReturn( in setup()
193 when(mPackageManager.resolveService(isA(Intent.class), anyInt())).thenReturn(null); in updateCandidates_AttentionServiceNotInstalled_doNoShowAdaptiveSleepPreference()
DAdaptiveSleepPreferenceControllerTest.java114 when(mPackageManager.resolveService(isA(Intent.class), anyInt())).thenReturn(null); in isControllerAvailable_serviceNotSupported_returnUnsupportedCode()
DSmartAutoRotatePreferenceControllerTest.java101 when(mPackageManager.resolveService(any(), anyInt())).thenReturn(resolveInfo); in setUp()
DSmartAutoRotatePreferenceFragmentTest.java117 when(mPackageManager.resolveService(any(), anyInt())).thenReturn(resolveInfo); in setUp()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DNsdServiceTest.java374 client.resolveService(request, listener3); in testClientRequestsAreGCedAtDisconnection()
469 client.resolveService(foundInfo, resolveListener); in testDiscoverOnTetheringDownstream()
566 client.resolveService(foundInfo, mock(ResolveListener.class)); in testDiscoverOnTetheringDownstream_DiscoveryManager()
703 client.resolveService(request, resolveListener); in testServiceResolutionFailed()
739 client.resolveService(request, resolveListener); in testGettingAddressFailed()
875 client.resolveService(request, resolveListener); in testNoCrashWhenProcessResolutionAfterBinderDied()
892 client.resolveService(request, resolveListener); in testStopServiceResolution()
919 client.resolveService(request, resolveListener); in testStopResolutionFailed()
945 client.resolveService(request, resolveListener); in testStopResolutionDuringGettingAddress()
1315 client.resolveService(request, resolveListener); in testResolutionWithMdnsDiscoveryManager()
[all …]
/packages/modules/Connectivity/framework-t/src/android/net/nsd/
DINsdServiceConnector.aidl36 void resolveService(int listenerKey, in NsdServiceInfo serviceInfo); in resolveService() method
DNsdManager.java1628 public void resolveService(NsdServiceInfo serviceInfo, ResolveListener listener) { in resolveService() method in NsdManager
1629 resolveService(serviceInfo, Runnable::run, listener); in resolveService()
1647 public void resolveService(@NonNull NsdServiceInfo serviceInfo, in resolveService() method in NsdManager
1652 mService.resolveService(key, serviceInfo); in resolveService()
/packages/apps/Car/Launcher/libs/appgrid/lib/robotests/src/com/android/car/carlauncher/datasources/
DControlCenterMirroringDataSourceImplTest.kt75 on { resolveService(any(), anyInt()) } doReturn ResolveInfo() in <lambda>()
97 verify(packageManager).resolveService(intentCaptor.capture(), anyInt()) in <lambda>()
/packages/apps/Settings/src/com/android/settings/gestures/
DSystemNavigationPreferenceController.java73 if (context.getPackageManager().resolveService(quickStepIntent, in isGestureAvailable()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DNsdResolveQueue.java99 mNsdManager.resolveService(mServiceInfo, this); in start()
/packages/apps/Settings/src/com/android/settings/display/
DAdaptiveSleepPreferenceController.java161 final ResolveInfo resolveInfo = packageManager.resolveService(intent, in isAttentionServiceAvailable()
DSmartAutoRotateController.java203 final ResolveInfo resolveInfo = packageManager.resolveService(intent, in isRotationResolverServiceAvailable()
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/datasources/
DControlCenterMirroringDataSource.kt223 if (packageManager.resolveService(intent, 0) != null) { in registerReceiver()
/packages/modules/Permission/framework-s/java/android/app/role/
DRoleControllerManager.java142 ServiceInfo serviceInfo = packageManager.resolveService(intent, 0).serviceInfo; in getRemoteServiceComponentName()
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/
DSdkSandboxServiceProviderImpl.java317 final ResolveInfo resolveInfo = mContext.getPackageManager().resolveService(intent, in getServiceComponentName()
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DNsdPublisherTest.java550 mNsdPublisher.resolveService( in resolveService_serviceResolved()
594 mNsdPublisher.resolveService( in stopServiceResolution()
/packages/services/Telephony/src/com/android/phone/vvm/
DRemoteVvmTaskManager.java167 ResolveInfo info = context.getPackageManager().resolveService(bindIntent, 0); in getRemotePackage()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/
DIntegrationTestUtils.java358 public static NsdServiceInfo resolveService(NsdManager nsdManager, NsdServiceInfo serviceInfo) in resolveService() method in IntegrationTestUtils
DFullThreadDevice.java379 public NsdServiceInfo resolveService(String serviceName, String serviceType) { in resolveService() method in FullThreadDevice
/packages/modules/Connectivity/framework-t/api/
Dcurrent.txt237 …method @Deprecated public void resolveService(android.net.nsd.NsdServiceInfo, android.net.nsd.NsdM…
238 …method @Deprecated public void resolveService(@NonNull android.net.nsd.NsdServiceInfo, @NonNull ja…

12