/frameworks/base/voip/jni/rtp/ |
H A D | util.cpp | 25 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 D | RtpStream.cpp | 32 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/media/libstagefright/omx/ |
H A D | SimpleSoftOMXComponent.cpp | 134 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/opengl/libs/ |
H A D | glesv2dbg.h | 32 void StartDebugServer(const unsigned short port, const bool forceUseFile,
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothServerSocket.java | 72 * @param port remote port 76 /*package*/ BluetoothServerSocket(int type, boolean auth, boolean encrypt, int port) argument 78 mChannel = port; 79 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, port, null);
|
H A D | BluetoothSocket.java | 119 * @param port remote port 125 BluetoothDevice device, int port, ParcelUuid uuid) throws IOException { 127 if (port < 1 || port > MAX_RFCOMM_CHANNEL) { 128 throw new IOException("Invalid RFCOMM channel: " + port); 132 mPort = port; 165 * @param port remote port 170 int port) throw 124 BluetoothSocket(int type, int fd, boolean auth, boolean encrypt, BluetoothDevice device, int port, ParcelUuid uuid) argument 169 BluetoothSocket(int type, int fd, boolean auth, boolean encrypt, String address, int port) argument [all...] |
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/forwarder/ |
H A D | ForwarderManager.java | 64 int port; 68 port = HTTPS_PORT; 71 port = HTTP_PORT; 76 url = new URL(protocol, HOST_IP, port, "/");
|
H A D | Forwarder.java | 28 * 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 D | ConnectionHandler.java | 96 public ConnectionHandler(String remoteMachineIp, int port, Socket fromSocket, Socket toSocket) argument 99 mPort = port;
|
/frameworks/base/voip/java/android/net/rtp/ |
H A D | RtpStream.java | 64 * 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/base/media/libstagefright/rtsp/ |
H A D | ARTPSession.h | 61 bool validateMediaFormat(size_t index, unsigned *port) const; 62 static int MakeUDPSocket(unsigned port);
|
H A D | UDPPusher.h | 29 UDPPusher(const char *filename, unsigned port);
|
H A D | ARTPSession.cpp | 65 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); 200 bool ARTPSession::validateMediaFormat(size_t index, unsigned *port) const { 230 *port = x;
|
H A D | UDPPusher.cpp | 32 UDPPusher::UDPPusher(const char *filename, unsigned port) argument 51 mRemoteAddr.sin_port = htons(port);
|
/frameworks/base/core/java/android/net/ |
H A D | WebAddress.java | 37 * 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 D | SSLCertificateSocketFactory.java | 272 public Socket createSocket(Socket k, String host, int port, boolean close) throws IOException { argument 273 OpenSSLSocketImpl s = (OpenSSLSocketImpl) getDelegate().createSocket(k, host, port, close); 304 public Socket createSocket(InetAddress addr, int port, InetAddress localAddr, int localPort) argument 307 addr, port, localAddr, localPort); 320 public Socket createSocket(InetAddress addr, int port) throws IOException { argument 321 OpenSSLSocketImpl s = (OpenSSLSocketImpl) getDelegate().createSocket(addr, port); 333 public Socket createSocket(String host, int port, InetAddress localAddr, int localPort) argument 336 host, port, localAddr, localPort); 351 public Socket createSocket(String host, int port) throws IOException { argument 352 OpenSSLSocketImpl s = (OpenSSLSocketImpl) getDelegate().createSocket(host, port); [all...] |
H A D | Proxy.java | 142 * @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 D | ProxyProperties.java | 40 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 D | SocketTest.java | 53 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 D | SSLSocketTest.java | 70 * @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/base/telephony/java/com/android/internal/telephony/ |
H A D | ApnSetting.java | 29 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 D | AdditionalTextOutput.java | 56 int port = 0; 63 port = url.getPort(); 72 output.append(protocol + ", " + host + ", " + port + "} ");
|
/frameworks/base/voip/java/android/net/sip/ |
H A D | SipProfile.java | 184 * Sets the port number of the server. By default, it is 5060. 186 * @param port port number of the server 188 * @throws IllegalArgumentException if the port number is out of range 190 public Builder setPort(int port) throws IllegalArgumentException { argument 191 if ((port > 65535) || (port < 1000)) { 192 throw new IllegalArgumentException("incorrect port arugment: " + port); 194 mProfile.mPort = port; [all...] |
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | ApnSettingTest.java | 31 assertEquals(a1.port, a2.port); 101 99, "12345", "Name", "apn", "proxy", "port", 105 "mmsc, mmsproxy, mmsport, port, 0, default | *, " +
|
/frameworks/base/core/tests/utillib/src/coretestutils/http/ |
H A D | MockWebServer.java | 68 private int port = -1; field in class:MockWebServer 71 if (port == -1) { 72 throw new IllegalStateException("Cannot retrieve port before calling play()"); 74 return port; 118 * down using the default (server-assigned) port. 128 * @param port The port number to use to listen to connections on; pass in 0 to have the 129 * server automatically assign a free port 134 port = ss.getLocalPort();
|