Home
last modified time | relevance | path

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

/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/
DOverlayActorVisibilityTest.kt49 val tempFolder = TemporaryFolder() constant
52 tempFolder,
72 val file = tempFolder.newFile().apply { in pushSysConfigFile()
98 assertThat(device.installJavaResourceApk(tempFolder, ACTOR_APK, false)).isNull() in testVisibilityByOverlayable()
99 assertThat(device.installJavaResourceApk(tempFolder, OVERLAY_APK, false)).isNull() in testVisibilityByOverlayable()
100 assertThat(device.installJavaResourceApk(tempFolder, TARGET_NO_OVERLAYABLE_APK, false)) in testVisibilityByOverlayable()
108 assertThat(device.installJavaResourceApk(tempFolder, TARGET_APK, true)).isNull() in testVisibilityByOverlayable()
DFactoryPackageTest.kt30 private val tempFolder = TemporaryFolder() constant in com.android.server.pm.test.FactoryPackageTest
31 private val preparer: SystemPreparer = SystemPreparer(tempFolder,
36 val rules = RuleChain.outerRule(tempFolder).around(preparer)!!
54 val versionTwoFile = HostUtils.copyResourceToHostFile(VERSION_TWO, tempFolder.newFile()) in testGetInstalledPackagesFactoryOnlyFlag()
67 val deviceSideFile = HostUtils.copyResourceToHostFile(DEVICE_SIDE, tempFolder.newFile()) in runDeviceTest()
DInvalidNewSystemAppTest.kt46 private val tempFolder = TemporaryFolder() constant
47 private val preparer: SystemPreparer = SystemPreparer(tempFolder,
52 val rules = RuleChain.outerRule(tempFolder).around(preparer)!!
69 val versionTwoFile = HostUtils.copyResourceToHostFile(VERSION_TWO, tempFolder.newFile()) in verify()
82 val versionFourFile = HostUtils.copyResourceToHostFile(VERSION_FOUR, tempFolder.newFile()) in verify()
DTamperedUpdatedSystemPackageTest.kt59 private val tempFolder = TemporaryFolder() constant
61 tempFolder,
75 val rules = RuleChain.outerRule(tempFolder).around(preparer)!!
93 val xml = tempFolder.newFile().apply { in backupAndModifySystemFiles()
126 tempFolder.newFile() in detectApkAndXmlTamperingAtBoot()
153 tempFolder.newFile() in detectApkTamperingAtBoot()
187 assertThat(device.installJavaResourceApk(tempFolder, ANOTHER_PKG, /* reinstall */ false)) in allowlistedPackageIsNotASystemApp()
DOverlayPathsUninstallSystemUpdatesTest.kt44 private val tempFolder = TemporaryFolder() constant
45 private val preparer: SystemPreparer = SystemPreparer(tempFolder,
50 val rules = RuleChain.outerRule(tempFolder).around(preparer)!!
65 val versionTwoFile = HostUtils.copyResourceToHostFile(VERSION_TWO, tempFolder.newFile()) in verify()
DOriginalPackageMigrationTest.kt46 private val tempFolder = TemporaryFolder() constant
47 private val preparer: SystemPreparer = SystemPreparer(tempFolder,
52 val rules = RuleChain.outerRule(tempFolder).around(preparer)!!
88 val file = tempFolder.newFile().apply { writeText("Test") } in runForApk()
DPackageInstallerSessionTest.kt36 val tempFolder = TemporaryFolder() constant in com.android.server.pm.test.PackageInstallerSessionTest
50 val deviceSideFile = HostUtils.copyResourceToHostFile(DEVICE_SIDE, tempFolder.newFile()) in runDeviceTest()
DBootTest.kt38 val tempFolder = TemporaryFolder() constant
42 val testApkFile = HostUtils.copyResourceToHostFile(TEST_APK_NAME, tempFolder.newFile()) in installApk()
DSdCardEjectionTests.kt73 val tempFolder = TemporaryFolder() in parameters() constant
89 val hostApkFile = HostUtils.copyResourceToHostFile(VERSION_ONE, tempFolder.newFile()) in launchActivity()
118 assertThat(device.installJavaResourceApk(tempFolder, VERSION_DECLARES)).isNull() in uninstallStaticLibraryInUse()
120 val usesApkFile = HostUtils.copyResourceToHostFile(VERSION_USES, tempFolder.newFile()) in uninstallStaticLibraryInUse()
DHostUtils.kt40 tempFolder: TemporaryFolder, in installJavaResourceApk()
45 val file = HostUtils.copyResourceToHostFile(javaResource, tempFolder.newFile()) in installJavaResourceApk()
DSystemStubMultiUserDisableUninstallTest.kt106 private val tempFolder = TemporaryFolder() in <lambda>() constant
110 private val preparer: SystemPreparer = SystemPreparer(tempFolder, in <lambda>()
115 val rules = RuleChain.outerRule(tempFolder).let { in <lambda>()
133 hostCompressedFile = tempFolder.newFile() in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/systemconfig/
DSystemConfigNamedActorTest.kt44 val tempFolder = TemporaryFolder(context.filesDir) constant
221 private fun String.write() = tempFolder.root.resolve("${uniqueCounter++}.xml") in String()
226 readPermissions(parser, tempFolder.root, 0) in String()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/
DSystemPartitionParseTest.kt45 val tempFolder = TemporaryFolder() in <lambda>() constant
68 tempFolder.newFolder() in <lambda>()
DPackageParsingDeferErrorTest.kt56 val tempFolder = TemporaryFolder(context.filesDir) in <lambda>() constant
117 val file = tempFolder.newFile() in <lambda>()
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationLegacySettingsTest.kt34 val tempFolder = TemporaryFolder() constant
72 val file = tempFolder.newFile().writeXml(settings::writeSettings) in writeAndReadBackNormal()
DDomainVerificationPersistenceTest.kt92 val tempFolder = TemporaryFolder() in <lambda>() constant in com.android.server.pm.test.verify.domain.DomainVerificationPersistenceTest
118 val file = tempFolder.newFile().writeXml { in <lambda>()
137 val file = tempFolder.newFile().writeXml { in <lambda>()
166 val file = tempFolder.newFile().writeXml { in <lambda>()
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/pkg/
DPackageStateTest.kt106 val tempFolder = TemporaryFolder() constant in com.android.server.pm.test.pkg.PackageStateTest
121 .setCodePath(tempFolder.newFile().path) in collectionImmutability()
152 listOf(tempFolder.newFile().path), in fillMissingData()
165 listOf(tempFolder.newFile().path), in fillMissingData()