Home
last modified time | relevance | path

Searched refs:hostname (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/
DProxySelector.java93 String hostname = mHostnameField.getText().toString().trim(); in onCreateDialog() local
96 String msg = getActivity().getString(validate(hostname, portStr, exclList)); in onCreateDialog()
121 mHostnameField = (EditText)view.findViewById(R.id.hostname); in initView()
143 String hostname = ""; in populateFields() local
152 hostname = proxy.getHost(); in populateFields()
157 if (hostname == null) { in populateFields()
158 hostname = ""; in populateFields()
161 mHostnameField.setText(hostname); in populateFields()
187 public static int validate(String hostname, String port, String exclList) { in validate() argument
188 switch (Proxy.validate(hostname, port, exclList)) { in validate()
[all …]
DRadioInfo.java1221 Thread hostname = new Thread() { in updatePingState() local
1228 hostname.start(); in updatePingState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DProxySelector.java93 String hostname = mHostnameField.getText().toString().trim(); in onCreateDialog() local
96 String msg = getActivity().getString(validate(hostname, portStr, exclList)); in onCreateDialog()
121 mHostnameField = (EditText)view.findViewById(R.id.hostname); in initView()
143 String hostname = ""; in populateFields() local
152 hostname = proxy.getHost(); in populateFields()
157 if (hostname == null) { in populateFields()
158 hostname = ""; in populateFields()
161 mHostnameField.setText(hostname); in populateFields()
187 public static int validate(String hostname, String port, String exclList) { in validate() argument
188 switch (Proxy.validate(hostname, port, exclList)) { in validate()
[all …]
DRadioInfo.java1123 Thread hostname = new Thread() { in updatePingState() local
1130 hostname.start(); in updatePingState()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpLeaseRepository.java169 @Nullable String hostname) throws OutOfAddressesException, InvalidSubnetException { in getOffer() argument
179 newLease = currentLease.renewedLease(expTime, hostname); in getOffer()
183 newLease = new DhcpLease(clientId, hwAddr, reqAddr, expTime, hostname); in getOffer()
186 newLease = makeNewOffer(clientId, hwAddr, expTime, hostname); in getOffer()
239 @Nullable Inet4Address reqAddr, boolean sidSet, @Nullable String hostname) in requestLease() argument
268 checkClientAndMakeLease(clientId, hwAddr, leaseAddr, hostname, currentTime); in requestLease()
286 @NonNull Inet4Address addr, @Nullable String hostname, long currentTime) in checkClientAndMakeLease() argument
297 lease = new DhcpLease(clientId, hwAddr, addr, expTime, hostname); in checkClientAndMakeLease()
302 lease = currentLease.renewedLease(expTime, hostname); in checkClientAndMakeLease()
517 long expTime, @Nullable String hostname) throws OutOfAddressesException { in makeNewOffer() argument
[all …]
DDhcpLease.java53 @NonNull Inet4Address netAddr, long expTime, @Nullable String hostname) { in DhcpLease() argument
58 mHostname = hostname; in DhcpLease()
100 public DhcpLease renewedLease(long expTime, @Nullable String hostname) { in renewedLease() argument
102 (hostname == null ? mHostname : hostname)); in renewedLease()
DDhcpServer.java484 final String hostname = getHostnameIfRequested(request, lease); in transmitOffer() local
490 mServingParams.getServerInet4Addr(), null /* domainName */, hostname, in transmitOffer()
502 final String hostname = getHostnameIfRequested(request, lease); in transmitAck() local
509 mServingParams.getServerInet4Addr(), null /* domainName */, hostname, in transmitAck()
DDhcpPacket.java1322 Inet4Address dhcpServerIdentifier, String domainName, String hostname, boolean metered, in buildOfferPacket() argument
1331 pkt.mHostName = hostname; in buildOfferPacket()
1349 Inet4Address dhcpServerIdentifier, String domainName, String hostname, boolean metered, in buildAckPacket() argument
1358 pkt.mHostName = hostname; in buildAckPacket()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DSSLSocketFactoryWrapper.java181 public static boolean potentiallyEnableSni(SSLSocket sslSocket, String hostname) { in potentiallyEnableSni() argument
187 sslSocket.getClass().getMethod("setHostname", String.class).invoke(sslSocket, hostname); in potentiallyEnableSni()
226 public static void verifyHostname(Socket socket, String hostname) throws IOException { in verifyHostname() argument
241 if (!HttpsURLConnection.getDefaultHostnameVerifier().verify(hostname, session)) { in verifyHostname()
242 throw new SSLPeerUnverifiedException("Cannot verify hostname: " + hostname); in verifyHostname()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java211 private synchronized List<InetAddress> getAnswer(Object mock, String hostname) { in getAnswer() argument
215 if (mAnswers.containsKey(hostname)) { in getAnswer()
216 return mAnswers.get(hostname); in getAnswer()
222 private synchronized void setAnswer(String hostname, String[] answer) in setAnswer() argument
225 mAnswers.remove(hostname); in setAnswer()
231 mAnswers.put(hostname, answerList); in setAnswer()
236 private InetAddress[] getAllByName(Object mock, String hostname) in getAllByName() argument
238 List<InetAddress> answer = getAnswer(mock, hostname); in getAllByName()
240 throw new UnknownHostException(hostname); in getAllByName()
254 String hostname = (String) invocation.getArgument(1); in startMocking()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpLeaseRepositoryTest.java111 final String hostname = "host_" + i; in requestAddresses() local
113 IPV4_ADDR_ANY /* relayAddr */, INETADDR_UNSPEC /* reqAddr */, hostname); in requestAddresses()
117 assertEquals(hostname, lease.getHostname()); in requestAddresses()
121 requestLeaseSelecting(newMac, lease.getNetAddr(), hostname); in requestAddresses()
485 @Nullable Inet4Address reqAddr, @Nullable String hostname, boolean sidSet) in requestLease() argument
489 reqAddr, sidSet, hostname); in requestLease()
496 @NonNull Inet4Address reqAddr, @Nullable String hostname) in requestLeaseSelecting() argument
498 return requestLease(macAddr, IPV4_ADDR_ANY /* clientAddr */, reqAddr, hostname, in requestLeaseSelecting()
DDhcpPacketTest.java1009 public void checkBuildOfferPacket(int leaseTimeSecs, @Nullable String hostname) in checkBuildOfferPacket() argument
1021 SERVER_ADDR /* dhcpServerIdentifier */, null /* domainName */, hostname, in checkBuildOfferPacket()
1079 if (hostname != null) { in checkBuildOfferPacket()
1080 bos.write(new byte[]{(byte) 0x0c, (byte) hostname.length()}); in checkBuildOfferPacket()
1081 bos.write(hostname.getBytes(Charset.forName("US-ASCII"))); in checkBuildOfferPacket()
DDhcpServerTest.java287 private void assertMatchesTestLease(@NonNull DhcpPacket packet, @Nullable String hostname) { in assertMatchesTestLease() argument
294 assertEquals(hostname, packet.mHostName); in assertMatchesTestLease()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiConfigHelper.java105 public static int validate(String hostname, String port, String exclList) { in validate() argument
106 Matcher match = HOSTNAME_PATTERN.matcher(hostname); in validate()
116 if (hostname.length() > 0 && port.length() == 0) { in validate()
121 if (hostname.length() == 0) { in validate()
/packages/services/BuiltInPrintService/src/com/android/bips/ui/
DAddManualPrinterDialog.java88 mHostnameView = findViewById(R.id.hostname); in onCreate()
124 String hostname = mHostnameView.getText().toString(); in updateButtonState() local
125 Matcher uriMatcher = FULL_URI_PATTERN.matcher(hostname); in updateButtonState()
DAddP2pPrinterDialog.java60 findViewById(R.id.hostname).setVisibility(View.GONE); in onCreate()
/packages/apps/Email/provider_src/com/android/email/mail/transport/
DMailTransport.java212 private static void verifyHostname(Socket socket, String hostname) throws IOException { in verifyHostname() argument
226 if (!HOSTNAME_VERIFIER.verify(hostname, session)) { in verifyHostname()
228 "Certificate hostname not useable for server: " + hostname); in verifyHostname()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupOutgoingFragment.java253 final String hostname = sendAuth.mAddress; in loadSettings() local
254 if (hostname != null) { in loadSettings()
255 mServerView.setText(hostname); in loadSettings()
DAccountSetupIncomingFragment.java392 final String hostname = recvAuth.mAddress; in loadSettings() local
393 if (hostname != null) { in loadSettings()
394 mServerView.setText(hostname); in loadSettings()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DManualDiscovery.java101 String hostname = printerUri.getHost(); in addManualPrinter() local
112 String authority = hostname + ":" + (givenPort == -1 ? uri.getPort() : givenPort); in addManualPrinter()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DMailTransport.java243 private void verifyHostname(Socket socket, String hostname) throws IOException { in verifyHostname() argument
258 if (!HOSTNAME_VERIFIER.verify(hostname, session)) { in verifyHostname()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DFakeSystemFacade.java146 public boolean isCleartextTrafficPermitted(String packageName, String hostname) { in isCleartextTrafficPermitted() argument
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java648 mPrivateDnsProviderHostname = cfg.hostname; in processMessage()
1039 && mPrivateDnsConfig.hostname.equals(mPrivateDnsProviderHostname) in isStrictModeHostnameResolved()
/packages/inputmethods/LatinIME/dictionaries/
Den_US_wordlist.combined.gz
Den_GB_wordlist.combined.gz

12