/frameworks/base/core/tests/coretests/src/android/net/ |
D | ScoredNetworkTest.java | 51 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/ |
D | ScoredNetwork.java | 35 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 …]
|
D | INetworkScoreCache.aidl | 19 import android.net.ScoredNetwork; 39 void updateScores(in List<ScoredNetwork> networks); in updateScores()
|
D | INetworkScoreService.aidl | 22 import android.net.ScoredNetwork; 35 boolean updateScores(in ScoredNetwork[] networks); in updateScores()
|
D | ScoredNetwork.aidl | 19 parcelable ScoredNetwork;
|
D | NetworkScoreManager.java | 303 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/ |
D | WifiNetworkScoreCache.java | 26 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/ |
D | WifiNetworkScoreCacheTest.java | 27 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/ |
D | TimestampedScoredNetwork.java | 19 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()
|
D | WifiStatusTracker.java | 26 import android.net.ScoredNetwork; 50 public void networkCacheUpdated(List<ScoredNetwork> updatedNetworks) { 178 ScoredNetwork scoredNetwork = in updateStatusLabel()
|
D | AccessPoint.java | 35 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()
|
D | WifiTracker.java | 31 import android.net.ScoredNetwork; 261 public void networkCacheUpdated(List<ScoredNetwork> networks) { in setWorkThread()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkScoreServiceTest.java | 54 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/ |
D | NetworkScoreService.java | 38 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/ |
D | TimestampedScoredNetworkTest.java | 21 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()
|
D | WifiUtilsTest.java | 28 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/ |
D | WifiNetworkSelectorTestUtil.java | 27 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/ |
D | WifiTrackerTest.java | 44 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()
|
D | AccessPointTest.java | 38 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/ |
D | system-current.txt | 4645 …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/ |
D | system-current.txt | 4645 …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/ |
D | preloaded-classes | 2579 android.net.ScoredNetwork$1 2580 android.net.ScoredNetwork
|
D | boot-image-profile.txt | 10524 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 …]
|
D | hiddenapi-greylist-max-o.txt | 43453 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/ |
D | art-profile | 1544 PLcom/android/server/NetworkScoreService;->updateScores([Landroid/net/ScoredNetwork;)Z
|