Home
last modified time | relevance | path

Searched refs:TimeZoneDistro (Results 1 – 6 of 6) sorted by relevance

/system/timezone/distro/installer/src/test/com/android/timezone/distro/installer/
DTimeZoneDistroInstallerTest.java22 import com.android.timezone.distro.TimeZoneDistro;
116 brokenBaseInstaller.stageInstallWithErrorCode(new TimeZoneDistro(distroBytes)); in testStageInstallWithErrorCode_badBaseFile()
130 installer.stageInstallWithErrorCode(new TimeZoneDistro(distroBytes))); in testStageInstallWithErrorCode_successfulFirstUpdate()
143 installer.stageInstallWithErrorCode(new TimeZoneDistro(distroBytes))); in testStageInstallWithErrorCode_successfulFirstUpdate_sameVersionAsBase()
156 installer.stageInstallWithErrorCode(new TimeZoneDistro(distroBytes))); in testStageInstallWithErrorCode_unsuccessfulFirstUpdate_olderVersionThanBase()
169 installer.stageInstallWithErrorCode(new TimeZoneDistro(distro1Bytes))); in testStageInstallWithErrorCode_successfulFollowOnUpdate_newerVersion()
175 installer.stageInstallWithErrorCode(new TimeZoneDistro(distro2Bytes))); in testStageInstallWithErrorCode_successfulFollowOnUpdate_newerVersion()
181 installer.stageInstallWithErrorCode(new TimeZoneDistro(distro3Bytes))); in testStageInstallWithErrorCode_successfulFollowOnUpdate_newerVersion()
195 installer.stageInstallWithErrorCode(new TimeZoneDistro(distro1Bytes))); in testStageInstallWithErrorCode_unsuccessfulFollowOnUpdate_olderVersion()
201 installer.stageInstallWithErrorCode(new TimeZoneDistro(distro2Bytes))); in testStageInstallWithErrorCode_unsuccessfulFollowOnUpdate_olderVersion()
[all …]
/system/timezone/distro/core/src/test/com/android/timezone/distro/
DTimeZoneDistroTest.java58 addZipEntry(zipOutputStream, TimeZoneDistro.DISTRO_VERSION_FILE_NAME, in testGetDistroVersion()
62 TimeZoneDistro distro = new TimeZoneDistro(baos.toByteArray()); in testGetDistroVersion()
71 addZipEntry(zipOutputStream, TimeZoneDistro.DISTRO_VERSION_FILE_NAME, in testGetDistroVersion_closesStream()
77 TimeZoneDistro distro = new TimeZoneDistro(inputStream); in testGetDistroVersion_closesStream()
87 addZipEntry(zipOutputStream, TimeZoneDistro.DISTRO_VERSION_FILE_NAME, in testExtractTo_closesStream()
93 TimeZoneDistro distro = new TimeZoneDistro(inputStream); in testExtractTo_closesStream()
113 TimeZoneDistro.extractZipSafely(inputStream, targetDir, true /* makeWorldReadable */); in testExtractZipSafely_goodZip()
147 TimeZoneDistro.extractZipSafely(inputStream, targetDir, true /* makeWorldReadable */); in doExtractZipFails()
/system/timezone/distro/tools/src/main/com/android/timezone/distro/builder/
DTimeZoneDistroBuilder.java20 import com.android.timezone.distro.TimeZoneDistro;
126 addZipEntry(zos, TimeZoneDistro.DISTRO_VERSION_FILE_NAME, distroVersion.toBytes()); in buildUnvalidatedBytes()
130 addZipEntry(zos, TimeZoneDistro.TZDATA_FILE_NAME, tzData); in buildUnvalidatedBytes()
133 addZipEntry(zos, TimeZoneDistro.ICU_DATA_FILE_NAME, icuData); in buildUnvalidatedBytes()
136 addZipEntry(zos, TimeZoneDistro.TZLOOKUP_FILE_NAME, in buildUnvalidatedBytes()
140 addZipEntry(zos, TimeZoneDistro.TELEPHONYLOOKUP_FILE_NAME, in buildUnvalidatedBytes()
/system/timezone/distro/installer/src/main/com/android/timezone/distro/installer/
DTimeZoneDistroInstaller.java25 import com.android.timezone.distro.TimeZoneDistro;
158 public @InstallResultType int stageInstallWithErrorCode(TimeZoneDistro distro) in stageInstallWithErrorCode()
211 File zoneInfoFile = new File(workingDir, TimeZoneDistro.TZDATA_FILE_NAME); in stageInstallWithErrorCode()
227 File tzLookupFile = new File(workingDir, TimeZoneDistro.TZLOOKUP_FILE_NAME); in stageInstallWithErrorCode()
243 new File(workingDir, TimeZoneDistro.TELEPHONYLOOKUP_FILE_NAME); in stageInstallWithErrorCode()
409 private void unpackDistro(TimeZoneDistro distro, File targetDir) throws IOException { in unpackDistro()
417 TimeZoneDistro.TZDATA_FILE_NAME, in checkDistroDataFilesExist()
418 TimeZoneDistro.ICU_DATA_FILE_NAME); in checkDistroDataFilesExist()
423 File distroVersionFile = new File(distroDir, TimeZoneDistro.DISTRO_VERSION_FILE_NAME); in readDistroVersion()
/system/timezone/distro/core/src/main/com/android/timezone/distro/
DTimeZoneDistro.java33 public final class TimeZoneDistro { class
71 public TimeZoneDistro(byte[] bytes) { in TimeZoneDistro() method in TimeZoneDistro
78 public TimeZoneDistro(InputStream inputStream) { in TimeZoneDistro() method in TimeZoneDistro
/system/timezone/distro/tools/src/main/com/android/timezone/distro/tools/
DCreateTimeZoneDistro.java21 import com.android.timezone.distro.TimeZoneDistro;
122 File outputDistroFile = new File(outputDistroDir, TimeZoneDistro.FILE_NAME); in main()