Searched refs:temp_file (Results 1 - 25 of 71) sorted by relevance

123

/external/chromium_org/chrome/installer/util/
H A Dlogging_installer_unittest.cc21 base::FilePath temp_file = temp_dir.path().Append(L"temp"); local
23 file_util::WriteFile(temp_file, &test_data[0], test_data.size()));
24 ASSERT_TRUE(base::PathExists(temp_file));
27 EXPECT_TRUE(base::GetFileSize(temp_file, &file_size));
31 installer::TruncateLogFileIfNeeded(temp_file));
33 EXPECT_TRUE(base::GetFileSize(temp_file, &file_size));
37 EXPECT_FALSE(base::PathExists(temp_file.Append(L".tmp")));
46 base::FilePath temp_file = temp_dir.path().Append(L"temp"); local
48 file_util::WriteFile(temp_file, &test_data[0], test_data.size()));
49 ASSERT_TRUE(base::PathExists(temp_file));
68 base::FilePath temp_file = temp_dir.path().Append(L"temp"); local
97 base::FilePath temp_file = temp_dir.path().Append(L"temp"); local
[all...]
/external/chromium_org/chrome/test/functional/media/
H A Daudio_playback_perf.py63 temp_file = None
69 temp_file = GetTempFilename()
71 temp_file)
80 audio_tools.RemoveSilence(temp_file, file_no_silence)
96 if temp_file:
97 os.remove(temp_file)
/external/jpeg/
H A Djmemansi.c101 if (fseek(info->temp_file, file_offset, SEEK_SET))
103 if (JFREAD(info->temp_file, buffer_address, byte_count)
114 if (fseek(info->temp_file, file_offset, SEEK_SET))
116 if (JFWRITE(info->temp_file, buffer_address, byte_count)
125 fclose(info->temp_file);
144 if ((info->temp_file = tmpfile()) == NULL)
H A Djmem-android.c103 if (fseek(info->temp_file, file_offset, SEEK_SET))
105 if (JFREAD(info->temp_file, buffer_address, byte_count)
116 if (fseek(info->temp_file, file_offset, SEEK_SET))
118 if (JFWRITE(info->temp_file, buffer_address, byte_count)
127 fclose(info->temp_file);
163 if ((info->temp_file = getTempFile()) == NULL)
H A Djmemmac.c161 if ( SetFPos ( info->temp_file, fsFromStart, file_offset ) != noErr )
164 retVal = FSRead ( info->temp_file, &bytes,
179 if ( SetFPos ( info->temp_file, fsFromStart, file_offset ) != noErr )
182 retVal = FSWrite ( info->temp_file, &bytes,
192 FSClose ( info->temp_file );
253 osErr = FSpOpenDF ( &theSpec, fsRdWrPerm, &(info->temp_file) );
H A Djmemname.c208 if (fseek(info->temp_file, file_offset, SEEK_SET))
210 if (JFREAD(info->temp_file, buffer_address, byte_count)
221 if (fseek(info->temp_file, file_offset, SEEK_SET))
223 if (JFWRITE(info->temp_file, buffer_address, byte_count)
232 fclose(info->temp_file); /* close the file */
251 if ((info->temp_file = fopen(info->temp_name, RW_BINARY)) == NULL)
H A Djmemsys.h160 short temp_file; /* file reference number to temp file */ member in struct:backing_store_struct
165 short temp_file; /* file reference number to temp file */ member in struct:backing_store_struct
170 FILE * temp_file; /* stdio reference to temp file */ member in struct:backing_store_struct
/external/qemu/distrib/jpeg-6b/
H A Djmemansi.c101 if (fseek(info->temp_file, file_offset, SEEK_SET))
103 if (JFREAD(info->temp_file, buffer_address, byte_count)
114 if (fseek(info->temp_file, file_offset, SEEK_SET))
116 if (JFWRITE(info->temp_file, buffer_address, byte_count)
125 fclose(info->temp_file);
144 if ((info->temp_file = tmpfile()) == NULL)
H A Djmem-android.c103 if (fseek(info->temp_file, file_offset, SEEK_SET))
105 if (JFREAD(info->temp_file, buffer_address, byte_count)
116 if (fseek(info->temp_file, file_offset, SEEK_SET))
118 if (JFWRITE(info->temp_file, buffer_address, byte_count)
127 fclose(info->temp_file);
163 if ((info->temp_file = getTempFile()) == NULL)
H A Djmemmac.c161 if ( SetFPos ( info->temp_file, fsFromStart, file_offset ) != noErr )
164 retVal = FSRead ( info->temp_file, &bytes,
179 if ( SetFPos ( info->temp_file, fsFromStart, file_offset ) != noErr )
182 retVal = FSWrite ( info->temp_file, &bytes,
192 FSClose ( info->temp_file );
253 osErr = FSpOpenDF ( &theSpec, fsRdWrPerm, &(info->temp_file) );
H A Djmemname.c208 if (fseek(info->temp_file, file_offset, SEEK_SET))
210 if (JFREAD(info->temp_file, buffer_address, byte_count)
221 if (fseek(info->temp_file, file_offset, SEEK_SET))
223 if (JFWRITE(info->temp_file, buffer_address, byte_count)
232 fclose(info->temp_file); /* close the file */
251 if ((info->temp_file = fopen(info->temp_name, RW_BINARY)) == NULL)
H A Djmemsys.h160 short temp_file; /* file reference number to temp file */ member in struct:backing_store_struct
165 short temp_file; /* file reference number to temp file */ member in struct:backing_store_struct
170 FILE * temp_file; /* stdio reference to temp file */ member in struct:backing_store_struct
/external/chromium_org/chrome/test/remoting/
H A Dme2me_browsertest.cc89 base::FilePath temp_file; local
90 EXPECT_TRUE(base::CreateTemporaryFile(&temp_file));
95 temp_file.MaybeAsASCII() + "\n";
104 EXPECT_TRUE(base::ReadFileToString(temp_file, &content));
108 EXPECT_TRUE(base::DeleteFile(temp_file, false));
/external/chromium_org/google_apis/drive/
H A Dbase_requests_server_unittest.cc74 base::FilePath temp_file; local
81 test_util::CreateCopyResultCallback(&result_code, &temp_file)),
92 base::ReadFileToString(temp_file, &contents);
93 base::DeleteFile(temp_file, false);
108 base::FilePath temp_file; local
115 test_util::CreateCopyResultCallback(&result_code, &temp_file)),
/external/chromium_org/chrome/browser/extensions/api/page_capture/
H A Dpage_capture_apitest.cc35 const base::FilePath& temp_file) OVERRIDE {
36 temp_file_ = temp_file;
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/
H A Dzipfileset.py42 temp_file = NetworkTransaction().run(lambda: urllib.urlretrieve(zip_url)[0])
43 return (temp_file, zipfile.ZipFile(temp_file))
/external/chromium_org/chrome/browser/ui/
H A Dnetwork_profile_bubble.cc126 base::FilePath temp_file; local
129 if (base::CreateTemporaryFileInDir(profile_folder, &temp_file) &&
130 (file_util::WriteFile(temp_file, ".", 1) == 1)) {
132 if (!base::NormalizeFilePath(temp_file, &normalized_temp_file))
137 base::DeleteFile(temp_file, false);
/external/chromium/chrome/browser/safe_browsing/
H A Dsafe_browsing_store_file_unittest.cc33 const FilePath temp_file = local
35 file_util::Delete(temp_file, false);
63 const FilePath temp_file = local
67 EXPECT_FALSE(file_util::PathExists(temp_file));
71 EXPECT_TRUE(file_util::PathExists(temp_file));
78 EXPECT_TRUE(file_util::PathExists(temp_file));
83 EXPECT_FALSE(file_util::PathExists(temp_file));
/external/chromium_org/apps/
H A Dapp_restore_service_browsertest.cc65 base::FilePath temp_file; local
67 &temp_file));
70 &temp_file);
110 base::FilePath temp_file; local
112 &temp_file));
115 &temp_file);
/external/chromium_org/chrome/browser/extensions/
H A Dextension_creator_filter_unittest.cc27 base::FilePath temp_file; local
28 EXPECT_TRUE(base::CreateTemporaryFileInDir(test_dir_, &temp_file));
29 EXPECT_TRUE(base::Move(temp_file, test_file));
39 base::FilePath temp_file; local
40 EXPECT_TRUE(base::CreateTemporaryFileInDir(temp_sub_dir, &temp_file));
41 EXPECT_TRUE(base::Move(temp_file, test_file));
/external/chromium_org/tools/telemetry/telemetry/core/
H A Dbitmap_unittest.py55 temp_file = tempfile.NamedTemporaryFile().name
56 orig.WritePngFile(temp_file)
57 new_file = bitmap.Bitmap.FromPngFile(temp_file)
65 temp_file = tempfile.NamedTemporaryFile().name
66 orig.WritePngFile(temp_file)
67 new_file = bitmap.Bitmap.FromPngFile(temp_file)
/external/chromium_org/chrome/browser/sync_file_system/drive_backend_v1/
H A Dfake_drive_service_helper.cc109 base::FilePath temp_file = WriteToTempFile(content); local
114 parent_folder_id, temp_file, title,
128 base::FilePath temp_file = WriteToTempFile(content); local
132 file_id, temp_file,
238 base::FilePath temp_file; local
239 EXPECT_TRUE(base::CreateTemporaryFileInDir(temp_dir_, &temp_file));
241 temp_file, file->resource_id(),
249 return base::ReadFileToString(temp_file, file_content)
297 base::FilePath temp_file; local
298 EXPECT_TRUE(base::CreateTemporaryFileInDir(temp_dir_, &temp_file));
[all...]
/external/chromium_org/cloud_print/service/win/
H A Dservice_listener.cc41 base::FilePath temp_file; local
42 if (base::CreateTemporaryFileInDir(user_data_dir, &temp_file)) {
43 DCHECK(base::PathExists(temp_file));
46 base::DeleteFile(temp_file, false);
/external/chromium/chrome/browser/chromeos/login/
H A Dsigned_settings_temp_storage_unittest.cc30 FilePath temp_file; local
32 file_util::CreateTemporaryFileInDir(temp_dir_.path(), &temp_file));
33 local_state_.reset(PrefService::CreatePrefService(temp_file, NULL, NULL));
/external/chromium_org/build/android/
H A Dinstall_emulator_deps.py156 temp_file = '/tmp/x86_img_android-%d.zip' % api_level
161 cmd_helper.RunCmd(['curl', '-o', temp_file, X86_IMG_URLS[api_level]])
162 rc = cmd_helper.RunCmd(['unzip', '-o', temp_file, '-d', '/tmp/'])
171 os.unlink(temp_file)

Completed in 882 milliseconds

123