Home
last modified time | relevance | path

Searched refs:TC3_CHECK (Results 1 – 25 of 30) sorted by relevance

12

/external/libtextclassifier/native/utils/
Dvariant.h98 TC3_CHECK(Has<int8>()); in Value()
104 TC3_CHECK(Has<uint8>()); in Value()
110 TC3_CHECK(Has<int>()); in Value()
116 TC3_CHECK(Has<uint>()); in Value()
122 TC3_CHECK(Has<int64>()); in Value()
128 TC3_CHECK(Has<uint64>()); in Value()
134 TC3_CHECK(Has<float>()); in Value()
140 TC3_CHECK(Has<double>()); in Value()
146 TC3_CHECK(Has<bool>()); in Value()
155 TC3_CHECK(Has<std::string>()); in ConstRefValue()
[all …]
Doptional.h56 TC3_CHECK(init_) << "Bad optional access.";
61 TC3_CHECK(init_) << "Bad optional access."; in value()
Dnormalization.cc35 TC3_CHECK(!((codepointwise_ops & in NormalizeTextCodepointWise()
Dtokenizer.cc254 TC3_CHECK(token_end_it <= context_unicode.end()); in ICUTokenize()
/external/libtextclassifier/native/utils/base/
Dlogging.h131 #define TC3_CHECK(x) \ macro
135 #define TC3_CHECK_EQ(x, y) TC3_CHECK((x) == (y))
136 #define TC3_CHECK_LT(x, y) TC3_CHECK((x) < (y))
137 #define TC3_CHECK_GT(x, y) TC3_CHECK((x) > (y))
138 #define TC3_CHECK_LE(x, y) TC3_CHECK((x) <= (y))
139 #define TC3_CHECK_GE(x, y) TC3_CHECK((x) >= (y))
140 #define TC3_CHECK_NE(x, y) TC3_CHECK((x) != (y))
160 #define TC3_DCHECK(x) TC3_CHECK(x)
Darena_test.cc46 TC3_CHECK(mem != nullptr); in CheckMemory()
53 TC3_CHECK(mem != nullptr); in CheckAlignment()
69 TC3_CHECK(a->is_empty()); in TestArena()
71 TC3_CHECK(a->is_empty()); in TestArena()
75 TC3_CHECK(!a->is_empty()); in TestArena()
130 TC3_CHECK(!a->is_empty()); in TestArena()
134 TC3_CHECK(a->is_empty()); in TestArena()
139 TC3_CHECK(!a->is_empty()); in TestArena()
154 TC3_CHECK(!a->is_empty()); in TestArena()
164 TC3_CHECK(a->is_empty()); in TestArena()
[all …]
Darena.cc133 TC3_CHECK(kPageSize > 0 && 0 == (kPageSize & (kPageSize - 1))) in BaseArena()
139 TC3_CHECK(!page_aligned_ || in BaseArena()
151 TC3_CHECK(nullptr != first_blocks_[0].mem); in BaseArena()
223 TC3_CHECK(SatisfyAlignment(kDefaultAlignment)); in Reset()
239 TC3_CHECK(SatisfyAlignment(alignment)); in MakeNewBlock()
326 TC3_CHECK(nullptr != block->mem) in AllocNewBlock()
353 TC3_CHECK(overflow_blocks_ != nullptr); in AllocNewBlock()
377 TC3_CHECK(alignment > 0 && 0 == (alignment & (alignment - 1))); in AllocNewBlock()
/external/icing/icing/text_classifier/lib3/utils/base/
Dlogging.h129 #define TC3_CHECK(x) \ macro
133 #define TC3_CHECK_EQ(x, y) TC3_CHECK((x) == (y))
134 #define TC3_CHECK_LT(x, y) TC3_CHECK((x) < (y))
135 #define TC3_CHECK_GT(x, y) TC3_CHECK((x) > (y))
136 #define TC3_CHECK_LE(x, y) TC3_CHECK((x) <= (y))
137 #define TC3_CHECK_GE(x, y) TC3_CHECK((x) >= (y))
138 #define TC3_CHECK_NE(x, y) TC3_CHECK((x) != (y))
158 #define TC3_DCHECK(x) TC3_CHECK(x)
/external/libtextclassifier/native/utils/grammar/semantics/
Dvalue.h174 TC3_CHECK(Has<flatbuffers::Table>()); in Table()
181 TC3_CHECK(Has<T>()); in Value()
187 TC3_CHECK(Has<StringPiece>());
193 TC3_CHECK(Has<StringPiece>());
199 TC3_CHECK(Has<StringPiece>());
Dcomposer.cc42 TC3_CHECK(node->IsUnaryRule()); in GatherConstituents()
/external/libtextclassifier/native/annotator/datetime/testing/
Dbase-parser-test.cc42 TC3_CHECK(false); in HasNoResult()
59 TC3_CHECK(brace_open_it != marked_text_unicode.end()); in ParsesCorrectly()
60 TC3_CHECK(brace_end_it != marked_text_unicode.end()); in ParsesCorrectly()
75 TC3_CHECK(false); in ParsesCorrectly()
/external/libtextclassifier/native/utils/flatbuffers/
Dreflection.cc23 TC3_CHECK(type != nullptr && type->fields() != nullptr); in GetFieldOrNull()
53 TC3_CHECK(type != nullptr && field != nullptr); in GetFieldOrNull()
65 TC3_CHECK(type != nullptr && field != nullptr); in GetFieldOrNull()
/external/libtextclassifier/native/annotator/
Dflatbuffer-utils.cc57 TC3_CHECK(unpacked_model != nullptr); in SwapFieldNamesForOffsetsInPathInSerializedModel()
58 TC3_CHECK(SwapFieldNamesForOffsetsInPath(unpacked_model.get())); in SwapFieldNamesForOffsetsInPathInSerializedModel()
Dzlib-utils.cc132 TC3_CHECK(unpacked_model != nullptr); in CompressSerializedModel()
133 TC3_CHECK(CompressModel(unpacked_model.get())); in CompressSerializedModel()
/external/libtextclassifier/native/actions/
Dzlib-utils.cc148 TC3_CHECK(unpacked_model != nullptr); in CompressSerializedActionsModel()
149 TC3_CHECK(CompressActionsModel(unpacked_model.get())); in CompressSerializedActionsModel()
/external/icing/icing/text_classifier/lib3/utils/java/
Djni-base.cc26 TC3_CHECK(env != nullptr); in JniExceptionCheckAndClear()
/external/libtextclassifier/native/utils/java/
Djni-base.cc28 TC3_CHECK(env != nullptr); in JniExceptionCheckAndClear()
Djni-cache.cc51 #define TC3_CHECK_JNI_PTR(PTR) TC3_CHECK((PTR) != nullptr)
52 #define TC3_CHECK_JNI_RESULT(RESULT) TC3_CHECK(RESULT)
/external/libtextclassifier/native/utils/grammar/utils/
Drules.cc190 TC3_CHECK(inserted); in BindAnnotation()
345 TC3_CHECK(!rhs.empty()) << "Rhs cannot be empty (Lhs=" << lhs << ")"; in Add()
346 TC3_CHECK(!IsPredefinedNonterminal(lhs)); in Add()
520 TC3_CHECK(scheduled_rules.empty()); in Finalize()
/external/libtextclassifier/native/annotator/grammar/
Dutils.cc30 TC3_CHECK(options != nullptr); in BuildTokenizer()
/external/libtextclassifier/native/utils/sentencepiece/
Dencoder.cc67 TC3_CHECK(match.id >= 0 && match.id < num_pieces_); in Encode()
/external/libtextclassifier/native/annotator/pod_ner/
Dpod-ner-impl.cc103 TC3_CHECK(model != nullptr); in CreateInterpreter()
166 TC3_CHECK(model != nullptr); in CreateTokenizer()
399 TC3_CHECK(results != nullptr); in AnnotateAroundSpanOfInterest()
/external/libtextclassifier/native/annotator/translate/
Dtranslate.cc156 TC3_CHECK(direction == 1 || direction == -1); in FindIndexOfNextWhitespaceOrPunctuation()
/external/libtextclassifier/native/annotator/number/
Dnumber.cc35 TC3_CHECK(classification_result != nullptr); in ClassifyText()
/external/libtextclassifier/native/utils/grammar/parsing/
Dmatcher.cc323 TC3_CHECK(lhs_set); in ExecuteLhsSet()

12