Lines Matching refs:mmap
268 jstring GetLocalesFromMmap(JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetLocalesFromMmap() argument
269 if (!mmap->handle().ok()) { in GetLocalesFromMmap()
273 mmap->handle().start(), mmap->handle().num_bytes()); in GetLocalesFromMmap()
280 jint GetVersionFromMmap(JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetVersionFromMmap() argument
281 if (!mmap->handle().ok()) { in GetVersionFromMmap()
285 mmap->handle().start(), mmap->handle().num_bytes()); in GetVersionFromMmap()
292 jstring GetNameFromMmap(JNIEnv* env, libtextclassifier3::ScopedMmap* mmap) { in GetNameFromMmap() argument
293 if (!mmap->handle().ok()) { in GetNameFromMmap()
297 mmap->handle().start(), mmap->handle().num_bytes()); in GetNameFromMmap()
391 const std::unique_ptr<libtextclassifier3::ScopedMmap> mmap( in TC3_JNI_METHOD() local
393 return libtextclassifier3::GetLocalesFromMmap(env, mmap.get()); in TC3_JNI_METHOD()
398 const std::unique_ptr<libtextclassifier3::ScopedMmap> mmap( in TC3_JNI_METHOD() local
400 return libtextclassifier3::GetNameFromMmap(env, mmap.get()); in TC3_JNI_METHOD()
405 const std::unique_ptr<libtextclassifier3::ScopedMmap> mmap( in TC3_JNI_METHOD() local
407 return libtextclassifier3::GetVersionFromMmap(env, mmap.get()); in TC3_JNI_METHOD()