Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/net/
DScoredNetworkTest.java51 ScoredNetwork.ATTRIBUTES_KEY_RANKING_SCORE_OFFSET, RANKING_SCORE_OFFSET); in ATTRIBUTES.putInt()
59 ScoredNetwork scoredNetwork1 = in scoredNetworksWithBothNullAttributeBundle_equal()
60 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, null /* attributes */); in scoredNetworksWithBothNullAttributeBundle_equal()
61 ScoredNetwork scoredNetwork2 = in scoredNetworksWithBothNullAttributeBundle_equal()
62 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, null /* attributes */); in scoredNetworksWithBothNullAttributeBundle_equal()
68 ScoredNetwork scoredNetwork1 = in scoredNetworksWithOneNullAttributeBundle_notEqual()
69 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, ATTRIBUTES); in scoredNetworksWithOneNullAttributeBundle_notEqual()
70 ScoredNetwork scoredNetwork2 = in scoredNetworksWithOneNullAttributeBundle_notEqual()
71 new ScoredNetwork(KEY, CURVE, false /* meteredHint */, null /* attributes */); in scoredNetworksWithOneNullAttributeBundle_notEqual()
77 ScoredNetwork scoredNetwork1 = in scoredNetworksWithDifferentSizedAttributeBundle_notEqual()
[all …]
/frameworks/base/core/java/android/net/
DScoredNetwork.java35 public class ScoredNetwork implements Parcelable { class
113 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve) { in ScoredNetwork() method in ScoredNetwork
130 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint) { in ScoredNetwork() method in ScoredNetwork
148 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint, in ScoredNetwork() method in ScoredNetwork
156 private ScoredNetwork(Parcel in) { in ScoredNetwork() method in ScoredNetwork
190 ScoredNetwork that = (ScoredNetwork) o; in equals()
307 public static final @android.annotation.NonNull Parcelable.Creator<ScoredNetwork> CREATOR =
308 new Parcelable.Creator<ScoredNetwork>() {
310 public ScoredNetwork createFromParcel(Parcel in) {
311 return new ScoredNetwork(in);
[all …]
DINetworkScoreCache.aidl19 import android.net.ScoredNetwork;
39 void updateScores(in List<ScoredNetwork> networks); in updateScores()
DINetworkScoreService.aidl22 import android.net.ScoredNetwork;
35 boolean updateScores(in ScoredNetwork[] networks); in updateScores()
DScoredNetwork.aidl19 parcelable ScoredNetwork;
DNetworkScoreManager.java303 public boolean updateScores(@NonNull ScoredNetwork[] networks) throws SecurityException { in updateScores()
473 void updateScores(@NonNull List<ScoredNetwork> networks); in updateScores()
495 public void updateScores(@NonNull List<ScoredNetwork> networks) { in updateScores()
/frameworks/base/wifi/java/android/net/wifi/
DWifiNetworkScoreCache.java26 import android.net.ScoredNetwork;
68 private final LruCache<String, ScoredNetwork> mCache;
91 @Override public final void updateScores(List<ScoredNetwork> networks) { in updateScores()
102 for (ScoredNetwork network : networks) { in updateScores()
143 ScoredNetwork network = getScoredNetwork(result); in hasScoreCurve()
150 ScoredNetwork network = getScoredNetwork(result); in getNetworkScore()
168 ScoredNetwork network = getScoredNetwork(result); in getMeteredHint()
175 ScoredNetwork network = getScoredNetwork(result); in getNetworkScore()
189 public ScoredNetwork getScoredNetwork(ScanResult result) { in getScoredNetwork()
194 ScoredNetwork network = mCache.get(key); in getScoredNetwork()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkScoreCacheTest.java27 import android.net.ScoredNetwork;
73 private List<ScoredNetwork> mUpdatedNetworksCaptor;
74 private ScoredNetwork mValidScoredNetwork;
89 private static ScoredNetwork buildScoredNetwork(WifiKey key, RssiCurve curve) { in buildScoredNetwork()
90 return new ScoredNetwork(new NetworkKey(key), curve); in buildScoredNetwork()
114 public void networkCacheUpdated(List<ScoredNetwork> updatedNetworks) { in setUp()
136 ScoredNetwork network2 = buildScoredNetwork(key2, mockRssiCurve); in updateScoresShouldAddNewNetwork()
158 ScoredNetwork noCurve = buildScoredNetwork(VALID_KEY, null /* rssiCurve */); in hasScoreCurveShouldReturnFalseWhenScoredNetworkHasNoCurve()
183 ScoredNetwork network = in getMeteredHintShouldReturnTrue()
184 new ScoredNetwork( in getMeteredHintShouldReturnTrue()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DTimestampedScoredNetwork.java19 import android.net.ScoredNetwork;
27 private ScoredNetwork mScore;
30 TimestampedScoredNetwork(ScoredNetwork score, long updatedTimestampMillis) { in TimestampedScoredNetwork()
36 mScore = in.readParcelable(ScoredNetwork.class.getClassLoader()); in TimestampedScoredNetwork()
40 public void update(ScoredNetwork score, long updatedTimestampMillis) { in update()
45 public ScoredNetwork getScore() { in getScore()
DWifiStatusTracker.java26 import android.net.ScoredNetwork;
50 public void networkCacheUpdated(List<ScoredNetwork> updatedNetworks) {
178 ScoredNetwork scoredNetwork = in updateStatusLabel()
DAccessPoint.java35 import android.net.ScoredNetwork;
560 ScoredNetwork score = scoreCache.getScoredNetwork(result); in updateScores()
642 ScoredNetwork score = scoreCache.getScoredNetwork(key); in updateMetered()
649 ScoredNetwork score = scoreCache.getScoredNetwork(result); in updateMetered()
1582 public static String getSpeedLabel(Context context, ScoredNetwork scoredNetwork, int rssi) { in getSpeedLabel()
DWifiTracker.java31 import android.net.ScoredNetwork;
261 public void networkCacheUpdated(List<ScoredNetwork> networks) { in setWorkThread()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScoreServiceTest.java54 import android.net.ScoredNetwork;
113 private static final ScoredNetwork SCORED_NETWORK =
114 new ScoredNetwork(new NetworkKey(new WifiKey(quote(SSID), "00:00:00:00:00:00")),
116 private static final ScoredNetwork SCORED_NETWORK_2 =
117 new ScoredNetwork(new NetworkKey(new WifiKey(quote(SSID_2), "00:00:00:00:00:00")),
132 @Mock private UnaryOperator<List<ScoredNetwork>> mCurrentNetworkFilter;
133 @Mock private UnaryOperator<List<ScoredNetwork>> mScanResultsFilter;
137 @Captor private ArgumentCaptor<List<ScoredNetwork>> mScoredNetworkCaptor;
295 mNetworkScoreService.updateScores(new ScoredNetwork[0]); in testUpdateScores_notActiveScorer()
309 mNetworkScoreService.updateScores(new ScoredNetwork[]{SCORED_NETWORK}); in testUpdateScores_oneRegisteredCache()
[all …]
/frameworks/base/services/core/java/com/android/server/
DNetworkScoreService.java38 import android.net.ScoredNetwork;
443 public boolean updateScores(ScoredNetwork[] networks) { in updateScores()
452 Map<Integer, List<ScoredNetwork>> networksByType = new ArrayMap<>(); in updateScores()
453 for (ScoredNetwork network : networks) { in updateScores()
454 List<ScoredNetwork> networkList = networksByType.get(network.networkKey.type); in updateScores()
463 for (final Map.Entry<Integer, List<ScoredNetwork>> entry : networksByType.entrySet()) { in updateScores()
501 private final List<ScoredNetwork> mScoredNetworkList;
506 private UnaryOperator<List<ScoredNetwork>> mCurrentNetworkFilter;
507 private UnaryOperator<List<ScoredNetwork>> mScanResultsFilter;
510 List<ScoredNetwork> scoredNetworkList, int networkType) { in create()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DTimestampedScoredNetworkTest.java21 import android.net.ScoredNetwork;
36 private ScoredNetwork createTestScoredNetwork(String ssid) { in createTestScoredNetwork()
37 return new ScoredNetwork( in createTestScoredNetwork()
50 ScoredNetwork updated = createTestScoredNetwork("updated"); in testUpdate()
DWifiUtilsTest.java28 import android.net.ScoredNetwork;
170 private ScoredNetwork buildScoredNetworkWithGivenBadgeCurve(RssiCurve badgeCurve) { in buildScoredNetworkWithGivenBadgeCurve()
172 attr1.putParcelable(ScoredNetwork.ATTRIBUTES_KEY_BADGING_CURVE, badgeCurve); in buildScoredNetworkWithGivenBadgeCurve()
173 return new ScoredNetwork( in buildScoredNetworkWithGivenBadgeCurve()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkSelectorTestUtil.java27 import android.net.ScoredNetwork;
341 List<ScoredNetwork> networks = new ArrayList<>(); in configureScoreCache()
363 ScoredNetwork scoredNetwork = new ScoredNetwork(ntwkKey, rssiCurve, meteredHints[i]); in configureScoreCache()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DWifiTrackerTest.java44 import android.net.ScoredNetwork;
391 attr1.putParcelable(ScoredNetwork.ATTRIBUTES_KEY_BADGING_CURVE, mockBadgeCurve1); in sendUpdatedScores()
392 ScoredNetwork sc1 = in sendUpdatedScores()
393 new ScoredNetwork( in sendUpdatedScores()
400 attr2.putParcelable(ScoredNetwork.ATTRIBUTES_KEY_BADGING_CURVE, mockBadgeCurve2); in sendUpdatedScores()
401 ScoredNetwork sc2 = in sendUpdatedScores()
402 new ScoredNetwork( in sendUpdatedScores()
DAccessPointTest.java38 import android.net.ScoredNetwork;
340 new ScoredNetwork(
607 private ScoredNetwork buildScoredNetworkWithMockBadgeCurve() {
611 private ScoredNetwork buildScoredNetworkWithGivenBadgeCurve(RssiCurve badgeCurve) {
613 attr1.putParcelable(ScoredNetwork.ATTRIBUTES_KEY_BADGING_CURVE, badgeCurve);
614 return new ScoredNetwork(
1119 ScoredNetwork.ATTRIBUTES_KEY_BADGING_CURVE); in testScoredNetworkCacheBundling()
1165 ScoredNetwork scoredNetwork = buildScoredNetworkWithGivenBadgeCurve(FAST_BADGE_CURVE); in testUpdateScoresRefreshesScoredNetworkCacheTimestamps()
1193 ScoredNetwork scoredNetwork = buildScoredNetworkWithGivenBadgeCurve(FAST_BADGE_CURVE); in testUpdateScoresRefreshesScoredNetworkCacheWithNewSpeed()
/frameworks/base/api/
Dsystem-current.txt4645 …sion.SCORE_NETWORKS) public boolean updateScores(@NonNull android.net.ScoredNetwork[]) throws java…
4661 method public void updateScores(@NonNull java.util.List<android.net.ScoredNetwork>);
4724 public class ScoredNetwork implements android.os.Parcelable {
4725 ctor public ScoredNetwork(android.net.NetworkKey, android.net.RssiCurve);
4726 ctor public ScoredNetwork(android.net.NetworkKey, android.net.RssiCurve, boolean);
4727 …ctor public ScoredNetwork(android.net.NetworkKey, android.net.RssiCurve, boolean, @Nullable androi…
4734 …field @NonNull public static final android.os.Parcelable.Creator<android.net.ScoredNetwork> CREATO…
/frameworks/base/non-updatable-api/
Dsystem-current.txt4645 …sion.SCORE_NETWORKS) public boolean updateScores(@NonNull android.net.ScoredNetwork[]) throws java…
4661 method public void updateScores(@NonNull java.util.List<android.net.ScoredNetwork>);
4724 public class ScoredNetwork implements android.os.Parcelable {
4725 ctor public ScoredNetwork(android.net.NetworkKey, android.net.RssiCurve);
4726 ctor public ScoredNetwork(android.net.NetworkKey, android.net.RssiCurve, boolean);
4727 …ctor public ScoredNetwork(android.net.NetworkKey, android.net.RssiCurve, boolean, @Nullable androi…
4734 …field @NonNull public static final android.os.Parcelable.Creator<android.net.ScoredNetwork> CREATO…
/frameworks/base/config/
Dpreloaded-classes2579 android.net.ScoredNetwork$1
2580 android.net.ScoredNetwork
Dboot-image-profile.txt10524 HSPLandroid/net/ScoredNetwork$1;-><init>()V
10525 HSPLandroid/net/ScoredNetwork$1;->createFromParcel(Landroid/os/Parcel;)Landroid/net/ScoredNetwork;
10526 HSPLandroid/net/ScoredNetwork$1;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;
10527 HPLandroid/net/ScoredNetwork$1;->newArray(I)[Landroid/net/ScoredNetwork;
10528 HPLandroid/net/ScoredNetwork$1;->newArray(I)[Ljava/lang/Object;
10529 HSPLandroid/net/ScoredNetwork;-><init>(Landroid/os/Parcel;)V
10978 …/wifi/WifiNetworkScoreCache;->getScoredNetwork(Landroid/net/NetworkKey;)Landroid/net/ScoredNetwork;
10979 …/WifiNetworkScoreCache;->getScoredNetwork(Landroid/net/wifi/ScanResult;)Landroid/net/ScoredNetwork;
34938 Landroid/net/ScoredNetwork$1;
34939 Landroid/net/ScoredNetwork;
[all …]
Dhiddenapi-greylist-max-o.txt43453 Landroid/net/INetworkScoreService$Stub$Proxy;->updateScores([Landroid/net/ScoredNetwork;)Z
43477 Landroid/net/INetworkScoreService;->updateScores([Landroid/net/ScoredNetwork;)Z
45046 Landroid/net/ScoredNetwork;-><init>(Landroid/os/Parcel;)V
45047 Landroid/net/ScoredNetwork;->bundleEquals(Landroid/os/Bundle;Landroid/os/Bundle;)Z
45048 Landroid/net/ScoredNetwork;->calculateRankingScore(I)I
45049 Landroid/net/ScoredNetwork;->hasRankingScore()Z
47495 Landroid/net/wifi/WifiNetworkScoreCache;->buildNetworkKey(Landroid/net/ScoredNetwork;)Ljava/lang/St…
47503 …/wifi/WifiNetworkScoreCache;->getScoredNetwork(Landroid/net/NetworkKey;)Landroid/net/ScoredNetwork;
47504 …/WifiNetworkScoreCache;->getScoredNetwork(Landroid/net/wifi/ScanResult;)Landroid/net/ScoredNetwork;
/frameworks/base/services/
Dart-profile1544 PLcom/android/server/NetworkScoreService;->updateScores([Landroid/net/ScoredNetwork;)Z