/external/chromium_org/chrome/installer/util/ |
D | logging_installer_unittest.cc | 21 base::FilePath temp_file = temp_dir.path().Append(L"temp"); in TEST() local 23 base::WriteFile(temp_file, &test_data[0], test_data.size())); in TEST() 24 ASSERT_TRUE(base::PathExists(temp_file)); in TEST() 27 EXPECT_TRUE(base::GetFileSize(temp_file, &file_size)); in TEST() 31 installer::TruncateLogFileIfNeeded(temp_file)); in TEST() 33 EXPECT_TRUE(base::GetFileSize(temp_file, &file_size)); in TEST() 37 EXPECT_FALSE(base::PathExists(temp_file.Append(L".tmp"))); in TEST() 46 base::FilePath temp_file = temp_dir.path().Append(L"temp"); in TEST() local 48 base::WriteFile(temp_file, &test_data[0], test_data.size())); in TEST() 49 ASSERT_TRUE(base::PathExists(temp_file)); in TEST() [all …]
|
/external/chromium_org/build/android/pylib/ |
D | android_commands_unittest.py | 27 temp_file = android_commands.DeviceTempFile(self.ac) 28 self.assertFalse(self.ac.FileExistsOnDevice(temp_file.name)) 29 self.ac.SetFileContents(temp_file.name, "contents") 30 self.assertTrue(self.ac.FileExistsOnDevice(temp_file.name)) 31 temp_file.close() 32 self.assertFalse(self.ac.FileExistsOnDevice(temp_file.name)) 43 temp_file = android_commands.DeviceTempFile(self.ac) 44 temp_file.close() 45 self.assertFalse(self.ac.FileExistsOnDevice(temp_file.name)) 53 temp_file = android_commands.DeviceTempFile(self.ac, prefix="cat") [all …]
|
/external/jpeg/ |
D | jmemansi.c | 101 if (fseek(info->temp_file, file_offset, SEEK_SET)) in read_backing_store() 103 if (JFREAD(info->temp_file, buffer_address, byte_count) in read_backing_store() 114 if (fseek(info->temp_file, file_offset, SEEK_SET)) in write_backing_store() 116 if (JFWRITE(info->temp_file, buffer_address, byte_count) in write_backing_store() 125 fclose(info->temp_file); in close_backing_store() 144 if ((info->temp_file = tmpfile()) == NULL) in jpeg_open_backing_store()
|
D | jmem-android.c | 103 if (fseek(info->temp_file, file_offset, SEEK_SET)) in read_backing_store() 105 if (JFREAD(info->temp_file, buffer_address, byte_count) in read_backing_store() 116 if (fseek(info->temp_file, file_offset, SEEK_SET)) in write_backing_store() 118 if (JFWRITE(info->temp_file, buffer_address, byte_count) in write_backing_store() 127 fclose(info->temp_file); in close_backing_store() 163 if ((info->temp_file = getTempFile()) == NULL) in jpeg_open_backing_store()
|
D | jmemname.c | 208 if (fseek(info->temp_file, file_offset, SEEK_SET)) in read_backing_store() 210 if (JFREAD(info->temp_file, buffer_address, byte_count) in read_backing_store() 221 if (fseek(info->temp_file, file_offset, SEEK_SET)) in write_backing_store() 223 if (JFWRITE(info->temp_file, buffer_address, byte_count) in write_backing_store() 232 fclose(info->temp_file); /* close the file */ in close_backing_store() 251 if ((info->temp_file = fopen(info->temp_name, RW_BINARY)) == NULL) in jpeg_open_backing_store()
|
D | jmemmac.c | 161 if ( SetFPos ( info->temp_file, fsFromStart, file_offset ) != noErr ) in read_backing_store() 164 retVal = FSRead ( info->temp_file, &bytes, in read_backing_store() 179 if ( SetFPos ( info->temp_file, fsFromStart, file_offset ) != noErr ) in write_backing_store() 182 retVal = FSWrite ( info->temp_file, &bytes, in write_backing_store() 192 FSClose ( info->temp_file ); in close_backing_store() 253 osErr = FSpOpenDF ( &theSpec, fsRdWrPerm, &(info->temp_file) ); in jpeg_open_backing_store()
|
D | jmemsys.h | 160 short temp_file; /* file reference number to temp file */ member 165 short temp_file; /* file reference number to temp file */ member 170 FILE * temp_file; /* stdio reference to temp file */ member
|
/external/qemu/distrib/jpeg-6b/ |
D | jmemansi.c | 101 if (fseek(info->temp_file, file_offset, SEEK_SET)) in read_backing_store() 103 if (JFREAD(info->temp_file, buffer_address, byte_count) in read_backing_store() 114 if (fseek(info->temp_file, file_offset, SEEK_SET)) in write_backing_store() 116 if (JFWRITE(info->temp_file, buffer_address, byte_count) in write_backing_store() 125 fclose(info->temp_file); in close_backing_store() 144 if ((info->temp_file = tmpfile()) == NULL) in jpeg_open_backing_store()
|
D | jmem-android.c | 103 if (fseek(info->temp_file, file_offset, SEEK_SET)) in read_backing_store() 105 if (JFREAD(info->temp_file, buffer_address, byte_count) in read_backing_store() 116 if (fseek(info->temp_file, file_offset, SEEK_SET)) in write_backing_store() 118 if (JFWRITE(info->temp_file, buffer_address, byte_count) in write_backing_store() 127 fclose(info->temp_file); in close_backing_store() 163 if ((info->temp_file = getTempFile()) == NULL) in jpeg_open_backing_store()
|
D | jmemname.c | 208 if (fseek(info->temp_file, file_offset, SEEK_SET)) in read_backing_store() 210 if (JFREAD(info->temp_file, buffer_address, byte_count) in read_backing_store() 221 if (fseek(info->temp_file, file_offset, SEEK_SET)) in write_backing_store() 223 if (JFWRITE(info->temp_file, buffer_address, byte_count) in write_backing_store() 232 fclose(info->temp_file); /* close the file */ in close_backing_store() 251 if ((info->temp_file = fopen(info->temp_name, RW_BINARY)) == NULL) in jpeg_open_backing_store()
|
D | jmemmac.c | 161 if ( SetFPos ( info->temp_file, fsFromStart, file_offset ) != noErr ) in read_backing_store() 164 retVal = FSRead ( info->temp_file, &bytes, in read_backing_store() 179 if ( SetFPos ( info->temp_file, fsFromStart, file_offset ) != noErr ) in write_backing_store() 182 retVal = FSWrite ( info->temp_file, &bytes, in write_backing_store() 192 FSClose ( info->temp_file ); in close_backing_store() 253 osErr = FSpOpenDF ( &theSpec, fsRdWrPerm, &(info->temp_file) ); in jpeg_open_backing_store()
|
D | jmemsys.h | 160 short temp_file; /* file reference number to temp file */ member 165 short temp_file; /* file reference number to temp file */ member 170 FILE * temp_file; /* stdio reference to temp file */ member
|
/external/chromium_org/google_apis/drive/ |
D | base_requests_server_unittest.cc | 74 base::FilePath temp_file; in TEST_F() local 81 test_util::CreateCopyResultCallback(&result_code, &temp_file)), in TEST_F() 92 base::ReadFileToString(temp_file, &contents); in TEST_F() 93 base::DeleteFile(temp_file, false); in TEST_F() 108 base::FilePath temp_file; in TEST_F() local 115 test_util::CreateCopyResultCallback(&result_code, &temp_file)), in TEST_F()
|
/external/chromium_org/chrome/browser/extensions/ |
D | extension_creator_filter_unittest.cc | 27 base::FilePath temp_file; in CreateEmptyTestFile() local 28 EXPECT_TRUE(base::CreateTemporaryFileInDir(test_dir_, &temp_file)); in CreateEmptyTestFile() 29 EXPECT_TRUE(base::Move(temp_file, test_file)); in CreateEmptyTestFile() 39 base::FilePath temp_file; in CreateEmptyTestFileInDir() local 40 EXPECT_TRUE(base::CreateTemporaryFileInDir(temp_sub_dir, &temp_file)); in CreateEmptyTestFileInDir() 41 EXPECT_TRUE(base::Move(temp_file, test_file)); in CreateEmptyTestFileInDir()
|
/external/chromium_org/chrome/browser/sync_file_system/drive_backend/ |
D | fake_drive_service_helper.cc | 107 base::FilePath temp_file = WriteToTempFile(content); in AddFile() local 112 parent_folder_id, temp_file, title, in AddFile() 127 base::FilePath temp_file = WriteToTempFile(content); in UpdateFile() local 131 file_id, temp_file, in UpdateFile() 287 base::FilePath temp_file; in ReadFile() local 288 EXPECT_TRUE(base::CreateTemporaryFileInDir(temp_dir_, &temp_file)); in ReadFile() 290 temp_file, file->file_id(), in ReadFile() 298 return base::ReadFileToString(temp_file, file_content) in ReadFile() 345 base::FilePath temp_file; in WriteToTempFile() local 346 EXPECT_TRUE(base::CreateTemporaryFileInDir(temp_dir_, &temp_file)); in WriteToTempFile() [all …]
|
/external/chromium_org/chrome/browser/ui/ |
D | network_profile_bubble.cc | 127 base::FilePath temp_file; in CheckNetworkProfile() local 130 if (base::CreateTemporaryFileInDir(profile_folder, &temp_file) && in CheckNetworkProfile() 131 (base::WriteFile(temp_file, ".", 1) == 1)) { in CheckNetworkProfile() 133 if (!base::NormalizeFilePath(temp_file, &normalized_temp_file)) in CheckNetworkProfile() 138 base::DeleteFile(temp_file, false); in CheckNetworkProfile()
|
/external/chromium_org/apps/ |
D | app_restore_service_browsertest.cc | 119 base::FilePath temp_file; in IN_PROC_BROWSER_TEST_F() local 121 &temp_file)); in IN_PROC_BROWSER_TEST_F() 124 &temp_file); in IN_PROC_BROWSER_TEST_F() 159 base::FilePath temp_file; in IN_PROC_BROWSER_TEST_F() local 161 &temp_file)); in IN_PROC_BROWSER_TEST_F() 164 &temp_file); in IN_PROC_BROWSER_TEST_F()
|
/external/chromium_org/cloud_print/service/win/ |
D | service_listener.cc | 41 base::FilePath temp_file; in GetEnvironment() local 42 if (base::CreateTemporaryFileInDir(user_data_dir, &temp_file)) { in GetEnvironment() 43 DCHECK(base::PathExists(temp_file)); in GetEnvironment() 46 base::DeleteFile(temp_file, false); in GetEnvironment()
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/ |
D | zipfileset.py | 42 temp_file = NetworkTransaction().run(lambda: urllib.urlretrieve(zip_url)[0]) 43 return (temp_file, zipfile.ZipFile(temp_file))
|
/external/chromium_org/tools/ipc_fuzzer/ |
D | remove_close_messages.py | 22 temp_file = tempfile.NamedTemporaryFile(delete=False) 23 temp_file.close() 24 return temp_file.name
|
/external/chromium_org/content/test/gpu/gpu_tests/ |
D | cloud_storage_test_base.py | 143 temp_file = tempfile.NamedTemporaryFile().name 144 bitmap.WritePngFile(temp_file) 145 cloud_storage.Insert(bucket, name, temp_file, publicly_readable=public) 169 temp_file = tempfile.NamedTemporaryFile().name 172 temp_file) 173 return bitmap.Bitmap.FromPngFile(temp_file)
|
/external/chromium_org/build/android/ |
D | install_emulator_deps.py | 171 temp_file = '/tmp/x86_img_android-%d.zip' % api_level 176 cmd_helper.RunCmd(['curl', '-o', temp_file, X86_IMG_URLS[api_level]]) 177 rc = cmd_helper.RunCmd(['unzip', '-o', temp_file, '-d', '/tmp/']) 186 os.unlink(temp_file)
|
/external/chromium_org/tools/telemetry/telemetry/core/ |
D | bitmap_unittest.py | 95 temp_file = tempfile.NamedTemporaryFile().name 96 orig.WritePngFile(temp_file) 97 new_file = bitmap.Bitmap.FromPngFile(temp_file) 106 temp_file = tempfile.NamedTemporaryFile().name 107 orig.WritePngFile(temp_file) 108 new_file = bitmap.Bitmap.FromPngFile(temp_file)
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
D | trace-event-info.c | 517 snprintf(tdata->temp_file, sizeof(tdata->temp_file), in tracing_data_get() 519 if (!mkstemp(tdata->temp_file)) { in tracing_data_get() 524 temp_fd = open(tdata->temp_file, O_RDWR); in tracing_data_get() 526 pr_debug("Can't read '%s'", tdata->temp_file); in tracing_data_get() 579 err = record_file(tdata->temp_file, 0); in tracing_data_put() 580 unlink(tdata->temp_file); in tracing_data_put()
|
/external/chromium_org/tools/ipc_fuzzer/mutate/ |
D | ipc_fuzzer_mut.py | 27 temp_file = tempfile.NamedTemporaryFile(delete=False) 28 temp_file.close() 29 return temp_file.name
|