Home
last modified time | relevance | path

Searched refs:ans (Results 1 – 25 of 36) sorted by relevance

12

/packages/modules/DnsResolver/
Dres_send.cpp158 static int send_dg(ResState* statp, res_params* params, span<const uint8_t> msg, span<uint8_t> ans,
160 static int send_vc(ResState* statp, res_params* params, span<const uint8_t> msg, span<uint8_t> ans,
162 static int send_mdns(ResState* statp, span<const uint8_t> msg, span<uint8_t> ans, int* terrno,
439 int res_nsend(ResState* statp, span<const uint8_t> msg, span<uint8_t> ans, int* rcode, in res_nsend() argument
444 if (ans.size() < HFIXEDSZ) { in res_nsend()
453 ResolvCacheStatus cache_status = resolv_cache_lookup(statp->netid, msg, ans, &anslen, flags); in res_nsend()
456 HEADER* hp = (HEADER*)(void*)ans.data(); in res_nsend()
476 resplen = send_mdns(statp, msg, ans, &terrno, rcode); in res_nsend()
491 res_pquery(ans.first(resplen)); in res_nsend()
494 resolv_cache_add(statp->netid, msg, {ans.data(), resplen}); in res_nsend()
[all …]
DDnsTlsDispatcher.cpp109 const Slice ans, int* resplen, in query() argument
130 code = this->query(server, statp->netid, statp->mark, query, ans, resplen, in query()
146 static_cast<NsRcode>(reinterpret_cast<HEADER*>(ans.base())->rcode)); in query()
175 unsigned mark, const Slice query, const Slice ans, in query() argument
200 if (result.response.size() > ans.size()) { in query()
201 LOG(DEBUG) << "Response too large: " << result.response.size() << " > " << ans.size(); in query()
206 netdutils::copy(ans, netdutils::makeSlice(result.response)); in query()
DDnsTlsDispatcher.h55 const netdutils::Slice ans, int* _Nonnull resplen,
63 const netdutils::Slice query, const netdutils::Slice ans,
Dres_send.h26 std::span<uint8_t> ans, int* rcode, uint32_t flags,
Dresolv_private.h179 int res_nsend(ResState* statp, std::span<const uint8_t> msg, std::span<uint8_t> ans, int* rcode,
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DDelaunay.cpp132 EdgePointer temp, ans; in makeEdge() local
134 ans = temp; in makeEdge()
136 onext(temp) = ans; in makeEdge()
138 onext(++temp) = (EdgePointer) (ans + 3); in makeEdge()
139 onext(++temp) = (EdgePointer) (ans + 2); in makeEdge()
141 onext(++temp) = (EdgePointer) (ans + 1); in makeEdge()
143 return(ans); in makeEdge()
161 EdgePointer ans; in connectLeft() local
162 ans = makeEdge(dest(a), orig(b)); in connectLeft()
163 splice(ans, (EdgePointer) lnext(a)); in connectLeft()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/
DWifiChipAidlImpl.java1224 List<WifiNative.RingBufferStatus> ans = new ArrayList<>(); in halToFrameworkRingBufferStatusList()
1226 ans.add(halToFrameworkRingBufferStatus(b)); in halToFrameworkRingBufferStatusList()
1228 return ans; in halToFrameworkRingBufferStatusList()
1233 WifiNative.RingBufferStatus ans = new WifiNative.RingBufferStatus(); in halToFrameworkRingBufferStatus() local
1234 ans.name = h.ringName; in halToFrameworkRingBufferStatus()
1235 ans.flag = halToFrameworkRingBufferFlags(h.flags); in halToFrameworkRingBufferStatus()
1236 ans.ringBufferId = h.ringId; in halToFrameworkRingBufferStatus()
1237 ans.ringBufferByteSize = h.sizeInBytes; in halToFrameworkRingBufferStatus()
1238 ans.verboseLevel = h.verboseLevel; in halToFrameworkRingBufferStatus()
1243 return ans; in halToFrameworkRingBufferStatus()
[all …]
DWifiChipHidlImpl.java1816 WlanWakeReasonAndCounts ans = new WlanWakeReasonAndCounts(); in halToFrameworkWakeReasons()
1817 ans.totalCmdEventWake = h.totalCmdEventWakeCnt; in halToFrameworkWakeReasons()
1818 ans.totalDriverFwLocalWake = h.totalDriverFwLocalWakeCnt; in halToFrameworkWakeReasons()
1819 ans.totalRxDataWake = h.totalRxPacketWakeCnt; in halToFrameworkWakeReasons()
1820 ans.rxUnicast = h.rxPktWakeDetails.rxUnicastCnt; in halToFrameworkWakeReasons()
1821 ans.rxMulticast = h.rxPktWakeDetails.rxMulticastCnt; in halToFrameworkWakeReasons()
1822 ans.rxBroadcast = h.rxPktWakeDetails.rxBroadcastCnt; in halToFrameworkWakeReasons()
1823 ans.icmp = h.rxIcmpPkWakeDetails.icmpPkt; in halToFrameworkWakeReasons()
1824 ans.icmp6 = h.rxIcmpPkWakeDetails.icmp6Pkt; in halToFrameworkWakeReasons()
1825 ans.icmp6Ra = h.rxIcmpPkWakeDetails.icmp6Ra; in halToFrameworkWakeReasons()
[all …]
DWifiStaIfaceAidlImpl.java1234 int ans = 0; in frameworkToHalReportSchemeMask() local
1237 ans |= StaBackgroundScanBucketEventReportSchemeMask.EACH_SCAN; in frameworkToHalReportSchemeMask()
1240 ans |= StaBackgroundScanBucketEventReportSchemeMask.FULL_RESULTS; in frameworkToHalReportSchemeMask()
1243 ans |= StaBackgroundScanBucketEventReportSchemeMask.NO_BATCH; in frameworkToHalReportSchemeMask()
1246 return ans; in frameworkToHalReportSchemeMask()
DWifiStaIfaceHidlImpl.java1450 int ans = 0; in frameworkToHalReportSchemeMask() local
1453 ans |= StaBackgroundScanBucketEventReportSchemeMask.EACH_SCAN; in frameworkToHalReportSchemeMask()
1456 ans |= StaBackgroundScanBucketEventReportSchemeMask.FULL_RESULTS; in frameworkToHalReportSchemeMask()
1459 ans |= StaBackgroundScanBucketEventReportSchemeMask.NO_BATCH; in frameworkToHalReportSchemeMask()
1462 return ans; in frameworkToHalReportSchemeMask()
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DAnspImsPreferModePolicyBuilderTest.java204 List<Integer> ans = mBuilder.getSupportAccessNetworkTypes(); in testGetSupportAccessNetworkTypes() local
205 Assert.assertTrue(ans.contains(AccessNetworkConstants.AccessNetworkType.EUTRAN)); in testGetSupportAccessNetworkTypes()
206 Assert.assertTrue(ans.contains(AccessNetworkConstants.AccessNetworkType.UTRAN)); in testGetSupportAccessNetworkTypes()
207 Assert.assertTrue(ans.contains(AccessNetworkConstants.AccessNetworkType.GERAN)); in testGetSupportAccessNetworkTypes()
208 Assert.assertTrue(ans.contains(AccessNetworkConstants.AccessNetworkType.IWLAN)); in testGetSupportAccessNetworkTypes()
209 Assert.assertFalse(ans.contains(AccessNetworkConstants.AccessNetworkType.NGRAN)); in testGetSupportAccessNetworkTypes()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DBitMask.java36 boolean ans = (value & maskBit) != 0; in testAndClear()
38 return ans; in testAndClear()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DCandidateScorerTest.java73 ArrayList<Object[]> ans = new ArrayList<>(); in listOfObjectArraysBecauseJUnitMadeUs() local
76 ans.add(new Object[]{ in listOfObjectArraysBecauseJUnitMadeUs()
83 ans.add(new Object[]{ in listOfObjectArraysBecauseJUnitMadeUs()
90 ans.add(new Object[]{ in listOfObjectArraysBecauseJUnitMadeUs()
97 ans.add(new Object[]{ in listOfObjectArraysBecauseJUnitMadeUs()
103 return ans; in listOfObjectArraysBecauseJUnitMadeUs()
/packages/modules/DnsResolver/tests/
Dresolv_tls_unit_test.cpp662 bytevec ans(4096); in TEST_F() local
668 auto r = dispatcher.query(SERVER1, NETID, MARK, makeSlice(QUERY), makeSlice(ans), &resplen, in TEST_F()
674 ans.resize(resplen); in TEST_F()
675 EXPECT_EQ(QUERY, ans); in TEST_F()
678 r = dispatcher.query(SERVER1, NETID, MARK, makeSlice(QUERY), makeSlice(ans), &resplen, in TEST_F()
685 bytevec ans(SIZE - 1); // Too small to hold the answer in TEST_F() local
691 auto r = dispatcher.query(SERVER1, NETID, MARK, makeSlice(QUERY), makeSlice(ans), &resplen, in TEST_F()
738 bytevec ans(4096); in TEST_F() local
744 auto r = dispatcher->query(server, netId, mark, makeSlice(q), makeSlice(ans), &resplen, in TEST_F()
748 ans.resize(resplen); in TEST_F()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiScoreCard.java813 PerSignal ans = mSignalForEventAndFrequency.get(key); in lookupSignal() local
814 if (ans == null) { in lookupSignal()
815 ans = new PerSignal(event, frequency); in lookupSignal()
816 mSignalForEventAndFrequency.put(key, ans); in lookupSignal()
818 return ans; in lookupSignal()
2133 PerBssid ans = mApForBssid.get(mac); in lookupBssid() local
2134 if (ans == null || !ans.ssid.equals(ssid)) { in lookupBssid()
2135 ans = new PerBssid(ssid, mac); in lookupBssid()
2136 PerBssid old = mApForBssid.put(mac, ans); in lookupBssid()
2141 requestReadBssid(ans); in lookupBssid()
[all …]
DWifiNetworkSelector.java1598 WifiCandidates.CandidateScorer ans = mCandidateScorers.get(PRESET_CANDIDATE_SCORER_NAME); in getActiveCandidateScorer() local
1604 ans = candidateScorer; in getActiveCandidateScorer()
1609 if (ans == null && PRESET_CANDIDATE_SCORER_NAME != null) { in getActiveCandidateScorer()
1612 mWifiMetrics.setNetworkSelectorExperimentId(ans == null in getActiveCandidateScorer()
1614 : experimentIdFromIdentifier(ans.getIdentifier())); in getActiveCandidateScorer()
1615 return ans; in getActiveCandidateScorer()
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dbluetooth_adv.rs633 let mut ans = Vec::<u8>::new(); in test_append_ad_data_clamped() localVariable
634 ans.push(255); in test_append_ad_data_clamped()
635 ans.push(102); in test_append_ad_data_clamped()
636 ans.extend(Vec::<u8>::from_iter(0..254)); in test_append_ad_data_clamped()
640 assert_eq!(bytes, ans); in test_append_ad_data_clamped()
/packages/modules/Connectivity/framework/src/android/net/util/
DDnsUtils.java150 for (SortableAddress ans : sortableAnswerList) { in rfc6724Sort()
151 sortedAnswers.add(ans.address); in rfc6724Sort()
/packages/modules/DnsResolver/doh/tests/doh_frontend/src/
Dclient.rs177 if let Some((stream_id, ans)) = self.pending_answers.pop() { in process_pending_answers()
180 h3_conn.send_body(&mut self.conn, stream_id, &ans, true)?; in process_pending_answers()
/packages/inputmethods/LatinIME/dictionaries/
Dda_wordlist.combined.gz1dictionary=main:da,locale=da,description=Dansk,date=1393228134, ...
Dsv_wordlist.combined.gz1dictionary=main:sv,locale=sv,description=Svenska,date=1414726264, ...
Dtr_wordlist.combined.gz1dictionary=main:tr,locale=tr,description=Türkçe,date=1414726261, ...
Dfr_wordlist.combined.gz ... ,flags=,originalFreq=171 59 word=ans,f=170,flags=,originalFreq= ...
Dnb_wordlist.combined.gz1dictionary=main:nb,locale=nb,description=Norsk bokmål,date=1393228136 ...
Dde_wordlist.combined.gz1dictionary=main:de,locale=de,description=Deutsch,date=1414726263, ...

12