Home
last modified time | relevance | path

Searched refs:kInvalidIndex (Results 1 – 25 of 43) sorted by relevance

12

/external/cronet/base/task/sequence_manager/
Dtiming_wheel.cc13 : bucket_index_(std::exchange(other.bucket_index_, kInvalidIndex)), in TimingWheelHandle()
14 element_index_(std::exchange(other.element_index_, kInvalidIndex)) {} in TimingWheelHandle()
18 bucket_index_ = std::exchange(other.bucket_index_, kInvalidIndex); in operator =()
19 element_index_ = std::exchange(other.element_index_, kInvalidIndex); in operator =()
29 bucket_index_ = kInvalidIndex; in Reset()
30 element_index_ = kInvalidIndex; in Reset()
34 return bucket_index_ != kInvalidIndex && element_index_ != kInvalidIndex; in IsValid()
Dhierarchical_timing_wheel.cc18 hierarchy_index_(std::exchange(other.hierarchy_index_, kInvalidIndex)) {} in HierarchicalTimingWheelHandle()
24 hierarchy_index_ = std::exchange(other.hierarchy_index_, kInvalidIndex); in operator =()
65 DCHECK(hierarchy_index != kInvalidIndex); in SetHierarchyIndex()
70 hierarchy_index_ = kInvalidIndex; in ClearHierarchyIndex()
80 hierarchy_index_ != kInvalidIndex; in IsValid()
Dtiming_wheel.h26 enum : size_t { kInvalidIndex = std::numeric_limits<size_t>::max() }; enumerator
61 size_t bucket_index_ = kInvalidIndex;
64 size_t element_index_ = kInvalidIndex;
/external/openthread/src/core/mac/
Dmac_frame.cpp95 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in ValidatePsdu()
130 VerifyOrExit(IsDstPanIdPresent(), index = kInvalidIndex); in FindDstPanIdIndex()
175 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in GetDstPanId()
186 OT_ASSERT(index != kInvalidIndex); in SetDstPanId()
200 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in GetDstAddr()
232 OT_ASSERT(index != kInvalidIndex); in SetDstAddr()
260 VerifyOrExit(IsSrcPanIdPresent(), index = kInvalidIndex); in FindSrcPanIdIndex()
313 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in GetSrcPanId()
325 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in SetSrcPanId()
369 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in GetSrcAddr()
[all …]
/external/skia/src/gpu/graphite/
DDrawPass.cpp65 static constexpr Index kInvalidIndex{1 << SkNextLog2_portable(Renderer::kMaxRenderSteps * member in skgpu::graphite::__anon3ddbbdf80111::DenseBiMap
74 SkASSERT(SkToU32(fIndexToData.size()) < kInvalidIndex - 1); in insert()
82 SkASSERT(index < kInvalidIndex); in lookup()
136 return TextureBindingCache::kInvalidIndex; in trackTextures()
142 if (bindingIndex < TextureBindingCache::kInvalidIndex && fLastIndex != bindingIndex) { in setCurrentTextureBindings()
151 SkASSERT(fLastIndex < TextureBindingCache::kInvalidIndex); in bindTextures()
189 TextureBindingCache::Index fLastIndex = TextureBindingCache::kInvalidIndex;
203 return UniformSsboCache::kInvalidIndex; in trackUniforms()
250 if (ssboIndex >= UniformSsboCache::kInvalidIndex) { in setCurrentUniforms()
271 SkASSERT(fLastPipeline < GraphicsPipelineCache::kInvalidIndex && in bindUniforms()
[all …]
/external/libtextclassifier/native/annotator/
Dfeature-processor.cc219 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 …]
Dtypes.h42 constexpr int kInvalidIndex = -1; variable
63 CodepointSpan() : first(kInvalidIndex), second(kInvalidIndex) {} in CodepointSpan()
87 return this->first != kInvalidIndex && this->second != kInvalidIndex && in IsValid()
148 TokenSpan() : first(kInvalidIndex), second(kInvalidIndex) {} in TokenSpan()
172 return this->first != kInvalidIndex && this->second != kInvalidIndex; in IsValid()
215 : Token(/*arg_value=*/"", /*arg_start=*/kInvalidIndex, in Token()
216 /*arg_end=*/kInvalidIndex, /*is_padding=*/true, in Token()
Dtypes.cc26 CodepointSpan(kInvalidIndex, kInvalidIndex);
28 const TokenSpan TokenSpan::kInvalid = TokenSpan(kInvalidIndex, kInvalidIndex);
Dannotator.cc1292 if (click_pos == kInvalidIndex) { in ModelSuggestSelection()
1344 /*selection_span_for_feature=*/{kInvalidIndex, kInvalidIndex}, in ModelSuggestSelection()
1517 if (selection_token_span.first == kInvalidIndex || in ModelClassifyText()
1518 selection_token_span.second == kInvalidIndex) { in ModelClassifyText()
1532 if (click_pos == kInvalidIndex) { in ModelClassifyText()
2037 /*selection_span_for_feature=*/{kInvalidIndex, kInvalidIndex}, in ModelAnnotate()
2503 return {kInvalidIndex, kInvalidIndex}; in ComputeSelectionBoundaries()
2508 CodepointSpan result = {kInvalidIndex, kInvalidIndex}; in ComputeSelectionBoundaries()
2520 return {kInvalidIndex, kInvalidIndex}; in ComputeSelectionBoundaries()
2522 if (group_start == kInvalidIndex || group_end == kInvalidIndex) { in ComputeSelectionBoundaries()
[all …]
Dfeature-processor_test.cc533 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()
/external/libtextclassifier/native/annotator/datetime/
Dextractor.cc30 *result_span = {kInvalidIndex, kInvalidIndex}; in Extract()
200 if (result_span->first == kInvalidIndex || in Extract()
201 result_span->second == kInvalidIndex) { in Extract()
202 *result_span = {kInvalidIndex, kInvalidIndex}; in Extract()
272 if (span->first == kInvalidIndex || span->first > match_start) { in UpdateMatchSpan()
275 if (span->second == kInvalidIndex || span->second < match_end) { in UpdateMatchSpan()
/external/libtextclassifier/native/actions/
Dtypes.h40 int message_index = kInvalidIndex;
44 CodepointSpan span = CodepointSpan{kInvalidIndex, kInvalidIndex};
/external/libtextclassifier/native/annotator/grammar/
Dgrammar-annotator.cc53 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/icing/icing/file/
Dpersistent-hash-map.cc177 if (idx_pair.target_entry_index == Entry::kInvalidIndex) { in Put()
208 if (idx_pair.target_entry_index == Entry::kInvalidIndex) { in GetOrPut()
226 if (idx_pair.target_entry_index == Entry::kInvalidIndex) { in Get()
242 if (idx_pair.target_entry_index == Entry::kInvalidIndex) { in Delete()
250 if (idx_pair.prev_entry_index == Entry::kInvalidIndex) { in Delete()
289 mutable_target_entry.Get().set_next_entry_index(Entry::kInvalidIndex); in Delete()
567 int32_t prev_entry_idx = Entry::kInvalidIndex; in FindEntryIndexByKey()
569 while (curr_entry_idx != Entry::kInvalidIndex) { in FindEntryIndexByKey()
660 bucket_storage_->Set(0, new_num_bucket, Bucket(Entry::kInvalidIndex))); in RehashIfNecessary()
/external/libtextclassifier/native/annotator/duration/
Dduration.cc183 CodepointIndex start_index = kInvalidIndex; in FindDurationStartingAt()
184 CodepointIndex end_index = kInvalidIndex; in FindDurationStartingAt()
202 if (start_index == kInvalidIndex) { in FindDurationStartingAt()
209 if (start_index == kInvalidIndex) { in FindDurationStartingAt()
/external/libprotobuf-mutator/src/
Dfield_instance.h28 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/libtextclassifier/native/utils/grammar/utils/
Dir.cc324 constexpr int kInvalidIndex = -1; in SerializeTerminalRules() local
325 std::vector<int> suffix(terminal_rules.size(), kInvalidIndex); in SerializeTerminalRules()
368 if (suffix[i] != kInvalidIndex) { in SerializeTerminalRules()
381 if (suffix[canonical_index] == kInvalidIndex) { in SerializeTerminalRules()
386 while (suffix[canonical_index] != kInvalidIndex) { in SerializeTerminalRules()
/external/angle/src/libANGLE/renderer/vulkan/
DCommandProcessor.h286 static const uint32_t kInvalidIndex = std::numeric_limits<uint32_t>::max();
295 QueueFamily() : mProperties{}, mIndex(kInvalidIndex) {} in QueueFamily()
299 bool valid() const { return (mIndex != kInvalidIndex); } in valid()
327 DeviceQueueMap() : mIndex(QueueFamily::kInvalidIndex), mIsProtected(false) {} in DeviceQueueMap()
335 bool valid() const { return (mIndex != QueueFamily::kInvalidIndex); } in valid()
/external/cronet/net/third_party/quiche/src/quiche/http2/test_tools/
Dhpack_entry_collector.cc21 const size_t kInvalidIndex = 99999999; variable
121 index_ = kInvalidIndex; in Clear()
127 return header_type_ == kInvalidHeaderType && index_ == kInvalidIndex && in IsClear()
/external/openthread/src/core/net/
Dip6_address.cpp518 constexpr uint8_t kInvalidIndex = 0xff; in FromString() local
526 uint8_t colonIndex = kInvalidIndex; in FromString()
597 VerifyOrExit(colonIndex == kInvalidIndex); in FromString()
608 VerifyOrExit(colonIndex != kInvalidIndex); in FromString()
/external/cronet/base/containers/
Dintrusive_heap.h156 enum : size_t { kInvalidIndex = std::numeric_limits<size_t>::max() }; enumerator
161 : index_(std::exchange(other.index_, kInvalidIndex)) {} in HeapHandle()
166 index_ = std::exchange(other.index_, kInvalidIndex);
173 void reset() { index_ = kInvalidIndex; } in reset()
177 bool IsValid() const { return index_ != kInvalidIndex; } in IsValid()
206 size_t index_ = kInvalidIndex;
912 return HeapHandle::kInvalidIndex; in ToIndex()
923 return HeapHandle::kInvalidIndex; in ToIndex()
/external/cronet/net/third_party/quiche/src/quiche/http2/hpack/decoder/
Dhpack_decoding_error.h29 kInvalidIndex, enumerator
Dhpack_decoding_error.cc30 case HpackDecodingError::kInvalidIndex: in HpackDecodingErrorToString()
/external/brotli/c/enc/
Dcluster_inc.h213 static const uint32_t kInvalidIndex = BROTLI_UINT32_MAX;
220 new_index[i] = kInvalidIndex;
224 if (new_index[symbols[i]] == kInvalidIndex) {
/external/cronet/third_party/brotli/enc/
Dcluster_inc.h215 static const uint32_t kInvalidIndex = BROTLI_UINT32_MAX;
222 new_index[i] = kInvalidIndex;
226 if (new_index[symbols[i]] == kInvalidIndex) {

12