Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkKeyTest.java51 assertNull(NetworkKey.createFromWifiInfo(null)); in createFromWifi_nullInput()
57 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_nullSsid()
64 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_emptySsid()
71 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_noneSsid()
77 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_nullBssid()
84 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_emptyBssid()
91 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_invalidBssid()
99 NetworkKey expected = new NetworkKey(new WifiKey(VALID_SSID, VALID_BSSID)); in createFromWifi_validWifiInfo()
100 final NetworkKey actual = NetworkKey.createFromWifiInfo(mWifiInfo); in createFromWifi_validWifiInfo()
106 assertNull(NetworkKey.createFromScanResult(null)); in createFromScanResult_nullInput()
[all …]
DNetworkRecommendationProviderTest.java52 private NetworkKey[] mTestNetworkKeys;
62 mTestNetworkKeys = new NetworkKey[2]; in setUp()
63 mTestNetworkKeys[0] = new NetworkKey(new WifiKey("\"ssid_01\"", "00:00:00:00:00:11")); in setUp()
64 mTestNetworkKeys[1] = new NetworkKey(new WifiKey("\"ssid_02\"", "00:00:00:00:00:22")); in setUp()
87 mStub.requestScores(new NetworkKey[0]); in testScoreRequest_emptyInput()
109 NetworkKey[] mCapturedNetworks;
117 public void onRequestScores(NetworkKey[] networks) { in onRequestScores()
DScoredNetworkTest.java54 private static final NetworkKey KEY
55 = new NetworkKey(new WifiKey("\"ssid\"", "00:00:00:00:00:00"));
/frameworks/base/core/java/android/net/
DNetworkKey.java49 public class NetworkKey implements Parcelable { class
83 public static NetworkKey createFromScanResult(@NonNull ScanResult result) { in createFromScanResult()
96 return new NetworkKey(wifiKey); in createFromScanResult()
112 public static NetworkKey createFromWifiInfo(@Nullable WifiInfo wifiInfo) { in createFromWifiInfo()
125 return new NetworkKey(wifiKey); in createFromWifiInfo()
135 public NetworkKey(WifiKey wifiKey) { in NetworkKey() method in NetworkKey
140 private NetworkKey(Parcel in) { in NetworkKey() method in NetworkKey
173 NetworkKey that = (NetworkKey) o; in equals()
196 public static final @android.annotation.NonNull Parcelable.Creator<NetworkKey> CREATOR =
197 new Parcelable.Creator<NetworkKey>() {
[all …]
DINetworkRecommendationProvider.aidl19 import android.net.NetworkKey;
36 void requestScores(in NetworkKey[] networks); in requestScores()
DScoredNetwork.java73 public final NetworkKey networkKey;
115 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve) { in ScoredNetwork()
132 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint) { in ScoredNetwork()
150 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint, in ScoredNetwork()
159 networkKey = NetworkKey.CREATOR.createFromParcel(in); in ScoredNetwork()
DINetworkScoreService.aidl20 import android.net.NetworkKey;
91 boolean requestScores(in NetworkKey[] networks); in requestScores()
DNetworkRecommendationProvider.java74 public abstract void onRequestScores(NetworkKey[] networks); in onRequestScores()
99 public void requestScores(final NetworkKey[] networks) throws RemoteException { in requestScores()
DNetworkScoreManager.java394 public boolean requestScores(@NonNull NetworkKey[] networks) throws SecurityException { in requestScores()
419 public boolean requestScores(@NonNull Collection<NetworkKey> networks) in requestScores()
421 return requestScores(networks.toArray(new NetworkKey[0])); in requestScores()
556 public void registerNetworkScoreCallback(@NetworkKey.NetworkType int networkType, in registerNetworkScoreCallback()
DNetworkKey.aidl19 parcelable NetworkKey;
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScoreServiceTest.java50 import android.net.NetworkKey;
114 new ScoredNetwork(new NetworkKey(new WifiKey(quote(SSID), "00:00:00:00:00:00")),
117 new ScoredNetwork(new NetworkKey(new WifiKey(quote(SSID_2), "00:00:00:00:00:00")),
245 assertFalse(mNetworkScoreService.requestScores(new NetworkKey[0])); in testRequestScores_providerNotConnected()
252 .requestScores(any(NetworkKey[].class)); in testRequestScores_providerThrowsRemoteException()
255 assertFalse(mNetworkScoreService.requestScores(new NetworkKey[0])); in testRequestScores_providerThrowsRemoteException()
262 final NetworkKey[] networks = new NetworkKey[0]; in testRequestScores_providerAvailable()
308 mNetworkScoreService.registerNetworkScoreCache(NetworkKey.TYPE_WIFI, in testUpdateScores_oneRegisteredCache()
323 mNetworkScoreService.registerNetworkScoreCache(NetworkKey.TYPE_WIFI, in testUpdateScores_twoRegisteredCaches()
326 NetworkKey.TYPE_WIFI, mNetworkScoreCache2, SCORE_FILTER_NONE); in testUpdateScores_twoRegisteredCaches()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DTimestampedScoredNetworkTest.java20 import android.net.NetworkKey;
38 new NetworkKey(new WifiKey("\"" + ssid + "\"", "00:00:00:00:00:00")), null); in createTestScoredNetwork()
DWifiUtilsTest.java30 import android.net.NetworkKey;
261 new NetworkKey(new WifiKey(TEST_SSID, TEST_BSSID)), in buildScoredNetworkWithGivenBadgeCurve()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java27 import android.net.NetworkKey;
209 mNetworkScoreManager.registerNetworkScoreCache(NetworkKey.TYPE_WIFI, in setListening()
216 mNetworkScoreManager.unregisterNetworkScoreCache(NetworkKey.TYPE_WIFI, in setListening()
294 NetworkKey networkKey = NetworkKey.createFromWifiInfo(mWifiInfo); in maybeRequestNetworkScore()
296 mNetworkScoreManager.requestScores(new NetworkKey[]{ networkKey }); in maybeRequestNetworkScore()
341 mWifiNetworkScoreCache.getScoredNetwork(NetworkKey.createFromWifiInfo(mWifiInfo)); in updateStatusLabel()
DWifiTracker.java28 import android.net.NetworkKey;
147 private final Set<NetworkKey> mRequestedScores = new ArraySet<>();
372 NetworkKey.TYPE_WIFI, in registerScoreCache()
377 private void requestScoresForNetworkKeys(Collection<NetworkKey> keys) { in requestScoresForNetworkKeys()
383 mNetworkScoreManager.requestScores(keys.toArray(new NetworkKey[keys.size()])); in requestScoresForNetworkKeys()
414 mNetworkScoreManager.unregisterNetworkScoreCache(NetworkKey.TYPE_WIFI, mScoreCache); in unregisterScoreCache()
579 final List<NetworkKey> scoresToRequest = new ArrayList<>(); in updateAccessPoints()
583 NetworkKey key = NetworkKey.createFromScanResult(result); in updateAccessPoints()
639 scoresToRequest.add(NetworkKey.createFromWifiInfo(mLastInfo)); in updateAccessPoints()
DAccessPoint.java34 import android.net.NetworkKey;
671 NetworkKey key = NetworkKey.createFromWifiInfo(mInfo); in updateMetered()
/frameworks/base/wifi/java/src/android/net/wifi/
DWifiNetworkScoreCache.java24 import android.net.NetworkKey;
200 public ScoredNetwork getScoredNetwork(NetworkKey networkKey) { in getScoredNetwork()
220 private String buildNetworkKey(NetworkKey networkKey) { in buildNetworkKey()
225 if (networkKey.type == NetworkKey.TYPE_WIFI) { in buildNetworkKey()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DWifiTrackerTest.java41 import android.net.NetworkKey;
100 private static final NetworkKey NETWORK_KEY_1 =
101 new NetworkKey(new WifiKey('"' + SSID_1 + '"', BSSID_1));
110 private static final NetworkKey NETWORK_KEY_2 =
111 new NetworkKey(new WifiKey('"' + SSID_2 + '"', BSSID_2));
157 private final List<NetworkKey> mRequestedKeys = new ArrayList<>();
210 NetworkKey[] keys = (NetworkKey[]) input.getArguments()[0]; in setUp()
211 for (NetworkKey key : keys) { in setUp()
216 }).when(mockNetworkScoreManager).requestScores(Matchers.<NetworkKey[]>any()); in setUp()
479 .unregisterNetworkScoreCache(NetworkKey.TYPE_WIFI, scoreCache); in startAndStopTrackingShouldRegisterAndUnregisterScoreCache()
[all …]
DAccessPointTest.java37 import android.net.NetworkKey;
562 new NetworkKey(new WifiKey(TEST_SSID, TEST_BSSID)),
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkScoreCacheTest.java25 import android.net.NetworkKey;
90 return new ScoredNetwork(new NetworkKey(key), curve); in buildScoredNetwork()
185 new NetworkKey(VALID_KEY), mockRssiCurve, true /* metered Hint */); in getMeteredHintShouldReturnTrue()
/frameworks/base/services/core/java/com/android/server/
DNetworkScoreService.java34 import android.net.NetworkKey;
628 private final NetworkKey mCurrentNetwork;
631 mCurrentNetwork = NetworkKey.createFromWifiInfo(wifiInfoSupplier.get()); in CurrentNetworkScoreCacheFilter()
663 private final Set<NetworkKey> mScanResultKeys;
671 NetworkKey key = NetworkKey.createFromScanResult(scanResult); in ScanResultsScoreCacheFilter()
863 public boolean requestScores(NetworkKey[] networks) { in requestScores()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DLinkBandwidthEstimator.java1130 private final Map<NetworkKey, NetworkBandwidth> mNetworkMap = new ArrayMap<>();
1132 private static class NetworkKey { class in LinkBandwidthEstimator
1138 NetworkKey(String plmn, int tac, String dataRat) { in NetworkKey() method in LinkBandwidthEstimator.NetworkKey
1145 if (!(o instanceof NetworkKey that) || hashCode() != o.hashCode()) { in equals()
1181 NetworkKey key = new NetworkKey(plmn, tac, dataRat); in lookupNetwork()
/frameworks/base/core/api/
Dsystem-current.txt9656 @Deprecated public class NetworkKey implements android.os.Parcelable {
9657 ctor @Deprecated public NetworkKey(android.net.WifiKey);
9658 …method @Deprecated @Nullable public static android.net.NetworkKey createFromScanResult(@NonNull an…
9661 …recated @NonNull public static final android.os.Parcelable.Creator<android.net.NetworkKey> CREATOR;
9670 method public abstract void onRequestScores(android.net.NetworkKey[]);
9678 …public boolean requestScores(@NonNull java.util.Collection<android.net.NetworkKey>) throws java.la…
9725 ctor @Deprecated public ScoredNetwork(android.net.NetworkKey, android.net.RssiCurve);
9726 ctor @Deprecated public ScoredNetwork(android.net.NetworkKey, android.net.RssiCurve, boolean);
9727 …ctor @Deprecated public ScoredNetwork(android.net.NetworkKey, android.net.RssiCurve, boolean, @Nul…
9737 field @Deprecated public final android.net.NetworkKey networkKey;
Dmodule-lib-lint-baseline.txt992 …ssion: android.net.NetworkScoreManager#requestScores(java.util.Collection<android.net.NetworkKey>):
/frameworks/base/boot/
Dboot-image-profile.txt11342 HSPLandroid/net/NetworkKey$1;->createFromParcel(Landroid/os/Parcel;)Landroid/net/NetworkKey;
11343 HSPLandroid/net/NetworkKey$1;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;
11344 HSPLandroid/net/NetworkKey$1;->newArray(I)[Landroid/net/NetworkKey;
11345 HSPLandroid/net/NetworkKey$1;->newArray(I)[Ljava/lang/Object;
11346 HSPLandroid/net/NetworkKey;-><init>(Landroid/net/WifiKey;)V
11347 HSPLandroid/net/NetworkKey;-><init>(Landroid/os/Parcel;)V
11348 HSPLandroid/net/NetworkKey;->createFromWifiInfo(Landroid/net/wifi/WifiInfo;)Landroid/net/NetworkKey;
11349 HSPLandroid/net/NetworkKey;->equals(Ljava/lang/Object;)Z
11350 HSPLandroid/net/NetworkKey;->writeToParcel(Landroid/os/Parcel;I)V
28041 Landroid/net/NetworkKey$1;
[all …]

12