Home
last modified time | relevance | path

Searched refs:ProtoStore (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/chunking/
DProtoStore.java45 public class ProtoStore<T extends MessageNano> { class
55 public static ProtoStore<ChunksMetadataProto.ChunkListing> createChunkListingStore( in createChunkListingStore()
57 return new ProtoStore<>( in createChunkListingStore()
63 public static ProtoStore<KeyValueListingProto.KeyValueListing> createKeyValueListingStore( in createKeyValueListingStore()
65 return new ProtoStore<>( in createKeyValueListingStore()
76 ProtoStore(Class<T> clazz, File storeFolder) throws IOException { in ProtoStore() method in ProtoStore
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/
DClearCryptoStateTaskTest.java29 import com.android.server.backup.encryption.chunking.ProtoStore;
61 ProtoStore.createChunkListingStore(mApplication).saveProto(packageName, chunkListing); in run_clearsChunkListingProtoState()
66 ProtoStore.createChunkListingStore(mApplication) in run_clearsChunkListingProtoState()
76 ProtoStore.createKeyValueListingStore(mApplication).saveProto(packageName, keyValueListing); in run_clearsKeyValueProtoState()
81 ProtoStore.createKeyValueListingStore(mApplication) in run_clearsKeyValueProtoState()
DEncryptedKvBackupTaskTest.java35 import com.android.server.backup.encryption.chunking.ProtoStore;
83 @Mock private ProtoStore<KeyValueListingProto.KeyValueListing> mKeyValueListingStore;
84 @Mock private ProtoStore<ChunksMetadataProto.ChunkListing> mChunkListingStore;
99 mKeyValueListingStore = ProtoStore.createKeyValueListingStore(application); in setUp()
100 mChunkListingStore = ProtoStore.createChunkListingStore(application); in setUp()
DEncryptedFullBackupTaskTest.java29 import com.android.server.backup.encryption.chunking.ProtoStore;
69 @Mock private ProtoStore<ChunkListing> mChunkListingStore;
DEncryptedFullBackupDataProcessorTest.java33 import com.android.server.backup.encryption.chunking.ProtoStore;
359 ProtoStore<ChunksMetadataProto.ChunkListing> chunkListingStore, in __constructor__()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/
DEncryptedKvBackupTask.java30 import com.android.server.backup.encryption.chunking.ProtoStore;
54 private final ProtoStore<KeyValueListingProto.KeyValueListing> mKeyValueListingStore;
55 private final ProtoStore<ChunksMetadataProto.ChunkListing> mChunkListingStore;
101 ProtoStore.createKeyValueListingStore(context), in newInstance()
103 ProtoStore.createChunkListingStore(context), in newInstance()
114 ProtoStore<KeyValueListingProto.KeyValueListing> keyValueListingStore, in EncryptedKvBackupTask()
116 ProtoStore<ChunksMetadataProto.ChunkListing> chunkListingStore, in EncryptedKvBackupTask()
DClearCryptoStateTask.java23 import com.android.server.backup.encryption.chunking.ProtoStore;
61 ProtoStore.createChunkListingStore(mContext).deleteAllProtos(); in run()
66 ProtoStore.createKeyValueListingStore(mContext).deleteAllProtos(); in run()
DEncryptedFullBackupTask.java24 import com.android.server.backup.encryption.chunking.ProtoStore;
72 private final ProtoStore<ChunkListing> mChunkListingStore;
107 ProtoStore.createChunkListingStore(context), in newInstance()
117 ProtoStore<ChunkListing> chunkListingStore, in EncryptedFullBackupTask()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/
DProtoStoreTest.java67 private ProtoStore<ChunksMetadataProto.ChunkListing> mProtoStore;
72 mProtoStore = new ProtoStore<>(ChunksMetadataProto.ChunkListing.class, mStoreFolder); in setUp()
87 ProtoStore<ChunksMetadataProto.ChunkListing> chunkListingStore = in differentStoreTypes_operateSimultaneouslyWithoutInterfering()
88 ProtoStore.createChunkListingStore(application); in differentStoreTypes_operateSimultaneouslyWithoutInterfering()
89 ProtoStore<KeyValueListingProto.KeyValueListing> keyValueListingStore = in differentStoreTypes_operateSimultaneouslyWithoutInterfering()
90 ProtoStore.createKeyValueListingStore(application); in differentStoreTypes_operateSimultaneouslyWithoutInterfering()
110 new ProtoStore<>( in construct_storeLocationIsFile_throws()
156 mProtoStore = new ProtoStore<>(ChunksMetadataProto.ChunkListing.class, mStoreFolder); in saveProto_persistsToNewInstance()