/external/e2fsprogs/ext2ed/ |
D | file_com.c | 30 file_info.inode_ptr=ptr; in init_file_info() 31 file_info.inode_offset=device_offset; in init_file_info() 33 file_info.global_block_num=ptr->i_block [0]; in init_file_info() 34 file_info.global_block_offset=ptr->i_block [0]*file_system_info.block_size; in init_file_info() 35 file_info.block_num=0; in init_file_info() 36 file_info.blocks_count=(ptr->i_size+file_system_info.block_size-1)/file_system_info.block_size; in init_file_info() 37 file_info.file_offset=0; in init_file_info() 38 file_info.file_length=ptr->i_size; in init_file_info() 39 file_info.level=0; in init_file_info() 40 file_info.offset_in_block=0; in init_file_info() [all …]
|
D | dir_com.c | 223 dir_entry_ptr=(struct ext2_dir_entry_2 *) (file_info.buffer+file_info.dir_entry_offset); in type_dir___cd() 259 status=FOUND;info=file_info; in type_dir___cd() 263 file_info=info; /* Switch to it, by setting the global file_info */ in type_dir___cd() 357 if (entry_num_search < 0 || entry_num_search >= file_info.dir_entries_count) { in type_dir___entry() 364 file_info=info; in type_dir___entry() 402 low_read (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in type_dir___followinode() 403 dir_entry_ptr=(struct ext2_dir_entry_2 *) (file_info.buffer+file_info.dir_entry_offset); in type_dir___followinode() 439 show_pad_info.line=file_info.dir_entry_num-show_pad_info.display_lines/2; in type_dir___show() 458 if (info->dir_entry_num == file_info.dir_entry_num) /* Highlight the current entry */ in action_show() 470 if (info->dir_entry_num == file_info.dir_entry_num) in action_show() [all …]
|
/external/chromium_org/chrome/browser/chromeos/drive/ |
D | resource_entry_conversion.cc | 70 PlatformFileInfoProto* file_info = converted.mutable_file_info(); in ConvertToResourceEntry() local 72 file_info->set_last_modified(input.updated_time().ToInternalValue()); in ConvertToResourceEntry() 75 file_info->set_last_accessed(input.last_viewed_time().ToInternalValue()); in ConvertToResourceEntry() 76 file_info->set_creation_time(input.published_time().ToInternalValue()); in ConvertToResourceEntry() 82 file_info->set_size(input.file_size()); in ConvertToResourceEntry() 99 file_info->set_size(0); in ConvertToResourceEntry() 101 file_info->set_is_directory(false); in ConvertToResourceEntry() 122 file_info->set_is_directory(true); in ConvertToResourceEntry() 141 base::PlatformFileInfo* file_info) { in ConvertResourceEntryToPlatformFileInfo() argument 142 file_info->size = entry.file_info().size(); in ConvertResourceEntryToPlatformFileInfo() [all …]
|
D | resource_entry_conversion_unittest.cc | 73 entry.file_info().last_modified()); in TEST() 75 EXPECT_EQ(0, entry.file_info().last_accessed()); in TEST() 77 entry.file_info().creation_time()); in TEST() 86 EXPECT_EQ(892721, entry.file_info().size()); in TEST() 89 EXPECT_FALSE(entry.file_info().is_directory()); in TEST() 156 entry.file_info().last_modified()); in TEST() 158 entry.file_info().last_accessed()); in TEST() 160 entry.file_info().creation_time()); in TEST() 169 EXPECT_EQ(0, entry.file_info().size()); in TEST() 170 EXPECT_FALSE(entry.file_info().is_directory()); in TEST() [all …]
|
/external/chromium_org/base/files/ |
D | file_posix.cc | 370 stat_wrapper_t file_info; in GetInfo() local 371 if (CallFstat(file_, &file_info)) in GetInfo() 374 info->is_directory = S_ISDIR(file_info.st_mode); in GetInfo() 375 info->is_symbolic_link = S_ISLNK(file_info.st_mode); in GetInfo() 376 info->size = file_info.st_size; in GetInfo() 379 const time_t last_modified_sec = file_info.st_mtim.tv_sec; in GetInfo() 380 const int64 last_modified_nsec = file_info.st_mtim.tv_nsec; in GetInfo() 381 const time_t last_accessed_sec = file_info.st_atim.tv_sec; in GetInfo() 382 const int64 last_accessed_nsec = file_info.st_atim.tv_nsec; in GetInfo() 383 const time_t creation_time_sec = file_info.st_ctim.tv_sec; in GetInfo() [all …]
|
/external/chromium_org/base/ |
D | platform_file_posix.cc | 371 stat_wrapper_t file_info; in GetPlatformFileInfo() local 372 if (CallFstat(file, &file_info)) in GetPlatformFileInfo() 375 info->is_directory = S_ISDIR(file_info.st_mode); in GetPlatformFileInfo() 376 info->is_symbolic_link = S_ISLNK(file_info.st_mode); in GetPlatformFileInfo() 377 info->size = file_info.st_size; in GetPlatformFileInfo() 380 const time_t last_modified_sec = file_info.st_mtim.tv_sec; in GetPlatformFileInfo() 381 const int64 last_modified_nsec = file_info.st_mtim.tv_nsec; in GetPlatformFileInfo() 382 const time_t last_accessed_sec = file_info.st_atim.tv_sec; in GetPlatformFileInfo() 383 const int64 last_accessed_nsec = file_info.st_atim.tv_nsec; in GetPlatformFileInfo() 384 const time_t creation_time_sec = file_info.st_ctim.tv_sec; in GetPlatformFileInfo() [all …]
|
D | file_util_posix.cc | 211 stat_wrapper_t file_info; in DeleteFile() local 212 int test = CallLstat(path_str, &file_info); in DeleteFile() 218 if (!S_ISDIR(file_info.st_mode)) in DeleteFile() 374 stat_wrapper_t file_info; in DirectoryExists() local 375 if (CallStat(path.value().c_str(), &file_info) == 0) in DirectoryExists() 376 return S_ISDIR(file_info.st_mode); in DirectoryExists() 419 stat_wrapper_t file_info; in GetPosixFilePermissions() local 422 if (CallStat(path.value().c_str(), &file_info) != 0) in GetPosixFilePermissions() 425 *mode = file_info.st_mode & FILE_PERMISSION_MASK; in GetPosixFilePermissions() 633 stat_wrapper_t file_info; in NormalizeFilePath() local [all …]
|
/external/chromium_org/webkit/browser/fileapi/ |
D | obfuscated_file_util.cc | 54 SandboxDirectoryDatabase::FileInfo* file_info, in InitFileInfo() argument 57 DCHECK(file_info); in InitFileInfo() 58 file_info->parent_id = parent_id; in InitFileInfo() 59 file_info->name = file_name; in InitFileInfo() 146 FileInfo file_info; in Next() local 151 &file_info, ¤t_platform_file_info_, &platform_file_path); in Next() 156 current_parent_virtual_path_.Append(file_info.name); in Next() 157 if (recursive_ && file_info.is_directory()) { in Next() 307 FileInfo file_info; in EnsureFileExists() local 308 if (!db->GetFileInfo(file_id, &file_info)) { in EnsureFileExists() [all …]
|
D | dragged_file_util.cc | 66 PlatformFileInfo* file_info, in GetFileInfo() argument 68 DCHECK(file_info); in GetFileInfo() 77 file_info->is_directory = true; in GetFileInfo() 78 file_info->is_symbolic_link = false; in GetFileInfo() 79 file_info->size = 0; in GetFileInfo() 83 NativeFileUtil::GetFileInfo(url.path(), file_info); in GetFileInfo()
|
D | async_file_test_helper.cc | 41 const base::PlatformFileInfo& file_info) { in GetMetadataCallback() argument 44 *file_info_out = file_info; in GetMetadataCallback() 53 const base::PlatformFileInfo& file_info, in CreateSnapshotFileCallback() argument 213 base::PlatformFileInfo* file_info) { in GetMetadata() argument 218 file_info)); in GetMetadata() 240 base::PlatformFileInfo file_info; in FileExists() local 241 base::PlatformFileError result = GetMetadata(context, url, &file_info); in FileExists() 242 if (result != base::PLATFORM_FILE_OK || file_info.is_directory) in FileExists() 244 return expected_size == kDontCheckSize || file_info.size == expected_size; in FileExists() 250 base::PlatformFileInfo file_info; in DirectoryExists() local [all …]
|
/external/chromium_org/third_party/zlib/contrib/minizip/ |
D | miniunz.c | 236 unz_file_info64 file_info; local 240 … err = unzGetCurrentFileInfo64(uf,&file_info,filename_inzip,sizeof(filename_inzip),NULL,0,NULL,0); 246 if (file_info.uncompressed_size>0) 247 ratio = (uLong)((file_info.compressed_size*100)/file_info.uncompressed_size); 250 if ((file_info.flag & 1) != 0) 253 if (file_info.compression_method==0) 256 if (file_info.compression_method==Z_DEFLATED) 258 uInt iLevel=(uInt)((file_info.flag & 0x6)/2); 267 if (file_info.compression_method==Z_BZIP2ED) 274 Display64BitsSize(file_info.uncompressed_size,7); [all …]
|
/external/zlib/src/contrib/minizip/ |
D | miniunz.c | 249 unz_file_info64 file_info; local 253 … err = unzGetCurrentFileInfo64(uf,&file_info,filename_inzip,sizeof(filename_inzip),NULL,0,NULL,0); 259 if (file_info.uncompressed_size>0) 260 ratio = (uLong)((file_info.compressed_size*100)/file_info.uncompressed_size); 263 if ((file_info.flag & 1) != 0) 266 if (file_info.compression_method==0) 269 if (file_info.compression_method==Z_DEFLATED) 271 uInt iLevel=(uInt)((file_info.flag & 0x6)/2); 280 if (file_info.compression_method==Z_BZIP2ED) 287 Display64BitsSize(file_info.uncompressed_size,7); [all …]
|
/external/chromium_org/chrome/browser/media_galleries/fileapi/ |
D | itunes_file_util.cc | 31 base::PlatformFileInfo* file_info) { in MakeDirectoryFileInfo() argument 34 *file_info = result; in MakeDirectoryFileInfo() 93 base::PlatformFileInfo* file_info, in GetFileInfoSync() argument 99 return MakeDirectoryFileInfo(file_info); in GetFileInfoSync() 108 return fileapi::NativeFileUtil::GetFileInfo(file_path, file_info); in GetFileInfoSync() 117 return NativeMediaFileUtil::GetFileInfoSync(context, url, file_info, in GetFileInfoSync() 124 return MakeDirectoryFileInfo(file_info); in GetFileInfoSync() 128 return MakeDirectoryFileInfo(file_info); in GetFileInfoSync() 133 return MakeDirectoryFileInfo(file_info); in GetFileInfoSync() 141 return NativeMediaFileUtil::GetFileInfoSync(context, url, file_info, in GetFileInfoSync() [all …]
|
D | native_media_file_util.cc | 323 base::PlatformFileInfo file_info; in GetFileInfoOnTaskRunnerThread() local 325 GetFileInfoSync(context.get(), url, &file_info, NULL); in GetFileInfoOnTaskRunnerThread() 329 base::Bind(callback, error, file_info)); in GetFileInfoOnTaskRunnerThread() 405 base::PlatformFileInfo file_info; in CreateSnapshotFileOnTaskRunnerThread() local 409 CreateSnapshotFileSync(context.get(), url, &file_info, &platform_path, in CreateSnapshotFileOnTaskRunnerThread() 414 base::Bind(callback, error, file_info, platform_path, file_ref)); in CreateSnapshotFileOnTaskRunnerThread() 452 base::PlatformFileInfo file_info; in CopyOrMoveFileSync() local 453 error = fileapi::NativeFileUtil::GetFileInfo(dest_file_path, &file_info); in CopyOrMoveFileSync() 457 if (error == base::PLATFORM_FILE_OK && file_info.is_directory) in CopyOrMoveFileSync() 490 base::PlatformFileInfo* file_info, in GetFileInfoSync() argument [all …]
|
/external/chromium_org/chrome/browser/safe_browsing/ |
D | signature_util_win.cc | 28 WINTRUST_FILE_INFO file_info = {0}; in CheckSignature() local 29 file_info.cbStruct = sizeof(file_info); in CheckSignature() 30 file_info.pcwszFilePath = file_path.value().c_str(); in CheckSignature() 31 file_info.hFile = NULL; in CheckSignature() 32 file_info.pgKnownSubject = NULL; in CheckSignature() 41 wintrust_data.pFile = &file_info; in CheckSignature()
|
/external/chromium_org/webkit/glue/ |
D | webkit_glue.cc | 18 const base::PlatformFileInfo& file_info, in PlatformFileInfoToWebFileInfo() argument 22 if (file_info.last_modified.is_null()) in PlatformFileInfoToWebFileInfo() 25 web_file_info->modificationTime = file_info.last_modified.ToDoubleT(); in PlatformFileInfoToWebFileInfo() 26 web_file_info->length = file_info.size; in PlatformFileInfoToWebFileInfo() 27 if (file_info.is_directory) in PlatformFileInfoToWebFileInfo()
|
/external/chromium/chrome/browser/policy/ |
D | config_dir_policy_provider.cc | 55 base::PlatformFileInfo file_info; in GetLastModification() local 58 if (!file_util::GetFileInfo(config_file_path(), &file_info) || in GetLastModification() 59 !file_info.is_directory) { in GetLastModification() 70 if (file_util::GetFileInfo(config_file, &file_info) && in GetLastModification() 71 !file_info.is_directory) { in GetLastModification() 72 last_modification = std::max(last_modification, file_info.last_modified); in GetLastModification()
|
/external/chromium_org/chrome/browser/media_galleries/win/ |
D | mtp_device_delegate_impl_win.cc | 156 base::PlatformFileInfo* file_info) { in GetFileInfoOnBlockingPoolThread() argument 160 DCHECK(file_info); in GetFileInfoOnBlockingPoolThread() 172 file_info); in GetFileInfoOnBlockingPoolThread() 186 base::PlatformFileInfo file_info; in ReadDirectoryOnBlockingPoolThread() local 189 &file_info); in ReadDirectoryOnBlockingPoolThread() 193 if (!file_info.is_directory) in ReadDirectoryOnBlockingPoolThread() 237 base::PlatformFileInfo file_info; in GetFileStreamOnBlockingPoolThread() local 242 &file_info); in GetFileStreamOnBlockingPoolThread() 248 if (file_info.size > 0) { in GetFileStreamOnBlockingPoolThread() 265 file_info.last_modified = base::Time(); in GetFileStreamOnBlockingPoolThread() [all …]
|
/external/chromium/net/url_request/ |
D | url_request_file_job.cc | 52 base::PlatformFileInfo file_info; in Resolve() local 53 bool exists = file_util::GetFileInfo(file_path, &file_info); in Resolve() 57 this, &AsyncResolver::ReturnResults, exists, file_info)); in Resolve() 73 void ReturnResults(bool exists, const base::PlatformFileInfo& file_info) { in ReturnResults() argument 75 owner_->DidResolve(exists, file_info); in ReturnResults() 168 base::PlatformFileInfo file_info; in Start() local 171 exists = file_util::GetFileInfo(file_path_, &file_info); in Start() 178 &URLRequestFileJob::DidResolve, exists, file_info)); in Start() 309 bool exists, const base::PlatformFileInfo& file_info) { in DidResolve() argument 318 is_directory_ = file_info.is_directory; in DidResolve() [all …]
|
/external/chromium_org/chrome/utility/media_galleries/ |
D | iapps_xml_utils.cc | 88 base::PlatformFileInfo file_info; in ReadPlatformFileAsString() local 89 if (!base::GetPlatformFileInfo(file, &file_info) || in ReadPlatformFileAsString() 90 file_info.size > kMaxLibraryFileSize) { in ReadPlatformFileAsString() 95 result.resize(file_info.size); in ReadPlatformFileAsString() 97 base::ReadPlatformFile(file, 0, string_as_array(&result), file_info.size); in ReadPlatformFileAsString() 98 if (bytes_read != file_info.size) in ReadPlatformFileAsString()
|
/external/chromium_org/sandbox/win/sandbox_poc/ |
D | main_ui_window.cc | 583 OPENFILENAMEW file_info = {0}; in OnShowBrowseForDllDlg() local 584 file_info.lStructSize = sizeof(file_info); in OnShowBrowseForDllDlg() 585 file_info.hwndOwner = owner; in OnShowBrowseForDllDlg() 586 file_info.lpstrFile = filename; in OnShowBrowseForDllDlg() 587 file_info.nMaxFile = MAX_PATH; in OnShowBrowseForDllDlg() 588 file_info.lpstrFilter = L"DLL files (*.dll)\0*.dll\0All files\0*.*\0\0\0"; in OnShowBrowseForDllDlg() 590 file_info.Flags = OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST; in OnShowBrowseForDllDlg() 592 if (GetOpenFileName(&file_info)) { in OnShowBrowseForDllDlg() 593 return file_info.lpstrFile; in OnShowBrowseForDllDlg() 603 OPENFILENAMEW file_info = {0}; in OnShowBrowseForLogFileDlg() local [all …]
|
/external/chromium/base/ |
D | platform_file_posix.cc | 186 stat_wrapper_t file_info; in GetPlatformFileInfo() local 187 if (CallFstat(file, &file_info)) in GetPlatformFileInfo() 190 info->is_directory = S_ISDIR(file_info.st_mode); in GetPlatformFileInfo() 191 info->is_symbolic_link = S_ISLNK(file_info.st_mode); in GetPlatformFileInfo() 192 info->size = file_info.st_size; in GetPlatformFileInfo() 193 info->last_modified = base::Time::FromTimeT(file_info.st_mtime); in GetPlatformFileInfo() 194 info->last_accessed = base::Time::FromTimeT(file_info.st_atime); in GetPlatformFileInfo() 195 info->creation_time = base::Time::FromTimeT(file_info.st_ctime); in GetPlatformFileInfo()
|
/external/chromium_org/content/browser/fileapi/ |
D | transient_file_util_unittest.cc | 82 base::PlatformFileInfo file_info; in TEST_F() local 96 &file_info, in TEST_F() 100 ASSERT_FALSE(file_info.is_directory); in TEST_F() 106 temp_url, &file_info, &path)); in TEST_F() 108 ASSERT_FALSE(file_info.is_directory); in TEST_F() 118 temp_url, &file_info, &path)); in TEST_F()
|
/external/chromium_org/chrome/browser/media_galleries/linux/ |
D | mtp_device_delegate_impl_linux.cc | 298 const base::PlatformFileInfo& file_info) { in WriteDataIntoSnapshotFile() argument 301 DCHECK_GT(file_info.size, 0); in WriteDataIntoSnapshotFile() 316 file_info); in WriteDataIntoSnapshotFile() 345 const base::PlatformFileInfo& file_info) { in OnDidGetFileInfo() argument 347 success_callback.Run(file_info); in OnDidGetFileInfo() 356 const base::PlatformFileInfo& file_info) { in OnDidGetFileInfoToReadDirectory() argument 359 if (!file_info.is_directory) { in OnDidGetFileInfoToReadDirectory() 381 const base::PlatformFileInfo& file_info) { in OnDidGetFileInfoToCreateSnapshotFile() argument 387 if (file_info.is_directory) in OnDidGetFileInfoToCreateSnapshotFile() 389 else if (file_info.size < 0 || file_info.size > kuint32max) in OnDidGetFileInfoToCreateSnapshotFile() [all …]
|
/external/chromium/chrome/browser/ |
D | icon_loader_win.cc | 30 SHFILEINFO file_info = { 0 }; in ReadIcon() local 31 if (!SHGetFileInfo(group_.c_str(), FILE_ATTRIBUTE_NORMAL, &file_info, in ReadIcon() 39 BOOL r = ::GetIconInfo(file_info.hIcon, &icon_info); in ReadIcon() 46 IconUtil::CreateSkBitmapFromHICON(file_info.hIcon, icon_size))); in ReadIcon()
|