History log of /frameworks/opt/net/wifi/service/java/com/android/server/wifi/DeletedEphemeralSsidsStoreData.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0a0b5035ce8013ed327a0802357a1b7df3061912 07-Feb-2017 Peter Qiu <zqiu@google.com> Wifi configuration store data refactor

Currently, the unified config store files contained data for
network list and deleted ephemeral SSID list. Since both of them
are owned by WifiConfigManager, it is tightly integrated into
WifiConfigManager, results in complexities when need to add
new data that's not owned by WifiConfigManager (e.g. Passpoint
configurations) to the store file.

To reduce the complexity, an abstraction is provided for the store
data to be persist to the store files. Any interested module
can register its own store data to the store file. Then at read/
write time, WifiConfigStore will iterate through each registered
store data to deserialize/serialize configuration data from/to
a XML block, to be persist to the store file.

So each StoreData is responsible for serialization/deserialization
of a XML block denoted by its tag. For example,
WifiNetworkListStoreData is responsible for the XML block under
tag <NetworkList>.

Bug: 31065385
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: Manual test to verify saved networks are persisted over boots
Test: Manual test to verify migration of legacy store file still works
Test: Regression integration test
Change-Id: I83c2eb7cd907188f392b5179405f19182ee13bb9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/DeletedEphemeralSsidsStoreData.java