/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/ |
D | InetDiagMessage.java | 56 public static byte[] InetDiagReqV2(int protocol, InetSocketAddress local, in InetDiagReqV2() argument 58 return InetDiagReqV2(protocol, local, remote, family, flags, 0 /* pad */, in InetDiagReqV2() 83 public static byte[] InetDiagReqV2(int protocol, @Nullable InetSocketAddress local, in InetDiagReqV2() argument 96 new StructInetDiagReqV2(protocol, local, remote, family, pad, idiagExt, state); in InetDiagReqV2() 115 private static int lookupUidByFamily(int protocol, InetSocketAddress local, in lookupUidByFamily() argument 119 byte[] msg = InetDiagReqV2(protocol, local, remote, family, flags); in lookupUidByFamily() 136 private static int lookupUid(int protocol, InetSocketAddress local, in lookupUid() argument 147 if (protocol == IPPROTO_UDP) { in lookupUid() 148 uid = lookupUidByFamily(protocol, remote, local, family, NLM_F_REQUEST, fd); in lookupUid() 150 uid = lookupUidByFamily(protocol, local, remote, family, NLM_F_REQUEST, fd); in lookupUid() [all …]
|
D | StructInetDiagReqV2.java | 51 public StructInetDiagReqV2(int protocol, InetSocketAddress local, InetSocketAddress remote, in StructInetDiagReqV2() argument 53 this(protocol, local, remote, family, 0 /* pad */, 0 /* extension */, in StructInetDiagReqV2() 57 public StructInetDiagReqV2(int protocol, @Nullable InetSocketAddress local, in StructInetDiagReqV2() argument 61 mSdiagProtocol = (byte) protocol; in StructInetDiagReqV2()
|
D | NetlinkConstants.java | 64 public static String stringForProtocol(int protocol) { in stringForProtocol() argument 65 if (protocol == OsConstants.IPPROTO_TCP) { return "IPPROTO_TCP"; } in stringForProtocol() 66 if (protocol == OsConstants.IPPROTO_UDP) { return "IPPROTO_UDP"; } in stringForProtocol() 67 return String.valueOf(protocol); in stringForProtocol()
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
D | ImageBackend.java | 252 ImageReleaseProtocol protocol = mImageSemaphoreMap.get(img); in releaseSemaphoreReference() local 253 if (protocol == null || protocol.getCount() <= 0) { in releaseSemaphoreReference() 261 protocol.addCount(-1); in releaseSemaphoreReference() 264 if (protocol.getCount() == 0) { in releaseSemaphoreReference() 272 if (protocol.closeOnRelease) { in releaseSemaphoreReference() 278 if (protocol.blockUntilRelease) { in releaseSemaphoreReference() 279 protocol.signal(); in releaseSemaphoreReference() 284 mImageSemaphoreMap.put(img, protocol); in releaseSemaphoreReference() 449 ImageReleaseProtocol protocol = setSemaphoreReferenceCount(img, countImageRefs, in receiveImage() local 456 if (protocol.blockUntilRelease) { in receiveImage() [all …]
|
/packages/modules/DnsResolver/tests/ |
D | resolv_gold_test.cpp | 168 android_net_context GetNetContext(const DnsProtocol protocol) { in GetNetContext() argument 169 return protocol == DnsProtocol::TLS ? kNetcontextTls : kNetcontext; in GetNetContext() 183 void VerifyGetAddrInfo(const android::net::GoldTest& goldtest, const DnsProtocol protocol) { in VerifyGetAddrInfo() argument 196 .ai_protocol = args.protocol(), in VerifyGetAddrInfo() 199 const android_net_context netcontext = GetNetContext(protocol); in VerifyGetAddrInfo() 208 void VerifyGetHostByName(const android::net::GoldTest& goldtest, const DnsProtocol protocol) { in VerifyGetHostByName() argument 214 const android_net_context netcontext = GetNetContext(protocol); in VerifyGetHostByName() 223 const test::DnsTlsFrontend& tls, const DnsProtocol protocol) { in VerifyResolver() argument 232 ASSERT_NO_FATAL_FAILURE(VerifyGetAddrInfo(goldtest, protocol)); in VerifyResolver() 238 ASSERT_NO_FATAL_FAILURE(VerifyGetHostByName(goldtest, protocol)); in VerifyResolver() [all …]
|
/packages/modules/NetworkStack/tests/integration/src/android/net/netlink/ |
D | InetDiagSocketIntegrationTest.java | 73 public int protocol; field in InetDiagSocketIntegrationTest.Connection 78 return Os.socket(socketDomain, socketType, protocol); in createSocket() 106 protocol = IPPROTO_TCP; in TcpConnection() 130 protocol = IPPROTO_UDP; in UdpConnection() 143 private void checkConnectionOwnerUid(int protocol, InetSocketAddress local, in checkConnectionOwnerUid() argument 145 final int uid = mCm.getConnectionOwnerUid(protocol, local, remote); in checkConnectionOwnerUid() 168 checkConnectionOwnerUid(tcp.protocol, tcp.local, tcp.remote, true); in checkGetConnectionOwnerUid() 170 checkConnectionOwnerUid(tcp.protocol, new InetSocketAddress(0), tcp.remote, false); in checkGetConnectionOwnerUid() 171 checkConnectionOwnerUid(tcp.protocol, tcp.local, new InetSocketAddress(0), false); in checkGetConnectionOwnerUid() 175 checkConnectionOwnerUid(udp.protocol, udp.local, udp.remote, true); in checkGetConnectionOwnerUid() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
D | OmtpVvmCarrierConfigHelper.java | 37 import com.android.voicemail.impl.protocol.VisualVoicemailProtocol; 38 import com.android.voicemail.impl.protocol.VisualVoicemailProtocolFactory; 99 private final VisualVoicemailProtocol protocol; field in OmtpVvmCarrierConfigHelper 125 protocol = null; in OmtpVvmCarrierConfigHelper() 140 protocol = VisualVoicemailProtocolFactory.create(this.context.getResources(), vvmType); in OmtpVvmCarrierConfigHelper() 155 protocol = VisualVoicemailProtocolFactory.create(this.context.getResources(), vvmType); in OmtpVvmCarrierConfigHelper() 184 if (protocol == null) { in isValid() 197 return protocol; in getProtocol() 389 protocol.startDeactivation(this); in startDeactivation() 396 return protocol.supportsProvisioning(); in supportsProvisioning() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/rtt/impl/ |
D | RttChatFragment.java | 60 import com.android.incallui.incall.protocol.ContactPhotoType; 61 import com.android.incallui.incall.protocol.InCallButtonIds; 62 import com.android.incallui.incall.protocol.InCallButtonUi; 63 import com.android.incallui.incall.protocol.InCallButtonUiDelegate; 64 import com.android.incallui.incall.protocol.InCallButtonUiDelegateFactory; 65 import com.android.incallui.incall.protocol.InCallScreen; 66 import com.android.incallui.incall.protocol.InCallScreenDelegate; 67 import com.android.incallui.incall.protocol.InCallScreenDelegateFactory; 68 import com.android.incallui.incall.protocol.PrimaryCallState; 69 import com.android.incallui.incall.protocol.PrimaryInfo; [all …]
|
/packages/apps/Dialer/java/com/android/incallui/callpending/ |
D | CallPendingActivity.java | 36 import com.android.incallui.incall.protocol.ContactPhotoType; 37 import com.android.incallui.incall.protocol.InCallButtonIds; 38 import com.android.incallui.incall.protocol.InCallButtonUi; 39 import com.android.incallui.incall.protocol.InCallButtonUiDelegate; 40 import com.android.incallui.incall.protocol.InCallButtonUiDelegateFactory; 41 import com.android.incallui.incall.protocol.InCallScreen; 42 import com.android.incallui.incall.protocol.InCallScreenDelegate; 43 import com.android.incallui.incall.protocol.InCallScreenDelegateFactory; 44 import com.android.incallui.incall.protocol.PrimaryCallState; 45 import com.android.incallui.incall.protocol.PrimaryInfo;
|
/packages/modules/DnsResolver/ |
D | DnsStats.cpp | 165 bool DnsStats::setServers(const std::vector<netdutils::IPSockAddr>& servers, Protocol protocol) { in setServers() argument 168 ServerStatsMap& statsMap = mStats[protocol]; in setServers() 193 for (auto& [serverSockAddr, statsRecords] : mStats[record.protocol()]) { in addStats() 209 std::vector<IPSockAddr> DnsStats::getSortedServers(Protocol protocol) const { in getSortedServers() 212 if (protocol == PROTO_DOT) return {}; in getSortedServers() 214 auto it = mStats.find(protocol); in getSortedServers() 232 std::vector<StatsData> DnsStats::getStats(Protocol protocol) const { in getStats() 235 if (mStats.find(protocol) != mStats.end()) { in getStats() 236 for (const auto& [_, statsRecords] : mStats.at(protocol)) { in getStats()
|
D | resolv_unit_test.cpp | 245 for (int protocol = 0; protocol < IPPROTO_MAX; ++protocol) { in TEST_F() local 251 .ai_protocol = protocol, in TEST_F() 260 family, socktype, protocol, in TEST_F() 288 for (int protocol = 0; protocol < IPPROTO_MAX; ++protocol) { in TEST_F() local 290 socktype, protocol)); in TEST_F() 293 if (!socktype || !protocol) continue; in TEST_F() 297 if ((family == AF_INET6 && socktype == SOCK_DGRAM && protocol == IPPROTO_UDP) || in TEST_F() 298 (family == AF_INET6 && socktype == SOCK_STREAM && protocol == IPPROTO_TCP) || in TEST_F() 299 (family == AF_INET && socktype == SOCK_DGRAM && protocol == IPPROTO_UDP) || in TEST_F() 300 (family == AF_INET && socktype == SOCK_STREAM && protocol == IPPROTO_TCP) || in TEST_F() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactsUtils.java | 74 public static String lookupProviderNameFromId(int protocol) { in lookupProviderNameFromId() argument 75 switch (protocol) { in lookupProviderNameFromId() 162 private static Intent getCustomImIntent(ImDataItem im, int protocol) { in getCustomImIntent() argument 168 if (protocol != Im.PROTOCOL_CUSTOM) { in getCustomImIntent() 170 host = ContactsUtils.lookupProviderNameFromId(protocol); in getCustomImIntent() 200 final int protocol = isEmail ? Im.PROTOCOL_GOOGLE_TALK : im.getProtocol(); in buildImIntent() local 202 if (protocol == Im.PROTOCOL_GOOGLE_TALK) { in buildImIntent() 221 intent = getCustomImIntent(im, protocol); in buildImIntent()
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder.cpp | 145 const char* dnsproto2str(int protocol) { in dnsproto2str() argument 146 switch (protocol) { in dnsproto2str() 525 void DNSResponder::setResponseProbability(double response_probability, int protocol) { in setResponseProbability() argument 526 switch (protocol) { in setResponseProbability() 534 LOG(FATAL) << "Unsupported protocol " << protocol; // abort() by log level FATAL in setResponseProbability() 538 double DNSResponder::getResponseProbability(int protocol) const { in getResponseProbability() 539 switch (protocol) { in getResponseProbability() 545 LOG(FATAL) << "Unsupported protocol " << protocol; // abort() by log level FATAL in getResponseProbability() 655 dnsproto2str(q.protocol) + "} "; in dumpQueries() 700 bool DNSResponder::handleDNSRequest(const char* buffer, ssize_t len, int protocol, char* response, in handleDNSRequest() argument [all …]
|
D | dns_responder.h | 149 int protocol; // Either IPPROTO_TCP or IPPROTO_UDP member 176 void setResponseProbability(double response_probability, int protocol); 251 bool handleDNSRequest(const char* buffer, ssize_t buffer_len, int protocol, char* response, 269 bool makeResponse(DNSHeader* header, int protocol, char* response, size_t* response_len) const; 282 void handleQuery(int protocol); 293 double getResponseProbability(int protocol) const;
|
/packages/apps/Dialer/java/com/android/incallui/incall/impl/ |
D | InCallFragment.java | 60 import com.android.incallui.incall.protocol.InCallButtonIds; 61 import com.android.incallui.incall.protocol.InCallButtonIdsExtension; 62 import com.android.incallui.incall.protocol.InCallButtonUi; 63 import com.android.incallui.incall.protocol.InCallButtonUiDelegate; 64 import com.android.incallui.incall.protocol.InCallButtonUiDelegateFactory; 65 import com.android.incallui.incall.protocol.InCallScreen; 66 import com.android.incallui.incall.protocol.InCallScreenDelegate; 67 import com.android.incallui.incall.protocol.InCallScreenDelegateFactory; 68 import com.android.incallui.incall.protocol.PrimaryCallState; 69 import com.android.incallui.incall.protocol.PrimaryCallState.ButtonState; [all …]
|
/packages/apps/Nfc/nci/jni/ |
D | NfcTag.cpp | 239 if (rfDetail.protocol != NFC_PROTOCOL_KOVIO) return false; in IsSameKovio() 294 mTechLibNfcTypes[mNumTechList] = rfDetail.protocol; in discoverTechnologies() 300 if (NFC_PROTOCOL_T1T == rfDetail.protocol) { in discoverTechnologies() 303 } else if (NFC_PROTOCOL_T2T == rfDetail.protocol) { in discoverTechnologies() 320 mTechLibNfcTypes[mNumTechList] = rfDetail.protocol; in discoverTechnologies() 330 } else if (NFC_PROTOCOL_T3T == rfDetail.protocol) { in discoverTechnologies() 343 } else if (NFC_PROTOCOL_ISO_DEP == rfDetail.protocol) { in discoverTechnologies() 364 mTechLibNfcTypes[mNumTechList] = rfDetail.protocol; in discoverTechnologies() 378 mTechLibNfcTypes[mNumTechList] = rfDetail.protocol; in discoverTechnologies() 385 } else if (NFC_PROTOCOL_T5T == rfDetail.protocol) { in discoverTechnologies() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/video/impl/ |
D | SurfaceViewVideoCallFragment.java | 58 import com.android.incallui.incall.protocol.InCallButtonIds; 59 import com.android.incallui.incall.protocol.InCallButtonIdsExtension; 60 import com.android.incallui.incall.protocol.InCallButtonUi; 61 import com.android.incallui.incall.protocol.InCallButtonUiDelegate; 62 import com.android.incallui.incall.protocol.InCallButtonUiDelegateFactory; 63 import com.android.incallui.incall.protocol.InCallScreen; 64 import com.android.incallui.incall.protocol.InCallScreenDelegate; 65 import com.android.incallui.incall.protocol.InCallScreenDelegateFactory; 66 import com.android.incallui.incall.protocol.PrimaryCallState; 67 import com.android.incallui.incall.protocol.PrimaryInfo; [all …]
|
D | VideoCallFragment.java | 68 import com.android.incallui.incall.protocol.InCallButtonIds; 69 import com.android.incallui.incall.protocol.InCallButtonIdsExtension; 70 import com.android.incallui.incall.protocol.InCallButtonUi; 71 import com.android.incallui.incall.protocol.InCallButtonUiDelegate; 72 import com.android.incallui.incall.protocol.InCallButtonUiDelegateFactory; 73 import com.android.incallui.incall.protocol.InCallScreen; 74 import com.android.incallui.incall.protocol.InCallScreenDelegate; 75 import com.android.incallui.incall.protocol.InCallScreenDelegateFactory; 76 import com.android.incallui.incall.protocol.PrimaryCallState; 77 import com.android.incallui.incall.protocol.PrimaryInfo; [all …]
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | InCallActivity.java | 76 import com.android.incallui.answer.protocol.AnswerScreen; 77 import com.android.incallui.answer.protocol.AnswerScreenDelegate; 78 import com.android.incallui.answer.protocol.AnswerScreenDelegateFactory; 88 import com.android.incallui.incall.protocol.InCallButtonUiDelegate; 89 import com.android.incallui.incall.protocol.InCallButtonUiDelegateFactory; 90 import com.android.incallui.incall.protocol.InCallScreen; 91 import com.android.incallui.incall.protocol.InCallScreenDelegate; 92 import com.android.incallui.incall.protocol.InCallScreenDelegateFactory; 95 import com.android.incallui.rtt.protocol.RttCallScreen; 96 import com.android.incallui.rtt.protocol.RttCallScreenDelegate; [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/sms/ |
D | StatusSmsFetcher.java | 39 import com.android.voicemail.impl.protocol.VisualVoicemailProtocol; 132 VisualVoicemailProtocol protocol = helper.getProtocol(); in onReceive() local 133 if (protocol == null) { in onReceive() 136 Bundle translatedBundle = protocol.translateStatusSmsBundle(helper, eventType, sms.getFields()); in onReceive()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/ |
D | ProtocolHelper.java | 17 package com.android.voicemail.impl.protocol; 29 VisualVoicemailProtocol protocol, OmtpVvmCarrierConfigHelper config) { in getMessageSender() argument 38 return protocol.createMessageSender( in getMessageSender()
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/ |
D | AnswerFragment.java | 75 import com.android.incallui.answer.protocol.AnswerScreen; 76 import com.android.incallui.answer.protocol.AnswerScreenDelegate; 77 import com.android.incallui.answer.protocol.AnswerScreenDelegateFactory; 80 import com.android.incallui.incall.protocol.ContactPhotoType; 81 import com.android.incallui.incall.protocol.InCallScreen; 82 import com.android.incallui.incall.protocol.InCallScreenDelegate; 83 import com.android.incallui.incall.protocol.InCallScreenDelegateFactory; 84 import com.android.incallui.incall.protocol.PrimaryCallState; 85 import com.android.incallui.incall.protocol.PrimaryInfo; 86 import com.android.incallui.incall.protocol.SecondaryInfo; [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | EnterpriseDefaultApps.java | 52 private static Intent buildIntent(String action, String category, String protocol, in buildIntent() argument 58 if (protocol != null) { in buildIntent() 59 intent.setData(Uri.parse(protocol)); in buildIntent()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | EnterpriseDefaultApps.java | 52 private static Intent buildIntent(String action, String category, String protocol, in buildIntent() argument 58 if (protocol != null) { in buildIntent() 59 intent.setData(Uri.parse(protocol)); in buildIntent()
|
/packages/modules/NetworkStack/src/android/net/util/ |
D | ConnectivityPacketSummary.java | 215 final int protocol = asUint(mPacket.get()); in parseIPv4() local 226 if (protocol == IPPROTO_UDP) { in parseIPv4() 231 sj.add("proto").add(asString(protocol)); in parseIPv4() 245 final int protocol = asUint(mPacket.get()); in parseIPv6() local 254 if (protocol == IPPROTO_ICMPV6) { in parseIPv6() 258 sj.add("proto").add(asString(protocol)); in parseIPv6()
|