/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hal/ |
D | WifiStaIfaceAidlImplTest.java | 103 stats.iface.links = new StaLinkLayerLinkStats[]{link}; in testLinkLayerStatsAssignment() 104 randomizePacketStats(r, stats.iface.links[0]); in testLinkLayerStatsAssignment() 109 randomizeContentionTimeStats(r, stats.iface.links[0]); in testLinkLayerStatsAssignment() 110 stats.iface.links[0].peers = randomizePeerInfoStats(r); in testLinkLayerStatsAssignment() 416 assertEquals(iface.links[0].beaconRx, wifiLinkLayerStats.links[0].beacon_rx); in verifyIfaceStats() 417 assertEquals(iface.links[0].avgRssiMgmt, wifiLinkLayerStats.links[0].rssi_mgmt); in verifyIfaceStats() 419 assertEquals(iface.links[0].wmeBePktStats.rxMpdu, wifiLinkLayerStats.links[0].rxmpdu_be); in verifyIfaceStats() 420 assertEquals(iface.links[0].wmeBePktStats.txMpdu, wifiLinkLayerStats.links[0].txmpdu_be); in verifyIfaceStats() 421 assertEquals(iface.links[0].wmeBePktStats.lostMpdu, in verifyIfaceStats() 422 wifiLinkLayerStats.links[0].lostmpdu_be); in verifyIfaceStats() [all …]
|
D | WifiStaIfaceHidlImplTest.java | 287 assertEquals(iface.beaconRx, wifiLinkLayerStats.links[0].beacon_rx); in verifyIfaceStats() 288 assertEquals(iface.avgRssiMgmt, wifiLinkLayerStats.links[0].rssi_mgmt); in verifyIfaceStats() 290 assertEquals(iface.wmeBePktStats.rxMpdu, wifiLinkLayerStats.links[0].rxmpdu_be); in verifyIfaceStats() 291 assertEquals(iface.wmeBePktStats.txMpdu, wifiLinkLayerStats.links[0].txmpdu_be); in verifyIfaceStats() 292 assertEquals(iface.wmeBePktStats.lostMpdu, wifiLinkLayerStats.links[0].lostmpdu_be); in verifyIfaceStats() 293 assertEquals(iface.wmeBePktStats.retries, wifiLinkLayerStats.links[0].retries_be); in verifyIfaceStats() 295 assertEquals(iface.wmeBkPktStats.rxMpdu, wifiLinkLayerStats.links[0].rxmpdu_bk); in verifyIfaceStats() 296 assertEquals(iface.wmeBkPktStats.txMpdu, wifiLinkLayerStats.links[0].txmpdu_bk); in verifyIfaceStats() 297 assertEquals(iface.wmeBkPktStats.lostMpdu, wifiLinkLayerStats.links[0].lostmpdu_bk); in verifyIfaceStats() 298 assertEquals(iface.wmeBkPktStats.retries, wifiLinkLayerStats.links[0].retries_bk); in verifyIfaceStats() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiLinkLayerStats.java | 160 public LinkSpecificStats[] links; field in WifiLinkLayerStats 520 if (this.links != null) { in toString() 521 sbuf.append("Per link stats: Number of links = ").append(this.links.length).append( in toString() 523 for (WifiLinkLayerStats.LinkSpecificStats link : this.links) { in toString() 687 for (int i = 1; i < links.length; ++i) { in getBestLinkIndex() 688 if (links[i].rssi_mgmt > links[best].rssi_mgmt) { in getBestLinkIndex() 722 for (LinkSpecificStats link : links) { in aggregatePacketStats() 749 if (links == null) { in aggregatePeerStats() 753 for (LinkSpecificStats link : links) { in aggregatePeerStats() 762 for (LinkSpecificStats link : links) { in aggregatePeerStats() [all …]
|
D | SupplicantStaIfaceHalAidlImpl.java | 3082 nativeInfo.links = new WifiNative.ConnectionMloLink[halInfo.links.length]; in getConnectionMloLinksInfo() 3084 for (int i = 0; i < halInfo.links.length; i++) { in getConnectionMloLinksInfo() 3086 nativeInfo.links[i] = new WifiNative.ConnectionMloLink( in getConnectionMloLinksInfo() 3087 halInfo.links[i].linkId, in getConnectionMloLinksInfo() 3088 MacAddress.fromBytes(halInfo.links[i].staLinkMacAddress), in getConnectionMloLinksInfo() 3089 (halInfo.links[i].apLinkMacAddress != null) ? MacAddress.fromBytes( in getConnectionMloLinksInfo() 3090 halInfo.links[i].apLinkMacAddress) : null, in getConnectionMloLinksInfo() 3091 halInfo.links[i].tidsUplinkMap, halInfo.links[i].tidsDownlinkMap, in getConnectionMloLinksInfo() 3092 halInfo.links[i].frequencyMHz); in getConnectionMloLinksInfo()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/ |
D | WifiStaIfaceAidlImpl.java | 951 if (iface == null || iface.links == null) return; in setIfaceStats() 952 stats.links = new WifiLinkLayerStats.LinkSpecificStats[iface.links.length]; in setIfaceStats() 953 for (StaLinkLayerLinkStats link : iface.links) { in setIfaceStats() 974 stats.links[linkIndex] = new WifiLinkLayerStats.LinkSpecificStats(); in setIfaceStatsPerLinkFromAidl() 975 stats.links[linkIndex].link_id = aidlStats.linkId; in setIfaceStatsPerLinkFromAidl() 976 stats.links[linkIndex].state = halToFrameworkLinkState(aidlStats.state); in setIfaceStatsPerLinkFromAidl() 977 stats.links[linkIndex].radio_id = aidlStats.radioId; in setIfaceStatsPerLinkFromAidl() 978 stats.links[linkIndex].frequencyMhz = aidlStats.frequencyMhz; in setIfaceStatsPerLinkFromAidl() 979 stats.links[linkIndex].beacon_rx = aidlStats.beaconRx; in setIfaceStatsPerLinkFromAidl() 980 stats.links[linkIndex].rssi_mgmt = aidlStats.avgRssiMgmt; in setIfaceStatsPerLinkFromAidl() [all …]
|
D | WifiStaIfaceHidlImpl.java | 984 stats.links = new WifiLinkLayerStats.LinkSpecificStats[NUM_OF_LINKS]; in setIfaceStats() 985 stats.links[DEFAULT_LINK] = new WifiLinkLayerStats.LinkSpecificStats(); in setIfaceStats() 986 stats.links[DEFAULT_LINK].link_id = 0; in setIfaceStats() 987 stats.links[DEFAULT_LINK].state = LINK_STATE_UNKNOWN; in setIfaceStats() 988 stats.links[DEFAULT_LINK].beacon_rx = iface.beaconRx; in setIfaceStats() 990 stats.links[DEFAULT_LINK].radio_id = 0; in setIfaceStats() 991 stats.links[DEFAULT_LINK].frequencyMhz = 0; in setIfaceStats() 992 stats.links[DEFAULT_LINK].rssi_mgmt = iface.avgRssiMgmt; in setIfaceStats() 995 stats.links[DEFAULT_LINK].rxmpdu_be = iface.wmeBePktStats.rxMpdu; in setIfaceStats() 996 stats.links[DEFAULT_LINK].txmpdu_be = iface.wmeBePktStats.txMpdu; in setIfaceStats() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/ |
D | IpClientTest.java | 264 final Set<LinkAddress> addresses = links(TEST_LOCAL_ADDRESSES); in makeIPv6ProvisionedLinkProperties() 397 conf(links(TEST_LOCAL_ADDRESSES), prefixes(TEST_PREFIXES), ips())) in testProvisioningWithInitialConfiguration() 423 LinkProperties want = linkproperties(links(TEST_LOCAL_ADDRESSES), in testProvisioningWithInitialConfiguration() 444 InitialConfiguration empty = conf(links(), prefixes()); in testIsProvisioned() 447 notProvisionedCase(links(), routes(), dns(), null), in testIsProvisioned() 448 notProvisionedCase(links(), routes(), dns(), empty), in testIsProvisioned() 451 provisionedCase(links("192.0.2.12/24"), routes(), dns(), empty), in testIsProvisioned() 455 links("fe80::a4be:f92:e1f7:22d1/64", "fd2c:4e57:8e3c:0:548d:2db2:4fcf:ef75/64"), in testIsProvisioned() 458 links("fe80::a4be:f92:e1f7:22d1/64", "fd2c:4e57:8e3c:0:548d:2db2:4fcf:ef75/64"), in testIsProvisioned() 461 links("2001:db8:dead:beef:f00::a0/64", "fe80::1/64"), in testIsProvisioned() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | SupplicantStaIfaceHalAidlImplTest.java | 2984 MloLink[] links = new MloLink[3]; in testGetConnectionMloLinksInfo() local 2986 links[0] = new android.hardware.wifi.supplicant.MloLink(); in testGetConnectionMloLinksInfo() 2987 links[0].linkId = 1; in testGetConnectionMloLinksInfo() 2988 links[0].staLinkMacAddress = new byte[]{0x00, 0x01, 0x02, 0x03, 0x04, 0x01}; in testGetConnectionMloLinksInfo() 2989 links[0].tidsDownlinkMap = Byte.MAX_VALUE; in testGetConnectionMloLinksInfo() 2990 links[0].tidsDownlinkMap = Byte.MIN_VALUE; in testGetConnectionMloLinksInfo() 2991 links[0].apLinkMacAddress = new byte[]{0x00, 0x0a, 0x0b, 0x0c, 0x0d, 0x01}; in testGetConnectionMloLinksInfo() 2992 links[0].frequencyMHz = 5160; in testGetConnectionMloLinksInfo() 2994 links[1] = new android.hardware.wifi.supplicant.MloLink(); in testGetConnectionMloLinksInfo() 2995 links[1].linkId = 2; in testGetConnectionMloLinksInfo() [all …]
|
D | WifiMetricsTest.java | 3846 out.links = new WifiLinkLayerStats.LinkSpecificStats[numLinks]; in nextRandomStats() 3847 out.links[i] = new WifiLinkLayerStats.LinkSpecificStats(); in nextRandomStats() 3848 out.links[i].link_id = nextRandInt() % 15; in nextRandomStats() 3849 out.links[i].txmpdu_vi = nextRandInt(); in nextRandomStats() 3850 out.links[i].txmpdu_bk = nextRandInt(); in nextRandomStats() 3851 out.links[i].radio_id = nextRandInt() % 2; in nextRandomStats() 3852 out.links[i].rssi_mgmt = nextRandInt() % 127; in nextRandomStats() 3853 out.links[i].beacon_rx = nextRandInt(); in nextRandomStats() 3854 out.links[i].frequencyMhz = nextRandInt(); in nextRandomStats() 3855 out.links[i].rxmpdu_be = nextRandInt(); in nextRandomStats() [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/rust/src/lmp/ |
D | manager.rs | 92 links: [Link; MAX_PEER_NUMBER], field 98 Self { ops, links: Default::default(), procedures: Default::default() } in new() 102 self.links.iter().find(|link| link.peer.get() == peer) in get_link() 248 let index = self.links.iter().position(|link| link.peer.get().is_empty()); in add_link() 251 self.links[index].peer.set(peer); in add_link() 261 let index = self.links.iter().position(|link| link.peer.get() == peer); in remove_link() 264 self.links[index].reset(); in remove_link() 281 &self.links[idx as usize] in link()
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | MetricConditionLink_e2e_test.cpp | 79 auto links = countMetric->add_links(); in CreateStatsdConfig() local 80 links->set_condition(isSyncingPredicate.id()); in CreateStatsdConfig() 81 auto dimensionWhat = links->mutable_fields_in_what(); in CreateStatsdConfig() 84 *links->mutable_fields_in_condition() = CreateAttributionUidDimensions( in CreateStatsdConfig() 88 links = countMetric->add_links(); in CreateStatsdConfig() 89 links->set_condition(isInBackgroundPredicate.id()); in CreateStatsdConfig() 90 dimensionWhat = links->mutable_fields_in_what(); in CreateStatsdConfig() 93 auto dimensionCondition = links->mutable_fields_in_condition(); in CreateStatsdConfig()
|
D | GaugeMetric_e2e_push_test.cpp | 61 auto links = gaugeMetric->add_links(); in CreateStatsdConfigForPushedEvent() local 62 links->set_condition(isInBackgroundPredicate.id()); in CreateStatsdConfigForPushedEvent() 63 auto dimensionWhat = links->mutable_fields_in_what(); in CreateStatsdConfigForPushedEvent() 66 auto dimensionCondition = links->mutable_fields_in_condition(); in CreateStatsdConfigForPushedEvent()
|
D | ConfigUpdate_e2e_test.cpp | 353 MetricConditionLink* links = countPersist.add_links(); in TEST_P() local 354 links->set_condition(holdingWakelockPredicate.id()); in TEST_P() 355 *links->mutable_fields_in_what() = in TEST_P() 357 *links->mutable_fields_in_condition() = in TEST_P() 613 MetricConditionLink* links = durationSumPersist.add_links(); in TEST_P() local 614 links->set_condition(holdingWakelockPredicate.id()); in TEST_P() 615 *links->mutable_fields_in_what() = in TEST_P() 617 *links->mutable_fields_in_condition() = in TEST_P() 633 links = durationMaxPersist.add_links(); in TEST_P() 634 links->set_condition(holdingWakelockPredicate.id()); in TEST_P() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiInfoTest.java | 80 List<MloLink> links = new ArrayList<>(); in addMloInfo() local 84 links.add(link); in addMloInfo() 85 info.setAffiliatedMloLinks(links); in addMloInfo() 99 List<MloLink> links = info.getAffiliatedMloLinks(); in assertMloNoRedaction() local 100 assertEquals(1, links.size()); in assertMloNoRedaction() 101 for (MloLink link : links) { in assertMloNoRedaction() 119 List<MloLink> links = info.getAffiliatedMloLinks(); in assertMloLocalMacRedaction() local 120 assertEquals(1, links.size()); in assertMloLocalMacRedaction() 121 for (MloLink link : links) { in assertMloLocalMacRedaction() 130 List<MloLink> links = info.getAffiliatedMloLinks(); in assertMloSensitiveLocationRedaction() local [all …]
|
/packages/modules/Bluetooth/system/gd/l2cap/classic/internal/ |
D | dumpsys_helper.cc | 62 const std::unordered_map<hci::Address, Link>* links = &link_manager_.links_; in DumpActiveLinks() local 66 for (auto it = links->cbegin(); it != links->cend(); ++it) { in DumpActiveLinks()
|
/packages/modules/StatsD/statsd/src/ |
D | HashableDimensionKey.cpp | 242 const Metric2Condition& links, in getDimensionForCondition() argument 245 filterValues(links.metricFields, eventValues, conditionDimension); in getDimensionForCondition() 248 if (count != links.conditionFields.size()) { in getDimensionForCondition() 254 links.conditionFields[i].mMatcher.getField()); in getDimensionForCondition() 256 links.conditionFields[i].mMatcher.getTag()); in getDimensionForCondition()
|
D | statsd_config.proto | 230 repeated MetricConditionLink links = 4; field 249 repeated MetricConditionLink links = 6; field 274 repeated MetricConditionLink links = 4; field 318 repeated MetricConditionLink links = 7; field 357 repeated MetricConditionLink links = 7; field 418 repeated MetricConditionLink links = 7; field
|
/packages/modules/ExtServices/java/src/android/ext/services/notification/ |
D | EntityTypeCounter.java | 63 static EntityTypeCounter fromTextLinks(@NonNull TextLinks links) { in fromTextLinks() argument 65 for (TextLinks.TextLink link : links.getLinks()) { in fromTextLinks()
|
/packages/apps/Settings/src/com/android/settings/applications/intentpicker/ |
D | ProgressDialogFragment.java | 145 final List<String> links = IntentPickerUtils.getLinksList(mDomainVerificationManager, in queryLinksInBackground() local 147 final int linksNo = links.size(); in queryLinksInBackground() 150 for (String host : links) { in queryLinksInBackground()
|
/packages/modules/StatsD/statsd/benchmark/ |
D | duration_metric_benchmark.cpp | 122 auto links = metric->add_links(); in CreateDurationMetricConfig_Link_AND_CombinationCondition() local 123 links->set_condition(isSyncingPredicate.id()); in CreateDurationMetricConfig_Link_AND_CombinationCondition() 124 *links->mutable_fields_in_what() = in CreateDurationMetricConfig_Link_AND_CombinationCondition() 127 *links->mutable_fields_in_condition() = in CreateDurationMetricConfig_Link_AND_CombinationCondition()
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | EventMetricProducer.cpp | 70 if (metric.links().size() > 0) { in EventMetricProducer() 71 for (const auto& link : metric.links()) { in EventMetricProducer() 125 metric.condition(), mMetricId, metricIndex, conditionTrackerMap, metric.links(), in onConfigUpdatedLocked()
|
D | CountMetricProducer.cpp | 96 if (metric.links().size() > 0) { in CountMetricProducer() 97 for (const auto& link : metric.links()) { in CountMetricProducer() 170 metric.condition(), mMetricId, metricIndex, conditionTrackerMap, metric.links(), in onConfigUpdatedLocked()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowUtils.java | 170 public static void setHandledDomains(ArraySet<String> links) { in setHandledDomains() argument 171 sResultLinks = links; in setHandledDomains()
|
/packages/modules/StatsD/statsd/src/metrics/parsing_utils/ |
D | metrics_manager_util.cpp | 177 const ::google::protobuf::RepeatedPtrField<MetricConditionLink>& links, in handleMetricWithConditions() 186 for (const auto& link : links) { in handleMetricWithConditions() 459 metric.condition(), metric.id(), metricIndex, conditionTrackerMap, metric.links(), in createCountMetricProducerAndUpdateMetadata() 628 metric.condition(), metric.id(), metricIndex, conditionTrackerMap, metric.links(), in createDurationMetricProducerAndUpdateMetadata() 763 metric.condition(), metric.id(), metricIndex, conditionTrackerMap, metric.links(), in createEventMetricProducerAndUpdateMetadata() 864 metric.condition(), metric.id(), metricIndex, conditionTrackerMap, metric.links(), in createNumericValueMetricProducerAndUpdateMetadata() 944 {conditionIndex, metric.links(), initialConditionCache, wizard}, in createNumericValueMetricProducerAndUpdateMetadata() 1019 metric.condition(), metric.id(), metricIndex, conditionTrackerMap, metric.links(), in createKllMetricProducerAndUpdateMetadata() 1095 {conditionIndex, metric.links(), initialConditionCache, wizard}, in createKllMetricProducerAndUpdateMetadata() 1195 metric.condition(), metric.id(), metricIndex, conditionTrackerMap, metric.links(), in createGaugeMetricProducerAndUpdateMetadata()
|
D | config_update_utils.cpp | 586 conditionDependencies, metric.slice_by_state(), metric.links(), in determineAllMetricUpdateStatuses() 601 conditionDependencies, metric.slice_by_state(), metric.links(), in determineAllMetricUpdateStatuses() 616 conditionDependencies, ::google::protobuf::RepeatedField<int64_t>(), metric.links(), in determineAllMetricUpdateStatuses() 631 conditionDependencies, metric.slice_by_state(), metric.links(), in determineAllMetricUpdateStatuses() 650 conditionDependencies, ::google::protobuf::RepeatedField<int64_t>(), metric.links(), in determineAllMetricUpdateStatuses() 666 conditionDependencies, metric.slice_by_state(), metric.links(), in determineAllMetricUpdateStatuses()
|