IpConfigStore: New constructor to accept writer
Add a new constructor to accept a DelayeDiskWrite object from the caller. BUG: 27293150 Change-Id: I13fb86c76ee5a0d05b45fec0c42b7e1b2233ee76 TEST: `runtest frameworks-wifi`
This commit is contained in:
@@ -59,8 +59,12 @@ public class IpConfigStore {
|
|||||||
|
|
||||||
protected static final int IPCONFIG_FILE_VERSION = 2;
|
protected static final int IPCONFIG_FILE_VERSION = 2;
|
||||||
|
|
||||||
|
public IpConfigStore(DelayedDiskWrite writer) {
|
||||||
|
mWriter = writer;
|
||||||
|
}
|
||||||
|
|
||||||
public IpConfigStore() {
|
public IpConfigStore() {
|
||||||
mWriter = new DelayedDiskWrite();
|
this(new DelayedDiskWrite());
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean writeConfig(DataOutputStream out, int configKey,
|
private boolean writeConfig(DataOutputStream out, int configKey,
|
||||||
|
|||||||
Reference in New Issue
Block a user