Home
last modified time | relevance | path

Searched refs:JniCache (Results 1 – 25 of 33) sorted by relevance

12

/external/libtextclassifier/native/utils/utf8/
Dunilib-javaicu.h42 explicit UniLibBase(const std::shared_ptr<JniCache>& jni_cache);
131 RegexMatcher(const JniCache* jni_cache, ScopedGlobalRef<jobject> matcher,
135 const JniCache* jni_cache_;
149 RegexPattern(const JniCache* jni_cache, const UnicodeText& pattern,
153 const JniCache* jni_cache_;
174 BreakIterator(const JniCache* jni_cache, const UnicodeText& text);
176 const JniCache* jni_cache_;
194 std::shared_ptr<JniCache> jni_cache_;
Dunilib-javaicu.cc37 UniLibBase::UniLibBase(const std::shared_ptr<JniCache>& jni_cache) in UniLibBase()
151 UniLibBase::RegexPattern::RegexPattern(const JniCache* jni_cache, in RegexPattern()
229 UniLibBase::RegexMatcher::RegexMatcher(const JniCache* jni_cache, in RegexMatcher()
481 UniLibBase::BreakIterator::BreakIterator(const JniCache* jni_cache, in BreakIterator()
/external/icing/icing/jni/
Djni-cache.cc28 JniCache::JniCache(JavaVM* jvm) in JniCache() function in icing::lib::JniCache
127 libtextclassifier3::StatusOr<std::unique_ptr<JniCache>> JniCache::Create( in Create()
136 std::unique_ptr<JniCache> result(new JniCache(jvm)); in Create()
182 JNIEnv* JniCache::GetEnv() const { in GetEnv()
192 bool JniCache::ExceptionCheckAndClear() const { in ExceptionCheckAndClear()
197 JniCache::ConvertToJavaString(const char* utf8_text, in ConvertToJavaString()
Djni-cache.h22 class JniCache {}; // Declare an empty class definition for non-Android builds.
39 struct JniCache { struct
40 static libtextclassifier3::StatusOr<std::unique_ptr<JniCache>> Create(
82 explicit JniCache(JavaVM* jvm); argument
Dicing-search-engine-jni.cc100 std::unique_ptr<const icing::lib::JniCache> jni_cache; in Java_com_google_android_icing_IcingSearchEngine_nativeCreate()
102 ICING_ASSIGN_OR_RETURN(jni_cache, icing::lib::JniCache::Create(env), 0); in Java_com_google_android_icing_IcingSearchEngine_nativeCreate()
/external/libtextclassifier/native/utils/java/
Djni-cache.cc26 JniCache::JniCache(JavaVM* jvm) in JniCache() function in libtextclassifier3::JniCache
131 std::unique_ptr<JniCache> JniCache::Create(JNIEnv* env) { in Create()
139 std::unique_ptr<JniCache> result(new JniCache(jvm)); in Create()
270 JNIEnv* JniCache::GetEnv() const { in GetEnv()
280 bool JniCache::ExceptionCheckAndClear() const { in ExceptionCheckAndClear()
284 StatusOr<ScopedLocalRef<jstring>> JniCache::ConvertToJavaString( in ConvertToJavaString()
304 StatusOr<ScopedLocalRef<jstring>> JniCache::ConvertToJavaString( in ConvertToJavaString()
309 StatusOr<ScopedLocalRef<jstring>> JniCache::ConvertToJavaString( in ConvertToJavaString()
Djni-cache.h32 struct JniCache { struct
33 static std::unique_ptr<JniCache> Create(JNIEnv* env);
145 explicit JniCache(JavaVM* jvm); argument
/external/libtextclassifier/native/utils/calendar/
Dcalendar-javaicu.h35 explicit Calendar(JniCache* jni_cache);
60 JniCache* jni_cache_;
68 explicit CalendarLib(const std::shared_ptr<JniCache>& jni_cache);
93 std::shared_ptr<JniCache> jni_cache_;
Dcalendar-javaicu.cc28 bool CalendarAdd(JniCache* jni_cache, JNIEnv* jenv, jobject calendar, in CalendarAdd()
36 bool CalendarGet(JniCache* jni_cache, JNIEnv* jenv, jobject calendar, in CalendarGet()
45 bool CalendarSet(JniCache* jni_cache, JNIEnv* jenv, jobject calendar, in CalendarSet()
64 Calendar::Calendar(JniCache* jni_cache) in Calendar()
176 CalendarLib::CalendarLib(const std::shared_ptr<JniCache>& jni_cache) in CalendarLib()
/external/icing/icing/tokenization/reverse_jni/
Dreverse-jni-break-iterator.h56 Create(const JniCache* jni_cache, std::string_view text,
90 const JniCache* jni_cache,
102 const JniCache* jni_cache_;
Dreverse-jni-language-segmenter.h33 ReverseJniLanguageSegmenter(std::string locale, const JniCache* jni_cache) in ReverseJniLanguageSegmenter()
45 const JniCache* jni_cache_; // does not own!
Dreverse-jni-break-iterator.cc43 ReverseJniBreakIterator::Create(const JniCache* jni_cache, in Create()
98 const JniCache* jni_cache, in ReverseJniBreakIterator()
/external/libtextclassifier/native/utils/intents/
Dintent-generator.h46 const std::shared_ptr<JniCache>& jni_cache);
73 const std::shared_ptr<JniCache>& jni_cache) in IntentGenerator()
82 std::shared_ptr<JniCache> jni_cache_;
Djni.h56 const std::shared_ptr<JniCache>& jni_cache);
82 const std::shared_ptr<JniCache>& jni_cache) in RemoteActionTemplatesHandler()
88 std::shared_ptr<JniCache> jni_cache_;
Djni-lua.h38 JniLuaEnvironment(const Resources& resources, const JniCache* jni_cache,
85 const JniCache* jni_cache_;
Dintent-generator.cc44 AnnotatorJniEnvironment(const Resources& resources, const JniCache* jni_cache, in AnnotatorJniEnvironment()
79 const Resources& resources, const JniCache* jni_cache, in ActionsJniLuaEnvironment()
111 const std::shared_ptr<JniCache>& jni_cache) { in Create()
Dintent-generator-test-lib.cc120 : jni_cache_(JniCache::Create(GetJenv())), in IntentGeneratorTest()
125 const std::shared_ptr<JniCache> jni_cache_;
Djni.cc45 const std::shared_ptr<JniCache>& jni_cache) { in Create()
/external/icing/icing/testing/
Djni-test-helpers.h28 #define ICING_TEST_JNI_CACHE JniCache::Create(g_jenv).ValueOrDie()
39 std::unique_ptr<JniCache> GetTestJniCache() { return ICING_TEST_JNI_CACHE; } in GetTestJniCache()
/external/icing/icing/tokenization/
Dlanguage-segmenter-factory.h33 const JniCache* jni_cache = nullptr)
39 const JniCache* jni_cache;
Dlanguage-segmenter-iterator_test.cc48 std::unique_ptr<const JniCache> jni_cache_ = GetTestJniCache();
/external/libtextclassifier/native/utils/
Djvm-test-utils.h34 return std::make_unique<UniLib>(JniCache::Create(g_jenv)); in CreateUniLibForTesting()
42 return std::make_unique<CalendarLib>(JniCache::Create(g_jenv)); in CreateCalendarLibForTesting()
/external/libtextclassifier/native/actions/
Dactions_jni.cc68 const std::shared_ptr<libtextclassifier3::JniCache>& jni_cache, in Create()
89 std::shared_ptr<libtextclassifier3::JniCache> jni_cache() const { in jni_cache()
103 const std::shared_ptr<libtextclassifier3::JniCache>& jni_cache, in ActionsSuggestionsJniContext()
112 std::shared_ptr<libtextclassifier3::JniCache> jni_cache_;
424 std::shared_ptr<libtextclassifier3::JniCache> jni_cache = in TC3_JNI_METHOD()
425 libtextclassifier3::JniCache::Create(env); in TC3_JNI_METHOD()
449 std::shared_ptr<libtextclassifier3::JniCache> jni_cache = in TC3_JNI_METHOD()
450 libtextclassifier3::JniCache::Create(env); in TC3_JNI_METHOD()
475 std::shared_ptr<libtextclassifier3::JniCache> jni_cache = in TC3_JNI_METHOD()
476 libtextclassifier3::JniCache::Create(env); in TC3_JNI_METHOD()
/external/icing/icing/
Dicing-search-engine.h61 std::unique_ptr<const JniCache> jni_cache = nullptr);
412 std::unique_ptr<const JniCache> jni_cache = nullptr);
453 const std::unique_ptr<const JniCache> jni_cache_;
/external/libtextclassifier/native/annotator/
Dannotator_jni.cc77 const std::shared_ptr<libtextclassifier3::JniCache>& jni_cache, in Create()
95 std::shared_ptr<libtextclassifier3::JniCache> jni_cache() const { in jni_cache()
111 const std::shared_ptr<libtextclassifier3::JniCache>& jni_cache, in AnnotatorJniContext()
120 std::shared_ptr<libtextclassifier3::JniCache> jni_cache_;
495 std::shared_ptr<libtextclassifier3::JniCache> jni_cache( in TC3_JNI_METHOD()
496 libtextclassifier3::JniCache::Create(env)); in TC3_JNI_METHOD()
513 std::shared_ptr<libtextclassifier3::JniCache> jni_cache( in TC3_JNI_METHOD()
514 libtextclassifier3::JniCache::Create(env)); in TC3_JNI_METHOD()
529 std::shared_ptr<libtextclassifier3::JniCache> jni_cache( in TC3_JNI_METHOD()
530 libtextclassifier3::JniCache::Create(env)); in TC3_JNI_METHOD()

12