Searched refs:MmapFile (Results 1 – 7 of 7) sorted by relevance
/external/libtextclassifier/utils/memory/ |
D | mmap.h | 99 MmapHandle MmapFile(const std::string &filename); 102 MmapHandle MmapFile(int fd); 109 MmapHandle MmapFile(int fd, int64 segment_offset, int64 segment_size); 120 : handle_(MmapFile(filename)) {} in ScopedMmap() 122 explicit ScopedMmap(int fd) : handle_(MmapFile(fd)) {} in ScopedMmap() 125 : handle_(MmapFile(fd, segment_offset, segment_size)) {} in ScopedMmap()
|
D | mmap.cc | 56 MmapHandle MmapFile(const std::string &filename) { in MmapFile() function 70 return MmapFile(fd); in MmapFile() 73 MmapHandle MmapFile(int fd) { in MmapFile() function 82 return MmapFile(fd, /*segment_offset=*/0, /*segment_size=*/sb.st_size); in MmapFile() 85 MmapHandle MmapFile(int fd, int64 segment_offset, int64 segment_size) { in MmapFile() function
|
/external/libtextclassifier/lang_id/common/file/ |
D | mmap.h | 86 MmapHandle MmapFile(const string &filename); 89 MmapHandle MmapFile(int fd); 100 : handle_(MmapFile(filename)) {} in ScopedMmap() 103 : handle_(MmapFile(fd)) {} in ScopedMmap()
|
D | mmap.cc | 59 MmapHandle MmapFile(const string &filename) { in MmapFile() function 73 return MmapFile(fd); in MmapFile() 76 MmapHandle MmapFile(int fd) { in MmapFile() function
|
/external/autotest/client/deps/glbench/src/ |
D | yuvtest.cc | 69 char* yuv_to_rgb_vertex = static_cast<char*>(MmapFile(vertex, &size_vertex)); in YuvToRgbShaderProgram() 71 static_cast<char*>(MmapFile(fragment, &size_fragment)); in YuvToRgbShaderProgram() 130 char* pixels = static_cast<char*>(MmapFile(YUV2RGB_NAME, &size)); in SetupTextures()
|
D | utils.h | 25 void* MmapFile(const char* name, size_t* length);
|
D | utils.cc | 44 void* MmapFile(const char* name, size_t* length) { in MmapFile() function
|