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

12

/frameworks/base/voip/jni/rtp/
H A Dutil.cpp25 int parse(JNIEnv *env, jstring jAddress, int port, sockaddr_storage *ss) argument
31 if (port < 0 || port > 65535) {
32 jniThrowException(env, "java/lang/IllegalArgumentException", "port");
45 sin->sin_port = htons(port);
53 sin6->sin6_port = htons(port);
H A DRtpStream.cpp32 extern int parse(JNIEnv *env, jstring jAddress, int port, sockaddr_storage *ss);
59 uint16_t port = ntohs(*p); local
60 if ((port & 1) == 0) {
62 return port;
68 uint16_t delta = port << 1;
69 ++port;
73 port += delta;
74 } while (port < 1024);
75 *p = htons(port);
79 return port;
[all...]
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/forwarder/
H A DForwarder.java28 * A port forwarding server. Listens on localhost on specified port and forwards the tcp
41 public Forwarder(int port, String remoteMachineIpAddress) { argument
42 mPort = port;
48 Log.i(LOG_TAG, "start(): Starting fowarder on port: " + mPort);
H A DConnectionHandler.java96 public ConnectionHandler(String remoteMachineIp, int port, Socket fromSocket, Socket toSocket) argument
99 mPort = port;
/frameworks/av/media/libstagefright/omx/
H A DSimpleSoftOMXComponent.cpp134 const PortInfo *port = local
137 memcpy(defParams, &port->mDef, sizeof(port->mDef));
161 PortInfo *port =
164 if (defParams->nBufferSize != port->mDef.nBufferSize) {
165 CHECK_GE(defParams->nBufferSize, port->mDef.nBufferSize);
166 port->mDef.nBufferSize = defParams->nBufferSize;
170 != port->mDef.nBufferCountActual) {
172 port->mDef.nBufferCountMin);
174 port
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DUDPPusher.cpp32 UDPPusher::UDPPusher(const char *filename, unsigned port) argument
51 mRemoteAddr.sin_port = htons(port);
H A DARTPSession.cpp65 unsigned port; local
66 if (!validateMediaFormat(i, &port) || (port & 1) != 0) {
77 int rtpSocket = MakeUDPSocket(port);
78 int rtcpSocket = MakeUDPSocket(port + 1);
100 int ARTPSession::MakeUDPSocket(unsigned port) { argument
108 addr.sin_port = htons(port);
198 bool ARTPSession::validateMediaFormat(size_t index, unsigned *port) const {
228 *port = x;
/frameworks/av/media/libmediaplayerservice/
H A DHDCP.cpp79 status_t HDCP::initAsync(const char *host, unsigned port) { argument
86 return mHDCPModule->initAsync(host, port);
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothServerSocket.java80 * @param port remote port
84 /*package*/ BluetoothServerSocket(int type, boolean auth, boolean encrypt, int port) argument
86 mChannel = port;
87 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, port, null);
H A DBluetoothSocket.java144 * @param port remote port
150 BluetoothDevice device, int port, ParcelUuid uuid) throws IOException {
152 if (port < 1 || port > MAX_RFCOMM_CHANNEL) {
153 throw new IOException("Invalid RFCOMM channel: " + port);
163 mPort = port;
211 * @param port remote port
216 int port) throw
149 BluetoothSocket(int type, int fd, boolean auth, boolean encrypt, BluetoothDevice device, int port, ParcelUuid uuid) argument
215 BluetoothSocket(int type, int fd, boolean auth, boolean encrypt, String address, int port) argument
[all...]
/frameworks/av/media/libmedia/
H A DIHDCP.cpp70 virtual status_t initAsync(const char *host, unsigned port) { argument
74 data.writeInt32(port);
161 unsigned port = data.readInt32(); local
163 reply->writeInt32(initAsync(host, port));
/frameworks/base/core/java/android/net/
H A DProxyProperties.java40 public ProxyProperties(String host, int port, String exclList) { argument
42 mPort = port;
46 private ProxyProperties(String host, int port, String exclList, String[] parsedExclList) { argument
48 mPort = port;
202 int port = 0;
205 port = in.readInt();
210 new ProxyProperties(host, port, exclList, parsedExclList);
H A DWebAddress.java37 * If given an https scheme but no port, fills in port
58 /* port */ "(?:\\:([0-9]*))?" +
91 throw new ParseException("Bad port");
110 /* Get port from scheme or scheme from port, if necessary and
125 String port = "";
128 port = ":" + Integer.toString(mPort);
135 return mScheme + "://" + authInfo + mHost + port + mPath;
154 public void setPort(int port) { argument
[all...]
H A DProxy.java142 * @deprecated Use standard java vm proxy values to find the host, port
156 * Return the proxy port set by the user.
157 * @param ctx A Context used to get the settings for the proxy port.
158 * @return The port number to use or -1 if no proxy is to be used.
159 * @deprecated Use standard java vm proxy values to find the host, port
176 * @deprecated Use standard java vm proxy values to find the host, port and
187 * Return the default proxy port specified by the carrier.
188 * @return The port number to be used with the proxy host or -1 if there is
190 * @deprecated Use standard java vm proxy values to find the host, port and
246 * Validate syntax of hostname, port an
249 validate(String hostname, String port, String exclList) argument
337 setHttpProxySystemProperty(String host, String port, String exclList) argument
[all...]
H A DSSLCertificateSocketFactory.java377 public Socket createSocket(Socket k, String host, int port, boolean close) throws IOException { argument
378 OpenSSLSocketImpl s = (OpenSSLSocketImpl) getDelegate().createSocket(k, host, port, close);
411 public Socket createSocket(InetAddress addr, int port, InetAddress localAddr, int localPort) argument
414 addr, port, localAddr, localPort);
428 public Socket createSocket(InetAddress addr, int port) throws IOException { argument
429 OpenSSLSocketImpl s = (OpenSSLSocketImpl) getDelegate().createSocket(addr, port);
442 public Socket createSocket(String host, int port, InetAddress localAddr, int localPort) argument
445 host, port, localAddr, localPort);
461 public Socket createSocket(String host, int port) throws IOException { argument
462 OpenSSLSocketImpl s = (OpenSSLSocketImpl) getDelegate().createSocket(host, port);
[all...]
/frameworks/base/keystore/java/android/security/
H A DKeyChain.java111 public static final String EXTRA_PORT = "port";
219 * <p>{@code host} and {@code port} may be used to give the user
237 * @param port The port number of the server requesting the
244 String host, int port,
271 intent.putExtra(EXTRA_PORT, port);
242 choosePrivateKeyAlias(Activity activity, KeyChainAliasCallback response, String[] keyTypes, Principal[] issuers, String host, int port, String alias) argument
/frameworks/base/services/java/com/android/server/wm/
H A DViewServer.java43 * The default port used to start view servers.
77 * specified local port. The server is not started by default.
80 * @param port The port for the server to listen to.
84 ViewServer(WindowManagerService windowManager, int port) { argument
86 mPort = port;
105 mThread = new Thread(this, "Remote View Server [port=" + mPort + "]");
/frameworks/base/voip/java/android/net/rtp/
H A DRtpStream.java64 * port is assigned automatically to conform with RFC 3550.
85 * Returns the network port of the local host.
100 * Returns the network port of the remote host or {@code -1} if the stream
147 * @param port The network port of the remote host.
149 * port is invalid.
153 public void associate(InetAddress address, int port) { argument
161 if (port < 0 || port > 65535) {
162 throw new IllegalArgumentException("Invalid port");
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DApnSetting.java29 public final String port; field in class:ApnSetting
55 String proxy, String port,
64 this.port = port;
87 * <carrier>, <apn>, <proxy>, <port>, <mmsc>, <mmsproxy>,
92 * [ApnSettingV2] <carrier>, <apn>, <proxy>, <port>, <mmsc>, <mmsproxy>,
166 .append(", ").append(port)
54 ApnSetting(int id, String numeric, String carrier, String apn, String proxy, String port, String mmsc, String mmsProxy, String mmsPort, String user, String password, int authType, String[] types, String protocol, String roamingProtocol, boolean carrierEnabled, int bearer) argument
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/
H A DSoftMPEG4.cpp209 if (profileLevel->nPortIndex != 0) { // Input port only
210 ALOGE("Invalid port index: %ld", profileLevel->nPortIndex);
324 PortInfo *port = editPortInfo(1); local
327 port->mBuffers.editItemAt(mNumSamplesOutput & 1).mHeader;
408 PortInfo *port = editPortInfo(1); local
409 OMX_BUFFERHEADERTYPE *outHeader = port->mBuffers.editItemAt(1).mHeader;
/frameworks/base/wifi/java/android/net/wifi/p2p/
H A DWifiP2pWfdInfo.java125 public void setControlPort(int port) { argument
126 mCtrlPort = port;
/frameworks/av/media/libstagefright/wifi-display/sink/
H A DWifiDisplaySink.cpp60 const char *url, AString *host, int32_t *port, AString *path,
63 *port = 0;
110 *port = x;
116 *port = 554;
373 ALOGW("Server picked an odd numbered RTP port.");
59 ParseURL( const char *url, AString *host, int32_t *port, AString *path, AString *user, AString *pass) argument
/frameworks/base/tests/CoreTests/android/core/
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
988 getSessionData(String host, int port) argument
1078 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/voip/java/android/net/sip/
H A DSimpleSessionDescription.java114 * @param port The first transport port used by this media.
118 public Media newMedia(String type, int port, int portCount, argument
120 Media media = new Media(type, port, portCount, protocol);
244 private Media(String type, int port, int portCount, String protocol) { argument
247 mPort = port;
260 * Returns the first transport port used by this media.

Completed in 228 milliseconds

12