Home
last modified time | relevance | path

Searched refs:hit (Results 1 – 25 of 554) sorted by relevance

12345678910>>...23

/external/icing/icing/index/main/
Dmain-index-merger.cc40 prev_.hit().document_id() == term_id_hit_pair.hit().document_id() && in IsEquivalentHit()
41 prev_.hit().section_id() == term_id_hit_pair.hit().section_id(); in IsEquivalentHit()
46 if (term_id_hit_pair.hit().is_prefix_hit()) { in SelectIfBetter()
61 if (best_prefix_hit_.hit().is_valid() && best_exact_hit_.hit().is_valid()) { in InsertSelectedHits()
63 const Hit& prefix_hit = best_prefix_hit_.hit(); in InsertSelectedHits()
68 prefix_hit.term_frequency() + best_exact_hit_.hit().term_frequency()); in InsertSelectedHits()
76 if (best_prefix_hit_.hit() < best_exact_hit_.hit()) { in InsertSelectedHits()
79 } else if (best_prefix_hit_.hit().is_valid()) { in InsertSelectedHits()
81 } else if (best_exact_hit_.hit().is_valid()) { in InsertSelectedHits()
96 if (!best_prefix_hit_.hit().is_valid()) { in SelectPrefixHitIfBetter()
[all …]
Dposting-list-used.cc33 uint32_t GetTermFrequencyByteSize(const Hit &hit) { in GetTermFrequencyByteSize() argument
34 return hit.has_term_frequency() ? sizeof(Hit::TermFrequency) : 0; in GetTermFrequencyByteSize()
107 const Hit &hit = hits[hits.size() - i - 1]; in MoveFrom() local
112 ICING_RETURN_IF_ERROR(PrependHit(hit)); in MoveFrom()
144 const Hit &hit) { in PrependHitToAlmostFull() argument
149 if (cur.value() <= hit.value()) { in PrependHitToAlmostFull()
153 uint64_t delta = cur.value() - hit.value(); in PrependHitToAlmostFull()
174 set_special_hit(1, hit); in PrependHitToAlmostFull()
181 set_special_hit(0, hit); in PrependHitToAlmostFull()
186 void PostingListUsed::PrependHitToEmpty(const Hit &hit) { in PrependHitToEmpty() argument
[all …]
Ddoc-hit-info-iterator-term-main.cc104 for (const Hit& hit : hits) { in RetrieveMoreHits() local
106 if (((1u << hit.section_id()) & section_restrict_mask_) == 0) { in RetrieveMoreHits()
110 if (hit.is_prefix_hit()) { in RetrieveMoreHits()
114 hit.document_id() != cached_doc_hit_infos_.back().document_id()) { in RetrieveMoreHits()
115 cached_doc_hit_infos_.push_back(DocHitInfo(hit.document_id())); in RetrieveMoreHits()
117 cached_doc_hit_infos_.back().UpdateSection(hit.section_id(), in RetrieveMoreHits()
118 hit.term_frequency()); in RetrieveMoreHits()
153 for (const Hit& hit : hits) { in RetrieveMoreHits() local
155 if (((1u << hit.section_id()) & section_restrict_mask_) == 0) { in RetrieveMoreHits()
159 if (!exact_ && !hit.is_in_prefix_section()) { in RetrieveMoreHits()
[all …]
Dposting-list-used_test.cc56 explicit HitElt(const Hit &hit_in) : hit(hit_in) {} in HitElt()
59 return hit_elt.hit; in get_hit()
62 Hit hit; member
235 CreateHit(hits_in.rbegin()->hit, /*desired_byte_length=*/1)); in TEST()
237 CreateHit(hits_in.rbegin()->hit, /*desired_byte_length=*/1)); in TEST()
239 CreateHit(hits_in.rbegin()->hit, /*desired_byte_length=*/1)); in TEST()
241 CreateHit(hits_in.rbegin()->hit, /*desired_byte_length=*/1)); in TEST()
276 CreateHit(hits_in.rbegin()->hit, /*desired_byte_length=*/1)); in TEST()
278 CreateHit(hits_in.rbegin()->hit, /*desired_byte_length=*/1)); in TEST()
280 CreateHit(hits_in.rbegin()->hit, /*desired_byte_length=*/1)); in TEST()
[all …]
Dflash-index-storage_test.cc167 for (const Hit& hit : hits1) { in TEST_F() local
168 ICING_ASSERT_OK(posting_list_holder1.posting_list.PrependHit(hit)); in TEST_F()
190 for (const Hit& hit : hits2) { in TEST_F() local
191 ICING_ASSERT_OK(posting_list_holder2.posting_list.PrependHit(hit)); in TEST_F()
224 for (const Hit& hit : hits3) { in TEST_F() local
225 ICING_ASSERT_OK(posting_list_holder3.posting_list.PrependHit(hit)); in TEST_F()
263 for (const Hit& hit : hits1) { in TEST_F() local
264 ICING_ASSERT_OK(posting_list_holder1.posting_list.PrependHit(hit)); in TEST_F()
286 for (const Hit& hit : hits2) { in TEST_F() local
287 ICING_ASSERT_OK(posting_list_holder2.posting_list.PrependHit(hit)); in TEST_F()
[all …]
Dposting-list-accessor_test.cc56 for (const Hit& hit : hits1) { in TEST() local
57 ICING_ASSERT_OK(pl_accessor.PrependHit(hit)); in TEST()
133 for (const Hit& hit : hits1) { in TEST() local
134 ICING_ASSERT_OK(pl_accessor.PrependHit(hit)); in TEST()
153 for (const Hit& hit : hits2) { in TEST() local
154 ICING_ASSERT_OK(pl_accessor.PrependHit(hit)); in TEST()
166 for (const Hit& hit : hits2) { in TEST() local
167 hits1.push_back(hit); in TEST()
189 for (const Hit& hit : hits1) { in TEST() local
190 ICING_ASSERT_OK(pl_accessor.PrependHit(hit)); in TEST()
[all …]
Dindex-block_test.cc126 for (const Hit& hit : test_hits) { in TEST() local
127 ICING_ASSERT_OK(pl_used.PrependHit(hit)); in TEST()
182 for (const Hit& hit : hits_in_posting_list1) { in TEST() local
183 ICING_ASSERT_OK(pl_used_1.PrependHit(hit)); in TEST()
194 for (const Hit& hit : hits_in_posting_list2) { in TEST() local
195 ICING_ASSERT_OK(pl_used_2.PrependHit(hit)); in TEST()
255 for (const Hit& hit : hits_in_posting_list1) { in TEST() local
256 ICING_ASSERT_OK(pl_used_1.PrependHit(hit)); in TEST()
274 for (const Hit& hit : hits_in_posting_list2) { in TEST() local
275 ICING_ASSERT_OK(pl_used_2.PrependHit(hit)); in TEST()
[all …]
Dposting-list-used.h88 libtextclassifier3::Status PrependHit(const Hit &hit);
230 libtextclassifier3::Status PrependHitToAlmostFull(const Hit &hit);
235 void PrependHitToEmpty(const Hit &hit);
241 libtextclassifier3::Status PrependHitToNotFull(const Hit &hit,
304 const Hit &hit, uint32_t offset);
316 Hit *hit, uint32_t *offset) const;
/external/icing/icing/testing/
Dhit-test-utils.cc22 Hit hit = (last_hit.section_id() == kMinSectionId) in CreateHit() local
28 while (VarInt::Encode(last_hit.value() - hit.value(), buf) < in CreateHit()
30 hit = (hit.section_id() == kMinSectionId) in CreateHit()
31 ? Hit(kMaxSectionId, hit.document_id() + 1, hit.term_frequency()) in CreateHit()
32 : Hit(hit.section_id() - 1, hit.document_id(), in CreateHit()
33 hit.term_frequency()); in CreateHit()
35 return hit; in CreateHit()
/external/skqp/src/pathops/
DSkPathOpsWinding.cpp261 SkOpRayHit* hit = hitHead; in sortableTop() local
262 while (hit) { in sortableTop()
263 sorted.push_back(hit); in sortableTop()
264 hit = hit->fNext; in sortableTop()
276 hit = sorted[index]; in sortableTop()
277 SkOpSpan* span = hit->fSpan; in sortableTop()
280 bool ccw = ccw_dxdy(hit->fSlope, dir); in sortableTop()
282 hit->fValid, operand, span ? span->debugID() : -1, ccw); in sortableTop()
286 SkDebugf(" t=%1.9g pt=(%1.9g,%1.9g) slope=(%1.9g,%1.9g)\n", hit->fT, in sortableTop()
287 hit->fPt.fX, hit->fPt.fY, hit->fSlope.fX, hit->fSlope.fY); in sortableTop()
[all …]
/external/skia/src/pathops/
DSkPathOpsWinding.cpp262 SkOpRayHit* hit = hitHead; in sortableTop() local
263 while (hit) { in sortableTop()
264 sorted.push_back(hit); in sortableTop()
265 hit = hit->fNext; in sortableTop()
277 hit = sorted[index]; in sortableTop()
278 SkOpSpan* span = hit->fSpan; in sortableTop()
281 bool ccw = ccw_dxdy(hit->fSlope, dir); in sortableTop()
283 hit->fValid, operand, span ? span->debugID() : -1, ccw); in sortableTop()
287 SkDebugf(" t=%1.9g pt=(%1.9g,%1.9g) slope=(%1.9g,%1.9g)\n", hit->fT, in sortableTop()
288 hit->fPt.fX, hit->fPt.fY, hit->fSlope.fX, hit->fSlope.fY); in sortableTop()
[all …]
/external/apache-http/src/org/apache/http/impl/
DDefaultConnectionReuseStrategy.java119 HeaderIterator hit = response.headerIterator(HTTP.CONN_DIRECTIVE); in keepAlive() local
120 if (!hit.hasNext()) in keepAlive()
121 hit = response.headerIterator("Proxy-Connection"); in keepAlive()
146 if (hit.hasNext()) { in keepAlive()
148 TokenIterator ti = createTokenIterator(hit); in keepAlive()
184 protected TokenIterator createTokenIterator(HeaderIterator hit) { in createTokenIterator() argument
185 return new BasicTokenIterator(hit); in createTokenIterator()
/external/libwebsockets/lib/roles/http/server/
Dserver.c775 const struct lws_http_mount *hm, *hit = NULL; in lws_find_mount() local
799 hit = hm; in lws_find_mount()
805 return hit; in lws_find_mount()
814 int fd, match = 0, pos = 0, n = 0, hit = 0; in lws_find_string_in_file() local
827 hit = 1; in lws_find_string_in_file()
835 hit = 1; in lws_find_string_in_file()
851 return hit; in lws_find_string_in_file()
1073 lws_http_proxy_start(struct lws *wsi, const struct lws_http_mount *hit, in lws_http_proxy_start() argument
1102 if (hit->origin[0] == '+') in lws_http_proxy_start()
1105 pcolon = strchr(hit->origin, ':'); in lws_http_proxy_start()
[all …]
/external/bcc/examples/cpp/
DLLCStat.cc103 uint64_t hit; in main() local
106 hit = miss <= it.second ? it.second - miss : 0; in main()
108 hit = it.second; in main()
110 double ratio = (double(hit) / double(it.second)) * 100.0; in main()
116 std::cout << "(" << hit << "/" << it.second << ")" << std::endl; in main()
/external/icing/icing/index/lite/
Dterm-id-hit-pair.h43 TermIdHitPair(uint32_t term_id, const Hit& hit) { in TermIdHitPair() argument
53 bit_util::BitfieldSet(hit.value(), kHitTermFrequencyBits, kHitValueBits, in TermIdHitPair()
55 bit_util::BitfieldSet(hit.term_frequency(), 0, kHitTermFrequencyBits, in TermIdHitPair()
64 Hit hit() const { in hit() function
Dlite-index.cc308 libtextclassifier3::Status LiteIndex::AddHit(uint32_t term_id, const Hit& hit) { in AddHit() argument
313 TermIdHitPair term_id_hit_pair(term_id, hit); in AddHit()
348 const Hit& hit = term_id_hit_pair.hit(); in AppendHits() local
350 if (((1u << hit.section_id()) & section_id_mask) == 0) { in AppendHits()
354 if (only_from_prefix_sections && !hit.is_in_prefix_section()) { in AppendHits()
357 DocumentId document_id = hit.document_id(); in AppendHits()
366 hits_out->back().UpdateSection(hit.section_id(), hit.term_frequency()); in AppendHits()
/external/python/cpython2/Lib/idlelib/
Dconfig-highlight.def21 hit-foreground= #ffffff
22 hit-background= #000000
52 hit-foreground= #ffffff
53 hit-background= #000000
75 hit-background = #fbfbfb
91 hit-foreground = #002240
/external/python/cpython3/Lib/idlelib/
Dconfig-highlight.def21 hit-foreground= #ffffff
22 hit-background= #000000
56 hit-foreground= #ffffff
57 hit-background= #000000
83 hit-background = #fbfbfb
99 hit-foreground = #002240
/external/toybox/toys/posix/
Dsed.c149 unsigned not, hit; member
246 if (command->hit) { in sed_line()
248 if (!command->rmatch[1]) command->hit = 0; in sed_line()
255 } else if (lm > 0 && lm < TT.count) command->hit = 0; in sed_line()
256 else if (lm < -1 && TT.count == command->hit+(-lm-1)) command->hit = 0; in sed_line()
264 command->hit = TT.count; in sed_line()
266 command->hit = TT.count; in sed_line()
272 lm = !(command->not^!!command->hit); in sed_line()
275 if (miss || command->lmatch[1] == TT.count) command->hit = 0; in sed_line()
320 if (!command->hit) emit(str, strlen(str), 1); in sed_line()
[all …]
/external/libiio/src/CI/travis/
Dbefore_deploy35 hit=$(find $(dirname ${i}) -maxdepth 1 -name "libiio*.$1" -a ! -name "*${LDIST}*")
36 if [ "$(echo ${hit} | wc -w)" -gt "1" ] ; then
38 echo $hit
41 if [ "$(echo ${hit} | wc -w)" -eq "1" ] ; then
43 temp=$hit
47 echo $hit
/external/bcc/tools/
Ddcstat_example.txt22 ("MISS/s"), and the hit ratio as a percentage. By default, an interval of 1
25 At 08:11:49, there were 192 thousand references, which almost entirely hit
26 from the dcache, with a hit ration of 99.95%. A little later, starting at
27 08:11:51, a workload began that walked many uncached files, reducing the hit
40 It's a 99.96% hit ratio, and these are all negative hits: accessing a file that
/external/llvm-project/lldb/test/Shell/ObjectFile/ELF/
Dminidebuginfo-set-and-hit-breakpoint.test58 # Now run the binary and see that we can set and hit a breakpoint
65 # CHECK-NEXT: Breakpoint 1: where = minidebuginfo-set-and-hit-breakpoint.test.tmp.binary`multiplyBy…
68 # CHECK-NEXT: Breakpoint 2: where = minidebuginfo-set-and-hit-breakpoint.test.tmp.binary`multiplyBy…
77 # CHECK-NEXT: module = {{.*}}/minidebuginfo-set-and-hit-breakpoint.test.tmp.binary
82 # CHECK-NEXT: hit count = 1
86 # CHECK-NEXT: module = {{.*}}/minidebuginfo-set-and-hit-breakpoint.test.tmp.binary
91 # CHECK-NEXT: hit count = 1
/external/OpenCL-CTS/test_conformance/subgroups/
Dtest_workitem.cpp43 cl_uint hit[32]; in check_group() local
93 memset(hit, 0, sizeof(hit)); in check_group()
170 if (j < sizeof(hit) / 4) in check_group()
173 if ((hit[j] & b) != 0) in check_group()
179 hit[j] |= b; in check_group()
/external/skqp/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/app/
DHelloCanvasAR.java413 for (HitResult hit : frame.hitTest(tap)) { in handleSingleTaps()
415 Trackable trackable = hit.getTrackable(); in handleSingleTaps()
418 && ((Plane) trackable).isPoseInPolygon(hit.getHitPose()) in handleSingleTaps()
419 && (DrawManager.calculateDistanceToPlane(hit.getHitPose(), camera.getPose()) in handleSingleTaps()
428 anchors.add(hit.createAnchor()); in handleSingleTaps()
445 for (HitResult hit : frame.hitTest(holdTap.event)) { in handleHoldTaps()
447 Trackable trackable = hit.getTrackable(); in handleHoldTaps()
450 && ((Plane) trackable).isPoseInPolygon(hit.getHitPose()) in handleHoldTaps()
451 && (DrawManager.calculateDistanceToPlane(hit.getHitPose(), camera.getPose()) in handleHoldTaps()
460 hit.getHitPose().toMatrix(modelMatrix, 0); in handleHoldTaps()
/external/mesa3d/src/panfrost/shared/
Dpan_minmax_cache.c55 uint64_t hit = cache->values[i]; in panfrost_minmax_cache_get() local
57 *min_index = hit & 0xffffffff; in panfrost_minmax_cache_get()
58 *max_index = hit >> 32; in panfrost_minmax_cache_get()

12345678910>>...23