Home
last modified time | relevance | path

Searched refs:MemoryMappedFile (Results 1 – 25 of 30) sorted by relevance

12

/external/libchrome/base/files/
Dmemory_mapped_file.cc17 const MemoryMappedFile::Region MemoryMappedFile::Region::kWholeFile = {0, 0};
19 bool MemoryMappedFile::Region::operator==( in operator ==()
20 const MemoryMappedFile::Region& other) const { in operator ==()
24 bool MemoryMappedFile::Region::operator!=( in operator !=()
25 const MemoryMappedFile::Region& other) const { in operator !=()
29 MemoryMappedFile::~MemoryMappedFile() { in ~MemoryMappedFile()
34 bool MemoryMappedFile::Initialize(const FilePath& file_name, Access access) { in Initialize()
65 bool MemoryMappedFile::Initialize(File file, Access access) { in Initialize()
70 bool MemoryMappedFile::Initialize(File file, in Initialize()
111 bool MemoryMappedFile::IsValid() const { in IsValid()
[all …]
Dmemory_mapped_file_posix.cc25 MemoryMappedFile::MemoryMappedFile() : data_(nullptr), length_(0) {} in MemoryMappedFile() function in base::MemoryMappedFile
28 bool MemoryMappedFile::MapFileRegionToMemory( in MapFileRegionToMemory()
29 const MemoryMappedFile::Region& region, in MapFileRegionToMemory()
37 if (region == MemoryMappedFile::Region::kWholeFile) { in MapFileRegionToMemory()
174 void MemoryMappedFile::CloseHandles() { in CloseHandles()
Dmemory_mapped_file.h24 class BASE_EXPORT MemoryMappedFile {
50 MemoryMappedFile();
51 ~MemoryMappedFile();
131 DISALLOW_COPY_AND_ASSIGN(MemoryMappedFile);
/external/google-breakpad/src/common/linux/
Dmemory_mapped_file_unittest.cc46 using google_breakpad::MemoryMappedFile;
53 void ExpectNoMappedData(const MemoryMappedFile& mapped_file) { in ExpectNoMappedData()
63 MemoryMappedFile mapped_file; in TEST_F()
68 MemoryMappedFile mapped_file; in TEST_F()
74 MemoryMappedFile mapped_file("nonexistent-file", 0); in TEST_F()
78 MemoryMappedFile mapped_file; in TEST_F()
90 MemoryMappedFile mapped_file(test_file.c_str(), 0); in TEST_F()
94 MemoryMappedFile mapped_file; in TEST_F()
112 MemoryMappedFile mapped_file(test_file.c_str(), 0); in TEST_F()
119 MemoryMappedFile mapped_file; in TEST_F()
[all …]
Dmemory_mapped_file.cc47 MemoryMappedFile::MemoryMappedFile() {} in MemoryMappedFile() function in google_breakpad::MemoryMappedFile
49 MemoryMappedFile::MemoryMappedFile(const char* path, size_t offset) { in MemoryMappedFile() function in google_breakpad::MemoryMappedFile
53 MemoryMappedFile::~MemoryMappedFile() { in ~MemoryMappedFile()
59 bool MemoryMappedFile::Map(const char* path, size_t offset) { in Map()
111 void MemoryMappedFile::Unmap() { in Map()
Dmemory_mapped_file.h45 class MemoryMappedFile {
47 MemoryMappedFile();
51 MemoryMappedFile(const char* path, size_t offset);
53 ~MemoryMappedFile();
82 DISALLOW_COPY_AND_ASSIGN(MemoryMappedFile);
Delf_core_dump_unittest.cc47 using google_breakpad::MemoryMappedFile;
69 MemoryMappedFile mapped_core_file; in TEST()
158 MemoryMappedFile mapped_core_file; in TEST()
Dfile_id.cc152 MemoryMappedFile mapped_file(path_.c_str(), 0); in ElfFileIdentifier()
/external/libchrome/base/posix/
Dglobal_descriptors.cc15 : key(key), fd(fd), region(base::MemoryMappedFile::Region::kWholeFile) { in Descriptor()
20 base::MemoryMappedFile::Region region) in Descriptor()
52 base::MemoryMappedFile::Region* region) { in TakeFD()
67 Set(key, fd, base::MemoryMappedFile::Region::kWholeFile); in Set()
72 base::MemoryMappedFile::Region region) { in Set()
84 base::MemoryMappedFile::Region GlobalDescriptors::GetRegion(Key key) const { in GetRegion()
90 return base::MemoryMappedFile::Region::kWholeFile; in GetRegion()
Dglobal_descriptors.h47 Descriptor(Key key, int fd, base::MemoryMappedFile::Region region);
54 base::MemoryMappedFile::Region region;
74 base::ScopedFD TakeFD(Key key, base::MemoryMappedFile::Region* region);
77 base::MemoryMappedFile::Region GetRegion(Key key) const;
84 void Set(Key key, int fd, base::MemoryMappedFile::Region region);
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowMemoryMappedFile.java12 import libcore.io.MemoryMappedFile;
23 @Implements(value = MemoryMappedFile.class, isInAndroidSdk = false)
31 public static MemoryMappedFile mmapRO(String path) throws Throwable { in mmapRO()
33 InputStream is = MemoryMappedFile.class.getResourceAsStream(TZ_DATA_2); in mmapRO()
39 MemoryMappedFile memoryMappedFile = new MemoryMappedFile(0L, 0L); in mmapRO()
57 … return MemoryMappedFile.class.getClassLoader().loadClass("libcore.io.ErrnoException"); in exceptionClass()
/external/libchrome/base/metrics/
Dpersistent_memory_allocator_unittest.cc749 std::unique_ptr<MemoryMappedFile> mmfile(new MemoryMappedFile()); in TEST()
788 MemoryMappedFile::Region region = {0, 16 << 10}; // 16KiB maximum size. in TEST()
807 std::unique_ptr<MemoryMappedFile> mmfile(new MemoryMappedFile()); in TEST()
810 region, MemoryMappedFile::READ_WRITE_EXTEND); in TEST()
826 std::unique_ptr<MemoryMappedFile> mmfile(new MemoryMappedFile()); in TEST()
829 region, MemoryMappedFile::READ_WRITE_EXTEND); in TEST()
849 std::unique_ptr<MemoryMappedFile> mmfile; in TEST()
868 const MemoryMappedFile::Access map_access = in TEST()
869 read_only ? MemoryMappedFile::READ_ONLY : MemoryMappedFile::READ_WRITE; in TEST()
871 mmfile.reset(new MemoryMappedFile()); in TEST()
[all …]
Dpersistent_memory_allocator.h24 class MemoryMappedFile; variable
749 FilePersistentMemoryAllocator(std::unique_ptr<MemoryMappedFile> file,
760 static bool IsFileAcceptable(const MemoryMappedFile& file, bool read_only);
767 std::unique_ptr<MemoryMappedFile> mapped_file_;
Dpersistent_histogram_allocator.cc689 std::unique_ptr<MemoryMappedFile> mmfile(new MemoryMappedFile()); in CreateWithFile()
692 mmfile->Initialize(std::move(file), MemoryMappedFile::READ_WRITE); in CreateWithFile()
695 MemoryMappedFile::READ_WRITE_EXTEND); in CreateWithFile()
846 MemoryMappedFile mmfile; in CreateSpareFile()
848 MemoryMappedFile::READ_WRITE_EXTEND); in CreateSpareFile()
Dpersistent_memory_allocator.cc1046 std::unique_ptr<MemoryMappedFile> file, in FilePersistentMemoryAllocator()
1064 const MemoryMappedFile& file, in IsFileAcceptable()
/external/v8/src/base/platform/
Dplatform.h189 class V8_BASE_EXPORT MemoryMappedFile {
191 virtual ~MemoryMappedFile() {} in ~MemoryMappedFile()
195 static MemoryMappedFile* open(const char* name);
196 static MemoryMappedFile* create(const char* name, size_t size,
253 friend class MemoryMappedFile;
Dplatform-posix.cc429 class PosixMemoryMappedFile final : public OS::MemoryMappedFile {
445 OS::MemoryMappedFile* OS::MemoryMappedFile::open(const char* name) { in open()
465 OS::MemoryMappedFile* OS::MemoryMappedFile::create(const char* name, in create()
Dplatform-win32.cc922 class Win32MemoryMappedFile final : public OS::MemoryMappedFile {
943 OS::MemoryMappedFile* OS::MemoryMappedFile::open(const char* name) { in open()
964 OS::MemoryMappedFile* OS::MemoryMappedFile::create(const char* name, in create()
/external/google-breakpad/src/client/linux/minidump_writer/
Dlinux_core_dumper.h112 MemoryMappedFile mapped_core_file_;
Dlinux_dumper.cc129 MemoryMappedFile mapped_file(filename, mapping.offset); in ElfFileIdentifierForMapping()
210 MemoryMappedFile mapped_file(filename, mapping.offset); in ElfFileSoName()
/external/libchrome/base/debug/
Delf_reader_linux_unittest.cc57 MemoryMappedFile file; in TEST()
Dactivity_tracker.cc1278 std::unique_ptr<MemoryMappedFile> mapped_file(new MemoryMappedFile()); in CreateWithFile()
1282 {0, size}, MemoryMappedFile::READ_WRITE_EXTEND); in CreateWithFile()
/external/v8/src/
Dd8.h549 static base::OS::MemoryMappedFile* counters_file_;
/external/google-breakpad/src/tools/linux/md2core/
Dminidump-2-core.cc87 using google_breakpad::MemoryMappedFile;
1009 MemoryMappedFile mapped_file(argv[argi], 0); in main()
/external/google-breakpad/src/processor/testdata/symbols/null_read_av/7B7D1968FF0D47AE4366E9C3A7E1B6750/
Dnull_read_av.sym5312 FUNC eca0 10 0 google_breakpad::MemoryMappedFile::MemoryMappedFile()
5314 FUNC ecb0 56 0 google_breakpad::MemoryMappedFile::Unmap()
5322 FUNC ed10 193 0 google_breakpad::MemoryMappedFile::Map(char const*)
5351 FUNC eeb0 14 0 google_breakpad::MemoryMappedFile::MemoryMappedFile(char const*)
5354 FUNC eed0 5 0 google_breakpad::MemoryMappedFile::~MemoryMappedFile()

12