Home
last modified time | relevance | path

Searched refs:createTempFile (Results 1 – 25 of 79) sorted by relevance

1234

/frameworks/base/services/tests/servicestests/src/com/android/server/systemconfig/
DSystemConfigTest.java81 mFooJar = createTempFile( in setUp()
149 createTempFile(folder1, "permissionFile1.xml", contents1); in testInstallInUserType()
152 createTempFile(folder2, "permissionFile2.xml", contents2); in testInstallInUserType()
156 createTempFile(folder1, "permissionFile2.xml", contents3); in testInstallInUserType()
187 createTempFile(folder, "component-override.xml", contents); in testComponentOverride()
219 createTempFile(folder, "staged-installer-whitelist.xml", contents); in readPermissions_allowAppConfigs_parsesStagedInstallerWhitelist()
237 createTempFile(folder, "staged-installer-whitelist.xml", contents); in readPermissions_parsesStagedInstallerWhitelist_modulesInstaller()
258 createTempFile(folder, "staged-installer-whitelist.xml", contents); in readPermissions_parsesStagedInstallerWhitelist_multipleModulesInstallers()
279 createTempFile(folder, "staged-installer-whitelist.xml", contents); in readPermissions_notAllowAppConfigs_wontParseStagedInstallerWhitelist()
299 createTempFile(folder, "vendor-apex-allowlist.xml", contents); in readPermissions_allowVendorApex_parsesVendorApexAllowList()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DEntropyMixerTest.java53 seedFile = createTempFile("entropy.dat"); in setUp()
54 randomReadDevice = createTempFile("urandomRead"); in setUp()
55 randomWriteDevice = createTempFile("urandomWrite"); in setUp()
58 private File createTempFile(String prefix) throws Exception { in createTempFile() method in EntropyMixerTest
59 File file = File.createTempFile(prefix, null); in createTempFile()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DProcStatsUtilTest.java167 File tempFile = File.createTempFile("null-separated-file", null, mProcDirectory); in runReadNullSeparatedFile()
175 File tempFile = File.createTempFile("single-line-proc-file", null, mProcDirectory); in runReadSingleLineProcFile()
184 File tempFile = File.createTempFile("terminated-proc-file", null, mProcDirectory); in runReadTerminatedProcFile()
DProcLocksReaderTest.java106 File tempFile = File.createTempFile("locks", null, mProcDirectory); in runHandleBlockingFileLocks()
/frameworks/base/api/coverage/tools/
DExtractFlaggedApisTest.kt37 private var apiTextFile: Path = Files.createTempFile("current", ".txt")
38 private var flagToApiMap: Path = Files.createTempFile("flag_api_map", ".textproto")
42 apiTextFile = Files.createTempFile("current", ".txt") in setup()
43 flagToApiMap = Files.createTempFile("flag_api_map", ".textproto") in setup()
/frameworks/base/core/tests/bugreports/src/com/android/os/bugreports/tests/
DBugreportManagerTest.java137 mBugreportFile = createTempFile("bugreport_" + name.getMethodName(), ".zip"); in setup()
138 mScreenshotFile = createTempFile("screenshot_" + name.getMethodName(), ".png"); in setup()
303 File bugreportFile2 = createTempFile("bugreport_2_" + name.getMethodName(), ".zip"); in simultaneousBugreportsNotAllowed()
304 File screenshotFile2 = createTempFile("screenshot_2_" + name.getMethodName(), ".png"); in simultaneousBugreportsNotAllowed()
504 private static File createTempFile(String prefix, String extension) throws Exception { in createTempFile() method in BugreportManagerTest
505 final File f = File.createTempFile(prefix, extension); in createTempFile()
525 File tmp = createTempFile("tmp", ".cfg"); in startPreDumpedUiTraces()
591 File extractedFile = createTempFile(entryToExtract.getFileName().toString(), ".extracted"); in extractZipArchiveEntry()
618 File src = createTempFile("fake", ".data"); in createFakeTraceFiles()
637 File dst = createTempFile(src.getFileName().toString(), ".copy"); in copyFiles()
/frameworks/native/cmds/dumpstate/
DDumpPool.h157 std::unique_ptr<TmpFile> tmp_file_ptr = createTempFile(); in post()
177 std::unique_ptr<TmpFile> createTempFile();
/frameworks/base/apct-tests/perftests/core/src/android/os/
DSomeService.java17 mTempFile = File.createTempFile("foo", "bar"); in onCreate()
/frameworks/base/core/tests/coretests/src/android/os/
DStrictModeTest.java35 mFile = File.createTempFile("StrictModeTest", "tmp"); in setUp()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/common/
DTemporaryFileManager.java45 return File.createTempFile("package", ".apk", context.getNoBackupFilesDir()); in getStagedFile()
/frameworks/multidex/library/test/src/androidx/multidex/
DZipUtilTest.java119 File tmp = File.createTempFile("ZipUtilTest", ".fakezip"); in testCrcValue()
149 File tmp = File.createTempFile("ZipUtilTest", ".fakezip"); in testInvalidCrcValue()
/frameworks/base/tests/Internal/src/com/android/internal/protolog/
DProtoLogViewerConfigReaderTest.java81 mTestViewerConfig = File.createTempFile("testConfig", ".json.gz"); in setUp()
/frameworks/base/core/tests/coretests/src/android/util/
DBinaryXmlTest.java118 final File file = File.createTempFile("fast", ".xml"); in testResolve_File()
129 final File file = File.createTempFile("binary", ".xml"); in testResolve_File()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlsFavoritePersistenceWrapperTest.kt46 file = File.createTempFile("controls_favorites", ".temp") in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/
DRandomAccessFileUtilsTest.java41 mTemporaryFile = File.createTempFile("fileutilstest", ".txt"); in setUp()
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DMediaStoreSaver.java57 file = File.createTempFile(imageName, suffix, dir); in save()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
DMediaStoreSaver.java57 file = File.createTempFile(imageName, suffix, dir); in save()
/frameworks/base/tests/SystemMemoryTest/host/src/com/android/tests/sysmem/host/
DMetrics.java59 File file = File.createTempFile(label, "txt"); in logText()
/frameworks/base/services/tests/RemoteProvisioningServiceTests/src/com/android/server/security/rkp/
DRemoteProvisioningShellCommandTest.java116 File in = File.createTempFile("rpsct_in_", null); in exec()
117 File out = File.createTempFile("rpsct_out_", null); in exec()
118 File err = File.createTempFile("rpsct_err_", null); in exec()
/frameworks/base/apct-tests/perftests/core/src/android/libcore/
DZipFilePerfTest.java54 mFile = File.createTempFile(getClass().getName(), ".zip"); in setUp()
DXmlSerializerPerfTest.java88 File file = File.createTempFile(XmlSerializerPerfTest.class.getSimpleName(), "tmp"); in runTest()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DArtStatsLogUtilsTest.java301 Path zipFile = Files.createTempFile(null, suffix); in zipFiles()
316 Path zipFile = Files.createTempFile(null, ".dm"); in createDexMetadata()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenMediaRecorder.java129 mTempVideoFile = File.createTempFile("temp", ".mp4", cacheDir); in prepare()
194 mTempAudioFile = File.createTempFile("temp", ".aac", in prepare()
348 File file = File.createTempFile("temp", ".mp4", in save()
/frameworks/base/services/core/java/com/android/server/
DCertBlacklister.java86 File tmp = File.createTempFile("journal", "", mTmpDir); in writeDenylist()
/frameworks/base/services/backup/java/com/android/server/backup/
DDataChangedJournal.java144 File file = File.createTempFile(FILE_NAME_PREFIX, null, journalDirectory); in newJournal()

1234