HomeSort by relevance Sort by last modified time
    Searched refs:tmp_dir (Results 1 - 25 of 71) sorted by null

1 2 3

  /system/core/base/
test_utils.cpp 60 char tmp_dir[MAX_PATH];
61 DWORD result = GetTempPathA(sizeof(tmp_dir), tmp_dir);
63 CHECK_LT(result, sizeof(tmp_dir)) << "path truncated to: " << result;
67 CHECK_EQ(tmp_dir[result - 1], '\\');
68 tmp_dir[result - 1] = '\0';
69 return tmp_dir;
84 void TemporaryFile::init(const std::string& tmp_dir) {
85 snprintf(path, sizeof(path), "%s%cTemporaryFile-XXXXXX", tmp_dir.c_str(),
98 bool TemporaryDir::init(const std::string& tmp_dir) {
    [all...]
  /external/icu/tools/
i18nutil.py 21 tmp_dir = tempfile.mkdtemp('-i18n')
22 os.chdir(tmp_dir)
23 print 'Created temporary directory "%s"...' % tmp_dir
  /system/core/base/include/android-base/
test_utils.h 33 void init(const std::string& tmp_dir);
46 bool init(const std::string& tmp_dir);
  /bionic/libc/tools/
ndk_missing_symbols.py 31 tmp_dir = tempfile.mkdtemp()
32 adb_pull('/system/lib/libc.so', tmp_dir)
33 adb_pull('/system/lib/libm.so', tmp_dir)
36 device = (symbols.GetFromElf(os.path.join(tmp_dir, 'libc.so')) |
37 symbols.GetFromElf(os.path.join(tmp_dir, 'libm.so')))
  /bionic/tests/
TemporaryFile.h 56 void init(const char* tmp_dir) {
57 snprintf(filename, sizeof(filename), "%s/TemporaryFile-XXXXXX", tmp_dir);
81 bool init(const char* tmp_dir) {
82 snprintf(dirname, sizeof(dirname), "%s/TemporaryDir-XXXXXX", tmp_dir);
  /external/autotest/client/tests/dma_memtest/
dma_memtest.py 100 tmp_dir = 'linux.%s' % j
102 os.mkdir(tmp_dir)
104 tar_cmd = ['tar', 'jxf', self.tarball, '-C', tmp_dir]
105 logging.debug("Unpacking tarball to %s", tmp_dir)
110 logging.debug("Unpacking tarball to %s", tmp_dir)
111 utils.extract_tarball_to_dir(self.tarball, tmp_dir)
122 tmp_dir = 'linux.%s/%s' % (j,
125 diff_cmd = ['diff', '-U3', '-rN', 'linux.orig', tmp_dir]
126 logging.debug("Comparing linux.orig with %s", tmp_dir)
133 logging.debug('Comparing linux.orig with %s', tmp_dir)
    [all...]
  /external/autotest/client/site_tests/platform_DebugDaemonDumpDebugLogs/
platform_DebugDaemonDumpDebugLogs.py 19 tmp_file = os.path.join(self.tmp_dir, filename)
40 self.tmp_dir = tempfile.mkdtemp()
43 if os.path.exists(self.tmp_dir):
44 shutil.rmtree(self.tmp_dir)
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/distutils/tests/
test_sdist.py 61 # and put it in self.tmp_dir
65 os.mkdir(join(self.tmp_dir, 'somecode'))
66 os.mkdir(join(self.tmp_dir, 'dist'))
68 self.write_file((self.tmp_dir, 'README'), 'xxx')
69 self.write_file((self.tmp_dir, 'somecode', '__init__.py'), '#')
70 self.write_file((self.tmp_dir, 'setup.py'), SETUP_PY)
71 os.chdir(self.tmp_dir)
98 os.mkdir(join(self.tmp_dir, 'somecode', '.svn'))
99 self.write_file((self.tmp_dir, 'somecode', '.svn', 'ok.py'), 'xxx')
101 os.mkdir(join(self.tmp_dir, 'somecode', '.hg')
    [all...]
test_file_util.py 24 tmp_dir = self.mkdtemp()
25 self.source = os.path.join(tmp_dir, 'f1')
26 self.target = os.path.join(tmp_dir, 'f2')
27 self.target_dir = os.path.join(tmp_dir, 'd1')
test_build_ext.py 26 self.tmp_dir = self.mkdtemp()
28 sys.path.append(self.tmp_dir)
29 self.addCleanup(sys.path.remove, self.tmp_dir)
46 support.copy_xxmodule_c(self.tmp_dir)
48 xx_c = os.path.join(self.tmp_dir, 'xxmodule.c')
51 dist.package_dir = self.tmp_dir
54 cmd.build_lib = self.tmp_dir
55 cmd.build_temp = self.tmp_dir
271 tmp_dir = self.mkdtemp()
272 c_file = os.path.join(tmp_dir, 'foo.c'
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/distutils/tests/
test_sdist.py 61 # and put it in self.tmp_dir
65 os.mkdir(join(self.tmp_dir, 'somecode'))
66 os.mkdir(join(self.tmp_dir, 'dist'))
68 self.write_file((self.tmp_dir, 'README'), 'xxx')
69 self.write_file((self.tmp_dir, 'somecode', '__init__.py'), '#')
70 self.write_file((self.tmp_dir, 'setup.py'), SETUP_PY)
71 os.chdir(self.tmp_dir)
98 os.mkdir(join(self.tmp_dir, 'somecode', '.svn'))
99 self.write_file((self.tmp_dir, 'somecode', '.svn', 'ok.py'), 'xxx')
101 os.mkdir(join(self.tmp_dir, 'somecode', '.hg')
    [all...]
test_file_util.py 24 tmp_dir = self.mkdtemp()
25 self.source = os.path.join(tmp_dir, 'f1')
26 self.target = os.path.join(tmp_dir, 'f2')
27 self.target_dir = os.path.join(tmp_dir, 'd1')
test_build_ext.py 26 self.tmp_dir = self.mkdtemp()
28 sys.path.append(self.tmp_dir)
29 self.addCleanup(sys.path.remove, self.tmp_dir)
46 support.copy_xxmodule_c(self.tmp_dir)
48 xx_c = os.path.join(self.tmp_dir, 'xxmodule.c')
51 dist.package_dir = self.tmp_dir
54 cmd.build_lib = self.tmp_dir
55 cmd.build_temp = self.tmp_dir
271 tmp_dir = self.mkdtemp()
272 c_file = os.path.join(tmp_dir, 'foo.c'
    [all...]
  /art/test/
run-test 38 tmp_dir="/tmp/$USER/${test_dir}"
40 tmp_dir="${TMPDIR}/$USER/${test_dir}"
133 DEX_LOCATION=$tmp_dir
241 run_args="${run_args} --invoke-with strace --invoke-with -o --invoke-with $tmp_dir/$strace_output"
296 tmp_dir=$1
297 if [ "x$tmp_dir" = "x" ]; then
374 # tmp_dir may be relative, resolve.
380 noncanonical_tmp_dir=$tmp_dir
381 tmp_dir="`cd $oldwd ; python -c "import os; print os.path.realpath('$tmp_dir')"`"
    [all...]
  /prebuilts/devtools/tools/
android.bat 49 set tmp_dir=%TEMP%\temp-android-tool variable
50 xcopy %swt_path% %tmp_dir%\%swt_path% /I /E /C /G /R /Y /Q > nul
51 copy /B /D /Y lib\common.jar %tmp_dir%\lib\ > nul
52 copy /B /D /Y lib\commons-codec* %tmp_dir%\lib\ > nul
53 copy /B /D /Y lib\commons-compress* %tmp_dir%\lib\ > nul
54 copy /B /D /Y lib\commons-logging* %tmp_dir%\lib\ > nul
55 copy /B /D /Y lib\dvlib.jar %tmp_dir%\lib\ > nul
56 copy /B /D /Y lib\guava* %tmp_dir%\lib\ > nul
57 copy /B /D /Y lib\httpclient* %tmp_dir%\lib\ > nul
58 copy /B /D /Y lib\httpcore* %tmp_dir%\lib\ > nul
    [all...]
  /external/autotest/site_utils/
brillo_recovery_test.py 62 tmp_dir = moblab.make_tmp_dir()
65 tmp_dir, os.path.basename(args.recovery_image))
67 moblab.run('chown -R moblab:moblab %s' % tmp_dir)
72 moblab.run('rm -rf %s' % tmp_dir)
brillo_aue2e_test.py 225 def stage_payload(moblab, devserver_port, tmp_dir, use, payload_spec):
230 @param tmp_dir: Path of temporary static subdirectory.
245 tmp_dir, _DEFAULT_STAGE_PATH_TEMPLATE % {'use': use})
267 tmp_dir = moblab.make_tmp_dir(base=moblab_host.MOBLAB_IMAGE_STORAGE)
268 moblab.run('chown -R moblab:moblab %s' % tmp_dir)
272 payload_uri, _ = stage_payload(moblab, devserver_port, tmp_dir,
278 moblab, devserver_port, tmp_dir, 'target', args.target_payload)
283 moblab.run('rm -rf %s' % tmp_dir)
  /external/chromium-trace/catapult/dependency_manager/dependency_manager/
dependency_manager_util_unittest.py 24 self.tmp_dir = os.path.abspath(tempfile.mkdtemp(prefix='telemetry'))
25 self.sub_dir = os.path.join(self.tmp_dir, 'sub_dir')
28 self.read_only_path = (os.path.join(self.tmp_dir, 'read_only'))
33 self.writable_path = (os.path.join(self.tmp_dir, 'writable'))
38 self.executable_path = (os.path.join(self.tmp_dir, 'executable'))
58 self.AssertExpectedDirFiles(self.tmp_dir)
59 self.archive_path = self.CreateZipArchiveFromDir(self.tmp_dir)
62 if os.path.isdir(self.tmp_dir):
63 dependency_manager_util.RemoveDir(self.tmp_dir)
119 dependency_manager_util.RemoveDir(self.tmp_dir)
    [all...]
  /external/chromium-trace/catapult/telemetry/telemetry/wpr/
archive_info_unittest.py 40 self.tmp_dir = tempfile.mkdtemp()
43 self.tmp_dir, 'info.json')
49 with open(os.path.join(self.tmp_dir, ('data_00%d.wpr' % i)), 'w') as f:
59 shutil.rmtree(self.tmp_dir)
79 {os.path.join(self.tmp_dir, recording1): "dummyhash",
80 os.path.join(self.tmp_dir, recording2): "dummyhash2",})
111 new_temp_recording = os.path.join(self.tmp_dir, 'recording.wpr')
112 expected_archive_file_path = os.path.join(self.tmp_dir, 'data_003.wpr')
126 recording1_path = os.path.join(self.tmp_dir, recording1)
127 recording2_path = os.path.join(self.tmp_dir, recording2
    [all...]
  /external/libcxx/test/libcxx/ndk/test/
config.py 49 tmp_dir = getattr(self.config, 'device_dir', '/data/local/tmp/')
57 tmp_dir,
59 exec_env={'LD_LIBRARY_PATH': tmp_dir})
  /system/core/adb/client/
main.cpp 58 const char* tmp_dir = getenv("TMPDIR");
59 if (tmp_dir == nullptr) tmp_dir = "/tmp";
60 return android::base::StringPrintf("%s/adb.%u.log", tmp_dir, getuid());
  /bionic/libc/bionic/
tmpfile.cpp 59 static FILE* __tmpfile_dir(const char* tmp_dir) {
61 if (asprintf(&path, "%s/tmp.XXXXXXXXXX", tmp_dir) == -1) {
  /external/autotest/client/bin/
local_host.py 29 for tmp_dir in self.tmp_dirs:
30 self.run('rm -rf "%s"' % (utils.sh_escape(tmp_dir)),
176 tmp_dir = self.run('mktemp -d -p "%s"' % parent).stdout.rstrip()
177 self.tmp_dirs.append(tmp_dir)
178 return tmp_dir
setup_job_unittest.py 212 tmp_dir = 'bar'
215 os.path.exists.expect_call(tmp_dir).and_return(True)
216 os.path.isdir.expect_call(tmp_dir).and_return(False)
219 self.assertRaises(ValueError, self.job.setup_dirs, results_dir, tmp_dir)
230 tmp_dir = 'bar'
233 os.path.exists.expect_call(tmp_dir).and_return(False)
234 os.mkdir.expect_call(tmp_dir)
235 os.path.isdir.expect_call(tmp_dir).and_return(True)
243 self.assertEqual(self.job.setup_dirs(None, tmp_dir),
244 (results_dir3, tmp_dir))
    [all...]
  /external/libchrome/base/files/
scoped_temp_dir_unittest.cc 58 FilePath tmp_dir; local
59 EXPECT_TRUE(base::GetTempDir(&tmp_dir));
60 EXPECT_TRUE(test_path.value().find(tmp_dir.value()) != std::string::npos);

Completed in 778 milliseconds

1 2 3