Home
last modified time | relevance | path

Searched refs:PerAppInfo (Results 1 – 5 of 5) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DNetworkSuggestionStoreDataTest.java34 import com.android.server.wifi.WifiNetworkSuggestionsManager.PerAppInfo;
286 Map<String, PerAppInfo> networkSuggestionsMap = new HashMap<>(); in serializeDeserializeSingleNetworkSuggestionFromSingleApp()
288 PerAppInfo appInfo = new PerAppInfo(TEST_UID_1, TEST_PACKAGE_NAME_1, TEST_FEATURE_ID); in serializeDeserializeSingleNetworkSuggestionFromSingleApp()
300 Map<String, PerAppInfo> deserializedPerAppInfoMap = in serializeDeserializeSingleNetworkSuggestionFromSingleApp()
319 Map<String, PerAppInfo> networkSuggestionsMap = new HashMap<>(); in serializeDeserializeSingleNetworkSuggestionFromMultipleApps()
321 PerAppInfo appInfo1 = new PerAppInfo(TEST_UID_1, TEST_PACKAGE_NAME_1, TEST_FEATURE_ID); in serializeDeserializeSingleNetworkSuggestionFromMultipleApps()
329 PerAppInfo appInfo2 = new PerAppInfo(TEST_UID_2, TEST_PACKAGE_NAME_2, TEST_FEATURE_ID); in serializeDeserializeSingleNetworkSuggestionFromMultipleApps()
345 Map<String, PerAppInfo> networkSuggestionsMap = new HashMap<>(); in serializeDeserializeMultipleNetworkSuggestionFromMultipleApps()
347 PerAppInfo appInfo1 = new PerAppInfo(TEST_UID_1, TEST_PACKAGE_NAME_1, TEST_FEATURE_ID); in serializeDeserializeMultipleNetworkSuggestionFromMultipleApps()
359 PerAppInfo appInfo2 = new PerAppInfo(TEST_UID_2, TEST_PACKAGE_NAME_2, TEST_FEATURE_ID); in serializeDeserializeMultipleNetworkSuggestionFromMultipleApps()
[all …]
DWifiNetworkSuggestionsManagerTest.java78 import com.android.server.wifi.WifiNetworkSuggestionsManager.PerAppInfo;
1613 Map<String, PerAppInfo> networkSuggestionsMapToWrite = mDataSource.toSerialize(); in testAddNetworkSuggestionsConfigStoreWrite()
1658 Map<String, PerAppInfo> networkSuggestionsMapToWrite = mDataSource.toSerialize(); in testRemoveNetworkSuggestionsConfigStoreWrite()
1677 PerAppInfo appInfo = new PerAppInfo(TEST_UID_1, TEST_PACKAGE_1, TEST_FEATURE); in testNetworkSuggestionsConfigStoreLoad()
1687 mDataSource.fromDeserialized(new HashMap<String, PerAppInfo>() {{ in testNetworkSuggestionsConfigStoreLoad()
1736 PerAppInfo appInfo1 = new PerAppInfo(TEST_UID_1, TEST_PACKAGE_1, TEST_FEATURE); in testNetworkSuggestionsConfigStoreLoadAfterUserSwitch()
1742 mDataSource.fromDeserialized(new HashMap<String, PerAppInfo>() {{ in testNetworkSuggestionsConfigStoreLoadAfterUserSwitch()
1749 PerAppInfo appInfo2 = new PerAppInfo(TEST_UID_2, TEST_PACKAGE_2, TEST_FEATURE); in testNetworkSuggestionsConfigStoreLoadAfterUserSwitch()
1755 mDataSource.fromDeserialized(new HashMap<String, PerAppInfo>() {{ in testNetworkSuggestionsConfigStoreLoadAfterUserSwitch()
2070 PerAppInfo appInfo = new PerAppInfo(TEST_UID_1, TEST_PACKAGE_1, TEST_FEATURE); in testAppOpsChangeAfterConfigStoreLoad()
[all …]
DNetworkSuggestionNominatorTest.java40 import com.android.server.wifi.WifiNetworkSuggestionsManager.PerAppInfo;
1115 PerAppInfo perAppInfo = new PerAppInfo(uids[i], packageNames[i], null); in buildNetworkSuggestions()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DNetworkSuggestionStoreData.java32 import com.android.server.wifi.WifiNetworkSuggestionsManager.PerAppInfo;
88 Map<String, PerAppInfo> toSerialize(); in toSerialize()
95 void fromDeserialized(Map<String, PerAppInfo> networkSuggestions); in fromDeserialized()
161 XmlSerializer out, final Map<String, PerAppInfo> networkSuggestionsMap, in serializeNetworkSuggestionsMap()
167 for (Entry<String, PerAppInfo> entry : networkSuggestionsMap.entrySet()) { in serializeNetworkSuggestionsMap()
259 private Map<String, PerAppInfo> parseNetworkSuggestionsMap(XmlPullParser in, int outerTagDepth, in parseNetworkSuggestionsMap()
263 Map<String, PerAppInfo> networkSuggestionsMap = new HashMap<>(); in parseNetworkSuggestionsMap()
269 PerAppInfo perAppInfo = null; in parseNetworkSuggestionsMap()
318 perAppInfo = new PerAppInfo(uid, packageName, featureId); in parseNetworkSuggestionsMap()
348 perAppInfo = new PerAppInfo(uid, packageName, featureId); in parseNetworkSuggestionsMap()
[all …]
DWifiNetworkSuggestionsManager.java154 public static class PerAppInfo { class in WifiNetworkSuggestionsManager
183 public PerAppInfo(int uid, @NonNull String packageName, @Nullable String featureId) { in PerAppInfo() method in WifiNetworkSuggestionsManager.PerAppInfo
221 if (!(other instanceof PerAppInfo)) return false; in equals()
222 PerAppInfo otherPerAppInfo = (PerAppInfo) other; in equals()
255 public final PerAppInfo perAppInfo;
259 @NonNull PerAppInfo perAppInfo, in ExtendedWifiNetworkSuggestion()
312 @NonNull PerAppInfo perAppInfo, boolean isAutoJoinEnabled) { in fromWns()
329 private final Map<String, PerAppInfo> mActiveNetworkSuggestionsPerApp = new HashMap<>();
436 public Map<String, PerAppInfo> toSerialize() { in toSerialize()
437 for (Map.Entry<String, PerAppInfo> entry : mActiveNetworkSuggestionsPerApp.entrySet()) { in toSerialize()
[all …]