Searched refs:port (Results 1 - 25 of 31) sorted by relevance

12

/frameworks/base/core/java/android/bluetooth/
H A DBluetoothServerSocket.java71 * @param port remote port
75 /*package*/ BluetoothServerSocket(int type, boolean auth, boolean encrypt, int port) argument
77 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, port, null);
H A DBluetoothSocket.java113 * @param port remote port
119 BluetoothDevice device, int port, ParcelUuid uuid) throws IOException {
121 if (port < 1 || port > MAX_RFCOMM_CHANNEL) {
122 throw new IOException("Invalid RFCOMM channel: " + port);
126 mPort = port;
159 * @param port remote port
164 int port) throw
118 BluetoothSocket(int type, int fd, boolean auth, boolean encrypt, BluetoothDevice device, int port, ParcelUuid uuid) argument
163 BluetoothSocket(int type, int fd, boolean auth, boolean encrypt, String address, int port) argument
[all...]
H A DBluetoothDevice.java691 * @param port remote port
697 public BluetoothSocket createInsecureRfcommSocket(int port) throws IOException { argument
698 return new BluetoothSocket(BluetoothSocket.TYPE_RFCOMM, -1, false, false, this, port,
H A DBluetoothAdapter.java792 public BluetoothServerSocket listenUsingInsecureRfcommOn(int port) throws IOException { argument
794 BluetoothSocket.TYPE_RFCOMM, false, false, port);
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
H A DApnSetting.java28 String port; field in class:ApnSetting
40 public ApnSetting(int id, String numeric, String carrier, String apn, String proxy, String port, argument
48 this.port = port;
61 // data[3] = port
97 .append(", ").append(port)
H A DGsmDataConnection.java90 + "' proxy: '" + apn.proxy + "' port: '" + apn.port);
92 setHttpProxy (apn.proxy, apn.port);
214 httpPort = "8080"; // Default to port 8080
/frameworks/base/core/java/android/net/
H A DSSLCertificateSocketFactory.java254 public Socket createSocket(Socket k, String host, int port, boolean close) throws IOException { argument
255 OpenSSLSocketImpl s = (OpenSSLSocketImpl) getDelegate().createSocket(k, host, port, close);
286 public Socket createSocket(InetAddress addr, int port, InetAddress localAddr, int localPort) argument
289 addr, port, localAddr, localPort);
302 public Socket createSocket(InetAddress addr, int port) throws IOException { argument
303 OpenSSLSocketImpl s = (OpenSSLSocketImpl) getDelegate().createSocket(addr, port);
315 public Socket createSocket(String host, int port, InetAddress localAddr, int localPort) argument
318 host, port, localAddr, localPort);
333 public Socket createSocket(String host, int port) throws IOException { argument
334 OpenSSLSocketImpl s = (OpenSSLSocketImpl) getDelegate().createSocket(host, port);
[all...]
H A DWebAddress.java37 * If given an https scheme but no port, fills in port
60 /* port */ "(?:\\:([0-9]*))?" +
93 throw new ParseException("Bad port");
112 /* Get port from scheme or scheme from port, if necessary and
126 String port = "";
129 port = ":" + Integer.toString(mPort);
136 return mScheme + "://" + authInfo + mHost + port + mPath;
/frameworks/base/tests/CoreTests/android/core/
H A DSocketTest.java53 int port;
59 for (port = 9900; port < 9999; port++) {
61 ss.bind(new InetSocketAddress("127.0.0.1", port));
73 s = new Socket("127.0.0.1", port);
217 * ip 209.85.129.147 (one address of www.google.com) on port 80 (http) is
H A DSSLSocketTest.java70 * @param port The port the request is being sent to.
78 private void fetch(SSLSocketFactory socketFactory, String host, int port, argument
81 InetSocketAddress address = new InetSocketAddress(host, port);
180 private void fetch(String host, int port, boolean secure, String path, argument
183 fetch(clientFactory, host, port, secure, path, outerLoop, innerLoop,
617 * port, requests client authentication (if specified), and read 256 bytes
632 private int port; field in class:SSLSocketTest.TestServer
638 public TestServer(int port, boolean provideKeys, int clientAuth) { argument
639 this.port
711 private int port; field in class:SSLSocketTest.TestClient
715 TestClient(int port, boolean provideKeys) argument
985 getSessionData(String host, int port) argument
1073 getSessionData(String host, int port) argument
[all...]
H A DDatagramTest.java86 * Creates a new Relfector object for the given local address and port.
88 public Reflector(int port, InetAddress address) { argument
91 socket = new DatagramSocket(port, address);
H A DTestWebServer.java53 /* Default port for this server to listen on */
73 /* Server port */
103 * Initialize a new server with default port and timeout.
112 * @param port Sets the server to listen on this port
115 public void initServer(int port, boolean log) throws Exception { argument
116 initServer(port, DEFAULT_TIMEOUT, log);
120 * Initialize a new server with default port and timeout.
121 * @param port Sets the server to listen on this port
126 initServer(int port, int timeout, boolean log) argument
[all...]
H A DDatabaseSessionCache.java44 * Key is host:port - port is not optional.
225 public byte[] getSessionData(String host, int port) { argument
273 String key = host + ":" + port;
/frameworks/base/media/libstagefright/
H A DHTTPDataSource.cpp35 int port = mStartingPort; local
37 LOGV("Connecting to host '%s', port %d, path '%s'",
38 host.c_str(), port, path.c_str());
49 status_t err = mHttp->connect(host.c_str(), port);
120 port = (tmp >= 0 && tmp < 65536) ? (int)tmp : 80;
124 port = 80;
131 mStartingPort = port;
159 int port; local
172 port = 80;
178 port
190 HTTPDataSource( const char *_host, int port, const char *_path, const KeyedVector<String8, String8> *headers) argument
[all...]
H A DHTTPStream.cpp50 status_t HTTPStream::connect(const char *server, int port) { argument
81 addr.sin_port = htons(port);
/frameworks/base/media/libstagefright/include/
H A DHTTPStream.h36 status_t connect(const char *server, int port = 80);
/frameworks/base/include/media/stagefright/
H A DHTTPDataSource.h32 const char *host, int port, const char *path,
/frameworks/base/packages/VpnServices/src/com/android/server/vpn/
H A DVpnDaemons.java119 String serverIp, String port, String secret, String username,
122 args.addAll(Arrays.asList(protocol, serverIp, port));
118 startMtpd(String protocol, String serverIp, String port, String secret, String username, String password, boolean encryption) argument
H A DVpnService.java357 int port = 80; // arbitrary
358 s.connect(InetAddress.getByName(serverIp), port);
/frameworks/base/services/java/com/android/server/
H A DViewServer.java40 * The default port used to start view servers.
66 * The server uses the default port {@link #VIEW_SERVER_DEFAULT_PORT}. The server
79 * specified local port. The server is not started by default.
82 * @param port The port for the server to listen to.
86 ViewServer(WindowManagerService windowManager, int port) { argument
88 mPort = port;
107 mThread = new Thread(this, "Remote View Server [port=" + mPort + "]");
/frameworks/base/core/java/android/content/
H A DIntentFilter.java128 private static final String PORT_STR = "port";
197 * authority host and port.
633 public AuthorityEntry(String host, String port) { argument
637 mPort = port != null ? Integer.parseInt(port) : -1;
713 * @param port Optional port part of the authority to match. If null, any
714 * port is allowed.
719 public final void addDataAuthority(String host, String port) { argument
722 if (port !
[all...]
/frameworks/base/core/java/android/view/
H A DIWindowManager.aidl44 boolean startViewServer(int port); // Transaction #1
/frameworks/base/core/java/com/android/internal/app/
H A DResolverActivity.java153 int port = a.getPort();
155 port >= 0 ? Integer.toString(port) : null);
/frameworks/base/core/jni/
H A Dandroid_location_GpsLocationProvider.cpp477 jint type, jstring hostname, jint port)
484 sAGpsInterface->set_server(type, c_hostname, port);
476 android_location_GpsLocationProvider_set_agps_server(JNIEnv* env, jobject obj, jint type, jstring hostname, jint port) argument
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DSMSDispatcher.java631 // The messages were sent to a port, so concoct a URI for it
635 // The messages were not sent to a port
653 * Dispatches port addressed PDUs to interested applications
656 * @param port The destination port of the messages
658 protected void dispatchPortAddressedPdus(byte[][] pdus, int port) { argument
659 Uri uri = Uri.parse("sms://localhost:" + port);
666 * Send a data based SMS to a specific application port.
671 * @param destPort the port to deliver the message to

Completed in 178 milliseconds

12