Home
last modified time | relevance | path

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

/external/libtextclassifier/utils/base/
Dlogging.h119 #define TC3_CHECK(x) \ macro
123 #define TC3_CHECK_EQ(x, y) TC3_CHECK((x) == (y))
124 #define TC3_CHECK_LT(x, y) TC3_CHECK((x) < (y))
125 #define TC3_CHECK_GT(x, y) TC3_CHECK((x) > (y))
126 #define TC3_CHECK_LE(x, y) TC3_CHECK((x) <= (y))
127 #define TC3_CHECK_GE(x, y) TC3_CHECK((x) >= (y))
128 #define TC3_CHECK_NE(x, y) TC3_CHECK((x) != (y))
148 #define TC3_DCHECK(x) TC3_CHECK(x)
/external/libtextclassifier/utils/
Dvariant.h63 TC3_CHECK(HasInt()); in IntValue()
68 TC3_CHECK(HasInt64()); in Int64Value()
73 TC3_CHECK(HasFloat()); in FloatValue()
78 TC3_CHECK(HasDouble()); in DoubleValue()
83 TC3_CHECK(HasBool()); in BoolValue()
88 TC3_CHECK(HasString()); in StringValue()
Doptional.h56 TC3_CHECK(init_) << "Bad optional access.";
61 TC3_CHECK(init_) << "Bad optional access."; in value()
Dresources.cc208 TC3_CHECK(unpacked_resources != nullptr); in CompressSerializedResources()
209 TC3_CHECK( in CompressSerializedResources()
/external/libtextclassifier/annotator/datetime/
Dparser_test.cc60 TC3_CHECK(classifier_); in LoadModel()
62 TC3_CHECK(parser_); in LoadModel()
73 TC3_CHECK(false); in HasNoResult()
92 TC3_CHECK(brace_open_it != marked_text_unicode.end()); in ParsesCorrectly()
93 TC3_CHECK(brace_end_it != marked_text_unicode.end()); in ParsesCorrectly()
107 TC3_CHECK(false); in ParsesCorrectly()
/external/libtextclassifier/annotator/number/
Dnumber.cc39 TC3_CHECK(classification_result != nullptr); in ClassifyText()
139 TC3_CHECK(result != nullptr && num_prefix_codepoints != nullptr && in ParseNumber()
/external/libtextclassifier/annotator/
Dzlib-utils.cc133 TC3_CHECK(unpacked_model != nullptr); in CompressSerializedModel()
134 TC3_CHECK(CompressModel(unpacked_model.get())); in CompressSerializedModel()
Dannotator.cc89 TC3_CHECK(selection_executor_); in SelectionInterpreter()
100 TC3_CHECK(classification_executor_); in ClassificationInterpreter()
559 TC3_CHECK(ValidNonEmptySpan(span)); in SnapLeftIfWhitespaceSelection()
1985 TC3_CHECK(entity_data_builder_ != nullptr); in SerializedEntityDataFromRegexMatch()
1990 TC3_CHECK(entity_data != nullptr); in SerializedEntityDataFromRegexMatch()
1994 TC3_CHECK(entity_data != nullptr); in SerializedEntityDataFromRegexMatch()
2009 TC3_CHECK(entity_data != nullptr); in SerializedEntityDataFromRegexMatch()
Dfeature-processor.cc686 TC3_CHECK(tokens != nullptr); in RetokenizeAndFindClick()
/external/libtextclassifier/utils/java/
Djni-cache.cc49 #define TC3_CHECK_JNI_PTR(PTR) TC3_CHECK((PTR) != nullptr)
50 #define TC3_CHECK_JNI_RESULT(RESULT) TC3_CHECK(RESULT)
264 TC3_CHECK(env != nullptr); in ExceptionCheckAndClear()
/external/libtextclassifier/actions/
Dzlib-utils.cc152 TC3_CHECK(unpacked_model != nullptr); in CompressSerializedActionsModel()
153 TC3_CHECK(CompressActionsModel(unpacked_model.get())); in CompressSerializedActionsModel()
Dactions-suggestions.cc1132 TC3_CHECK(entity_data != nullptr); in SuggestActionsFromAnnotation()
1236 TC3_CHECK(entity_data != nullptr); in SuggestActionsFromRules()
1248 TC3_CHECK(entity_data != nullptr); in SuggestActionsFromRules()
/external/libtextclassifier/utils/intents/
Djni.cc26 #define TC3_CHECK_JNI_PTR(PTR) TC3_CHECK((PTR) != nullptr)
32 TC3_CHECK(handler->FIELD) << "Error finding method: " << NAME;
/external/libtextclassifier/utils/sentencepiece/
Dencoder.cc67 TC3_CHECK(match.id >= 0 && match.id < num_pieces_); in Encode()
/external/libtextclassifier/annotator/duration/
Dduration.cc101 TC3_CHECK(!annotated_span.classification.empty()); in ClassifyText()