/external/chromium_org/chrome/browser/extensions/api/image_writer_private/ |
D | image_writer_utils.cc | 14 ImageWriter::ImageWriter() : file_(base::kInvalidPlatformFileValue), in ImageWriter() 19 if (file_ != base::kInvalidPlatformFileValue) in ~ImageWriter() 24 if (file_ != base::kInvalidPlatformFileValue) in Open() 26 DCHECK_EQ(base::kInvalidPlatformFileValue, file_); in Open() 42 if (file_ != base::kInvalidPlatformFileValue && in Close() 44 file_ = base::kInvalidPlatformFileValue; in Close() 72 ImageReader::ImageReader() : file_(base::kInvalidPlatformFileValue) { in ImageReader() 76 if (file_ != base::kInvalidPlatformFileValue) in ~ImageReader() 81 if (file_ != base::kInvalidPlatformFileValue) in Open() 83 DCHECK_EQ(base::kInvalidPlatformFileValue, file_); in Open() [all …]
|
/external/chromium_org/chrome/browser/chromeos/drive/ |
D | local_file_reader.cc | 33 DCHECK_EQ(base::kInvalidPlatformFileValue, *platform_file); in OpenAndSeekOnBlockingPool() 42 if (file == base::kInvalidPlatformFileValue) { in OpenAndSeekOnBlockingPool() 67 DCHECK_NE(base::kInvalidPlatformFileValue, platform_file); in ReadOnBlockingPool() 78 if (platform_file != base::kInvalidPlatformFileValue) { in PostCloseIfNeeded() 92 platform_file_(base::kInvalidPlatformFileValue) { in ScopedPlatformFile() 104 platform_file_ = base::kInvalidPlatformFileValue; in release() 118 platform_file_(base::kInvalidPlatformFileValue), in LocalFileReader() 131 DCHECK_EQ(base::kInvalidPlatformFileValue, platform_file_); in Open() 150 DCHECK_NE(base::kInvalidPlatformFileValue, platform_file_); in Read() 166 DCHECK_EQ(base::kInvalidPlatformFileValue, platform_file_); in OpenAfterBlockingPoolTask() [all …]
|
/external/chromium_org/chrome/common/media_galleries/ |
D | picasa_types.cc | 30 *platform_file = base::kInvalidPlatformFileValue; in ClosePlatformFile() 59 : indicator_file(base::kInvalidPlatformFileValue), in AlbumTableFiles() 60 category_file(base::kInvalidPlatformFileValue), in AlbumTableFiles() 61 date_file(base::kInvalidPlatformFileValue), in AlbumTableFiles() 62 filename_file(base::kInvalidPlatformFileValue), in AlbumTableFiles() 63 name_file(base::kInvalidPlatformFileValue), in AlbumTableFiles() 64 token_file(base::kInvalidPlatformFileValue), in AlbumTableFiles() 65 uid_file(base::kInvalidPlatformFileValue) { in AlbumTableFiles()
|
/external/chromium_org/chrome/browser/local_discovery/ |
D | pwg_raster_converter.cc | 26 FileHandlers() : pdf_file_(base::kInvalidPlatformFileValue), in FileHandlers() 27 pwg_file_(base::kInvalidPlatformFileValue) { } in FileHandlers() 31 if (pdf_file_ != base::kInvalidPlatformFileValue) in ~FileHandlers() 33 if (pwg_file_ != base::kInvalidPlatformFileValue) in ~FileHandlers() 49 DCHECK_NE(pdf_file_, base::kInvalidPlatformFileValue); in GetPdfForProcess() 52 pdf_file_ = base::kInvalidPlatformFileValue; in GetPdfForProcess() 57 DCHECK_NE(pwg_file_, base::kInvalidPlatformFileValue); in GetPwgForProcess() 60 pwg_file_ = base::kInvalidPlatformFileValue; in GetPwgForProcess() 94 return pdf_file_ != base::kInvalidPlatformFileValue && in IsValid() 95 pwg_file_ != base::kInvalidPlatformFileValue; in IsValid()
|
/external/chromium_org/chrome/browser/media_galleries/fileapi/ |
D | safe_picasa_album_table_reader.cc | 33 if (album_table_files_.indicator_file == base::kInvalidPlatformFileValue || in Start() 34 album_table_files_.category_file == base::kInvalidPlatformFileValue || in Start() 35 album_table_files_.date_file == base::kInvalidPlatformFileValue || in Start() 36 album_table_files_.filename_file == base::kInvalidPlatformFileValue || in Start() 37 album_table_files_.name_file == base::kInvalidPlatformFileValue || in Start() 38 album_table_files_.token_file == base::kInvalidPlatformFileValue || in Start() 39 album_table_files_.uid_file == base::kInvalidPlatformFileValue) { in Start()
|
/external/chromium_org/base/files/ |
D | memory_mapped_file_posix.cc | 17 : file_(kInvalidPlatformFileValue), in MemoryMappedFile() 26 if (fstat(file_, &file_stat) == kInvalidPlatformFileValue) { in MapFileToMemoryInternal() 45 if (file_ != kInvalidPlatformFileValue) in CloseHandles() 50 file_ = kInvalidPlatformFileValue; in CloseHandles()
|
D | file_util_proxy_unittest.cc | 28 file_(kInvalidPlatformFileValue), in FileUtilProxyTest() 38 if (file_ != kInvalidPlatformFileValue) in TearDown() 90 if (file_ != kInvalidPlatformFileValue) in GetTestPlatformFile() 96 EXPECT_NE(kInvalidPlatformFileValue, file_); in GetTestPlatformFile() 130 EXPECT_NE(kInvalidPlatformFileValue, file_); in TEST_F() 149 EXPECT_NE(kInvalidPlatformFileValue, file_); in TEST_F() 161 EXPECT_EQ(kInvalidPlatformFileValue, file_); in TEST_F() 194 EXPECT_NE(kInvalidPlatformFileValue, file_); in TEST_F() 214 file_ = kInvalidPlatformFileValue; in TEST_F()
|
/external/chromium_org/net/base/ |
D | file_stream_context.cc | 45 : file(base::kInvalidPlatformFileValue) { in OpenResult() 58 if (file_ != base::kInvalidPlatformFileValue) in Orphan() 63 } else if (file_ != base::kInvalidPlatformFileValue) { in Orphan() 92 if (file_ == base::kInvalidPlatformFileValue) { in OpenSync() 105 if (file_ != base::kInvalidPlatformFileValue) { in CloseSync() 107 file_ = base::kInvalidPlatformFileValue; in CloseSync() 218 if (file == base::kInvalidPlatformFileValue) in OpenFileImpl() 232 if (file_ == base::kInvalidPlatformFileValue) in OnOpenCompleted() 242 if (file_ == base::kInvalidPlatformFileValue) { in CloseAndDelete() 250 file_ = base::kInvalidPlatformFileValue; in CloseAndDelete()
|
/external/chromium/webkit/glue/ |
D | webfileutilities_impl.cc | 108 return base::kInvalidPlatformFileValue; in openFile() 119 if (handle == base::kInvalidPlatformFileValue) in closeFile() 122 handle = base::kInvalidPlatformFileValue; in closeFile() 128 if (handle == base::kInvalidPlatformFileValue) in seekFile() 136 if (handle == base::kInvalidPlatformFileValue || offset < 0) in truncateFile() 145 if (handle == base::kInvalidPlatformFileValue || !data || length <= 0) in readFromFile() 156 if (handle == base::kInvalidPlatformFileValue || !data || length <= 0) in writeToFile()
|
/external/chromium_org/base/ |
D | platform_file_unittest.cc | 42 EXPECT_EQ(kInvalidPlatformFileValue, file); in TEST() 53 EXPECT_NE(kInvalidPlatformFileValue, file); in TEST() 65 EXPECT_NE(kInvalidPlatformFileValue, file); in TEST() 76 EXPECT_EQ(kInvalidPlatformFileValue, file); in TEST() 87 EXPECT_NE(kInvalidPlatformFileValue, file); in TEST() 101 EXPECT_NE(kInvalidPlatformFileValue, file); in TEST() 123 EXPECT_NE(kInvalidPlatformFileValue, file); in TEST() 135 EXPECT_NE(kInvalidPlatformFileValue, file); in TEST() 155 EXPECT_NE(kInvalidPlatformFileValue, file); in TEST() 233 EXPECT_NE(kInvalidPlatformFileValue, file); in TEST() [all …]
|
D | platform_file_win.cc | 97 if (file != kInvalidPlatformFileValue) in CreatePlatformFileUnsafe() 107 if (file == kInvalidPlatformFileValue) in FdopenPlatformFile() 124 if (file == kInvalidPlatformFileValue || offset < 0) in SeekPlatformFile() 137 if (file == kInvalidPlatformFileValue || size < 0) in ReadPlatformFile() 158 if (file == kInvalidPlatformFileValue || size < 0) in ReadPlatformFileAtCurrentPos() 183 if (file == kInvalidPlatformFileValue) in WritePlatformFile() 212 if (file == kInvalidPlatformFileValue) in TruncatePlatformFile() 238 return ((file != kInvalidPlatformFileValue) && ::FlushFileBuffers(file)); in FlushPlatformFile() 244 if (file == kInvalidPlatformFileValue) in TouchPlatformFile()
|
D | platform_file.h | 129 const PlatformFile kInvalidPlatformFileValue = INVALID_HANDLE_VALUE; variable 133 const PlatformFile kInvalidPlatformFileValue = -1; variable 279 *value_ = kInvalidPlatformFileValue; in ReleaseValue()
|
/external/chromium_org/content/renderer/pepper/ |
D | ppb_broker_impl.cc | 34 pipe_handle_(PlatformFileToInt(base::kInvalidPlatformFileValue)), in PPB_Broker_Impl() 46 pipe_handle_ = PlatformFileToInt(base::kInvalidPlatformFileValue); in ~PPB_Broker_Impl() 100 if (pipe_handle_ == PlatformFileToInt(base::kInvalidPlatformFileValue)) in GetHandle() 115 PlatformFileToInt(base::kInvalidPlatformFileValue)); in BrokerConnected() 117 handle == PlatformFileToInt(base::kInvalidPlatformFileValue)); in BrokerConnected()
|
D | pepper_broker.cc | 26 base::SyncSocket::Handle out_handle = base::kInvalidPlatformFileValue; in DuplicateHandle() 36 out_handle = base::kInvalidPlatformFileValue; in DuplicateHandle() 194 ppapi::PlatformFileToInt(base::kInvalidPlatformFileValue), in OnBrokerPermissionResult() 225 ppapi::PlatformFileToInt(base::kInvalidPlatformFileValue), in ReportFailureToClients() 233 base::SyncSocket::Handle plugin_handle = base::kInvalidPlatformFileValue; in ConnectPluginToBroker()
|
/external/chromium_org/courgette/ |
D | memory_allocator.cc | 18 TempFile::TempFile() : file_(base::kInvalidPlatformFileValue) { in TempFile() 28 file_ = base::kInvalidPlatformFileValue; in Close() 33 DCHECK(file_ == base::kInvalidPlatformFileValue); in Create() 45 if (file_ == base::kInvalidPlatformFileValue) in Create() 52 return file_ != base::kInvalidPlatformFileValue; in valid()
|
/external/chromium_org/webkit/glue/ |
D | webfileutilities_impl.cc | 59 return base::kInvalidPlatformFileValue; in openFile() 71 if (handle == base::kInvalidPlatformFileValue) in closeFile() 74 handle = base::kInvalidPlatformFileValue; in closeFile() 80 if (handle == base::kInvalidPlatformFileValue || !data || length <= 0) in readFromFile()
|
/external/chromium_org/ppapi/proxy/ |
D | ppb_broker_proxy.cc | 60 socket_handle_(base::kInvalidPlatformFileValue) { in Broker() 64 socket_handle_ = base::kInvalidPlatformFileValue; in ~Broker() 87 if (socket_handle_ == base::kInvalidPlatformFileValue) in GetHandle() 96 DCHECK(socket_handle_ == base::kInvalidPlatformFileValue); in ConnectComplete() 200 int32_t socket_handle = PlatformFileToInt(base::kInvalidPlatformFileValue); in ConnectCompleteInHost() 205 socket_handle == PlatformFileToInt(base::kInvalidPlatformFileValue)); in ConnectCompleteInHost()
|
/external/chromium_org/chrome/browser/extensions/api/serial/ |
D | serial_io_handler_posix.cc | 19 DCHECK_NE(file(), base::kInvalidPlatformFileValue); in ReadImpl() 27 DCHECK_NE(file(), base::kInvalidPlatformFileValue); in WriteImpl() 101 DCHECK_NE(file(), base::kInvalidPlatformFileValue); in EnsureWatchingReads() 111 DCHECK_NE(file(), base::kInvalidPlatformFileValue); in EnsureWatchingWrites()
|
D | serial_connection.cc | 40 file_(base::kInvalidPlatformFileValue), in SerialConnection() 92 if (file_ != base::kInvalidPlatformFileValue) { in Close() 94 file_ = base::kInvalidPlatformFileValue; in Close() 168 DCHECK_EQ(file_, base::kInvalidPlatformFileValue); in StartOpen() 171 base::PlatformFile file = base::kInvalidPlatformFileValue; in StartOpen() 196 DCHECK_EQ(file_, base::kInvalidPlatformFileValue); in FinishOpen() 200 if (file == base::kInvalidPlatformFileValue) { in FinishOpen() 222 if (port != base::kInvalidPlatformFileValue) { in DoClose()
|
D | serial_io_handler_win.cc | 41 DCHECK_NE(file(), base::kInvalidPlatformFileValue); in ReadImpl() 63 DCHECK_NE(file(), base::kInvalidPlatformFileValue); in WriteImpl() 76 DCHECK_NE(file(), base::kInvalidPlatformFileValue); in CancelReadImpl() 82 DCHECK_NE(file(), base::kInvalidPlatformFileValue); in CancelWriteImpl()
|
/external/chromium/base/ |
D | platform_file_win.cc | 81 if (file != kInvalidPlatformFileValue) in CreatePlatformFile() 114 if (file == kInvalidPlatformFileValue) in ReadPlatformFile() 136 if (file == kInvalidPlatformFileValue) in WritePlatformFile() 155 if (file == kInvalidPlatformFileValue) in TruncatePlatformFile() 181 return ((file != kInvalidPlatformFileValue) && ::FlushFileBuffers(file)); in FlushPlatformFile() 187 if (file == kInvalidPlatformFileValue) in TouchPlatformFile()
|
D | platform_file_unittest.cc | 71 EXPECT_EQ(base::kInvalidPlatformFileValue, file); in TEST() 80 EXPECT_NE(base::kInvalidPlatformFileValue, file); in TEST() 90 EXPECT_NE(base::kInvalidPlatformFileValue, file); in TEST() 99 EXPECT_EQ(base::kInvalidPlatformFileValue, file); in TEST() 108 EXPECT_NE(base::kInvalidPlatformFileValue, file); in TEST() 122 EXPECT_NE(base::kInvalidPlatformFileValue, file); in TEST() 140 EXPECT_NE(base::kInvalidPlatformFileValue, file); in TEST() 212 EXPECT_NE(base::kInvalidPlatformFileValue, file); in TEST() 261 EXPECT_NE(base::kInvalidPlatformFileValue, file); in TEST()
|
D | platform_file.h | 25 const PlatformFile kInvalidPlatformFileValue = INVALID_HANDLE_VALUE; variable 28 const PlatformFile kInvalidPlatformFileValue = -1; 166 *value_ = kInvalidPlatformFileValue; in ReleaseValue()
|
/external/chromium_org/chrome/renderer/spellchecker/ |
D | hunspell_engine.cc | 41 : file_(base::kInvalidPlatformFileValue), in HunspellEngine() 135 if (file_ != base::kInvalidPlatformFileValue) in InitializeIfNeeded() 142 return file_ != base::kInvalidPlatformFileValue; in IsEnabled()
|
/external/chromium_org/chrome/browser/spellchecker/ |
D | spellcheck_hunspell_dictionary.cc | 39 DictionaryFile() : descriptor(base::kInvalidPlatformFileValue) { in DictionaryFile() 43 if (descriptor != base::kInvalidPlatformFileValue) { in ~DictionaryFile() 48 descriptor = base::kInvalidPlatformFileValue; in ~DictionaryFile() 211 base::kInvalidPlatformFileValue || IsUsingPlatformChecker(); in IsReady() 318 if (dictionary_file_->descriptor == base::kInvalidPlatformFileValue) { in InitializeDictionaryLocationComplete()
|