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

1 2 3

  /bootable/recovery/tests/component/
update_verifier_test.cpp 49 TemporaryFile temp_file; local
51 ASSERT_TRUE(android::base::WriteStringToFile(content, temp_file.path));
52 ASSERT_TRUE(verify_image(temp_file.path));
55 ASSERT_TRUE(android::base::WriteStringToFile("\n" + content + "\n\n", temp_file.path));
56 ASSERT_TRUE(verify_image(temp_file.path));
61 TemporaryFile temp_file; local
62 ASSERT_FALSE(verify_image(temp_file.path));
64 ASSERT_TRUE(android::base::WriteStringToFile("line1", temp_file.path));
65 ASSERT_FALSE(verify_image(temp_file.path));
67 ASSERT_TRUE(android::base::WriteStringToFile("line1\nline2\nline3", temp_file.path))
78 TemporaryFile temp_file; local
91 TemporaryFile temp_file; local
    [all...]
install_test.cpp 39 TemporaryFile temp_file; local
40 FILE* zip_file = fdopen(temp_file.release(), "w");
50 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip));
56 TemporaryFile temp_file; local
57 FILE* zip_file = fdopen(temp_file.release(), "w");
66 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip));
72 TemporaryFile temp_file; local
73 FILE* zip_file = fdopen(temp_file.release(), "w");
83 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip));
106 TemporaryFile temp_file; local
132 TemporaryFile temp_file; local
177 TemporaryFile temp_file; local
204 TemporaryFile temp_file; local
305 TemporaryFile temp_file; local
    [all...]
applypatch_test.cpp 170 TemporaryFile temp_file; local
171 mangle_file(temp_file.path);
173 ASSERT_EQ(0, applypatch_check(temp_file.path, sha1s_single));
178 TemporaryFile temp_file; local
179 mangle_file(temp_file.path);
181 ASSERT_EQ(0, applypatch_check(temp_file.path, sha1s_multiple));
186 TemporaryFile temp_file; local
187 mangle_file(temp_file.path);
189 ASSERT_NE(0, applypatch_check(temp_file.path, sha1s_failure));
  /build/make/tools/fs_config/
test_fs_config_generator.py 65 with tempfile.NamedTemporaryFile() as temp_file:
66 temp_file.write(
76 temp_file.flush()
78 parser = AIDHeaderParser(temp_file.name)
92 with tempfile.NamedTemporaryFile() as temp_file:
93 temp_file.write(
103 temp_file.flush()
105 parser = AIDHeaderParser(temp_file.name)
119 with tempfile.NamedTemporaryFile() as temp_file:
120 temp_file.write
    [all...]
  /external/perfetto/src/base/
temp_file.cc 17 #include "perfetto/base/temp_file.h"
34 TempFile temp_file; local
35 temp_file.path_.assign(kSysTmpPath);
36 temp_file.path_.append("/perfetto-XXXXXXXX");
37 temp_file.fd_.reset(mkstemp(&temp_file.path_[0]));
38 PERFETTO_CHECK(temp_file.fd_);
39 return temp_file;
44 TempFile temp_file = TempFile::Create(); local
45 temp_file.Unlink()
    [all...]
  /external/autotest/server/site_tests/brillo_ADBFileTransfer/
brillo_ADBFileTransfer.py 25 self.temp_file = tempfile.NamedTemporaryFile()
26 self.temp_file.write(_DATA_STR)
27 self.temp_file.flush()
28 os.fsync(self.temp_file.file.fileno())
43 host.send_file(self.temp_file.name, device_temp_file,
48 if not filecmp.cmp(self.temp_file.name,
58 self.temp_file.close()
  /bootable/recovery/tests/unit/
sysutil_test.cpp 93 TemporaryFile temp_file; local
94 std::string filename = std::string("@") + temp_file.path;
97 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n", temp_file.path));
100 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n4096 4096\n0\n", temp_file.path));
104 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n4096 4096\n1\n", temp_file.path));
107 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n4096 4096\n2\n0 1\n", temp_file.path));
111 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\nabc 4096\n1\n0 1\n", temp_file.path));
114 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n4096 4096\n\n0 1\n", temp_file.path));
118 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n0 4096\n1\n0 1\n", temp_file.path));
121 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n4096 0\n1\n0 1\n", temp_file.path))
    [all...]
  /external/autotest/server/site_tests/network_DiskFull/
hog_disk.sh 38 temp_file=$(mktemp --tmpdir="$mount_point" hog_disk.XXXXXXXXXX)
39 trap 'rm -f "$temp_file"' EXIT
43 fallocate --length "$mount_size_bytes" "$temp_file" 2>/dev/null || true
  /external/parameter-framework/upstream/test/functional-tests-legacy/PfwTestCase/Domains/
tDomain_Split.py 71 self.temp_file="f_temp_file"
75 if os.path.exists(self.temp_file):
76 os.remove(self.temp_file)
115 f_temp_file = open(self.temp_file, "w")
120 for line in open(self.temp_file, "r"):
126 os.remove(self.temp_file)
132 f_temp_file = open(self.temp_file, "w")
138 for line in open(self.temp_file, "r"):
155 os.remove(self.temp_file)
178 f_temp_file = open(self.temp_file, "w"
    [all...]
  /external/webrtc/webrtc/modules/audio_coding/neteq/tools/
rtp_file_source.cc 36 rtc::scoped_ptr<RtpFileReader> temp_file(
38 return !!temp_file;
42 rtc::scoped_ptr<RtpFileReader> temp_file(
44 return !!temp_file;
  /system/core/libunwindstack/tests/
MemoryOfflineTest.cpp 34 ASSERT_TRUE(android::base::WriteFully(temp_file.fd, &offset, sizeof(offset)));
35 ASSERT_TRUE(android::base::WriteFully(temp_file.fd, data.data(), data.size()));
40 ASSERT_TRUE(memory->Init(temp_file.path, 0));
43 TemporaryFile temp_file; member in class:unwindstack::MemoryOfflineTest
  /system/core/libziparchive/
zip_archive_benchmark.cpp 52 std::unique_ptr<TemporaryFile> temp_file(CreateZip());
62 OpenArchive(temp_file->path, &handle);
70 std::unique_ptr<TemporaryFile> temp_file(CreateZip());
77 OpenArchive(temp_file->path, &handle);
  /external/toolchain-utils/cros_utils/
no_pseudo_terminal_test.py 40 temp_file = tempfile.mktemp()
41 self.assertTrue(self._AttachStraceToSelf(temp_file))
48 strace_contents = open(temp_file).read()
  /external/tensorflow/tensorflow/tools/compatibility/
tf_upgrade_test.py 137 temp_file = tempfile.NamedTemporaryFile("w", delete=False)
140 temp_file.write(original)
141 temp_file.close()
143 upgrader.process_file(temp_file.name, temp_file.name)
144 self.assertAllEqual(open(temp_file.name).read(), upgraded)
145 os.unlink(temp_file.name)
  /external/devlib/devlib/module/
thermal.py 32 temp_file = self.target.path.join(self.zone.path, self.temp_node)
33 return self.target.read_int(temp_file)
36 temp_file = self.target.path.join(self.zone.path, self.temp_node)
37 self.target.write_value(temp_file, temperature)
70 temp_file = self.target.path.join(self.path, 'temp')
71 return self.target.read_int(temp_file)
  /external/autotest/client/cros/
gpio.py 85 temp_fd, temp_file = tempfile.mkstemp()
87 command = "crossystem %s 2>%s" % (name, temp_file)
92 with open(temp_file, 'r') as temp_handle:
  /external/autotest/site_utils/stats/
apache_access_log_metrics_unittest.py 68 with tempfile.NamedTemporaryFile() as temp_file:
70 '--debug-metrics-file', temp_file.name],
74 with open(temp_file.name) as fh:
  /external/autotest/server/site_tests/power_DeferForFlashrom/
power_DeferForFlashrom.py 55 temp_file = self.host.run(
59 (source_path, temp_file, size))
60 logging.info('Created %s', temp_file)
61 return temp_file
  /external/libjpeg-turbo/
jmemsys.h 140 short temp_file; /* file reference number to temp file */ member in struct:backing_store_struct
145 FILE *temp_file; /* stdio reference to temp file */ member in struct:backing_store_struct
  /external/google-breakpad/src/tools/windows/symupload/
symupload.cc 133 FILE *temp_file = NULL; local
135 if (_wfopen_s(&temp_file, temp_filename, L"w") != 0)
139 if (!(temp_file = _wfopen(temp_filename, L"w")))
145 bool success = writer.WriteMap(temp_file);
146 fclose(temp_file);
  /system/core/adb/
sysdeps_win32_test.cpp 94 TemporaryFile temp_file; local
95 EXPECT_TRUE(temp_file.fd >= 0);
96 EXPECT_EQ(0, unix_isatty(temp_file.fd));
98 int temp_file_ro_fd = unix_open(temp_file.path, O_RDONLY);
test_device.py 745 for temp_file in temp_files:
748 temp_file.base_name)
749 self._verify_remote(temp_file.checksum, remote_path)
831 paths = map(lambda temp_file: temp_file.full_path, temp_files)
835 for temp_file in temp_files:
837 temp_file.base_name)
838 self._verify_remote(temp_file.checksum, remote_path)
844 temp_file.base_name)
845 self._verify_remote(temp_file.checksum, remote_path
    [all...]
  /external/parameter-framework/upstream/test/functional-tests-legacy/PfwTestCase/Functions/
tFunction_listingFunctions.py 64 self.temp_file="tempfile"
71 if os.path.exists(self.temp_file):
72 os.remove(self.temp_file)
316 f_temp_file = open(self.temp_file, "w")
321 f_temp_file = open(self.temp_file, "r")
368 f_temp_file = open(self.temp_file, "w")
373 f_temp_file = open(self.temp_file, "r")
420 f_temp_file = open(self.temp_file, "w")
425 f_temp_file = open(self.temp_file, "r")
469 f_temp_file = open(self.temp_file, "w"
    [all...]
  /external/devlib/devlib/utils/
rendering.py 33 self.temp_file = None
45 fd, self.temp_file = tempfile.mkstemp()
46 logger.debug('temp file: {}'.format(self.temp_file))
74 if not self.temp_file:
76 with open(self.temp_file) as fh:
79 shutil.copy(self.temp_file, outfile)
80 os.unlink(self.temp_file)
81 self.temp_file = None
  /test/vts-testcase/kernel/api/binder/
VtsKernelBinderTest.py 51 with tempfile.NamedTemporaryFile(delete=False) as temp_file:
52 config_path = temp_file.name

Completed in 716 milliseconds

1 2 3