Home
last modified time | relevance | path

Searched refs:MmapFile (Results 1 – 7 of 7) sorted by relevance

/external/libtextclassifier/utils/memory/
Dmmap.h99 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()
Dmmap.cc56 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/
Dmmap.h86 MmapHandle MmapFile(const string &filename);
89 MmapHandle MmapFile(int fd);
100 : handle_(MmapFile(filename)) {} in ScopedMmap()
103 : handle_(MmapFile(fd)) {} in ScopedMmap()
Dmmap.cc59 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/
Dyuvtest.cc69 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()
Dutils.h25 void* MmapFile(const char* name, size_t* length);
Dutils.cc44 void* MmapFile(const char* name, size_t* length) { in MmapFile() function