/frameworks/av/media/libstagefright/omx/ |
D | SimpleSoftOMXComponent.cpp | 153 const PortInfo *port = in internalGetParameter() local 156 memcpy(defParams, &port->mDef, sizeof(port->mDef)); in internalGetParameter() 185 PortInfo *port = in internalSetParameter() local 189 if (defParams->nBufferSize > port->mDef.nBufferSize) { in internalSetParameter() 190 port->mDef.nBufferSize = defParams->nBufferSize; in internalSetParameter() 193 if (defParams->nBufferCountActual < port->mDef.nBufferCountMin) { in internalSetParameter() 195 port->mDef.nBufferCountMin, defParams->nBufferCountActual); in internalSetParameter() 199 port->mDef.nBufferCountActual = defParams->nBufferCountActual; in internalSetParameter() 232 PortInfo *port = &mPorts.editItemAt(portIndex); in useBuffer() local 233 if (size < port->mDef.nBufferSize) { in useBuffer() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | NewChromaHistogramFilter.java | 70 public void onInputPortOpen(InputPort port) { in onInputPortOpen() argument 71 if (port.getName().equals("huebins")) { in onInputPortOpen() 72 port.bindToFieldNamed("mHueBins"); in onInputPortOpen() 73 port.setAutoPullEnabled(true); in onInputPortOpen() 74 } else if (port.getName().equals("saturationbins")) { in onInputPortOpen() 75 port.bindToFieldNamed("mSaturationBins"); in onInputPortOpen() 76 port.setAutoPullEnabled(true); in onInputPortOpen() 77 } else if (port.getName().equals("saturationthreshold")) { in onInputPortOpen() 78 port.bindToFieldNamed("mSaturationThreshold"); in onInputPortOpen() 79 port.setAutoPullEnabled(true); in onInputPortOpen() [all …]
|
D | BranchFilter.java | 49 public void onInputPortOpen(InputPort port) { in onInputPortOpen() argument 50 if (port.getName().equals("input")) { in onInputPortOpen() 52 port.attachToOutputPort(outputPort); in onInputPortOpen() 54 } else if (port.getName().equals("synchronized")) { in onInputPortOpen() 55 port.bindToFieldNamed("mSynchronized"); in onInputPortOpen() 56 port.setAutoPullEnabled(true); in onInputPortOpen() 77 for (OutputPort port : getConnectedOutputPorts()) { in updateSynchronization() 78 port.setWaitsUntilAvailable(true); in updateSynchronization() 81 for (OutputPort port : getConnectedOutputPorts()) { in updateSynchronization() 82 port.setWaitsUntilAvailable(false); in updateSynchronization()
|
D | CropFilter.java | 62 public void onInputPortOpen(InputPort port) { in onInputPortOpen() argument 63 if (port.getName().equals("cropRect")) { in onInputPortOpen() 64 port.bindToFieldNamed("mCropRect"); in onInputPortOpen() 65 port.setAutoPullEnabled(true); in onInputPortOpen() 66 } else if (port.getName().equals("outputWidth")) { in onInputPortOpen() 67 port.bindToFieldNamed("mOutputWidth"); in onInputPortOpen() 68 port.setAutoPullEnabled(true); in onInputPortOpen() 69 } else if (port.getName().equals("outputHeight")) { in onInputPortOpen() 70 port.bindToFieldNamed("mOutputHeight"); in onInputPortOpen() 71 port.setAutoPullEnabled(true); in onInputPortOpen() [all …]
|
D | ScaleFilter.java | 46 public void onInputPortOpen(InputPort port) { in onInputPortOpen() argument 47 if (port.getName().equals("scale")) { in onInputPortOpen() 48 port.bindToFieldNamed("mScale"); in onInputPortOpen() 49 port.setAutoPullEnabled(true); in onInputPortOpen() 50 } else if (port.getName().equals("useMipmaps")) { in onInputPortOpen() 51 port.bindToFieldNamed("mUseMipmaps"); in onInputPortOpen() 52 port.setAutoPullEnabled(true); in onInputPortOpen()
|
D | ViewFilter.java | 121 protected void connectViewInputs(InputPort port) { in connectViewInputs() argument 122 if (port.getName().equals("scaleMode")) { in connectViewInputs() 123 port.bindToListener(mScaleModeListener); in connectViewInputs() 124 port.setAutoPullEnabled(true); in connectViewInputs() 125 } else if (port.getName().equals("flip")) { in connectViewInputs() 126 port.bindToFieldNamed("mFlipVertically"); in connectViewInputs() 127 port.setAutoPullEnabled(true); in connectViewInputs() 142 public void onFrameReceived(InputPort port, Frame frame) {
|
D | RotateFilter.java | 52 public void onInputPortOpen(InputPort port) { in onInputPortOpen() argument 53 if (port.getName().equals("rotateAngle")) { in onInputPortOpen() 54 port.bindToFieldNamed("mRotateAngle"); in onInputPortOpen() 55 port.setAutoPullEnabled(true); in onInputPortOpen() 56 } else if (port.getName().equals("sourceRect")) { in onInputPortOpen() 57 port.bindToFieldNamed("mSourceRect"); in onInputPortOpen() 58 port.setAutoPullEnabled(true); in onInputPortOpen()
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | RtpStream.cpp | 32 extern int parse(JNIEnv *env, jstring jAddress, int port, sockaddr_storage *ss); 59 uint16_t port = ntohs(*p); in create() local 60 if ((port & 1) == 0) { in create() 62 return port; in create() 68 uint16_t delta = port << 1; in create() 69 ++port; in create() 73 port += delta; in create() 74 } while (port < 1024); in create() 75 *p = htons(port); in create() 79 return port; in create()
|
D | util.cpp | 25 int parse(JNIEnv *env, jstring jAddress, int port, sockaddr_storage *ss) in parse() argument 31 if (port < 0 || port > 65535) { in parse() 45 sin->sin_port = htons(port); in parse() 53 sin6->sin6_port = htons(port); in parse()
|
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
D | TestUtils.java | 36 public static void assertConnectionFails(SSLContext context, String host, int port) in assertConnectionFails() argument 39 Socket s = context.getSocketFactory().createSocket(host, port); in assertConnectionFails() 41 fail("Expected connection to " + host + ":" + port + " to fail."); in assertConnectionFails() 46 public static void assertConnectionSucceeds(SSLContext context, String host, int port) in assertConnectionSucceeds() argument 48 Socket s = context.getSocketFactory().createSocket(host, port); in assertConnectionSucceeds() 52 public static void assertUrlConnectionFails(SSLContext context, String host, int port) in assertUrlConnectionFails() argument 54 URL url = new URL("https://" + host + ":" + port); in assertUrlConnectionFails() 59 fail("Connection to " + host + ":" + port + " expected to fail"); in assertUrlConnectionFails() 65 public static void assertUrlConnectionSucceeds(SSLContext context, String host, int port) in assertUrlConnectionSucceeds() argument 67 URL url = new URL("https://" + host + ":" + port); in assertUrlConnectionSucceeds()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | Filter.java | 145 FilterPort port = getInputPort(inputName); in setInputFrame() local 146 if (!port.isOpen()) { in setInputFrame() 147 port.open(); in setInputFrame() 149 port.setFrame(frame); in setInputFrame() 314 InputPort port = new StreamPort(this, name); in addMaskedInputPort() local 315 if (mLogVerbose) Log.v(TAG, "Filter " + this + " adding " + port); in addMaskedInputPort() 316 mInputPorts.put(name, port); in addMaskedInputPort() 317 port.setPortFormat(formatMask); in addMaskedInputPort() 330 OutputPort port = new OutputPort(this, name); in addOutputPort() local 331 if (mLogVerbose) Log.v(TAG, "Filter " + this + " adding " + port); in addOutputPort() [all …]
|
/frameworks/base/core/java/android/net/ |
D | Proxy.java | 220 public static int validate(String hostname, String port, String exclList) { in validate() argument 228 if (hostname.length() > 0 && port.length() == 0) return PROXY_PORT_EMPTY; in validate() 230 if (port.length() > 0) { in validate() 234 portVal = Integer.parseInt(port); in validate() 247 String port = null; in setHttpProxySystemProperty() local 252 port = Integer.toString(p.getPort()); in setHttpProxySystemProperty() 256 setHttpProxySystemProperty(host, port, exclList, pacFileUrl); in setHttpProxySystemProperty() 260 public static final void setHttpProxySystemProperty(String host, String port, String exclList, in setHttpProxySystemProperty() argument 263 if (false) Log.d(TAG, "setHttpProxySystemProperty :"+host+":"+port+" - "+exclList); in setHttpProxySystemProperty() 271 if (port != null) { in setHttpProxySystemProperty() [all …]
|
D | ProxyInfo.java | 66 public static ProxyInfo buildDirectProxy(String host, int port) { in buildDirectProxy() argument 67 return new ProxyInfo(host, port, null); in buildDirectProxy() 79 public static ProxyInfo buildDirectProxy(String host, int port, List<String> exclList) { in buildDirectProxy() argument 81 return new ProxyInfo(host, port, TextUtils.join(",", array), array); in buildDirectProxy() 97 public static ProxyInfo buildPacProxy(@NonNull Uri pacUrl, int port) { in buildPacProxy() argument 98 return new ProxyInfo(pacUrl, port); in buildPacProxy() 106 public ProxyInfo(String host, int port, String exclList) { in ProxyInfo() argument 108 mPort = port; in ProxyInfo() 152 private ProxyInfo(String host, int port, String exclList, String[] parsedExclList) { in ProxyInfo() argument 154 mPort = port; in ProxyInfo() [all …]
|
D | IpSecUdpEncapResponse.java | 34 public final int port; field in IpSecUdpEncapResponse 54 out.writeInt(port); in writeToParcel() 64 port = -1; in IpSecUdpEncapResponse() 75 port = inPort; in IpSecUdpEncapResponse() 82 port = in.readInt(); in IpSecUdpEncapResponse()
|
/frameworks/base/wifi/java/android/net/wifi/aware/ |
D | WifiAwareNetworkSpecifier.java | 132 public final int port; field in WifiAwareNetworkSpecifier 159 byte[] peerMac, byte[] pmk, String passphrase, int port, int transportProtocol, in WifiAwareNetworkSpecifier() argument 169 this.port = port; in WifiAwareNetworkSpecifier() 223 dest.writeInt(port); in writeToParcel() 242 Arrays.hashCode(pmk), passphrase, port, transportProtocol, requestorUid); in hashCode() 266 && port == lhs.port in equals() 286 .append(", port=").append(port).append(", transportProtocol=") in toString() 379 public @NonNull Builder setPort(@IntRange(from = 0, to = 65535) int port) { in setPort() 380 if (port <= 0 || port > 65535) { in setPort() 383 mPort = port; in setPort()
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothServerSocket.java | 97 /*package*/ BluetoothServerSocket(int type, boolean auth, boolean encrypt, int port) in BluetoothServerSocket() argument 99 mChannel = port; in BluetoothServerSocket() 100 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, port, null); in BluetoothServerSocket() 101 if (port == BluetoothAdapter.SOCKET_CHANNEL_AUTO_STATIC_NO_SDP) { in BluetoothServerSocket() 118 /*package*/ BluetoothServerSocket(int type, boolean auth, boolean encrypt, int port, in BluetoothServerSocket() argument 121 mChannel = port; in BluetoothServerSocket() 122 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, port, null, mitm, in BluetoothServerSocket() 124 if (port == BluetoothAdapter.SOCKET_CHANNEL_AUTO_STATIC_NO_SDP) { in BluetoothServerSocket()
|
/frameworks/av/media/libaaudio/src/flowgraph/ |
D | AudioProcessorBase.h | 166 void connect(AudioFloatInputPort *port); 172 void disconnect(AudioFloatInputPort *port); 216 void connect(AudioFloatOutputPort *port) { in connect() argument 217 assert(getSamplesPerFrame() == port->getSamplesPerFrame()); in connect() 218 mConnected = port; in connect() 221 void disconnect(AudioFloatOutputPort *port) { in disconnect() argument 222 assert(mConnected == port); in disconnect() 223 (void) port; in disconnect()
|
/frameworks/base/core/java/android/hardware/usb/ |
D | ParcelableUsbPort.java | 58 public static @NonNull ParcelableUsbPort of(@NonNull UsbPort port) { in of() argument 59 return new ParcelableUsbPort(port.getId(), port.getSupportedModes(), in of() 60 port.getSupportedContaminantProtectionModes(), in of() 61 port.supportsEnableContaminantPresenceProtection(), in of() 62 port.supportsEnableContaminantPresenceDetection()); in of()
|
/frameworks/av/media/libstagefright/rtsp/ |
D | ARTPSession.cpp | 65 unsigned port; in setup() local 66 if (!validateMediaFormat(i, &port) || (port & 1) != 0) { in setup() 77 int rtpSocket = MakeUDPSocket(port); in setup() 78 int rtcpSocket = MakeUDPSocket(port + 1); in setup() 100 int ARTPSession::MakeUDPSocket(unsigned port) { in MakeUDPSocket() argument 108 addr.sin_port = htons(port); in MakeUDPSocket() 198 bool ARTPSession::validateMediaFormat(size_t index, unsigned *port) const { in validateMediaFormat() 228 *port = x; in validateMediaFormat()
|
/frameworks/base/media/native/midi/ |
D | amidi.cpp | 260 AMIDI_Port *port = new AMIDI_Port; in AMIDI_openPort() local 261 port->state = MIDI_PORT_STATE_OPEN_IDLE; in AMIDI_openPort() 262 port->device = device; in AMIDI_openPort() 263 port->binderToken = portToken; in AMIDI_openPort() 264 port->ufd = std::move(ufd); in AMIDI_openPort() 266 *portPtr = port; in AMIDI_openPort() 271 static void AMIDI_closePort(AMIDI_Port *port) { in AMIDI_closePort() argument 272 if (port == nullptr) { in AMIDI_closePort() 277 while (!port->state.compare_exchange_weak(portState, MIDI_PORT_STATE_CLOSED)) { in AMIDI_closePort() 283 Status txResult = port->device->server->closePort(port->binderToken); in AMIDI_closePort() [all …]
|
/frameworks/av/media/libaudiofoundation/ |
D | AudioPort.cpp | 26 void AudioPort::importAudioPort(const sp<AudioPort>& port, bool force __unused) in importAudioPort() argument 28 for (const auto& profileToImport : port->mProfiles) { in importAudioPort() 41 void AudioPort::toAudioPort(struct audio_port *port) const { in toAudioPort() 65 port->role = mRole; in toAudioPort() 66 port->type = mType; in toAudioPort() 67 strlcpy(port->name, mName.c_str(), AUDIO_PORT_MAX_NAME_LEN); in toAudioPort() 68 port->num_sample_rates = flatenedRates.size(); in toAudioPort() 69 port->num_channel_masks = flatenedChannels.size(); in toAudioPort() 70 port->num_formats = flatenedFormats.size(); in toAudioPort() 71 std::copy(flatenedRates.begin(), flatenedRates.end(), port->sample_rates); in toAudioPort() [all …]
|
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/ |
D | ProxyServer.java | 85 int port; in run() local 92 port = 443; in run() 95 port = Integer.parseInt(hostPortSplit[1]); in run() 101 urlString = "Https://" + host + ":" + port; in run() 106 port = url.getPort(); in run() 107 if (port < 0) { in run() 108 port = 80; in run() 133 server = new Socket(host, port); in run() 154 server = new Socket(host, port); in run() 359 public synchronized void setPort(int port) { in setPort() argument [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbMidiDevice.java | 167 for (int port = 0; port < inputPortCount; port++) { in UsbMidiDevice() 168 mInputPortReceivers[port] = new InputReceiverProxy(); in UsbMidiDevice() 255 for (int port = 0; port < outputStreamCount; port++) { in openLocked() 256 final MidiEventScheduler eventSchedulerF = mEventSchedulers[port]; in openLocked() 257 final FileOutputStream outputStreamF = mOutputStreams[port]; in openLocked() 258 final int portF = port; in openLocked() 260 new Thread("UsbMidiDevice output thread " + port) { in openLocked()
|
/frameworks/base/core/java/android/hardware/hdmi/ |
D | HdmiHotplugEvent.java | 41 public HdmiHotplugEvent(int port, boolean connected) { in HdmiHotplugEvent() argument 42 mPort = port; in HdmiHotplugEvent() 97 int port = p.readInt(); 99 return new HdmiHotplugEvent(port, connected);
|
/frameworks/base/services/core/java/com/android/server/firewall/ |
D | PortFilter.java | 46 int port = -1; in matches() local 49 port = uri.getPort(); in matches() 51 return port != -1 && in matches() 52 (mLowerBound == NO_BOUND || mLowerBound <= port) && in matches() 53 (mUpperBound == NO_BOUND || mUpperBound >= port); in matches()
|