question: public void serialize ( KXmlSerializer serializer ) throws IOException { mDeviceInfo . serialize ( serializer ) ; serializeHostInfo ( serializer ) ; serializeTestSummary ( serializer ) ; monkeyTag . serialize ( serializer ) ; List < TestPackageResult > pkgs = new ArrayList < TestPackageResult > ( mPackageMap . values ( ) ) ; Collections . sort ( pkgs , new PkgComparator ( ) ) ; for ( TestPackageResult r : pkgs ) { r . serialize ( serializer ) ; } }
target:  Serialize the test results to XML.