HomeSort by relevance Sort by last modified time
    Searched defs:temp_file (Results 1 - 18 of 18) sorted by null

  /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));
updater_test.cpp 321 TemporaryFile temp_file; local
323 std::string script("write_value(\"" + value + "\", \"" + std::string(temp_file.path) + "\")");
328 ASSERT_TRUE(android::base::ReadFileToString(temp_file.path, &content));
332 script = "write_value(\"\", \"" + std::string(temp_file.path) + "\")";
336 ASSERT_TRUE(android::base::ReadFileToString(temp_file.path, &content));
352 std::string temp_file(tf.path);
356 ASSERT_TRUE(write_bootloader_message_to(boot, temp_file, &err));
359 std::string script("get_stage(\"" + temp_file + "\")");
375 std::string temp_file(tf.path);
380 ASSERT_TRUE(write_bootloader_message_to(boot, temp_file, &err))
    [all...]
  /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...]
  /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
  /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...]
  /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);
  /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/perf_data_converter/src/quipper/
scoped_temp_path_test.cc 74 ScopedTempFile temp_file; local
75 path = temp_file.path();
90 ScopedTempFile temp_file(prefix);
91 path = temp_file.path();
  /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);
  /external/libchrome/base/metrics/
persistent_histogram_allocator_unittest.cc 133 FilePath temp_file = temp_dir.GetPath().AppendASCII(temp_name); local
138 GlobalHistogramAllocator::CreateWithFile(temp_file, temp_size, 0, temp_name);
144 GlobalHistogramAllocator::CreateWithFile(temp_file, temp_size, 0, "");
150 GlobalHistogramAllocator::CreateWithFile(temp_file, 0, 0, "");
  /toolchain/binutils/binutils-2.27/libiberty/
pex-common.c 103 temp_file (struct pex_obj *obj, int flags, char *name) function
232 outname = temp_file (obj, flags, outname);
396 name = temp_file (obj, flags, name);
  /external/libchrome/base/debug/
activity_tracker_unittest.cc 279 FilePath temp_file = temp_dir.GetPath().AppendASCII(temp_name); local
283 ASSERT_FALSE(PathExists(temp_file));
284 GlobalActivityTracker::CreateWithFile(temp_file, temp_size, 0, "foo", 3);
292 ASSERT_TRUE(PathExists(temp_file));
293 GlobalActivityTracker::CreateWithFile(temp_file, temp_size, 0, "bar", 3);
  /external/libxcam/modules/ocl/
cl_kernel.cpp 129 FileHandle temp_file; local
205 ret = temp_file.open (temp_filename, "wb");
207 ret = temp_file.write_file (kernel_cache, write_cache_size);
208 temp_file.close ();
  /external/webrtc/webrtc/base/
win32regkey_unittest.cc 570 wchar_t temp_file[MAX_PATH] = {0}; local
572 ::GetTickCount(), temp_file), 0);
577 EXPECT_SUCCEEDED(RegKey::Save(kFullRkey1Subkey, temp_file));
582 EXPECT_SUCCEEDED(RegKey::Restore(kFullRkey1Subkey, temp_file));
593 EXPECT_EQ(TRUE, ::DeleteFile(temp_file));
  /system/update_engine/common/
utils_unittest.cc 103 string temp_file = temp_dir.GetPath().Append("temp-file").value(); local
104 EXPECT_TRUE(utils::WriteFile(temp_file.c_str(), "", 0));
106 EXPECT_EQ(0, symlink(temp_file.c_str(), temp_symlink.c_str()));
108 EXPECT_FALSE(utils::IsSymlink(temp_file.c_str()));
  /system/update_engine/payload_consumer/
download_action_unittest.cc 355 ScopedTempFile temp_file; local
358 EXPECT_EQ(0, writer.Open(temp_file.path().c_str(), O_WRONLY | O_CREAT, 0));
394 const off_t resulting_file_size(utils::FileSize(temp_file.path()));

Completed in 1210 milliseconds