/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/ |
D | MdnsMultinetworkSocketClient.java | 82 public void onSocketCreated(@NonNull SocketKey socketKey, in onSocketCreated() argument 86 ReadPacketHandler handler = mSocketPacketHandlers.get(socketKey); in onSocketCreated() 89 handler = new ReadPacketHandler(socketKey); in onSocketCreated() 90 mSocketPacketHandlers.put(socketKey, handler); in onSocketCreated() 93 mActiveSockets.put(socketKey, socket); in onSocketCreated() 94 mSocketCreationCallback.onSocketCreated(socketKey); in onSocketCreated() 98 public void onInterfaceDestroyed(@NonNull SocketKey socketKey, in onInterfaceDestroyed() argument 100 mActiveSockets.remove(socketKey); in onInterfaceDestroyed() 101 mSocketCreationCallback.onSocketDestroyed(socketKey); in onInterfaceDestroyed() 102 maybeCleanupPacketHandler(socketKey); in onInterfaceDestroyed() [all …]
|
D | MdnsDiscoveryManager.java | 67 public void put(@NonNull String serviceType, @NonNull SocketKey socketKey, in put() argument 71 socketKey); in put() 77 @NonNull String serviceType, @NonNull SocketKey socketKey) { in get() argument 80 socketKey); in get() 96 public List<MdnsServiceTypeClient> getBySocketKey(@NonNull SocketKey socketKey) { in getBySocketKey() argument 100 if (socketKey.equals(perSocketServiceType.second)) { in getBySocketKey() 253 public void onSocketCreated(@NonNull SocketKey socketKey) { in handleRegisterListener() 261 && (socketKey.getNetwork() != null in handleRegisterListener() 262 || socketKey.getInterfaceIndex() != searchInterfaceIndex)) { in handleRegisterListener() 263 sharedLog.i("Skipping " + socketKey + " as ifIndex " in handleRegisterListener() [all …]
|
D | QueryTaskConfig.java | 68 final SocketKey socketKey; field in QueryTaskConfig 85 this.socketKey = other.socketKey; in QueryTaskConfig() 91 @Nullable SocketKey socketKey) { in QueryTaskConfig() argument 119 this.socketKey = socketKey; in QueryTaskConfig()
|
D | MdnsServiceTypeClient.java | 72 @NonNull private final SocketKey socketKey; field in MdnsServiceTypeClient 147 final List<MdnsResponse> servicesToResolve = makeResponsesForResolve(socketKey); in handleMessage() 260 @NonNull SocketKey socketKey, in MdnsServiceTypeClient() argument 265 this(serviceType, socketClient, executor, new Clock(), socketKey, sharedLog, looper, in MdnsServiceTypeClient() 275 @NonNull SocketKey socketKey, in MdnsServiceTypeClient() argument 287 this.socketKey = socketKey; in MdnsServiceTypeClient() 293 this.cacheKey = new MdnsServiceCache.CacheKey(serviceType, socketKey); in MdnsServiceTypeClient() 402 socketKey); in startSendAndReceive() 422 final List<MdnsResponse> servicesToResolve = makeResponsesForResolve(socketKey); in startSendAndReceive() 499 @NonNull SocketKey socketKey) { in processResponse() argument [all …]
|
D | MdnsSocketClientBase.java | 73 void onResponseReceived(@NonNull MdnsPacket packet, @NonNull SocketKey socketKey); in onResponseReceived() argument 77 @NonNull SocketKey socketKey); in onFailedToParseMdnsResponse() argument 83 void onSocketCreated(@NonNull SocketKey socketKey); in onSocketCreated() argument 86 void onSocketDestroyed(@NonNull SocketKey socketKey); in onSocketDestroyed() argument
|
D | EnqueueMdnsQueryCallable.java | 73 private final SocketKey socketKey; field in EnqueueMdnsQueryCallable 95 @NonNull SocketKey socketKey, in EnqueueMdnsQueryCallable() argument 109 this.socketKey = socketKey; in EnqueueMdnsQueryCallable() 239 packets, socketKey, onlyUseIpv6OnIpv6OnlyNetworks); in sendPacket() 249 packets, socketKey, onlyUseIpv6OnIpv6OnlyNetworks); in sendPacket()
|
D | MdnsSocketProvider.java | 328 @NonNull SocketKey socketKey) { in SocketInfo() argument 332 mSocketKey = socketKey; in SocketInfo() 536 final SocketKey socketKey = new SocketKey(network, networkInterface.getIndex()); in createSocket() local 540 final SocketInfo socketInfo = new SocketInfo(socket, addresses, transports, socketKey); in createSocket() 754 default void onSocketCreated(@NonNull SocketKey socketKey, in onSocketCreated() argument 762 default void onInterfaceDestroyed(@NonNull SocketKey socketKey, in onInterfaceDestroyed() argument 768 default void onAddressesChanged(@NonNull SocketKey socketKey, in onAddressesChanged() argument
|
D | MdnsServiceCache.java | 55 CacheKey(@NonNull String serviceType, @NonNull SocketKey socketKey) { in CacheKey() argument 57 mSocketKey = socketKey; in CacheKey()
|
D | MdnsAdvertiser.java | 540 public void onSocketCreated(@NonNull SocketKey socketKey, in onSocketCreated() argument 566 public void onInterfaceDestroyed(@NonNull SocketKey socketKey, in onInterfaceDestroyed() argument 573 public void onAddressesChanged(@NonNull SocketKey socketKey, in onAddressesChanged() argument
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsServiceTypeClientTests.java | 140 private SocketKey socketKey; field in MdnsServiceTypeClientTests 157 socketKey = new SocketKey(mockNetwork, INTERFACE_INDEX); in setUp() 252 mockDecoderClock, socketKey, mockSharedLog, thread.getLooper(), mockDeps, in makeMdnsServiceTypeClient() 274 private void processResponse(MdnsPacket packet, SocketKey socketKey) { in processResponse() argument 275 runOnHandler(() -> client.processResponse(packet, socketKey)); in processResponse() 451 Collections.emptyMap(), TEST_TTL), socketKey); in sendQueries_activeScanWithQueryBackoff() 494 Collections.emptyMap(), TEST_TTL), socketKey); in sendQueries_passiveScanWithQueryBackoff() 509 TEST_ELAPSED_REALTIME - 1), socketKey); in sendQueries_passiveScanWithQueryBackoff() 518 Collections.emptyMap(), TEST_TTL), socketKey); in sendQueries_passiveScanWithQueryBackoff() 568 socketKey); in testQueryTaskConfig_alwaysAskForUnicastResponse() [all …]
|
D | MdnsSocketProviderTest.java | 243 SocketEvent(SocketKey socketKey, List<LinkAddress> addresses) { 244 mSocketKey = socketKey; 250 SocketCreatedEvent(SocketKey socketKey, List<LinkAddress> addresses) { 251 super(socketKey, addresses); 256 InterfaceDestroyedEvent(SocketKey socketKey, List<LinkAddress> addresses) { 257 super(socketKey, addresses); 262 AddressesChangedEvent(SocketKey socketKey, List<LinkAddress> addresses) { 263 super(socketKey, addresses); 271 public void onSocketCreated(SocketKey socketKey, MdnsInterfaceSocket socket, 273 mHistory.add(new SocketCreatedEvent(socketKey, addresses)); [all …]
|
D | MdnsServiceCacheTest.kt | 56 private val socketKey = SocketKey(null /* network */, INTERFACE_INDEX) in <lambda>() constant 57 private val cacheKey1 = CacheKey(SERVICE_TYPE_1, socketKey) in <lambda>() 58 private val cacheKey2 = CacheKey(SERVICE_TYPE_2, socketKey) in <lambda>() 302 socketKey.interfaceIndex, socketKey.network) in <lambda>()
|
D | MdnsDiscoveryManagerTests.java | 119 @NonNull SocketKey socketKey) { in setUp() 122 Pair.create(serviceType, socketKey); in setUp()
|