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

12345678

/frameworks/base/packages/services/Proxy/com/android/net/
H A DIProxyPortListener.aidl21 oneway void setProxyPort(int port);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DBranchFilter.java49 public void onInputPortOpen(InputPort port) { argument
50 if (port.getName().equals("input")) {
52 port.attachToOutputPort(outputPort);
54 } else if (port.getName().equals("synchronized")) {
55 port.bindToFieldNamed("mSynchronized");
56 port.setAutoPullEnabled(true);
77 for (OutputPort port : getConnectedOutputPorts()) {
78 port.setWaitsUntilAvailable(true);
81 for (OutputPort port : getConnectedOutputPorts()) {
82 port
[all...]
H A DNewChromaHistogramFilter.java70 public void onInputPortOpen(InputPort port) { argument
71 if (port.getName().equals("huebins")) {
72 port.bindToFieldNamed("mHueBins");
73 port.setAutoPullEnabled(true);
74 } else if (port.getName().equals("saturationbins")) {
75 port.bindToFieldNamed("mSaturationBins");
76 port.setAutoPullEnabled(true);
77 } else if (port.getName().equals("saturationthreshold")) {
78 port.bindToFieldNamed("mSaturationThreshold");
79 port
[all...]
H A DScaleFilter.java46 public void onInputPortOpen(InputPort port) { argument
47 if (port.getName().equals("scale")) {
48 port.bindToFieldNamed("mScale");
49 port.setAutoPullEnabled(true);
50 } else if (port.getName().equals("useMipmaps")) {
51 port.bindToFieldNamed("mUseMipmaps");
52 port.setAutoPullEnabled(true);
H A DRotateFilter.java52 public void onInputPortOpen(InputPort port) { argument
53 if (port.getName().equals("rotateAngle")) {
54 port.bindToFieldNamed("mRotateAngle");
55 port.setAutoPullEnabled(true);
56 } else if (port.getName().equals("sourceRect")) {
57 port.bindToFieldNamed("mSourceRect");
58 port.setAutoPullEnabled(true);
H A DThroughputFilter.java49 public void onInputPortOpen(InputPort port) { argument
50 if (port.getName().equals("period")) {
51 port.bindToFieldNamed("mPeriod");
53 port.attachToOutputPort(getConnectedOutputPort("frame"));
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioCollections.cpp30 for (const auto& port : *this) {
31 if (port->getTagName() == tagName) {
32 return port;
/frameworks/av/media/libstagefright/omx/
H A DSimpleSoftOMXComponent.cpp152 const PortInfo *port = local
155 memcpy(defParams, &port->mDef, sizeof(port->mDef));
184 PortInfo *port =
188 if (defParams->nBufferSize > port->mDef.nBufferSize) {
189 port->mDef.nBufferSize = defParams->nBufferSize;
192 if (defParams->nBufferCountActual < port->mDef.nBufferCountMin) {
194 port->mDef.nBufferCountMin, defParams->nBufferCountActual);
198 port->mDef.nBufferCountActual = defParams->nBufferCountActual;
216 PortInfo *port
[all...]
/frameworks/base/core/java/android/hardware/hdmi/
H A DHdmiHotplugEvent.java24 * A class that describes the HDMI port hotplug event.
41 public HdmiHotplugEvent(int port, boolean connected) { argument
42 mPort = port;
47 * Returns the port number for which the event occurred.
49 * @return port number
97 int port = p.readInt();
99 return new HdmiHotplugEvent(port, connected);
/frameworks/base/media/java/android/media/
H A DAudioDevicePortConfig.java35 this(config.port(), config.samplingRate(), config.channelMask(), config.format(),
40 * Returns the audio device port this AudioDevicePortConfig is issued from.
42 public AudioDevicePort port() { method in class:AudioDevicePortConfig
H A DAudioPortConfig.java20 * An AudioPortConfig contains a possible configuration of an audio port chosen
48 AudioPortConfig(AudioPort port, int samplingRate, int channelMask, int format, argument
50 mPort = port;
59 * Returns the audio port this AudioPortConfig is issued from.
61 public AudioPort port() { method in class:AudioPortConfig
87 * The gain configuration if this port supports gain control, null otherwise
H A DAudioMixPortConfig.java35 * Returns the audio mix port this AudioMixPortConfig is issued from.
37 public AudioMixPort port() { method in class:AudioMixPortConfig
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
H A DTestUtils.java36 public static void assertConnectionFails(SSLContext context, String host, int port) argument
39 Socket s = context.getSocketFactory().createSocket(host, port);
41 fail("Expected connection to " + host + ":" + port + " to fail.");
46 public static void assertConnectionSucceeds(SSLContext context, String host, int port) argument
48 Socket s = context.getSocketFactory().createSocket(host, port);
52 public static void assertUrlConnectionFails(SSLContext context, String host, int port) argument
54 URL url = new URL("https://" + host + ":" + port);
59 fail("Connection to " + host + ":" + port + " expected to fail");
65 public static void assertUrlConnectionSucceeds(SSLContext context, String host, int port) argument
67 URL url = new URL("https://" + host + ":" + port);
[all...]
/frameworks/opt/net/voip/src/jni/rtp/
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...]
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);
/frameworks/base/core/java/android/hardware/
H A DSerialManager.java59 * The speed of the serial port must be one of:
64 * @param name of the serial port
65 * @param speed at which to open the serial port
66 * @return the serial port
72 SerialPort port = new SerialPort(name);
73 port.open(pfd, speed);
74 return port;
76 throw new IOException("Could not open serial port " + name);
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothServerSocket.java83 * @param port remote port
87 /*package*/ BluetoothServerSocket(int type, boolean auth, boolean encrypt, int port) argument
89 mChannel = port;
90 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, port, null);
91 if (port == BluetoothAdapter.SOCKET_CHANNEL_AUTO_STATIC_NO_SDP) {
102 * @param port remote port
108 /*package*/ BluetoothServerSocket(int type, boolean auth, boolean encrypt, int port, argument
111 mChannel = port;
[all...]
/frameworks/base/core/java/android/webkit/
H A DWebMessagePort.java27 * <p>A Message port represents one endpoint of a Message Channel. In Android
33 * <p>When a message port is first created or received via transfer, it does not
37 * <p>A message port should be closed when it is not used by the embedder application
38 * anymore. A closed port cannot be transferred or cannot be reopened to send
41 * <p>When a port is transferred to JS, it cannot be used to send or receive messages
42 * at the Java side anymore. Different from HTML5 Spec, a port cannot be transferred
44 * posted on it. A transferred port cannot be closed by the application, since
65 * @param port the WebMessagePort that the message is destined for
66 * @param message the message from the entangled port.
68 public void onMessage(WebMessagePort port, WebMessag argument
[all...]
/frameworks/base/core/java/org/apache/http/conn/scheme/
H A DLayeredSocketFactory.java60 * @param port the port on the host
73 int port,
70 createSocket( Socket socket, String host, int port, boolean autoClose ) argument
/frameworks/base/media/native/midi/
H A Dmidi.cpp115 AMIDI_Port* port = new AMIDI_Port; local
116 port->state = MIDI_PORT_STATE_OPEN_IDLE;
117 port->device = device;
118 port->binderToken = portToken;
119 port->ufd = std::move(ufd);
121 *portPtr = port;
126 static status_t AMIDI_closePort(AMIDI_Port *port) { argument
128 while (!port->state.compare_exchange_weak(portState, MIDI_PORT_STATE_CLOSED)) {
134 Status txResult = port->device->server->closePort(port
153 AMIDI_Port *port = (AMIDI_Port*)outputPort; local
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DWaveTriggerFilter.java51 public void onInputPortOpen(InputPort port) { argument
52 if (port.getName().equals("trigger")) {
53 port.bindToFieldNamed("mTrigger");
54 port.setAutoPullEnabled(true);
/frameworks/opt/net/voip/src/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/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
H A DProtocolPortTuple.java51 public ProtocolPortTuple(int protocol, int port, int status) { argument
53 mPort = port;
66 int port = (int) ByteBufferReader.readInteger(payload, ByteOrder.LITTLE_ENDIAN, 2)
69 return new ProtocolPortTuple(protocol, port, status);
/frameworks/base/core/java/android/net/
H A DIpSecUdpEncapResponse.java34 public final int port; field in class:IpSecUdpEncapResponse
54 out.writeInt(port);
64 port = -1;
75 port = inPort;
82 port = in.readInt();
/frameworks/base/services/core/java/com/android/server/firewall/
H A DPortFilter.java46 int port = -1;
49 port = uri.getPort();
51 return port != -1 &&
52 (mLowerBound == NO_BOUND || mLowerBound <= port) &&
53 (mUpperBound == NO_BOUND || mUpperBound >= port);
56 public static final FilterFactory FACTORY = new FilterFactory("port") {
69 throw new XmlPullParserException("Invalid port value: " + equalsValue,
90 "Invalid minimum port value: " + lowerBoundString,
100 "Invalid maximum port value: " + upperBoundString,
106 // an empty port filte
[all...]

Completed in 7711 milliseconds

12345678