Implement setNetworkPreferenceForUser.

Test: FrameworksNetTests
Change-Id: I8f18083b5857289892fe8adea5f5ea3f5dbe0809
This commit is contained in:
Chalard Jean
2021-02-25 21:46:34 +09:00
parent fa45a68c91
commit b5a139f32a
3 changed files with 269 additions and 12 deletions

View File

@@ -72,6 +72,14 @@ public final class OemNetworkPreferences implements Parcelable {
@NonNull
private final Bundle mNetworkMappings;
/**
* Return whether this object is empty.
* @hide
*/
public boolean isEmpty() {
return mNetworkMappings.keySet().size() == 0;
}
/**
* Return the currently built application package name to {@link OemNetworkPreference} mappings.
* @return the current network preferences map.