Home
last modified time | relevance | path

Searched refs:protoDescriptor (Results 1 – 2 of 2) sorted by relevance

/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/config/
DConfigurationDescriptor.java231 ConfigurationDescription.Descriptor protoDescriptor) { in fromProto() argument
234 configDescriptor.mSuiteTags.addAll(protoDescriptor.getTestSuiteTagList()); in fromProto()
236 for (Metadata meta : protoDescriptor.getMetadataList()) { in fromProto()
242 configDescriptor.mNotShardable = !protoDescriptor.getShardable(); in fromProto()
244 configDescriptor.mNotStrictShardable = !protoDescriptor.getStrictShardable(); in fromProto()
246 configDescriptor.mUseSandboxing = protoDescriptor.getUseSandboxing(); in fromProto()
248 if (!protoDescriptor.getModuleName().isEmpty()) { in fromProto()
249 configDescriptor.mModuleName = protoDescriptor.getModuleName(); in fromProto()
252 if (protoDescriptor.hasAbi()) { in fromProto()
253 configDescriptor.mAbi = Abi.fromProto(protoDescriptor.getAbi()); in fromProto()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationDescriptorTest.java93 Descriptor protoDescriptor = descriptor.toProto(); in testProtoSerialization() local
94 assertTrue(protoDescriptor.getUseSandboxing()); in testProtoSerialization()
95 assertTrue(protoDescriptor.getShardable()); in testProtoSerialization()
96 assertTrue(protoDescriptor.getStrictShardable()); in testProtoSerialization()
98 ConfigurationDescriptor deserialized = ConfigurationDescriptor.fromProto(protoDescriptor); in testProtoSerialization()