Home
last modified time | relevance | path

Searched refs:mMulticastSocket (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsInterfaceSocket.java57 @NonNull private final MulticastSocket mMulticastSocket; field in MdnsInterfaceSocket
69 mMulticastSocket = new MulticastSocket(port); in MdnsInterfaceSocket()
71 mMulticastSocket.setTimeToLive(255); in MdnsInterfaceSocket()
72 mMulticastSocket.setNetworkInterface(networkInterface); in MdnsInterfaceSocket()
75 mFileDescriptor = ParcelFileDescriptor.fromDatagramSocket(mMulticastSocket); in MdnsInterfaceSocket()
98 mMulticastSocket.send(packet); in send()
123 mMulticastSocket.joinGroup(multicastAddress, mNetworkInterface); in joinGroup()
160 mMulticastSocket.close(); in destroy()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DMulticastRoutingCoordinatorServiceTest.kt82 @Mock private lateinit var mMulticastSocket: MulticastSocket variable in com.android.server.connectivity.MulticastRoutingCoordinatorServiceTest
134 doReturn(mMulticastSocket).`when`(mDeps).createMulticastSocket() in setUp()
274 verify(mMulticastSocket).joinGroup(eq(mSocketAddressScope5), eq(mNetworkInterface1)) in testMulticastRouting_applyForwardSelected_joinsGroup()
296 verify(mMulticastSocket).joinGroup(eq(mSocketAddressScope5), eq(mNetworkInterface1)) in testMulticastRouting_addListeningAddressInForwardSelected_joinsGroup()
297 verify(mMulticastSocket).joinGroup(eq(mSocketAddressScope4), eq(mNetworkInterface1)) in testMulticastRouting_addListeningAddressInForwardSelected_joinsGroup()
311 verify(mMulticastSocket).joinGroup(eq(mSocketAddressScope5), eq(mNetworkInterface1)) in testMulticastRouting_removeListeningAddressInForwardSelected_leavesGroup()
312 verify(mMulticastSocket).joinGroup(eq(mSocketAddressScope4), eq(mNetworkInterface1)) in testMulticastRouting_removeListeningAddressInForwardSelected_leavesGroup()
322 verify(mMulticastSocket).leaveGroup(eq(mSocketAddressScope4), eq(mNetworkInterface1)) in testMulticastRouting_removeListeningAddressInForwardSelected_leavesGroup()
323 verify(mMulticastSocket, never()) in testMulticastRouting_removeListeningAddressInForwardSelected_leavesGroup()
333 verify(mMulticastSocket).joinGroup(eq(mSocketAddressScope5), eq(mNetworkInterface1)) in testMulticastRouting_fromForwardSelectedToForwardNone_leavesGroup()
[all …]
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DTunInterfaceController.java78 private final MulticastSocket mMulticastSocket; // For join group and leave group field in TunInterfaceController
90 mMulticastSocket = createMulticastSocket(); in TunInterfaceController()
345 mMulticastSocket.joinGroup(socketAddress, mNetworkInterface); in joinGroup()
361 mMulticastSocket.leaveGroup(socketAddress, mNetworkInterface); in leaveGroup()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DMulticastRoutingCoordinatorService.java97 @NonNull private final MulticastSocket mMulticastSocket; // For join group and leave group field in MulticastRoutingCoordinatorService
139 mMulticastSocket = mDependencies.createMulticastSocket(); in MulticastRoutingCoordinatorService()
672 mMulticastSocket.joinGroup( in joinGroups()
693 mMulticastSocket.leaveGroup( in leaveGroups()