Home
last modified time | relevance | path

Searched refs:SerializationUtil (Results 1 – 17 of 17) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DSerializationUtilTest.java56 String serializedException = SerializationUtil.serializeToString(e); in testSerialize_DeserializeString()
57 Object o = SerializationUtil.deserialize(serializedException); in testSerialize_DeserializeString()
66 File tmpSerialized = SerializationUtil.serialize(b); in testSerialize_Deserialize()
67 Object o = SerializationUtil.deserialize(tmpSerialized, true); in testSerialize_Deserialize()
82 File tmpSerialized = SerializationUtil.serialize(b); in testSerialize_Deserialize_noDelete()
84 Object o = SerializationUtil.deserialize(tmpSerialized, false); in testSerialize_Deserialize_noDelete()
99 SerializationUtil.deserialize(new File("doesnotexists"), true); in testDeserialize_noFile()
113 File tmpSerialized = SerializationUtil.serialize(b); in testSerialize_Deserialize_corrupted()
117 SerializationUtil.deserialize(tmpSerialized, true); in testSerialize_Deserialize_corrupted()
134 SerializationUtil.serialize(test); in testSerialized_notSerializable()
DSubprocessTestResultsParserTest.java485 serializedModule = SerializationUtil.serialize(fakeModuleContext); in testParse_moduleStarted_end()
518 serializedLogFile = SerializationUtil.serialize(logFile); in testParse_logAssociation()
554 serializedLogFile = SerializationUtil.serialize(logFile); in testParse_logAssociation_notUploaded()
588 serializedLogFile = SerializationUtil.serialize(logFile); in testParse_logAssociation_zipped()
623 serializedLogFile = SerializationUtil.serialize(logFile); in testParse_avoidDoubleLog()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DTargetSetupErrorTest.java26 import com.android.tradefed.util.SerializationUtil;
48 File s = SerializationUtil.serialize(exception); in testSerialization()
52 Object o = SerializationUtil.deserialize(s, true); in testSerialization()
78 File s = SerializationUtil.serialize(exception); in testSerialization_withIDevice()
82 Object o = SerializationUtil.deserialize(s, true); in testSerialization_withIDevice()
/tools/tradefederation/core/src/com/android/tradefed/util/
DSubprocessEventHelper.java578 mLoggedFile = (LogFile) SerializationUtil.deserialize(new File(file), true); in LogAssociationEventInfo()
595 File serializedLoggedFile = SerializationUtil.serialize(mLoggedFile); in toString()
677 (IInvocationContext) SerializationUtil.deserialize(new File(file), true); in TestModuleStartedEventInfo()
688 File serializedContext = SerializationUtil.serialize(mModuleContext); in toString()
DSubprocessExceptionParser.java53 Throwable obj = (Throwable) SerializationUtil.deserialize(exception, true); in handleStderrException()
DSerializationUtil.java30 public class SerializationUtil { class
/tools/tradefederation/core/tests/src/com/android/tradefed/error/
DHarnessExceptionTest.java22 import com.android.tradefed.util.SerializationUtil;
42 File serial = SerializationUtil.serialize(e); in testSerializable()
44 (HarnessException) SerializationUtil.deserialize(serial, true); in testSerializable()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationDescriptorTest.java22 import com.android.tradefed.util.SerializationUtil;
78 File serialized = SerializationUtil.serialize(descriptor); in testSerialization()
81 (ConfigurationDescriptor) SerializationUtil.deserialize(serialized, true); in testSerialization()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DDeviceFolderBuildInfoTest.java26 import com.android.tradefed.util.SerializationUtil;
109 File tmpSerialized = SerializationUtil.serialize(mDeviceFolderBuildInfo); in testSerialization()
110 Object o = SerializationUtil.deserialize(tmpSerialized, true); in testSerialization()
DBuildInfoTest.java28 import com.android.tradefed.util.SerializationUtil;
120 File tmpSerialized = SerializationUtil.serialize(mBuildInfo); in testSerialization()
121 Object o = SerializationUtil.deserialize(tmpSerialized, true); in testSerialization()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DInvocationContextTest.java32 import com.android.tradefed.util.SerializationUtil;
132 File ser = SerializationUtil.serialize(mContext); in testSerialize()
135 (InvocationContext) SerializationUtil.deserialize(ser, true); in testSerialize()
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DTradefedSandboxRunner.java32 import com.android.tradefed.util.SerializationUtil;
78 serializedException = SerializationUtil.serialize(e); in printStackTrace()
115 context = (IInvocationContext) SerializationUtil.deserialize(contextFile, false); in run()
DSandboxInvocationRunner.java28 import com.android.tradefed.util.SerializationUtil;
94 Throwable obj = (Throwable) SerializationUtil.deserialize(exception, true); in handleStderrException()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandRunner.java25 import com.android.tradefed.util.SerializationUtil;
77 serializedException = SerializationUtil.serialize(e); in printStackTrace()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/
DProtoResultReporterTest.java36 import com.android.tradefed.util.SerializationUtil;
178 (NullPointerException) SerializationUtil.deserialize(serializedException); in testInvocationFailure()
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DProtoResultReporter.java37 import com.android.tradefed.util.SerializationUtil;
568 debugContext.setErrorType(SerializationUtil.serializeToString(baseException)); in handleInvocationFailure()
DProtoResultParser.java45 import com.android.tradefed.util.SerializationUtil;
323 (Throwable) SerializationUtil.deserialize(errorType); in handleInvocationEnded()