Searched refs:truncateServiceName (Results 1 – 4 of 4) sorted by relevance
31 import com.android.server.connectivity.mdns.util.MdnsUtils.truncateServiceName in <lambda>()102 assertEquals(truncateServiceName("测试abcde", 7), "测试a") in <lambda>()103 assertEquals(truncateServiceName("测试abcde", 100), "测试abcde") in <lambda>()
181 public static String truncateServiceName(@NonNull String originalName, int maxLength) { in truncateServiceName() method in MdnsUtils
724 final String truncatedServiceName = MdnsUtils.truncateServiceName(mOriginalServiceName, in getUpdatedServiceName()732 MdnsUtils.truncateServiceName( in getUpdatedHostname()
732 private String truncateServiceName(@NonNull String originalName) { in truncateServiceName() method in NsdService.NsdStateMachine.EnabledState733 return MdnsUtils.truncateServiceName(originalName, MAX_LABEL_LENGTH); in truncateServiceName()1004 truncateServiceName(serviceInfo.getServiceName())); in processMessage()