/external/libtextclassifier/utils/memory/ |
D | mmap.h | 117 class ScopedMmap { 119 explicit ScopedMmap(const std::string &filename) in ScopedMmap() function 122 explicit ScopedMmap(int fd) : handle_(MmapFile(fd)) {} in ScopedMmap() function 124 ScopedMmap(int fd, int segment_offset, int segment_size) in ScopedMmap() function 127 ~ScopedMmap() { in ~ScopedMmap()
|
/external/libtextclassifier/lang_id/common/file/ |
D | mmap.h | 97 class ScopedMmap { 99 explicit ScopedMmap(const string &filename) in ScopedMmap() function 102 explicit ScopedMmap(int fd) in ScopedMmap() function 105 ~ScopedMmap() { in ~ScopedMmap()
|
D | file-utils.cc | 33 ScopedMmap scoped_mmap(filename); in GetFileContent()
|
D | file-utils.h | 62 ScopedMmap scoped_mmap(filename); in ReadProtoFromFile()
|
/external/libtextclassifier/annotator/ |
D | annotator_jni.cc | 357 jstring GetLocalesFromMmap(JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetLocalesFromMmap() 369 jint GetVersionFromMmap(JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetVersionFromMmap() 381 jstring GetNameFromMmap(JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetNameFromMmap() 650 const std::unique_ptr<libtextclassifier3::ScopedMmap> mmap( in TC3_JNI_METHOD() 651 new libtextclassifier3::ScopedMmap(fd)); in TC3_JNI_METHOD() 659 const std::unique_ptr<libtextclassifier3::ScopedMmap> mmap( in TC3_JNI_METHOD() 660 new libtextclassifier3::ScopedMmap(fd, offset, size)); in TC3_JNI_METHOD() 666 const std::unique_ptr<libtextclassifier3::ScopedMmap> mmap( in TC3_JNI_METHOD() 667 new libtextclassifier3::ScopedMmap(fd)); in TC3_JNI_METHOD() 675 const std::unique_ptr<libtextclassifier3::ScopedMmap> mmap( in TC3_JNI_METHOD() [all …]
|
D | annotator.h | 193 std::unique_ptr<ScopedMmap>* mmap, const UniLib* unilib = nullptr, 196 std::unique_ptr<ScopedMmap>* mmap, std::unique_ptr<UniLib> unilib, 282 Annotator(std::unique_ptr<ScopedMmap>* mmap, const Model* model, 284 Annotator(std::unique_ptr<ScopedMmap>* mmap, const Model* model, 485 std::unique_ptr<ScopedMmap> mmap_; 553 ScopedMmap mmap(path); in VisitAnnotatorModel()
|
D | annotator.cc | 128 std::unique_ptr<ScopedMmap>* mmap, const UniLib* unilib, in FromScopedMmap() 152 std::unique_ptr<ScopedMmap>* mmap, std::unique_ptr<UniLib> unilib, in FromScopedMmap() 178 std::unique_ptr<ScopedMmap> mmap(new ScopedMmap(fd, offset, size)); in FromFileDescriptor() 185 std::unique_ptr<ScopedMmap> mmap(new ScopedMmap(fd, offset, size)); in FromFileDescriptor() 191 std::unique_ptr<ScopedMmap> mmap(new ScopedMmap(fd)); in FromFileDescriptor() 198 std::unique_ptr<ScopedMmap> mmap(new ScopedMmap(fd)); in FromFileDescriptor() 205 std::unique_ptr<ScopedMmap> mmap(new ScopedMmap(path)); in FromPath() 212 std::unique_ptr<ScopedMmap> mmap(new ScopedMmap(path)); in FromPath() 216 Annotator::Annotator(std::unique_ptr<ScopedMmap>* mmap, const Model* model, in Annotator() 227 Annotator::Annotator(std::unique_ptr<ScopedMmap>* mmap, const Model* model, in Annotator()
|
/external/libtextclassifier/actions/ |
D | actions_jni.cc | 268 jstring GetLocalesFromMmap(JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetLocalesFromMmap() 280 jint GetVersionFromMmap(JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetVersionFromMmap() 292 jstring GetNameFromMmap(JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetNameFromMmap() 391 const std::unique_ptr<libtextclassifier3::ScopedMmap> mmap( in TC3_JNI_METHOD() 392 new libtextclassifier3::ScopedMmap(fd)); in TC3_JNI_METHOD() 398 const std::unique_ptr<libtextclassifier3::ScopedMmap> mmap( in TC3_JNI_METHOD() 399 new libtextclassifier3::ScopedMmap(fd)); in TC3_JNI_METHOD() 405 const std::unique_ptr<libtextclassifier3::ScopedMmap> mmap( in TC3_JNI_METHOD() 406 new libtextclassifier3::ScopedMmap(fd)); in TC3_JNI_METHOD()
|
D | actions-suggestions.cc | 103 std::unique_ptr<libtextclassifier3::ScopedMmap> mmap, const UniLib* unilib, in FromScopedMmap() 129 std::unique_ptr<libtextclassifier3::ScopedMmap> mmap, in FromScopedMmap() 159 std::unique_ptr<libtextclassifier3::ScopedMmap> mmap; in FromFileDescriptor() 161 mmap.reset(new libtextclassifier3::ScopedMmap(fd, offset, size)); in FromFileDescriptor() 163 mmap.reset(new libtextclassifier3::ScopedMmap(fd)); in FromFileDescriptor() 173 std::unique_ptr<libtextclassifier3::ScopedMmap> mmap; in FromFileDescriptor() 175 mmap.reset(new libtextclassifier3::ScopedMmap(fd, offset, size)); in FromFileDescriptor() 177 mmap.reset(new libtextclassifier3::ScopedMmap(fd)); in FromFileDescriptor() 186 std::unique_ptr<libtextclassifier3::ScopedMmap> mmap( in FromFileDescriptor() 187 new libtextclassifier3::ScopedMmap(fd)); in FromFileDescriptor() [all …]
|
D | actions-suggestions.h | 60 std::unique_ptr<libtextclassifier3::ScopedMmap> mmap, 65 std::unique_ptr<libtextclassifier3::ScopedMmap> mmap, 263 std::unique_ptr<libtextclassifier3::ScopedMmap> mmap_; 308 ScopedMmap mmap(path); in VisitActionsModel()
|
/external/libtextclassifier/lang_id/fb_model/ |
D | model-provider-from-fb.cc | 33 : scoped_mmap_(new ScopedMmap(filename)) { in ModelProviderFromFlatbuffer() 42 : scoped_mmap_(new ScopedMmap(fd)) { in ModelProviderFromFlatbuffer()
|
D | model-provider-from-fb.h | 90 const std::unique_ptr<ScopedMmap> scoped_mmap_;
|