/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/tests/DumpRenderTree2/src/com/android/dumprendertree2/forwarder/ |
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/av/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/av/media/libstagefright/rtsp/ |
H A D | UDPPusher.cpp | 32 UDPPusher::UDPPusher(const char *filename, unsigned port) argument 51 mRemoteAddr.sin_port = htons(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); 198 bool ARTPSession::validateMediaFormat(size_t index, unsigned *port) const { 228 *port = x;
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothServerSocket.java | 78 * @param port remote port 82 /*package*/ BluetoothServerSocket(int type, boolean auth, boolean encrypt, int port) argument 84 mChannel = port; 85 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, port, null);
|
H A D | BluetoothSocket.java | 125 * @param port remote port 131 BluetoothDevice device, int port, ParcelUuid uuid) throws IOException { 133 if (port < 1 || port > MAX_RFCOMM_CHANNEL) { 134 throw new IOException("Invalid RFCOMM channel: " + port); 138 mPort = port; 171 * @param port remote port 176 int port) throw 130 BluetoothSocket(int type, int fd, boolean auth, boolean encrypt, BluetoothDevice device, int port, ParcelUuid uuid) argument 175 BluetoothSocket(int type, int fd, boolean auth, boolean encrypt, String address, int port) argument [all...] |
/frameworks/av/media/libaah_rtp/ |
H A D | aah_rx_player.cpp | 91 uint16_t port; local 101 if (5 != sscanf(url, "%*[^:/]://%u.%u.%u.%u:%hu", &a, &b, &c, &d, &port)) { 106 if ((a > 255) || (b > 255) || (c > 255) || (d > 255) || (port == 0)) { 111 ALOGI("setDataSource :: %u.%u.%u.%u:%hu", a, b, c, d, port); 117 listen_addr_.sin_port = htons(port);
|
H A D | aah_tx_sender.h | 60 // an IP address and port 67 uint16_t port; member in struct:android::AAH_TXSender::Endpoint
|
/frameworks/base/core/java/android/net/ |
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);
|
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 | 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 | SSLCertificateSocketFactory.java | 327 public Socket createSocket(Socket k, String host, int port, boolean close) throws IOException { argument 328 OpenSSLSocketImpl s = (OpenSSLSocketImpl) getDelegate().createSocket(k, host, port, close); 361 public Socket createSocket(InetAddress addr, int port, InetAddress localAddr, int localPort) argument 364 addr, port, localAddr, localPort); 378 public Socket createSocket(InetAddress addr, int port) throws IOException { argument 379 OpenSSLSocketImpl s = (OpenSSLSocketImpl) getDelegate().createSocket(addr, port); 392 public Socket createSocket(String host, int port, InetAddress localAddr, int localPort) argument 395 host, port, localAddr, localPort); 411 public Socket createSocket(String host, int port) throws IOException { argument 412 OpenSSLSocketImpl s = (OpenSSLSocketImpl) getDelegate().createSocket(host, port); [all...] |
/frameworks/base/keystore/java/android/security/ |
H A D | KeyChain.java | 115 public static final String EXTRA_PORT = "port"; 223 * <p>{@code host} and {@code port} may be used to give the user 241 * @param port The port number of the server requesting the 248 String host, int port, 275 intent.putExtra(EXTRA_PORT, port); 246 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 D | ViewServer.java | 43 * 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/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/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/av/media/libstagefright/codecs/m4v_h263/dec/ |
H A D | SoftMPEG4.cpp | 209 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/tests/CoreTests/android/core/ |
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...] |
H A D | TestWebServer.java | 53 /* 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 D | SimpleSessionDescription.java | 113 * @param port The first transport port used by this media. 117 public Media newMedia(String type, int port, int portCount, argument 119 Media media = new Media(type, port, portCount, protocol); 243 private Media(String type, int port, int portCount, String protocol) { argument 246 mPort = port; 259 * Returns the first transport port used by this media.
|
H A D | SipProfile.java | 191 * Sets the port number of the server. By default, it is 5060. 193 * @param port port number of the server 195 * @throws IllegalArgumentException if the port number is out of range 197 public Builder setPort(int port) throws IllegalArgumentException { argument 198 if ((port > 65535) || (port < 1000)) { 199 throw new IllegalArgumentException("incorrect port arugment: " + port); 201 mProfile.mPort = port; [all...] |
/frameworks/base/voip/java/com/android/server/sip/ |
H A D | SipHelper.java | 160 String ip, int port) throws ParseException, 166 ip, port); 186 String ip, int port) throws ParseException { 189 uri.setPort(port); 321 // in resolving the initiator's NAT port mapping for relaying the 159 createContactHeader(SipProfile profile, String ip, int port) argument 185 createSipUri(String username, String transport, String ip, int port) argument
|