Searched defs:port (Results 1 - 21 of 21) sorted by relevance

/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 DBluetoothAdapter.java792 public BluetoothServerSocket listenUsingInsecureRfcommOn(int port) throws IOException { argument
794 BluetoothSocket.TYPE_RFCOMM, false, false, port);
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,
/frameworks/base/tests/CoreTests/android/core/
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 DDatabaseSessionCache.java44 * Key is host:port - port is not optional.
225 public byte[] getSessionData(String host, int port) { argument
273 String key = host + ":" + port;
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 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...]
/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 + "]");
H A DWindowManagerService.java4634 * Starts the view server on the specified port.
4636 * @param port The port to listener to.
4643 public boolean startViewServer(int port) { argument
4652 if (port < 1024) {
4668 mViewServer = new ViewServer(this, 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)
/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 DUri.java196 * {@code [ userinfo '@' ] host [ ':' port ]}
207 * {@code [ userinfo '@' ] host [ ':' port ]}
243 * Gets the port from the authority for this URI. For example,
246 * @return the port for this URI or -1 if invalid or not present
318 * default port explicitly and the other leaves it implicit, they will not
1036 // Parse out user info and then port.
1047 private volatile int port = NOT_CALCULATED; field in class:Uri.AbstractHierarchicalUri
1050 return port == NOT_CALCULATED
1051 ? port = parsePort()
1052 : port;
[all...]
/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/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
/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/os/
H A DDebug.java280 * Change the JDWP port.
285 public static void changeDebugPort(int port) {} argument
/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
/frameworks/base/location/java/com/android/internal/location/
H A DGpsLocationProvider.java1467 private native void native_set_agps_server(int type, String hostname, int port); argument

Completed in 381 milliseconds