/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/ |
D | OverlayActorVisibilityTest.kt | 49 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()
|
D | FactoryPackageTest.kt | 30 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()
|
D | InvalidNewSystemAppTest.kt | 46 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()
|
D | TamperedUpdatedSystemPackageTest.kt | 59 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()
|
D | OverlayPathsUninstallSystemUpdatesTest.kt | 44 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()
|
D | OriginalPackageMigrationTest.kt | 46 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()
|
D | PackageInstallerSessionTest.kt | 36 val tempFolder = TemporaryFolder() constant in com.android.server.pm.test.PackageInstallerSessionTest 50 val deviceSideFile = HostUtils.copyResourceToHostFile(DEVICE_SIDE, tempFolder.newFile()) in runDeviceTest()
|
D | BootTest.kt | 38 val tempFolder = TemporaryFolder() constant 42 val testApkFile = HostUtils.copyResourceToHostFile(TEST_APK_NAME, tempFolder.newFile()) in installApk()
|
D | SdCardEjectionTests.kt | 73 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()
|
D | HostUtils.kt | 40 tempFolder: TemporaryFolder, in installJavaResourceApk() 45 val file = HostUtils.copyResourceToHostFile(javaResource, tempFolder.newFile()) in installJavaResourceApk()
|
D | SystemStubMultiUserDisableUninstallTest.kt | 106 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/ |
D | SystemConfigNamedActorTest.kt | 44 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/ |
D | SystemPartitionParseTest.kt | 45 val tempFolder = TemporaryFolder() in <lambda>() constant 68 tempFolder.newFolder() in <lambda>()
|
D | PackageParsingDeferErrorTest.kt | 56 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/ |
D | DomainVerificationLegacySettingsTest.kt | 34 val tempFolder = TemporaryFolder() constant 72 val file = tempFolder.newFile().writeXml(settings::writeSettings) in writeAndReadBackNormal()
|
D | DomainVerificationPersistenceTest.kt | 92 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/ |
D | PackageStateTest.kt | 106 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()
|