/external/libtextclassifier/native/annotator/ |
D | feature-processor.cc | 219 if (result_begin_codepoint == kInvalidIndex || in LabelToSpan() 220 result_end_codepoint == kInvalidIndex) { in LabelToSpan() 271 if (tokens[i].start != kInvalidIndex && tokens[i].end > span.first) { in SpanToLabel() 280 if (tokens[i].end != kInvalidIndex && tokens[i].start < span.second) { in SpanToLabel() 338 TokenIndex start_token = kInvalidIndex; in CodepointSpanToTokenSpan() 339 TokenIndex end_token = kInvalidIndex; in CodepointSpanToTokenSpan() 350 if (start_token == kInvalidIndex) { in CodepointSpanToTokenSpan() 392 return kInvalidIndex; in FindTokenThatContainsSpan() 410 if (range_begin == kInvalidIndex || range_end == kInvalidIndex) { in CenterTokenFromClick() 412 if (token_index != kInvalidIndex) { in CenterTokenFromClick() [all …]
|
D | types.h | 42 constexpr int kInvalidIndex = -1; variable 63 CodepointSpan() : first(kInvalidIndex), second(kInvalidIndex) {} in CodepointSpan() 86 return this->first != kInvalidIndex && this->second != kInvalidIndex && in IsValid() 147 TokenSpan() : first(kInvalidIndex), second(kInvalidIndex) {} in TokenSpan() 171 return this->first != kInvalidIndex && this->second != kInvalidIndex; in IsValid() 214 : Token(/*arg_value=*/"", /*arg_start=*/kInvalidIndex, in Token() 215 /*arg_end=*/kInvalidIndex, /*is_padding=*/true, in Token()
|
D | types.cc | 26 CodepointSpan(kInvalidIndex, kInvalidIndex); 28 const TokenSpan TokenSpan::kInvalid = TokenSpan(kInvalidIndex, kInvalidIndex);
|
D | annotator.cc | 1267 if (click_pos == kInvalidIndex) { in ModelSuggestSelection() 1319 /*selection_span_for_feature=*/{kInvalidIndex, kInvalidIndex}, in ModelSuggestSelection() 1491 if (selection_token_span.first == kInvalidIndex || in ModelClassifyText() 1492 selection_token_span.second == kInvalidIndex) { in ModelClassifyText() 1506 if (click_pos == kInvalidIndex) { in ModelClassifyText() 2001 /*selection_span_for_feature=*/{kInvalidIndex, kInvalidIndex}, in ModelAnnotate() 2486 return {kInvalidIndex, kInvalidIndex}; in ComputeSelectionBoundaries() 2491 CodepointSpan result = {kInvalidIndex, kInvalidIndex}; in ComputeSelectionBoundaries() 2503 return {kInvalidIndex, kInvalidIndex}; in ComputeSelectionBoundaries() 2505 if (group_start == kInvalidIndex || group_end == kInvalidIndex) { in ComputeSelectionBoundaries() [all …]
|
D | feature-processor_test.cc | 533 EXPECT_EQ(token_index, kInvalidIndex); in TEST_F() 558 EXPECT_EQ(token_index, kInvalidIndex); in TEST_F() 760 {{kInvalidIndex, kInvalidIndex}, cached_padding_features}, in TEST_F() 767 /*selection_span_for_feature=*/{kInvalidIndex, kInvalidIndex}, in TEST_F()
|
D | annotator_jni.cc | 374 /*(unused) selection_indices=*/{kInvalidIndex, kInvalidIndex}, in ClassificationResultsToJObjectArray()
|
/external/libtextclassifier/native/actions/ |
D | types.h | 40 int message_index = kInvalidIndex; 44 CodepointSpan span = CodepointSpan{kInvalidIndex, kInvalidIndex};
|
/external/llvm-project/clang/lib/Format/ |
D | UnwrappedLineParser.h | 55 size_t MatchingOpeningBlockLineIndex = kInvalidIndex; 59 size_t MatchingClosingBlockLineIndex = kInvalidIndex; 61 static const size_t kInvalidIndex = -1; member 303 MatchingOpeningBlockLineIndex(kInvalidIndex) {} in UnwrappedLine()
|
D | AffectedRangeManager.cpp | 143 Line->MatchingOpeningBlockLineIndex != UnwrappedLine::kInvalidIndex && in nonPPLineAffected()
|
D | NamespaceEndCommentsFixer.cpp | 178 if (StartLineIndex == UnwrappedLine::kInvalidIndex) in getNamespaceToken()
|
D | UnwrappedLineParser.cpp | 602 ? (UnwrappedLine::kInvalidIndex) in parseBlock() 643 if (OpeningLineIndex != UnwrappedLine::kInvalidIndex) { in parseBlock() 2916 Line->MatchingOpeningBlockLineIndex = UnwrappedLine::kInvalidIndex; in addUnwrappedLine()
|
D | UnwrappedLineFormatter.cpp | 145 if (StartLineIndex == UnwrappedLine::kInvalidIndex) in getMatchingNamespaceToken()
|
/external/libtextclassifier/native/annotator/datetime/ |
D | extractor.cc | 28 *result_span = {kInvalidIndex, kInvalidIndex}; in Extract() 198 if (result_span->first == kInvalidIndex || in Extract() 199 result_span->second == kInvalidIndex) { in Extract() 200 *result_span = {kInvalidIndex, kInvalidIndex}; in Extract() 270 if (span->first == kInvalidIndex || span->first > match_start) { in UpdateMatchSpan() 273 if (span->second == kInvalidIndex || span->second < match_end) { in UpdateMatchSpan()
|
D | regex-parser.cc | 260 if (parse_result.span.first != kInvalidIndex && in HandleParseMatch() 261 parse_result.span.second != kInvalidIndex) { in HandleParseMatch()
|
/external/libtextclassifier/native/annotator/grammar/ |
D | grammar-annotator.cc | 53 CodepointSpan span{kInvalidIndex, kInvalidIndex}; in MatchSelectionBoundaries() 66 if (span.first == kInvalidIndex) { in MatchSelectionBoundaries() 283 if (model_->context_left_num_tokens() != kInvalidIndex) { in ClassifyText() 287 if (model_->context_right_num_tokens() != kInvalidIndex) { in ClassifyText()
|
/external/libtextclassifier/native/annotator/duration/ |
D | duration.cc | 177 CodepointIndex start_index = kInvalidIndex; in FindDurationStartingAt() 178 CodepointIndex end_index = kInvalidIndex; in FindDurationStartingAt() 196 if (start_index == kInvalidIndex) { in FindDurationStartingAt() 203 if (start_index == kInvalidIndex) { in FindDurationStartingAt()
|
/external/libprotobuf-mutator/src/ |
D | field_instance.h | 28 static const size_t kInvalidIndex = -1; 36 : message_(nullptr), descriptor_(nullptr), index_(kInvalidIndex) {} in ConstFieldInstance() 43 assert(index_ != kInvalidIndex); in ConstFieldInstance() 49 : message_(message), descriptor_(field), index_(kInvalidIndex) { in ConstFieldInstance() 227 static const size_t kInvalidIndex = -1;
|
/external/angle/src/libANGLE/renderer/vulkan/ |
D | CommandProcessor.h | 192 static const uint32_t kInvalidIndex = std::numeric_limits<uint32_t>::max(); 201 QueueFamily() : mProperties{}, mIndex(kInvalidIndex) {} in QueueFamily() 205 bool valid() const { return (mIndex != kInvalidIndex); } in valid() 233 DeviceQueueMap() : mIndex(vk::QueueFamily::kInvalidIndex), mIsProtected(false) {} in DeviceQueueMap() 240 bool valid() const { return (mIndex != QueueFamily::kInvalidIndex); } in valid()
|
D | CommandProcessor.cpp | 1339 uint32_t index = QueueFamily::kInvalidIndex; in FindIndex() 1349 if ((index == QueueFamily::kInvalidIndex) && (matchNumber-- == 0)) in FindIndex()
|
/external/libtextclassifier/native/utils/grammar/utils/ |
D | ir.cc | 316 constexpr int kInvalidIndex = -1; in SerializeTerminalRules() local 317 std::vector<int> suffix(terminal_rules.size(), kInvalidIndex); in SerializeTerminalRules() 360 if (suffix[i] != kInvalidIndex) { in SerializeTerminalRules() 373 if (suffix[canonical_index] == kInvalidIndex) { in SerializeTerminalRules() 378 while (suffix[canonical_index] != kInvalidIndex) { in SerializeTerminalRules()
|
/external/brotli/c/enc/ |
D | cluster_inc.h | 213 static const uint32_t kInvalidIndex = BROTLI_UINT32_MAX; 220 new_index[i] = kInvalidIndex; 224 if (new_index[symbols[i]] == kInvalidIndex) {
|
D | block_splitter_inc.h | 214 static const uint32_t kInvalidIndex = BROTLI_UINT32_MAX; in FN() local 303 for (i = 0; i < num_clusters; ++i) new_index[i] = kInvalidIndex; in FN() 328 if (new_index[best_out] == kInvalidIndex) { in FN()
|
/external/dynamic_depth/internal/xmpmeta/ |
D | xmp_writer.cc | 34 const int kInvalidIndex = -1; variable 180 return kInvalidIndex; in InsertStandardXMPSection()
|
/external/libtextclassifier/native/utils/intents/ |
D | intent-generator-test-lib.cc | 142 /*text=*/"", /*selection_indices=*/{kInvalidIndex, kInvalidIndex}, in TEST_F()
|
/external/libtextclassifier/native/annotator/pod_ner/ |
D | pod-ner-impl_test.cc | 525 EXPECT_EQ(suggested_span.span, CodepointSpan(kInvalidIndex, kInvalidIndex)); in TEST_F()
|