/external/libtextclassifier/native/utils/utf8/ |
D | unilib-javaicu.cc | 38 : jni_cache_(jni_cache) {} in UniLibBase() 86 jni_cache_->ConvertToJavaString(text)); in Length() 88 JNIEnv* jenv = jni_cache_->GetEnv(); in Length() 91 jni_cache_->string_length)); in Length() 94 jni_cache_->string_code_point_count, 0, in Length() 107 if (!jni_cache_) { in ParseDouble() 142 new UniLibBase::RegexPattern(jni_cache_.get(), regex, /*lazy=*/false)); in CreateRegexPattern() 148 new UniLibBase::RegexPattern(jni_cache_.get(), regex, /*lazy=*/true)); in CreateLazyRegexPattern() 153 : jni_cache_(jni_cache), in RegexPattern() 169 if (jni_cache_) { in LockedInitializeIfNotAlready() [all …]
|
D | unilib-javaicu.h | 121 JStringToUtf8String(jni_cache_->GetEnv(), text_.get()); in Text() 135 const JniCache* jni_cache_; variable 153 const JniCache* jni_cache_; variable 176 const JniCache* jni_cache_; variable 194 std::shared_ptr<JniCache> jni_cache_; variable 199 if (!jni_cache_) { in ParseInt() 209 JNIEnv* env = jni_cache_->GetEnv(); in ParseInt() 211 jni_cache_->ConvertToJavaString(text)); in ParseInt() 216 /*print_exception_on_error=*/false, jni_cache_->integer_class.get(), in ParseInt() 217 jni_cache_->integer_parse_int, text_java.get())); in ParseInt()
|
/external/libtextclassifier/native/utils/calendar/ |
D | calendar-javaicu.cc | 65 : jni_cache_(jni_cache), in Calendar() 66 jenv_(jni_cache_ ? jni_cache->GetEnv() : nullptr), in Calendar() 71 if (!jni_cache_ || !jenv_) { in Initialize() 77 if (jni_cache_->calendar_sunday != kSunday || in Initialize() 78 jni_cache_->calendar_monday != kMonday || in Initialize() 79 jni_cache_->calendar_tuesday != kTuesday || in Initialize() 80 jni_cache_->calendar_wednesday != kWednesday || in Initialize() 81 jni_cache_->calendar_thursday != kThursday || in Initialize() 82 jni_cache_->calendar_friday != kFriday || in Initialize() 83 jni_cache_->calendar_saturday != kSaturday) { in Initialize() [all …]
|
D | calendar-javaicu.h | 60 JniCache* jni_cache_; 78 Calendar calendar(jni_cache_.get()); in InterpretParseData() 93 std::shared_ptr<JniCache> jni_cache_;
|
/external/icing/icing/tokenization/reverse_jni/ |
D | reverse-jni-break-iterator.cc | 100 : jni_cache_(jni_cache), in ReverseJniBreakIterator() 125 const int first_index = jni_cache_->GetEnv()->CallIntMethod( in First() 126 iterator_batcher_.get(), jni_cache_->breakiterator_first); in First() 127 if (jni_cache_->ExceptionCheckAndClear()) { in First() 135 const int preceding_index = jni_cache_->GetEnv()->CallIntMethod( in Preceding() 136 iterator_batcher_.get(), jni_cache_->breakiterator_preceding, offset); in Preceding() 137 if (jni_cache_->ExceptionCheckAndClear()) { in Preceding() 145 const int following_index = jni_cache_->GetEnv()->CallIntMethod( in Following() 146 iterator_batcher_.get(), jni_cache_->breakiterator_following, offset); in Following() 147 if (jni_cache_->ExceptionCheckAndClear()) { in Following() [all …]
|
D | reverse-jni-language-segmenter_test.cc | 123 std::unique_ptr<const JniCache> jni_cache_ = GetTestJniCache(); member in icing::lib::test_internal::__anon3952e9880111::ReverseJniLanguageSegmenterTest 132 GetSegmenterOptions(GetLocale(), jni_cache_.get()))); in TEST_P() 140 GetSegmenterOptions(GetLocale(), jni_cache_.get()))); in TEST_P() 149 GetSegmenterOptions(GetLocale(), jni_cache_.get()))); in TEST_P() 166 GetSegmenterOptions(GetLocale(), jni_cache_.get()))); in TEST_P() 184 GetSegmenterOptions(GetLocale(), jni_cache_.get()))); in TEST_P() 195 GetSegmenterOptions(GetLocale(), jni_cache_.get()))); in TEST_P() 210 GetSegmenterOptions(GetLocale(), jni_cache_.get()))); in TEST_P() 295 GetSegmenterOptions(GetLocale(), jni_cache_.get()))); in TEST_P() 318 GetSegmenterOptions(GetLocale(), jni_cache_.get()))); in TEST_P() [all …]
|
D | reverse-jni-language-segmenter.h | 34 : locale_(std::move(locale)), jni_cache_(jni_cache) {} in ReverseJniLanguageSegmenter() 45 const JniCache* jni_cache_; // does not own! variable
|
D | reverse-jni-break-iterator.h | 102 const JniCache* jni_cache_; variable
|
D | reverse-jni-language-segmenter.cc | 320 ReverseJniBreakIterator::Create(jni_cache_, text, locale_)); in Segment()
|
/external/libtextclassifier/native/utils/intents/ |
D | jni.cc | 97 return {{nullptr, jni_cache_->GetEnv()}}; in AsUTF8String() 99 return jni_cache_->ConvertToJavaString(optional.value()); in AsUTF8String() 105 return {{nullptr, jni_cache_->GetEnv()}}; in AsInteger() 110 JniHelper::NewObject(jni_cache_->GetEnv(), integer_class_.get(), in AsInteger() 120 return {{nullptr, jni_cache_->GetEnv()}}; in AsStringArray() 125 JniHelper::NewObjectArray(jni_cache_->GetEnv(), values.size(), in AsStringArray() 126 jni_cache_->string_class.get(), nullptr)); in AsStringArray() 130 jni_cache_->ConvertToJavaString(values[k])); in AsStringArray() 132 jni_cache_->GetEnv(), result.get(), k, value_str.get())); in AsStringArray() 141 return {{nullptr, jni_cache_->GetEnv()}}; in AsFloatArray() [all …]
|
D | jni-lua.cc | 52 jni_cache_(jni_cache), in JniLuaEnvironment() 69 string_ = MakeGlobalRef(string_value.get(), jenv_, jni_cache_->jvm); in PreallocateConstantJniStrings() 72 android_ = MakeGlobalRef(android_value.get(), jenv_, jni_cache_->jvm); in PreallocateConstantJniStrings() 157 jenv_, context_, jni_cache_->context_get_package_name); in HandleAndroidCallback() 189 if (jni_cache_->usermanager_class == nullptr || in HandleUserRestrictionsCallback() 190 jni_cache_->usermanager_get_user_restrictions == nullptr) { in HandleUserRestrictionsCallback() 208 jni_cache_->usermanager_get_user_restrictions); in HandleUserRestrictionsCallback() 223 jni_cache_->ConvertToJavaString(key_str); in HandleUserRestrictionsCallback() 230 jni_cache_->bundle_get_boolean, status_or_key.ValueOrDie().get()); in HandleUserRestrictionsCallback() 250 jni_cache_->ConvertToJavaString(input); in HandleUrlEncode() [all …]
|
D | intent-generator.h | 76 jni_cache_(jni_cache) {} in IntentGenerator() 82 std::shared_ptr<JniCache> jni_cache_; variable
|
D | intent-generator.cc | 159 JStringToUtf8String(jni_cache_->GetEnv(), device_locales); in ParseDeviceLocales() 196 resources_, jni_cache_.get(), context, in GenerateIntents() 226 resources_, jni_cache_.get(), context, in GenerateIntents()
|
D | jni.h | 83 : jni_cache_(jni_cache), in RemoteActionTemplatesHandler() 88 std::shared_ptr<JniCache> jni_cache_; variable
|
D | intent-generator-test-lib.cc | 120 : jni_cache_(JniCache::Create(GetJenv())), in IntentGeneratorTest() 125 const std::shared_ptr<JniCache> jni_cache_; member in libtextclassifier3::__anon60bbdd5d0111::IntentGeneratorTest 137 /*jni_cache=*/jni_cache_); in TEST_F() 159 /*resources=*/resources_, jni_cache_); in TEST_F() 185 /*resources=*/resources_, jni_cache_); in TEST_F()
|
D | jni-lua.h | 85 const JniCache* jni_cache_; variable
|
/external/icing/icing/tokenization/icu/ |
D | icu-language-segmenter_test.cc | 129 std::unique_ptr<const JniCache> jni_cache_ = GetTestJniCache(); member in icing::lib::__anon05e1d0840111::IcuLanguageSegmenterAllLocalesTest 138 GetSegmenterOptions(GetLocale(), jni_cache_.get()))); in TEST_P() 146 GetSegmenterOptions(GetLocale(), jni_cache_.get()))); in TEST_P() 155 GetSegmenterOptions(GetLocale(), jni_cache_.get()))); in TEST_P() 172 GetSegmenterOptions(GetLocale(), jni_cache_.get()))); in TEST_P() 190 GetSegmenterOptions(GetLocale(), jni_cache_.get()))); in TEST_P() 201 GetSegmenterOptions(GetLocale(), jni_cache_.get()))); in TEST_P() 216 GetSegmenterOptions(GetLocale(), jni_cache_.get()))); in TEST_P() 301 GetSegmenterOptions(GetLocale(), jni_cache_.get()))); in TEST_P() 324 GetSegmenterOptions(GetLocale(), jni_cache_.get()))); in TEST_P() [all …]
|
/external/icing/icing/tokenization/ |
D | language-segmenter-iterator_test.cc | 48 std::unique_ptr<const JniCache> jni_cache_ = GetTestJniCache(); member in icing::lib::__anon69b9b1dd0111::LanguageSegmenterIteratorTest 53 jni_cache_.get()); in TEST_F() 75 jni_cache_.get()); in TEST_F() 93 jni_cache_.get()); in TEST_F() 112 jni_cache_.get()); in TEST_F() 126 jni_cache_.get()); in TEST_F() 139 jni_cache_.get()); in TEST_F() 157 jni_cache_.get()); in TEST_F() 172 jni_cache_.get()); in TEST_F() 190 jni_cache_.get()); in TEST_F()
|
D | plain-tokenizer_test.cc | 48 std::unique_ptr<const JniCache> jni_cache_ = GetTestJniCache(); member in icing::lib::__anond0cc62c70111::PlainTokenizerTest 60 jni_cache_.get()); in TEST_F() 95 jni_cache_.get()); in TEST_F() 124 jni_cache_.get()); in TEST_F() 171 jni_cache_.get()); in TEST_F() 198 jni_cache_.get()); in TEST_F() 214 jni_cache_.get()); in TEST_F() 285 jni_cache_.get()); in TEST_F() 305 jni_cache_.get()); in TEST_F() 325 jni_cache_.get()); in TEST_F() [all …]
|
/external/libtextclassifier/native/actions/ |
D | actions_jni.cc | 90 return jni_cache_; in jni_cache() 107 : jni_cache_(jni_cache), in ActionsSuggestionsJniContext() 112 std::shared_ptr<libtextclassifier3::JniCache> jni_cache_; member in libtextclassifier3::__anon488ae8a30111::ActionsSuggestionsJniContext
|
/external/icing/icing/ |
D | icing-search-engine.h | 453 const std::unique_ptr<const JniCache> jni_cache_; variable
|
D | icing-search-engine.cc | 258 jni_cache_(std::move(jni_cache)) { in IcingSearchEngine() 316 ULOC_US, jni_cache_.get()); in InitializeMembers()
|
/external/icing/icing/result/ |
D | snippet-retriever_test.cc | 92 jni_cache_ = GetTestJniCache(); in SetUp() 94 jni_cache_.get()); in SetUp() 146 std::unique_ptr<const JniCache> jni_cache_; member in icing::lib::__anondfa93e730111::SnippetRetrieverTest 1415 jni_cache_.get()); in TEST_F()
|
/external/libtextclassifier/native/annotator/ |
D | annotator_jni.cc | 96 return jni_cache_; in jni_cache() 115 : jni_cache_(jni_cache), in AnnotatorJniContext() 120 std::shared_ptr<libtextclassifier3::JniCache> jni_cache_; member in libtextclassifier3::__anon9a758e2d0111::AnnotatorJniContext
|
/external/icing/icing/query/ |
D | query-processor_test.cc | 105 ULOC_US, jni_cache_.get()); in SetUp() 138 std::unique_ptr<const JniCache> jni_cache_ = GetTestJniCache(); member in icing::lib::__anon1c0a3fc50111::QueryProcessorTest
|