/frameworks/av/media/libstagefright/omx/ |
D | SimpleSoftOMXComponent.cpp | 152 const PortInfo *port = in internalGetParameter() local 155 memcpy(defParams, &port->mDef, sizeof(port->mDef)); in internalGetParameter() 184 PortInfo *port = in internalSetParameter() local 188 if (defParams->nBufferSize > port->mDef.nBufferSize) { in internalSetParameter() 189 port->mDef.nBufferSize = defParams->nBufferSize; in internalSetParameter() 192 if (defParams->nBufferCountActual < port->mDef.nBufferCountMin) { in internalSetParameter() 194 port->mDef.nBufferCountMin, defParams->nBufferCountActual); in internalSetParameter() 198 port->mDef.nBufferCountActual = defParams->nBufferCountActual; in internalSetParameter() 216 PortInfo *port = &mPorts.editItemAt(portIndex); in useBuffer() local 217 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 | 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 | 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 | 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/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
D | TestUtils.java | 34 public static void assertConnectionFails(SSLContext context, String host, int port) in assertConnectionFails() argument 37 Socket s = context.getSocketFactory().createSocket(host, port); in assertConnectionFails() 39 fail("Expected connection to " + host + ":" + port + " to fail."); in assertConnectionFails() 44 public static void assertConnectionSucceeds(SSLContext context, String host, int port) in assertConnectionSucceeds() argument 46 Socket s = context.getSocketFactory().createSocket(host, port); in assertConnectionSucceeds() 50 public static void assertUrlConnectionFails(SSLContext context, String host, int port) in assertUrlConnectionFails() argument 52 URL url = new URL("https://" + host + ":" + port); in assertUrlConnectionFails() 57 fail("Connection to " + host + ":" + port + " expected to fail"); in assertUrlConnectionFails() 63 public static void assertUrlConnectionSucceeds(SSLContext context, String host, int port) in assertUrlConnectionSucceeds() argument 65 URL url = new URL("https://" + host + ":" + port); in assertUrlConnectionSucceeds()
|
/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/media/native/midi/ |
D | midi.cpp | 115 AMIDI_Port* port = new AMIDI_Port; in AMIDI_openPort() local 116 port->state = MIDI_PORT_STATE_OPEN_IDLE; in AMIDI_openPort() 117 port->device = device; in AMIDI_openPort() 118 port->binderToken = portToken; in AMIDI_openPort() 119 port->ufd = std::move(ufd); in AMIDI_openPort() 121 *portPtr = port; in AMIDI_openPort() 126 static status_t AMIDI_closePort(AMIDI_Port *port) { in AMIDI_closePort() argument 128 while (!port->state.compare_exchange_weak(portState, MIDI_PORT_STATE_CLOSED)) { in AMIDI_closePort() 134 Status txResult = port->device->server->closePort(port->binderToken); in AMIDI_closePort() 139 delete port; in AMIDI_closePort() [all …]
|
/frameworks/base/core/java/android/app/admin/ |
D | ConnectEvent.java | 38 private final int port; field in ConnectEvent 41 public ConnectEvent(String ipAddress, int port, String packageName, long timestamp) { in ConnectEvent() argument 44 this.port = port; in ConnectEvent() 49 this.port = in.readInt(); in ConnectEvent() 65 return port; in getPort() 70 return String.format("ConnectEvent(%s, %d, %d, %s)", ipAddress, port, timestamp, in toString() 100 out.writeInt(port); in writeToParcel()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | Filter.java | 146 FilterPort port = getInputPort(inputName); in setInputFrame() local 147 if (!port.isOpen()) { in setInputFrame() 148 port.open(); in setInputFrame() 150 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 | 218 public static int validate(String hostname, String port, String exclList) { in validate() argument 226 if (hostname.length() > 0 && port.length() == 0) return PROXY_PORT_EMPTY; in validate() 228 if (port.length() > 0) { in validate() 232 portVal = Integer.parseInt(port); in validate() 244 String port = null; in setHttpProxySystemProperty() local 249 port = Integer.toString(p.getPort()); in setHttpProxySystemProperty() 253 setHttpProxySystemProperty(host, port, exclList, pacFileUrl); in setHttpProxySystemProperty() 257 public static final void setHttpProxySystemProperty(String host, String port, String exclList, in setHttpProxySystemProperty() argument 260 if (false) Log.d(TAG, "setHttpProxySystemProperty :"+host+":"+port+" - "+exclList); in setHttpProxySystemProperty() 268 if (port != null) { in setHttpProxySystemProperty() [all …]
|
D | ProxyInfo.java | 64 public static ProxyInfo buildDirectProxy(String host, int port) { in buildDirectProxy() argument 65 return new ProxyInfo(host, port, null); in buildDirectProxy() 77 public static ProxyInfo buildDirectProxy(String host, int port, List<String> exclList) { in buildDirectProxy() argument 79 return new ProxyInfo(host, port, TextUtils.join(",", array), array); in buildDirectProxy() 94 public ProxyInfo(String host, int port, String exclList) { in ProxyInfo() argument 96 mPort = port; in ProxyInfo() 140 private ProxyInfo(String host, int port, String exclList, String[] parsedExclList) { in ProxyInfo() argument 142 mPort = port; in ProxyInfo() 341 int port = 0; 349 port = in.readInt(); [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/core/java/android/bluetooth/ |
D | BluetoothServerSocket.java | 85 /*package*/ BluetoothServerSocket(int type, boolean auth, boolean encrypt, int port) in BluetoothServerSocket() argument 87 mChannel = port; in BluetoothServerSocket() 88 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, port, null); in BluetoothServerSocket() 89 if (port == BluetoothAdapter.SOCKET_CHANNEL_AUTO_STATIC_NO_SDP) { in BluetoothServerSocket() 105 /*package*/ BluetoothServerSocket(int type, boolean auth, boolean encrypt, int port, in BluetoothServerSocket() argument 108 mChannel = port; in BluetoothServerSocket() 109 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, port, null, mitm, in BluetoothServerSocket() 111 if(port == BluetoothAdapter.SOCKET_CHANNEL_AUTO_STATIC_NO_SDP) { in BluetoothServerSocket()
|
/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/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 | 165 for (int port = 0; port < inputPortCount; port++) { in UsbMidiDevice() 166 mInputPortReceivers[port] = new InputReceiverProxy(); in UsbMidiDevice() 253 for (int port = 0; port < outputStreamCount; port++) { in openLocked() 254 final MidiEventScheduler eventSchedulerF = mEventSchedulers[port]; in openLocked() 255 final FileOutputStream outputStreamF = mOutputStreams[port]; in openLocked() 256 final int portF = port; in openLocked() 258 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/av/services/audiopolicy/common/managerdefinitions/src/ |
D | AudioOutputDescriptor.cpp | 35 AudioOutputDescriptor::AudioOutputDescriptor(const sp<AudioPort>& port, in AudioOutputDescriptor() argument 37 : mPort(port), mDevice(AUDIO_DEVICE_NONE), in AudioOutputDescriptor() 50 if (port != NULL) { in AudioOutputDescriptor() 51 port->pickAudioProfile(mSamplingRate, mChannelMask, mFormat); in AudioOutputDescriptor() 52 if (port->mGains.size() > 0) { in AudioOutputDescriptor() 53 port->mGains[0]->getDefaultConfig(&mGain); in AudioOutputDescriptor() 180 struct audio_port *port) const in toAudioPort() 182 mPort->toAudioPort(port); in toAudioPort() 183 port->id = mId; in toAudioPort() 184 port->ext.mix.hw_module = getModuleHandle(); in toAudioPort() [all …]
|
D | AudioPort.cpp | 70 void AudioPort::toAudioPort(struct audio_port *port) const in toAudioPort() 106 port->role = mRole; in toAudioPort() 107 port->type = mType; in toAudioPort() 108 strlcpy(port->name, mName, AUDIO_PORT_MAX_NAME_LEN); in toAudioPort() 109 port->num_sample_rates = flatenedRates.size(); in toAudioPort() 110 port->num_channel_masks = flatenedChannels.size(); in toAudioPort() 111 port->num_formats = flatenedFormats.size(); in toAudioPort() 113 port->sample_rates[i] = flatenedRates[i]; in toAudioPort() 116 port->channel_masks[i] = flatenedChannels[i]; in toAudioPort() 119 port->formats[i] = flatenedFormats[i]; in toAudioPort() [all …]
|
D | DeviceDescriptor.cpp | 255 void DeviceDescriptor::toAudioPort(struct audio_port *port) const in toAudioPort() 258 AudioPort::toAudioPort(port); in toAudioPort() 259 port->id = mId; in toAudioPort() 260 toAudioPortConfig(&port->active_config); in toAudioPort() 261 port->ext.device.type = mDeviceType; in toAudioPort() 262 port->ext.device.hw_module = mModule->mHandle; in toAudioPort() 263 strncpy(port->ext.device.address, mAddress.string(), AUDIO_DEVICE_MAX_ADDRESS_LEN); in toAudioPort() 266 void DeviceDescriptor::importAudioPort(const sp<AudioPort>& port, bool force) { in importAudioPort() argument 267 if (!force && !port->hasDynamicAudioProfile()) { in importAudioPort() 270 AudioPort::importAudioPort(port); in importAudioPort() [all …]
|
/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()
|