/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsServiceInfoTest.java | 31 import com.android.server.connectivity.mdns.MdnsServiceInfo.TextEntry; 47 MdnsServiceInfo info = in constructor_createWithOnlyTextStrings_correctAttributes() 48 new MdnsServiceInfo( in constructor_createWithOnlyTextStrings_correctAttributes() 66 MdnsServiceInfo info = in constructor_createWithOnlyTextEntries_correctAttributes() 67 new MdnsServiceInfo( in constructor_createWithOnlyTextEntries_correctAttributes() 76 List.of(MdnsServiceInfo.TextEntry.fromString("vn=Google Inc."), in constructor_createWithOnlyTextEntries_correctAttributes() 77 MdnsServiceInfo.TextEntry.fromString("mn=Google Nest Hub Max")), in constructor_createWithOnlyTextEntries_correctAttributes() 86 MdnsServiceInfo info = in constructor_createWithBothTextStringsAndTextEntries_acceptsOnlyTextEntries() 87 new MdnsServiceInfo( in constructor_createWithBothTextStringsAndTextEntries_acceptsOnlyTextEntries() 97 MdnsServiceInfo.TextEntry.fromString("vn=Google Inc."), in constructor_createWithBothTextStringsAndTextEntries_acceptsOnlyTextEntries() [all …]
|
D | MdnsServiceTypeClientTests.java | 63 import com.android.server.connectivity.mdns.MdnsServiceInfo.TextEntry; 131 private ArgumentCaptor<MdnsServiceInfo> serviceInfoCaptor; 766 private static void verifyServiceInfo(MdnsServiceInfo serviceInfo, String serviceName, in verifyServiceInfo() 803 verify(mockListenerOne, never()).onServiceFound(any(MdnsServiceInfo.class), anyBoolean()); in processResponse_incompleteResponse() 804 verify(mockListenerOne, never()).onServiceUpdated(any(MdnsServiceInfo.class)); in processResponse_incompleteResponse() 839 MdnsServiceInfo initialServiceInfo = serviceInfoCaptor.getAllValues().get(1); in processIPv4Response_completeResponseForNewServiceInstance() 850 MdnsServiceInfo updatedServiceInfo = serviceInfoCaptor.getAllValues().get(2); in processIPv4Response_completeResponseForNewServiceInstance() 893 MdnsServiceInfo initialServiceInfo = serviceInfoCaptor.getAllValues().get(1); in processIPv6Response_getCorrectServiceInfo() 904 MdnsServiceInfo updatedServiceInfo = serviceInfoCaptor.getAllValues().get(2); in processIPv6Response_getCorrectServiceInfo() 992 MdnsServiceInfo existingServiceInfo = serviceInfoCaptor.getAllValues().get(1); in reportExistingServiceToNewlyRegisteredListeners() [all …]
|
D | MdnsResponseDecoderTests.java | 505 new MdnsServiceInfo.TextEntry("a", "hello there"), in testDecodeWithChangeOnText() 506 new MdnsServiceInfo.TextEntry("b", "1234567890"), in testDecodeWithChangeOnText() 507 new MdnsServiceInfo.TextEntry("xyz", "!@#$")), in testDecodeWithChangeOnText()
|
D | MdnsProberTest.kt | 160 listOf(MdnsServiceInfo.TextEntry("testKey", "testValue"))))) in <lambda>()
|
D | MdnsRecordTests.java | 34 import com.android.server.connectivity.mdns.MdnsServiceInfo.TextEntry;
|
D | MdnsRecordRepositoryTest.kt | 36 import com.android.server.connectivity.mdns.MdnsServiceInfo.TextEntry in <lambda>()
|
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/ |
D | MdnsServiceBrowserListener.java | 37 void onServiceFound(@NonNull MdnsServiceInfo serviceInfo, boolean isServiceFromCache); in onServiceFound() 45 void onServiceUpdated(@NonNull MdnsServiceInfo serviceInfo); in onServiceUpdated() 53 void onServiceRemoved(@NonNull MdnsServiceInfo serviceInfo); in onServiceRemoved() 90 void onServiceNameDiscovered(@NonNull MdnsServiceInfo serviceInfo, boolean isServiceFromCache); in onServiceNameDiscovered() 97 void onServiceNameRemoved(@NonNull MdnsServiceInfo serviceInfo); in onServiceNameRemoved()
|
D | MdnsServiceInfo.java | 45 public class MdnsServiceInfo implements Parcelable { class 50 public static final Parcelable.Creator<MdnsServiceInfo> CREATOR = 51 new Parcelable.Creator<MdnsServiceInfo>() { 54 public MdnsServiceInfo createFromParcel(Parcel source) { 55 return new MdnsServiceInfo( 71 public MdnsServiceInfo[] newArray(int size) { 72 return new MdnsServiceInfo[size]; 102 public MdnsServiceInfo( in MdnsServiceInfo() method in MdnsServiceInfo 133 public MdnsServiceInfo( in MdnsServiceInfo() method in MdnsServiceInfo
|
D | MdnsServiceTypeClient.java | 306 private static MdnsServiceInfo buildMdnsServiceInfoFromResponse( in buildMdnsServiceInfoFromResponse() 335 List<MdnsServiceInfo.TextEntry> textEntries = null; in buildMdnsServiceInfoFromResponse() 342 return new MdnsServiceInfo( in buildMdnsServiceInfoFromResponse() 383 final MdnsServiceInfo info = in startSendAndReceive() 563 final MdnsServiceInfo serviceInfo = buildMdnsServiceInfoFromResponse( in notifyRemovedServiceToListeners() 608 MdnsServiceInfo serviceInfo = in onResponseModified()
|
D | MdnsTextRecord.java | 23 import com.android.server.connectivity.mdns.MdnsServiceInfo.TextEntry;
|
D | MdnsPacketWriter.java | 19 import com.android.server.connectivity.mdns.MdnsServiceInfo.TextEntry;
|
D | MdnsPacketReader.java | 23 import com.android.server.connectivity.mdns.MdnsServiceInfo.TextEntry;
|
D | MdnsRecordRepository.java | 550 private static List<MdnsServiceInfo.TextEntry> attrsToTextEntries(Map<String, byte[]> attrs) { in attrsToTextEntries() 551 final List<MdnsServiceInfo.TextEntry> out = new ArrayList<>(attrs.size()); in attrsToTextEntries() 553 out.add(new MdnsServiceInfo.TextEntry(attr.getKey(), attr.getValue())); in attrsToTextEntries()
|
/packages/modules/Connectivity/service-t/src/com/android/server/ |
D | NsdService.java | 109 import com.android.server.connectivity.mdns.MdnsServiceInfo; 297 public void onServiceFound(@NonNull MdnsServiceInfo serviceInfo, in onServiceFound() 301 public void onServiceUpdated(@NonNull MdnsServiceInfo serviceInfo) { } in onServiceUpdated() 304 public void onServiceRemoved(@NonNull MdnsServiceInfo serviceInfo) { } in onServiceRemoved() 307 public void onServiceNameDiscovered(@NonNull MdnsServiceInfo serviceInfo, in onServiceNameDiscovered() 311 public void onServiceNameRemoved(@NonNull MdnsServiceInfo serviceInfo) { } in onServiceNameRemoved() 339 public void onServiceNameDiscovered(@NonNull MdnsServiceInfo serviceInfo, in onServiceNameDiscovered() 347 public void onServiceNameRemoved(@NonNull MdnsServiceInfo serviceInfo) { in onServiceNameRemoved() 377 public void onServiceFound(MdnsServiceInfo serviceInfo, boolean isServiceFromCache) { in onServiceFound() 408 public void onServiceFound(@NonNull MdnsServiceInfo serviceInfo, in onServiceFound() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | NsdServiceTest.java | 122 import com.android.server.connectivity.mdns.MdnsServiceInfo; 541 final MdnsServiceInfo mockServiceInfo = new MdnsServiceInfo( in testDiscoverOnTetheringDownstream_DiscoveryManager() 1020 final MdnsServiceInfo mdnsServiceInfo = new MdnsServiceInfo( in testRegisterAndUnregisterServiceInfoCallback() 1051 final MdnsServiceInfo updatedServiceInfo = new MdnsServiceInfo( in testRegisterAndUnregisterServiceInfoCallback() 1184 final MdnsServiceInfo foundInfo = new MdnsServiceInfo( in testDiscoveryWithMdnsDiscoveryManager() 1206 final MdnsServiceInfo removedInfo = new MdnsServiceInfo( in testDiscoveryWithMdnsDiscoveryManager() 1328 final MdnsServiceInfo mdnsServiceInfo = new MdnsServiceInfo( in testResolutionWithMdnsDiscoveryManager() 1337 List.of(MdnsServiceInfo.TextEntry.fromBytes(new byte[]{ in testResolutionWithMdnsDiscoveryManager()
|