Home
last modified time | relevance | path

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

/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationDescriptor.java230 ConfigurationDescription.Descriptor protoDescriptor) { in fromProto() argument
233 configDescriptor.mSuiteTags.addAll(protoDescriptor.getTestSuiteTagList()); in fromProto()
235 for (Metadata meta : protoDescriptor.getMetadataList()) { in fromProto()
241 configDescriptor.mNotShardable = !protoDescriptor.getShardable(); in fromProto()
243 configDescriptor.mNotStrictShardable = !protoDescriptor.getStrictShardable(); in fromProto()
245 configDescriptor.mUseSandboxing = protoDescriptor.getUseSandboxing(); in fromProto()
247 if (!protoDescriptor.getModuleName().isEmpty()) { in fromProto()
248 configDescriptor.mModuleName = protoDescriptor.getModuleName(); in fromProto()
251 if (protoDescriptor.hasAbi()) { in fromProto()
252 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()