Home
last modified time | relevance | path

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

123

/frameworks/base/services/tests/servicestests/src/com/android/server/systemconfig/
DSystemConfigTest.java128 createTempFile(folder1, "permFile1.xml", contents1); in testInstallInUserType()
131 createTempFile(folder2, "permFile2.xml", contents2); in testInstallInUserType()
134 createTempFile(folder1, "permFile2.xml", contents3); in testInstallInUserType()
165 createTempFile(folder, "component-override.xml", contents); in testComponentOverride()
197 createTempFile(folder, "staged-installer-whitelist.xml", contents); in readPermissions_allowAppConfigs_parsesStagedInstallerWhitelist()
217 createTempFile(folder, "staged-installer-whitelist.xml", contents); in readPermissions_notAllowAppConfigs_wontParseStagedInstallerWhitelist()
245 private File createTempFile(File folder, String fileName, String contents) in createTempFile() method in SystemConfigTest
/frameworks/base/core/tests/bugreports/src/android/server/bugreports/
DBugreportManagerTest.java78 mBugreportFile = createTempFile("bugreport_" + name.getMethodName(), ".zip"); in setup()
79 mScreenshotFile = createTempFile("screenshot_" + name.getMethodName(), ".png"); in setup()
151 File bugreportFile2 = createTempFile("bugreport_2_" + name.getMethodName(), ".zip"); in simultaneousBugreportsNotAllowed()
152 File screenshotFile2 = createTempFile("screenshot_2_" + name.getMethodName(), ".png"); in simultaneousBugreportsNotAllowed()
294 private static File createTempFile(String prefix, String extension) throws Exception { in createTempFile() method in BugreportManagerTest
295 final File f = File.createTempFile(prefix, extension); in createTempFile()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DProcStatsUtilTest.java170 File tempFile = File.createTempFile("null-separated-file", null, mProcDirectory); in runReadNullSeparatedFile()
178 File tempFile = File.createTempFile("single-line-proc-file", null, mProcDirectory); in runReadSingleLineProcFile()
187 File tempFile = File.createTempFile("terminated-proc-file", null, mProcDirectory); in runReadTerminatedProcFile()
/frameworks/base/cmds/statsd/tools/localtools/src/com/android/statsd/shelltools/
DUtils.java93 File outputFile = File.createTempFile("statsdret", ".bin"); in getReportList()
164 File outFileSdk = File.createTempFile("shelltools_sdk", "tmp"); in isAcceptableStatsd()
175 File outFileCode = File.createTempFile("shelltools_codename", "tmp"); in isAcceptableStatsd()
215 File outFile = File.createTempFile("device_serial", "tmp"); in getDeviceSerials()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DLastMileLoggerTest.java55 mTraceDataFile = File.createTempFile(TRACE_DATA_PREFIX, null); in setUp()
56 mTraceEnableFile = File.createTempFile(TRACE_ENABLE_PREFIX, null); in setUp()
57 mTraceReleaseFile = File.createTempFile(TRACE_RELEASE_PREFIX, null); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DEntropyMixerTest.java32 File file = File.createTempFile("testInitialWrite", "dat", dir); in testInitialWrite()
/frameworks/base/apct-tests/perftests/core/src/android/os/
DSomeService.java17 mTempFile = File.createTempFile("foo", "bar"); in onCreate()
DStrictModeTest.java84 final File test = File.createTempFile("foo", "bar"); in causeThreadViolations()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenMediaRecorder.java109 mTempVideoFile = File.createTempFile("temp", ".mp4", cacheDir); in prepare()
167 mTempAudioFile = File.createTempFile("temp", ".aac", in prepare()
236 File file = File.createTempFile("temp", ".mp4", in save()
/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/packages/PackageInstaller/src/com/android/packageinstaller/
DTemporaryFileManager.java44 return File.createTempFile("package", ".apk", context.getNoBackupFilesDir()); in getStagedFile()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlsFavoritePersistenceWrapperTest.kt45 file = File.createTempFile("controls_favorites", ".temp") in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/protolog/
DProtoLogViewerConfigReaderTest.java81 mTestViewerConfig = File.createTempFile("testConfig", ".json.gz"); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DRandomAccessFileUtilsTest.java41 mTemporaryFile = File.createTempFile("fileutilstest", ".txt"); in setUp()
/frameworks/base/services/backup/java/com/android/server/backup/
DDataChangedJournal.java136 File.createTempFile(FILE_NAME_PREFIX, null, journalDirectory)); in newJournal()
/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/core/java/com/android/server/
DCertBlacklister.java86 File tmp = File.createTempFile("journal", "", mTmpDir); in writeBlacklist()
/frameworks/base/core/tests/coretests/src/android/os/
DFileObserverTest.java62 mTestFile = File.createTempFile(".file_observer_test", ".txt"); in setUp()
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DTypefaceCreatePerfTest.java88 outFile = File.createTempFile("example", "ttf", context.getCacheDir()); in testCreate_fromFile()
/frameworks/base/apct-tests/perftests/core/src/android/app/
DResourcesManagerPerfTest.java67 File file = File.createTempFile(fileName, null, sContext.getCacheDir()); in copyApkToTemp()
/frameworks/base/core/tests/coretests/src/com/android/internal/http/multipart/
DMultipartTest.java34 File upload = File.createTempFile("Multipart", "test"); in testParts()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DUpdateInstaller.java121 File destination = File.createTempFile( in createNewFileWithPermissions()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
DTimedStatement.java69 File tmpFile = File.createTempFile("test", "file"); in calibrateMethod()

123