Searched refs:ExampleDatastoreProto (Results 1 – 3 of 3) sorted by relevance
23 import com.android.adservices.shared.datastore_testing.proto.ExampleDatastoreProto;34 private final GuavaDataStore<ExampleDatastoreProto> mDataStore;38 new GuavaDataStore.Builder<ExampleDatastoreProto>( in ExampleDataStore()41 new ProtoSerializer<ExampleDatastoreProto>( in ExampleDataStore()42 ExampleDatastoreProto.getDefaultInstance(), in ExampleDataStore()47 ListenableFuture<ExampleDatastoreProto> getDataAsync() { in getDataAsync()51 ListenableFuture<ExampleDatastoreProto> updateDataAsync( in updateDataAsync()52 Function<ExampleDatastoreProto, ExampleDatastoreProto> transform) { in updateDataAsync() argument
23 message ExampleDatastoreProto { message
23 import com.android.adservices.shared.datastore_testing.proto.ExampleDatastoreProto;33 private static final ExampleDatastoreProto EXAMPLE_DATASTORE_PROTO =34 ExampleDatastoreProto.newBuilder()49 ExampleDatastoreProto.class.getSimpleName() + getTestInvocationId()); in setup()56 .updateDataAsync(data -> ExampleDatastoreProto.getDefaultInstance()) in tearDown()67 ExampleDatastoreProto updatedProto = in testReadAndWriteProto()90 .isEqualTo(ExampleDatastoreProto.getDefaultInstance()); in testReadDefaultValue()