Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 305) sorted by relevance

12345678910>>...13

/frameworks/av/media/libstagefright/omx/
DSimpleSoftOMXComponent.cpp170 const PortInfo *port = in internalGetParameter() local
173 memcpy(defParams, &port->mDef, sizeof(port->mDef)); in internalGetParameter()
202 PortInfo *port = in internalSetParameter() local
206 if (defParams->nBufferSize > port->mDef.nBufferSize) { in internalSetParameter()
207 port->mDef.nBufferSize = defParams->nBufferSize; in internalSetParameter()
210 if (defParams->nBufferCountActual < port->mDef.nBufferCountMin) { in internalSetParameter()
212 port->mDef.nBufferCountMin, defParams->nBufferCountActual); in internalSetParameter()
216 port->mDef.nBufferCountActual = defParams->nBufferCountActual; in internalSetParameter()
249 PortInfo *port = &mPorts.editItemAt(portIndex); in useBuffer() local
250 if (size < port->mDef.nBufferSize) { in useBuffer()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DBranchFilter.java49 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()
DNewChromaHistogramFilter.java70 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 …]
DScaleFilter.java46 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()
DCropFilter.java62 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 …]
DRotateFilter.java52 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()
DViewFilter.java121 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) {
/frameworks/opt/net/voip/src/jni/rtp/
DRtpStream.cpp32 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()
Dutil.cpp25 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/opt/telephony/src/java/com/android/internal/telephony/euicc/
DEuiccCardController.java260 UiccPort port = card.getUiccPort(portIndex); in getEuiccPortFromIccId() local
261 if (port == null) { in getEuiccPortFromIccId()
265 return (EuiccPort) port; in getEuiccPortFromIccId()
285 UiccPort port = card.getUiccPort(portIndex); in getEuiccPort() local
286 if (port == null) { in getEuiccPort()
290 return (EuiccPort) port; in getEuiccPort()
316 EuiccPort port = getFirstActiveEuiccPort(cardId); in getAllProfiles() local
317 if (port == null) { in getAllProfiles()
348 port.getAllProfiles(cardCb, mEuiccMainThreadHandler); in getAllProfiles()
367 EuiccPort port = getFirstActiveEuiccPort(cardId); in getProfile() local
[all …]
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DTestUtils.java37 public static void assertConnectionFails(SSLContext context, String host, int port) in assertConnectionFails() argument
40 SSLSocket s = (SSLSocket) context.getSocketFactory().createSocket(host, port); in assertConnectionFails()
42 fail("Expected connection to " + host + ":" + port + " to fail."); in assertConnectionFails()
47 public static void assertConnectionSucceeds(SSLContext context, String host, int port) in assertConnectionSucceeds() argument
49 SSLSocket s = (SSLSocket) context.getSocketFactory().createSocket(host, port); in assertConnectionSucceeds()
54 public static void assertUrlConnectionFails(SSLContext context, String host, int port) in assertUrlConnectionFails() argument
56 URL url = new URL("https://" + host + ":" + port); in assertUrlConnectionFails()
61 fail("Connection to " + host + ":" + port + " expected to fail"); in assertUrlConnectionFails()
67 public static void assertUrlConnectionSucceeds(SSLContext context, String host, int port) in assertUrlConnectionSucceeds() argument
69 URL url = new URL("https://" + host + ":" + port); in assertUrlConnectionSucceeds()
/frameworks/av/media/libaudiofoundation/
DAudioPort.cpp43 void AudioPort::importAudioPort(const sp<AudioPort>& port, bool force __unused) in importAudioPort() argument
45 for (const auto& profileToImport : port->mProfiles) { in importAudioPort()
58 void AudioPort::importAudioPort(const audio_port_v7 &port) { in importAudioPort() argument
59 for (size_t i = 0; i < port.num_audio_profiles; ++i) { in importAudioPort()
60 if (port.audio_profiles[i].format == AUDIO_FORMAT_DEFAULT) { in importAudioPort()
64 sp<AudioProfile> profile = new AudioProfile(port.audio_profiles[i].format, in importAudioPort()
65 ChannelMaskSet(port.audio_profiles[i].channel_masks, in importAudioPort()
66 port.audio_profiles[i].channel_masks + in importAudioPort()
67 port.audio_profiles[i].num_channel_masks), in importAudioPort()
68 SampleRateSet(port.audio_profiles[i].sample_rates, in importAudioPort()
[all …]
/frameworks/av/media/libaudiofoundation/include/media/
DDeviceDescriptorBase.h62 virtual void toAudioPort(struct audio_port *port) const;
63 virtual void toAudioPort(struct audio_port_v7 *port) const;
93 void toAudioPortInternal(T* port) const { in toAudioPortInternal() argument
94 AudioPort::toAudioPort(port); in toAudioPortInternal()
95 toAudioPortConfig(&port->active_config); in toAudioPortInternal()
96 port->id = mId; in toAudioPortInternal()
97 port->ext.device.type = mDeviceTypeAddr.mType; in toAudioPortInternal()
98 port->ext.device.encapsulation_modes = mEncapsulationModes; in toAudioPortInternal()
99 port->ext.device.encapsulation_metadata_types = mEncapsulationMetadataTypes; in toAudioPortInternal()
100 (void)audio_utils_strlcpy_zerofill(port->ext.device.address, mDeviceTypeAddr.getAddress()); in toAudioPortInternal()
DAudioPort.h59 virtual void toAudioPort(struct audio_port *port) const;
61 virtual void toAudioPort(struct audio_port_v7 *port) const;
85 virtual void importAudioPort(const sp<AudioPort>& port, bool force = false);
87 virtual void importAudioPort(const audio_port_v7& port);
156 void toAudioPortBase(T* port) const { in toAudioPortBase() argument
157 port->role = mRole; in toAudioPortBase()
158 port->type = mType; in toAudioPortBase()
159 strlcpy(port->name, mName.c_str(), AUDIO_PORT_MAX_NAME_LEN); in toAudioPortBase()
160 port->num_gains = std::min(mGains.size(), (size_t) AUDIO_PORT_MAX_GAINS); in toAudioPortBase()
161 for (size_t i = 0; i < port->num_gains; i++) { in toAudioPortBase()
[all …]
/frameworks/av/media/libaaudio/src/flowgraph/
DFlowGraphNode.cpp32 for (auto &port : mInputPorts) { in pullData() local
34 frameCount = port.get().pullData(callCount, frameCount); in pullData()
51 for (auto &port : mInputPorts) { in pullReset() local
52 port.get().pullReset(); in pullReset()
86 void FlowGraphPortFloatOutput::connect(FlowGraphPortFloatInput *port) { in connect() argument
87 port->connect(this); in connect()
90 void FlowGraphPortFloatOutput::disconnect(FlowGraphPortFloatInput *port) { in disconnect() argument
91 port->disconnect(this); in disconnect()
DFlowGraphNode.h113 void addInputPort(FlowGraphPort &port) { in addInputPort() argument
114 mInputPorts.emplace_back(port); in addInputPort()
250 void connect(FlowGraphPortFloatInput *port);
256 void disconnect(FlowGraphPortFloatInput *port);
315 void connect(FlowGraphPortFloatOutput *port) { in connect() argument
316 assert(getSamplesPerFrame() == port->getSamplesPerFrame()); in connect()
317 mConnected = port; in connect()
320 void disconnect(FlowGraphPortFloatOutput *port) { in disconnect() argument
321 assert(mConnected == port); in disconnect()
322 (void) port; in disconnect()
/frameworks/base/core/java/android/hardware/usb/
DParcelableUsbPort.java65 public static @NonNull ParcelableUsbPort of(@NonNull UsbPort port) { in of() argument
66 return new ParcelableUsbPort(port.getId(), port.getSupportedModes(), in of()
67 port.getSupportedContaminantProtectionModes(), in of()
68 port.supportsEnableContaminantPresenceProtection(), in of()
69 port.supportsEnableContaminantPresenceDetection(), in of()
70 port.supportsComplianceWarnings(), in of()
71 port.getSupportedAltModesMask()); in of()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DFilter.java143 FilterPort port = getInputPort(inputName); in setInputFrame() local
144 if (!port.isOpen()) { in setInputFrame()
145 port.open(); in setInputFrame()
147 port.setFrame(frame); in setInputFrame()
312 InputPort port = new StreamPort(this, name); in addMaskedInputPort() local
313 if (mLogVerbose) Log.v(TAG, "Filter " + this + " adding " + port); in addMaskedInputPort()
314 mInputPorts.put(name, port); in addMaskedInputPort()
315 port.setPortFormat(formatMask); in addMaskedInputPort()
328 OutputPort port = new OutputPort(this, name); in addOutputPort() local
329 if (mLogVerbose) Log.v(TAG, "Filter " + this + " adding " + port); in addOutputPort()
[all …]
/frameworks/av/media/libaudioclient/tests/
Daudiorouting_tests.cpp41 for (const auto& port : ports) { in TEST() local
42 if (port.role == AUDIO_PORT_ROLE_SOURCE && port.type == AUDIO_PORT_TYPE_MIX) { in TEST()
43 if ((port.active_config.flags.output & output_flags[i]) != 0) { in TEST()
89 audio_port_v7 port; in TEST() local
91 AUDIO_DEVICE_IN_REMOTE_SUBMIX, "0", port)) { in TEST()
117 EXPECT_EQ(port.id, capture->getAudioRecordHandle()->getRoutedDeviceId()) in TEST()
122 AUDIO_DEVICE_OUT_REMOTE_SUBMIX, "0", port); in TEST()
128 EXPECT_EQ(port.id, playback->getAudioTrackHandle()->getRoutedDeviceId()) in TEST()
138 audio_port_v7 port; in SetUp() local
140 AUDIO_DEVICE_IN_REMOTE_SUBMIX, "0", port)) { in SetUp()
[all …]
Daudiosystem_tests.cpp226 for (const auto& port : ports) { in TEST_F() local
227 if (port.role != AUDIO_PORT_ROLE_SOURCE || port.type != AUDIO_PORT_TYPE_DEVICE) continue; in TEST_F()
228 if (port.ext.device.type != AUDIO_DEVICE_IN_FM_TUNER) continue; in TEST_F()
230 sourcePortConfig = port.active_config; in TEST_F()
238 << audio_device_to_string(port.ext.device.type) << " failed"; in TEST_F()
242 ASSERT_NO_FATAL_FAILURE(anyPatchContainsInputDevice(port.id, patchFound)); in TEST_F()
253 ASSERT_NO_FATAL_FAILURE(anyPatchContainsInputDevice(port.id, patchFound)); in TEST_F()
282 for (const auto& port : ports) { in TEST_F() local
283 if (port.role == AUDIO_PORT_ROLE_SOURCE && port.type == AUDIO_PORT_TYPE_DEVICE) { in TEST_F()
284 sourcePort = port; in TEST_F()
[all …]
/frameworks/native/libs/binder/
DRpcSocketAddress.h62 VsockSocketAddress(unsigned int cid, unsigned int port) in VsockSocketAddress() argument
65 .svm_port = port, in VsockSocketAddress()
81 InetSocketAddress(const sockaddr* sockAddr, size_t size, const char* addr, unsigned int port) in InetSocketAddress() argument
82 : mSockAddr(sockAddr), mSize(size), mAddr(addr), mPort(port) {} in InetSocketAddress()
90 static AddrInfo getAddrInfo(const char* addr, unsigned int port) { in getAddrInfo() argument
98 if (int rc = getaddrinfo(addr, std::to_string(port).data(), &hint, &aiStart); 0 != rc) { in getAddrInfo()
99 ALOGE("Unable to resolve %s:%u: %s", addr, port, gai_strerror(rc)); in getAddrInfo()
103 ALOGE("Unable to resolve %s:%u: getaddrinfo returns null", addr, port); in getAddrInfo()
/frameworks/av/media/libmediahelper/
DAudioValidator.cpp71 static status_t validateAudioPortInternal(const T& port, std::string_view bugNumber = {}) { in validateAudioPortInternal() argument
73 if (checkStringOverflow(port.name)) {
76 if (AudioValidator::validateAudioPortConfig(port.active_config) != NO_ERROR) {
79 if (port.type == AUDIO_PORT_TYPE_DEVICE &&
80 checkStringOverflow(port.ext.device.address)) {
89 const struct audio_port& port, std::string_view bugNumber) in validateAudioPort() argument
91 return validateAudioPortInternal(port, bugNumber); in validateAudioPort()
95 const struct audio_port_v7& port, std::string_view bugNumber) in validateAudioPort() argument
97 return validateAudioPortInternal(port, bugNumber); in validateAudioPort()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DIOProfile.cpp206 void IOProfile::importAudioPort(const audio_port_v7 &port) { in importAudioPort() argument
209 for (size_t i = 0; i < port.num_audio_profiles; ++i) { in importAudioPort()
210 formats.insert(port.audio_profiles[i].format); in importAudioPort()
215 for (size_t i = 0; i < port.num_audio_profiles; ++i) { in importAudioPort()
216 if (port.audio_profiles[i].format == format) { in importAudioPort()
217 ChannelMaskSet channelMasks(port.audio_profiles[i].channel_masks, in importAudioPort()
218 port.audio_profiles[i].channel_masks + in importAudioPort()
219 port.audio_profiles[i].num_channel_masks); in importAudioPort()
220 SampleRateSet sampleRates(port.audio_profiles[i].sample_rates, in importAudioPort()
221 port.audio_profiles[i].sample_rates + in importAudioPort()
[all …]
/frameworks/av/media/libstagefright/rtsp/
DARTPSession.cpp65 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/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccCard.java94 UiccPort port = getUiccPort(portIndex); in disposePort() local
95 if (port != null) { in disposePort()
96 mPhoneIdToPortIdx.remove(port.getPhoneId()); in disposePort()
97 port.dispose(); in disposePort()
112 UiccPort port = mUiccPorts.get(portIdx); in update() local
113 if (port == null) { in update()
115 port = new EuiccPort(c, ci, ics, phoneId, mLock, this, in update()
118 port = new UiccPort(c, ci, ics, phoneId, mLock, this); // pSim in update()
120 mUiccPorts.put(portIdx, port); in update()
122 port.update(c, ci, ics, this); in update()

12345678910>>...13