Home
last modified time | relevance | path

Searched refs:tempDir (Results 1 – 25 of 32) sorted by relevance

12

/external/smali/util/src/test/java/org/jf/util/
DClassFileNameHandlerTest.java121 File tempDir = Files.createTempDir(); in testMultipleLongNames() local
122 ClassFileNameHandler handler = new ClassFileNameHandler(tempDir, ".smali"); in testMultipleLongNames()
127 …checkFilename(tempDir, file1, "a", "a", Strings.repeat("a", 124) + "#" + Strings.repeat("a", 118) … in testMultipleLongNames()
130 …checkFilename(tempDir, file2, "a", "a", Strings.repeat("a", 124) + "#" + Strings.repeat("a", 118) … in testMultipleLongNames()
137 File tempDir = Files.createTempDir(); in testBasicFunctionality() local
138 ClassFileNameHandler handler = new ClassFileNameHandler(tempDir, ".smali"); in testBasicFunctionality()
141 checkFilename(tempDir, file, "a", "b", "c", "d.smali"); in testBasicFunctionality()
144 checkFilename(tempDir, file, "a", "b", "c", "e.smali"); in testBasicFunctionality()
147 checkFilename(tempDir, file, "a", "b", "d", "d.smali"); in testBasicFunctionality()
150 checkFilename(tempDir, file, "a", "b.smali"); in testBasicFunctionality()
[all …]
/external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/
DFileByFileV1DeltaApplier.java38 private final File tempDir; field in FileByFileV1DeltaApplier
55 public FileByFileV1DeltaApplier(File tempDir) { in FileByFileV1DeltaApplier() argument
56 if (tempDir == null) { in FileByFileV1DeltaApplier()
57 tempDir = new File(System.getProperty("java.io.tmpdir")); in FileByFileV1DeltaApplier()
59 this.tempDir = tempDir; in FileByFileV1DeltaApplier()
65 if (!tempDir.exists()) { in applyDelta()
68 tempDir.mkdirs(); in applyDelta()
70 File tempFile = File.createTempFile("gfbfv1", "old", tempDir); in applyDelta()
/external/lzma/CPP/7zip/UI/Common/
DWorkDir.cpp52 FString tempDir = workDirInfo.Path; in GetWorkDir() local
53 NName::NormalizeDirPathPrefix(tempDir); in GetWorkDir()
54 return tempDir; in GetWorkDir()
58 FString tempDir; in GetWorkDir() local
59 if (!MyGetTempPath(tempDir)) in GetWorkDir()
61 return tempDir; in GetWorkDir()
/external/icu/icu4c/source/test/perf/leperf/
DFontObject.cpp33 SFNTDirectory tempDir; in FontObject() local
35 fread(&tempDir, sizeof tempDir, 1, file); in FontObject()
37 numTables = SWAPW(tempDir.numTables); in FontObject()
38 searchRange = SWAPW(tempDir.searchRange) >> 4; in FontObject()
39 entrySelector = SWAPW(tempDir.entrySelector); in FontObject()
40 rangeShift = SWAPW(tempDir.rangeShift) >> 4; in FontObject()
42 int dirSize = sizeof tempDir + ((numTables - ANY_NUMBER) * sizeof(DirectoryEntry)); in FontObject()
DPortableFontInstance.cpp104 SFNTDirectory tempDir; in PortableFontInstance() local
106 fread(&tempDir, sizeof tempDir, 1, fFile); in PortableFontInstance()
108 …le_int32 dirSize = sizeof tempDir + ((SWAPW(tempDir.numTables) - ANY_NUMBER) * sizeof(DirectoryEnt… in PortableFontInstance()
/external/icu/icu4c/source/test/letest/
DFontObject.cpp29 SFNTDirectory tempDir; in FontObject() local
31 fread(&tempDir, sizeof tempDir, 1, file); in FontObject()
33 numTables = SWAPW(tempDir.numTables); in FontObject()
34 searchRange = SWAPW(tempDir.searchRange) >> 4; in FontObject()
35 entrySelector = SWAPW(tempDir.entrySelector); in FontObject()
36 rangeShift = SWAPW(tempDir.rangeShift) >> 4; in FontObject()
38 int dirSize = sizeof tempDir + ((numTables - ANY_NUMBER) * sizeof(DirectoryEntry)); in FontObject()
DPortableFontInstance.cpp100 SFNTDirectory tempDir; in PortableFontInstance() local
102 size_t numRead = fread(&tempDir, sizeof tempDir, 1, fFile); in PortableFontInstance()
105 …le_int32 dirSize = sizeof tempDir + ((SWAPW(tempDir.numTables) - ANY_NUMBER) * sizeof(DirectoryEnt… in PortableFontInstance()
/external/toolchain-utils/
Dheat_map.py33 self.tempDir = ''
41 self.tempDir = tempfile.mkdtemp(prefix=os.path.join(self.chromeos_root,
43 self.temp_perf = os.path.join(self.tempDir, 'perf.data')
46 os.path.basename(self.tempDir))
54 self.perf_report = os.path.join(self.tempDir, 'perf_report.txt')
76 shutil.rmtree(self.tempDir)
/external/syzkaller/pkg/build/
Dlinux.go81 tempDir, err := ioutil.TempDir("", "syz-build")
85 defer os.RemoveAll(tempDir)
86 scriptFile := filepath.Join(tempDir, "create.sh")
92 cmd.Dir = tempDir
104 if err := osutil.CopyFile(filepath.Join(tempDir, "disk.raw"), imageFile); err != nil {
108 if err := osutil.CopyFile(filepath.Join(tempDir, "key"), keyFile); err != nil {
/external/robolectric-shadows/utils/src/test/java/org/robolectric/util/
DTempDirectoryTest.java16 TempDirectory tempDir = new TempDirectory("temp_dir"); in createsDirsWithSameParent() local
17 Path path = tempDir.create("dir1"); in createsDirsWithSameParent()
18 Path path2 = tempDir.create("dir2"); in createsDirsWithSameParent()
/external/cldr/tools/c/genldml/
Dtxt2ldml.pl43 my $tempDir = $destDir."/temp";
44 mkpath($tempDir);
126 …cmd("$prefix $genldmlExec --sourcedir $tempDir --destdir $destDir --package $tempPackage $base $ba…
168 …cmd("$prefix $genrbExec --sourcedir $sourceDir --package-name $tempPackage --destdir $tempDir --en…
/external/fonttools/Tests/ufoLib/
DUFOConversion_test.py157 self.tempDir = tempfile.mktemp()
158 os.mkdir(self.tempDir)
159 self.ufoPath = os.path.join(self.tempDir, "test.ufo")
162 shutil.rmtree(self.tempDir)
322 self.tempDir = tempfile.mktemp()
323 os.mkdir(self.tempDir)
324 self.dstDir = os.path.join(self.tempDir, "test.ufo")
327 shutil.rmtree(self.tempDir)
DUFO1_test.py91 self.tempDir = tempfile.mktemp()
92 os.mkdir(self.tempDir)
93 self.dstDir = os.path.join(self.tempDir, "test.ufo")
96 shutil.rmtree(self.tempDir)
/external/caliper/caliper/src/test/java/com/google/caliper/options/
DParsedOptionsTest.java45 private File tempDir; field in ParsedOptionsTest
48 tempDir = Files.createTempDir(); in setUp()
49 makeTestVmTree(tempDir); in setUp()
53 if (tempDir != null) { in tearDown()
54 Runtime.getRuntime().exec(new String[] {"rm", "-rf", tempDir.getCanonicalPath()}); in tearDown()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/util/
DSQLiteLibraryLoader.java49 File tempDir = Files.createTempDir(); in doLoad() local
50 tempDir.deleteOnExit(); in doLoad()
51 File extractedLibraryPath = new File(tempDir, getLibName()); in doLoad()
57 loadFromDirectory(tempDir); in doLoad()
/external/guava/guava-tests/test/com/google/common/io/
DIoTestCase.java52 private File tempDir; field in IoTestCase
130 if (tempDir == null) { in getTempDir()
131 tempDir = createTempDir(); in getTempDir()
134 return tempDir; in getTempDir()
/external/google-breakpad/src/client/mac/tests/
Dexception_handler_test.cc68 AutoTempDir tempDir; member in __anona05ae6730111::ExceptionHandlerTest
112 ExceptionHandler eh(tempDir.path(), NULL, MDCallback, &fds[1], true, NULL); in InProcessCrash()
194 ExceptionHandler eh(tempDir.path(), NULL, DumpNameMDCallback, this, true, in TEST_F()
213 ExceptionHandler eh(tempDir.path(), NULL, DumpNameMDCallback, this, true, in TEST_F()
283 tempDir.path(), in TEST_F()
322 ExceptionHandler eh(tempDir.path(), NULL, MDCallback, &fds[1], true, NULL); in TEST_F()
421 ExceptionHandler eh(tempDir.path(), NULL, MDCallback, &fds[1], true, NULL); in TEST_F()
520 ExceptionHandler eh(tempDir.path(), NULL, MDCallback, &fds[1], true, NULL); in TEST_F()
610 ExceptionHandler eh(tempDir.path(), NULL, MDCallback, &fds[1], true, NULL); in TEST_F()
667 ExceptionHandler eh(tempDir.path(), NULL, MDCallback, &fds[1], true, NULL); in TEST_F()
Dminidump_generator_test.cc78 AutoTempDir tempDir; member in __anon41e8e6300111::MinidumpGeneratorTest
92 MinidumpGenerator::UniqueNameInDirectory(tempDir.path(), NULL); in TEST_F()
183 MinidumpGenerator::UniqueNameInDirectory(tempDir.path(), NULL); in TEST_F()
262 MinidumpGenerator::UniqueNameInDirectory(tempDir.path(), NULL); in TEST_F()
/external/archive-patcher/integrationtest/src/test/java/com/google/archivepatcher/integrationtest/
DFileByFileV1IntegrationTest.java44 private File tempDir = null; field in FileByFileV1IntegrationTest
123 tempDir = oldFile.getParentFile(); in setUp()
188 FileByFileV1DeltaApplier applier = new FileByFileV1DeltaApplier(tempDir); in testPatchAndApply()
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/
DFileByFileV1DeltaApplierTest.java74 private File tempDir; field in FileByFileV1DeltaApplierTest
118 tempDir = tempFile.getParentFile(); in setUp()
152 fakeApplier = new FileByFileV1DeltaApplier(tempDir) { in setUp()
/external/lzma/CPP/7zip/Bundles/SFXSetup/
DSfxSetup.cpp206 CTempDir tempDir; in WinMain() local
207 if (!tempDir.Create(kTempDirPrefix)) in WinMain()
225 const FString tempDirPath = tempDir.GetPath(); in WinMain()
/external/archive-patcher/tools/src/main/java/com/google/archivepatcher/tools/
DFileByFileTool.java216 File tempDir = tempFile.getParentFile(); in applyPatch() local
218 FileByFileV1DeltaApplier applier = new FileByFileV1DeltaApplier(tempDir); in applyPatch()
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/validator/
DSdkStore.java123 private static File tempDir; field in SdkStore.Sdk
270 if (tempDir == null){ in copyResourceToFile()
273 tempDir = tempFile.getParentFile(); in copyResourceToFile()
276 File outFile = new File(tempDir, new File(resourcePath).getName()); in copyResourceToFile()
/external/toolchain-utils/go/patch/
Dgo2.patch225 - pkg := filepath.Join(t.tempDir, "pkg.a")
230 - exe := filepath.Join(t.tempDir, "test.exe")
273 tfile := filepath.Join(t.tempDir, "tmp__.go")
306 tfile := filepath.Join(t.tempDir, "tmp__.go")
358 t.tempDir, err = ioutil.TempDir("", "")
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/
DDiskLruCacheTest.java52 @Rule public final TemporaryFolder tempDir = new TemporaryFolder(); field in DiskLruCacheTest
78 cacheDir = tempDir.getRoot(); in setUp()
754 File dir = tempDir.newFolder("testOpenCreatesDirectoryIfNecessary"); in openCreatesDirectoryIfNecessary()
823 fileSystem.deleteContents(tempDir.getRoot()); in aggressiveClearingHandlesWrite()
832 fileSystem.deleteContents(tempDir.getRoot()); in aggressiveClearingHandlesEdit()
849 fileSystem.deleteContents(tempDir.getRoot()); in aggressiveClearingHandlesPartialEdit()
857 fileSystem.deleteContents(tempDir.getRoot()); in aggressiveClearingHandlesRead()

12