Home
last modified time | relevance | path

Searched refs:mPort (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/core/java/android/net/
DWebAddress.java56 private int mPort; field in WebAddress
85 mPort = -1; in WebAddress()
102 mPort = Integer.parseInt(t); in WebAddress()
125 if (mPort == 443 && mScheme.equals("")) { in WebAddress()
127 } else if (mPort == -1) { in WebAddress()
129 mPort = 443; in WebAddress()
131 mPort = 80; // default in WebAddress()
140 if ((mPort != 443 && mScheme.equals("https")) || in toString()
141 (mPort != 80 && mScheme.equals("http"))) { in toString()
142 port = ":" + Integer.toString(mPort); in toString()
[all …]
/frameworks/native/libs/binder/
DServiceManagerHost.cpp56 [[nodiscard]] const std::optional<unsigned int>& hostPort() const { return mPort; } in hostPort()
60 explicit AdbForwarder(unsigned int port) : mPort(port) {} in AdbForwarder()
61 std::optional<unsigned int> mPort; member in android::__anonf2c90d610111::AdbForwarder
89 std::swap(mPort, other.mPort); in operator =()
94 if (!mPort.has_value()) return; in ~AdbForwarder()
96 auto result = execute({"adb", "forward", "--remove", "tcp:" + std::to_string(*mPort)}, nullptr); in ~AdbForwarder()
98 ALOGE("Unable to run `adb forward --remove tcp:%d`: %s", *mPort, in ~AdbForwarder()
104 ALOGE("Unable to run `adb forward --remove tcp:%d`, command exits with %s", *mPort, in ~AdbForwarder()
109 LOG_HOST("`adb forward --remove tcp:%d` writes to stderr: %s", *mPort, in ~AdbForwarder()
113 LOG_HOST("Successfully run `adb forward --remove tcp:%d`", *mPort); in ~AdbForwarder()
DRpcSocketAddress.h82 : mSockAddr(sockAddr), mSize(size), mAddr(addr), mPort(port) {} in InetSocketAddress()
84 return String8::format("%s:%u", mAddr, mPort).c_str(); in toString()
113 unsigned int mPort; variable
/frameworks/base/core/java/android/app/admin/
DConnectEvent.java38 private final int mPort; field in ConnectEvent
44 this.mPort = port; in ConnectEvent()
49 this.mPort = in.readInt(); in ConnectEvent()
66 return mPort; in getPort()
71 return String.format("ConnectEvent(%d, %s, %d, %d, %s)", mId, mIpAddress, mPort, mTimestamp, in toString()
101 out.writeInt(mPort); in writeToParcel()
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiHotplugEvent.java31 private final int mPort; field in HdmiHotplugEvent
42 mPort = port; in HdmiHotplugEvent()
52 return mPort; in getPort()
82 dest.writeInt(mPort); in writeToParcel()
/frameworks/base/media/java/android/media/
DAudioPortConfig.java37 final AudioPort mPort; field in AudioPortConfig
60 mPort = port; in AudioPortConfig()
73 return mPort; in port()
106 return "{mPort:" + mPort in toString()
DAudioDeviceInfo.java403 private final AudioDevicePort mPort; field in AudioDeviceInfo
406 mPort = port; in AudioDeviceInfo()
414 return mPort; in getPort()
422 return mPort.type(); in getInternalType()
429 return mPort.handle().id(); in getId()
436 String portName = mPort.name(); in getProductName()
445 return mPort.address(); in getAddress()
452 return mPort.role() == AudioPort.ROLE_SOURCE; in isSource()
459 return mPort.role() == AudioPort.ROLE_SINK; in isSink()
468 return mPort.samplingRates(); in getSampleRates()
[all …]
DAudioMixPortConfig.java42 return (AudioMixPort)mPort; in port()
DAudioDevicePortConfig.java47 return (AudioDevicePort)mPort; in port()
/frameworks/opt/net/voip/src/java/android/net/sip/
DSipProfile.java63 private int mPort = DEFAULT_PORT; field in SipProfile
113 mProfile.mPort = profile.getPort(); in Builder()
204 mProfile.mPort = port; in setPort()
295 if (mProfile.mPort != DEFAULT_PORT) { in build()
296 mUri.setPort(mProfile.mPort); in build()
324 mPort = in.readInt(); in SipProfile()
339 out.writeInt(mPort); in writeToParcel()
436 return mPort; in getPort()
504 if (mPort == 0) mPort = DEFAULT_PORT; in readResolve()
DSimpleSessionDescription.java239 private final int mPort; field in SimpleSessionDescription.Media
247 mPort = port; in Media()
263 return mPort; in getPort()
369 buffer.append("m=").append(mType).append(' ').append(mPort); in write()
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/
DProxyServer.java59 private int mPort; field in ProxyServer
323 mPort = -1; in ProxyServer()
366 mPort = port; in setPort()
370 if (mPort != -1) { in setCallback()
372 callback.setProxyPort(mPort); in setCallback()
398 return (mPort != -1); in isBound()
402 return mPort; in getPort()
/frameworks/base/services/core/java/com/android/server/pm/
DShareTargetInfo.java53 final String mPort; field in ShareTargetInfo.TargetData
63 mPort = port; in TargetData()
77 if (!TextUtils.isEmpty(mPort)) { in toStringInner()
78 strBuilder.append(" port=").append(mPort); in toStringInner()
137 ShortcutService.writeAttr(out, ATTR_PORT, mTargetData[i].mPort); in saveToXml()
/frameworks/base/services/core/java/com/android/server/wm/
DViewServer.java74 private final int mPort; field in ViewServer
89 mPort = port; in ViewServer()
107 mServer = new ServerSocket(mPort, VIEW_SERVER_MAX_CONNECTIONS, InetAddress.getLocalHost()); in start()
108 mThread = new Thread(this, "Remote View Server [port=" + mPort + "]"); in start()
/frameworks/base/media/native/midi/
Damidi.cpp313 MidiReceiver(AMIDI_Port *port) : mPort(port) {} in MidiReceiver()
317 mPort->state.store(MIDI_PORT_STATE_OPEN_IDLE); in ~MidiReceiver()
324 if (!mPort->state.compare_exchange_strong(portState, MIDI_PORT_STATE_OPEN_ACTIVE)) { in receive()
329 struct pollfd checkFds[1] = { { mPort->ufd, POLLIN, 0 } }; in receive()
336 ssize_t readCount = TEMP_FAILURE_RETRY(read(mPort->ufd, readBuffer, sizeof(readBuffer))); in receive()
358 AMIDI_Port *mPort; member in MidiReceiver
/frameworks/base/core/tests/coretests/src/android/net/
DSntpClientTest.java404 private final int mPort; field in SntpClientTest.SntpTestServer
414 mPort = mSocket.getLocalPort(); in SntpTestServer()
415 Log.d(TAG, "testing server listening on (" + mAddress + ", " + mPort + ")"); in SntpTestServer()
492 public int getPort() { return mPort; } in getPort()
/frameworks/base/tests/CoreTests/android/core/
DTestWebServer.java74 int mPort; field in TestWebServer
127 mPort = port; in initServer()
226 InetSocketAddress ia = new InetSocketAddress(mPort); in init()
802 psPrint(ps,"Server: TestWebServer"+mPort); in printHeaders()
/frameworks/base/services/core/java/com/android/server/adb/
DAdbDebuggingManager.java227 private int mPort; field in AdbDebuggingManager.PairingThread
241 mPort = -1; in PairingThread()
251 mPort = native_pairing_start(mGuid, mPairingCode); in run()
252 if (mPort <= 0 || mPort > 65535) { in run()
261 serviceInfo.setPort(mPort); in run()
267 msg.obj = mPort; in run()
582 private int mPort; field in AdbDebuggingManager.AdbConnectionInfo
587 mPort = -1; in AdbConnectionInfo()
598 mPort = other.mPort; in AdbConnectionInfo()
610 return mPort; in getPort()
[all …]
/frameworks/base/core/java/android/content/
DIntentFilter.java1141 private final int mPort; field in IntentFilter.AuthorityEntry
1147 mPort = port != null ? Integer.parseInt(port) : -1; in AuthorityEntry()
1154 mPort = src.readInt(); in AuthorityEntry()
1161 dest.writeInt(mPort); in writeToParcel()
1169 proto.write(AuthorityEntryProto.PORT, mPort); in dumpDebug()
1178 return mPort; in getPort()
1189 if (mPort != other.mPort) { in match()
1249 if (!wildcardSupported && mPort >= 0) { in match()
1250 if (mPort != data.getPort()) { in match()
2731 sb.append(ae.mPort); in dump()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecController.java1759 private final int mPort; field in HdmiCecController.HotplugHistoryRecord
1764 mPort = port; in HotplugHistoryRecord()
1774 pw.print(mPort); in dump()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp98 jfieldID mPort; member
940 jobject jAudioPort = env->GetObjectField(jAudioPortConfig, gAudioPortConfigFields.mPort); in convertAudioPortConfigToNative()
1032 gAudioPortConfigFields.mPort); in convertAudioPortConfigToNativeWithDevicePort()
3462 gAudioPortConfigFields.mPort = GetFieldIDOrDie(env, audioPortConfigClass, "mPort", in register_android_media_AudioSystem()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest1.java8885 assertEquals(expected.mTargetData[j].mPort, actual.mTargetData[j].mPort); in testParseShareTargetsFromManifest()
8951 assertEquals(expected.mTargetData[j].mPort, actual.mTargetData[j].mPort); in testShareTargetInfo_saveToXml()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt2403 Landroid/app/admin/ConnectEvent;->mPort:I
10668 Landroid/content/IntentFilter$AuthorityEntry;->mPort:I
20276 Landroid/hardware/hdmi/HdmiHotplugEvent;->mPort:I
23791 Landroid/media/AudioDeviceInfo;->mPort:Landroid/media/AudioDevicePort;
33381 Landroid/net/sip/SimpleSessionDescription$Media;->mPort:I
33492 Landroid/net/sip/SipProfile;->mPort:I