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

1234

/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/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/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/forwarder/
H A DForwarderManager.java64 int port;
68 port = HTTPS_PORT;
71 port = HTTP_PORT;
76 url = new URL(protocol, HOST_IP, port, "/");
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);
/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/av/media/libstagefright/rtsp/
H A DARTPSession.h61 bool validateMediaFormat(size_t index, unsigned *port) const;
62 static int MakeUDPSocket(unsigned 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;
H A DUDPPusher.h29 UDPPusher(const char *filename, unsigned port);
/frameworks/av/media/libstagefright/wifi-display/
H A DANetworkSession.h41 const char *host, unsigned port, const sp<AMessage> &notify,
45 const struct in_addr &addr, unsigned port,
63 const struct in_addr &addr, unsigned port,
114 unsigned 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 DIBluetooth.aidl80 ParcelFileDescriptor connectSocket(in BluetoothDevice device, int type, in ParcelUuid uuid, int port, int flag);
81 ParcelFileDescriptor createSocketChannel(int type, in String serviceName, in ParcelUuid uuid, int port, int flag);
/frameworks/base/core/java/android/hardware/
H A DSerialManager.java64 * The speed of the serial port must be one of:
69 * @param name of the serial port
70 * @param speed at which to open the serial port
71 * @return the serial port
77 SerialPort port = new SerialPort(name);
78 port.open(pfd, speed);
79 return port;
81 throw new IOException("Could not open serial port " + name);
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DFilter.java147 FilterPort port = getInputPort(inputName);
148 if (!port.isOpen()) {
149 port.open();
151 port.setFrame(frame);
225 throw new NullPointerException("Attempting to access input port '" + portName
230 throw new IllegalArgumentException("Unknown input port '" + portName + "' on filter "
238 throw new NullPointerException("Attempting to access output port '" + portName
243 throw new IllegalArgumentException("Unknown output port '" + portName + "' on filter "
251 if (mLogVerbose) Log.v(TAG, "Default-setting output Frame timestamp on port " + name + " to " + mCurrentTimestamp);
261 if (mLogVerbose) Log.v(TAG, "Default-setting current timestamp from input port "
[all...]
/frameworks/base/core/java/android/net/
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...]
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);
/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
988 getSessionData(String host, int port) argument
1078 getSessionData(String host, int port) argument
[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/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/
H A DAdditionalTextOutput.java56 int port = 0;
63 port = url.getPort();
72 output.append(protocol + ", " + host + ", " + port + "} ");
/frameworks/av/media/libmediaplayerservice/
H A DHDCP.h31 virtual status_t initAsync(const char *host, unsigned port);
H A DHDCP.cpp79 status_t HDCP::initAsync(const char *host, unsigned port) { argument
86 return mHDCPModule->initAsync(host, port);
/frameworks/native/include/media/hardware/
H A DHDCPAPI.h59 // on the specified port.
60 virtual status_t initAsync(const char *host, unsigned port) = 0;

Completed in 1183 milliseconds

1234