Home
last modified time | relevance | path

Searched refs:candidate (Results 1 – 25 of 167) sorted by relevance

1234567

/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberMatcher.java252 CharSequence candidate = text.subSequence(start, matcher.end()); in find() local
257 candidate = trimAfterFirstMatch(PhoneNumberUtil.SECOND_NUMBER_START_PATTERN, candidate); in find()
259 PhoneNumberMatch match = extractMatch(candidate, start); in find()
264 index = start + candidate.length(); in find()
275 private static CharSequence trimAfterFirstMatch(Pattern pattern, CharSequence candidate) { in trimAfterFirstMatch() argument
276 Matcher trailingCharsMatcher = pattern.matcher(candidate); in trimAfterFirstMatch()
278 candidate = candidate.subSequence(0, trailingCharsMatcher.start()); in trimAfterFirstMatch()
280 return candidate; in trimAfterFirstMatch()
314 private PhoneNumberMatch extractMatch(CharSequence candidate, int offset) { in extractMatch() argument
316 if (SLASH_SEPARATED_DATES.matcher(candidate).find()) { in extractMatch()
[all …]
/external/skia/src/core/
DSkTDynamicHash.h94 T* candidate = fArray[index]; in find() local
95 if (Empty() == candidate) { in find()
98 if (Deleted() != candidate && GetKey(*candidate) == key) { in find()
99 return candidate; in find()
148 const T* candidate = fArray[index]; in countCollisions() local
149 if (Empty() == candidate || Deleted() == candidate || GetKey(*candidate) == key) { in countCollisions()
212 const T* candidate = fArray[index]; in innerAdd() local
213 if (Empty() == candidate || Deleted() == candidate) { in innerAdd()
214 if (Deleted() == candidate) { in innerAdd()
231 const T* candidate = fArray[index]; in innerRemove() local
[all …]
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_program_pair.c42 int candidate = -1; in rc_pair_alloc_source() local
88 candidate = i; in rc_pair_alloc_source()
93 candidate = RC_PAIR_PRESUB_SRC; in rc_pair_alloc_source()
94 } else if (candidate < 0 || (rgb && rgb_used > 2) in rc_pair_alloc_source()
102 pair->RGB.Src[candidate].Used = 1; in rc_pair_alloc_source()
103 pair->RGB.Src[candidate].File = file; in rc_pair_alloc_source()
104 pair->RGB.Src[candidate].Index = index; in rc_pair_alloc_source()
105 if (candidate == RC_PAIR_PRESUB_SRC) { in rc_pair_alloc_source()
115 pair->Alpha.Src[candidate].Used = 1; in rc_pair_alloc_source()
116 pair->Alpha.Src[candidate].File = file; in rc_pair_alloc_source()
[all …]
/external/bison/lib/
Dhash.c444 is_prime (size_t candidate) in is_prime() argument
449 while (square < candidate && (candidate % divisor)) in is_prime()
456 return (candidate % divisor ? true : false); in is_prime()
463 next_prime (size_t candidate) in next_prime() argument
466 if (candidate < 10) in next_prime()
467 candidate = 10; in next_prime()
470 candidate |= 1; in next_prime()
472 while (SIZE_MAX != candidate && !is_prime (candidate)) in next_prime()
473 candidate += 2; in next_prime()
475 return candidate; in next_prime()
[all …]
/external/clang/include/clang/Sema/
DTypoCorrection.h270 virtual bool ValidateCandidate(const TypoCorrection &candidate);
278 virtual unsigned RankCandidate(const TypoCorrection &candidate) { in RankCandidate() argument
279 return (!MatchesTypo(candidate) && ValidateCandidate(candidate)) in RankCandidate()
302 bool MatchesTypo(const TypoCorrection &candidate) { in MatchesTypo() argument
303 return Typo && candidate.isResolved() && !candidate.requiresImport() && in MatchesTypo()
304 candidate.getCorrectionAsIdentifierInfo() == Typo && in MatchesTypo()
307 candidate.getCorrectionSpecifier() == TypoNNS; in MatchesTypo()
319 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() argument
320 return candidate.getCorrectionDeclAs<C>(); in ValidateCandidate()
333 bool ValidateCandidate(const TypoCorrection &candidate) override;
[all …]
/external/v8/src/
Dversion.cc80 const char* candidate = IsCandidate() ? " (candidate)" : ""; in GetString() local
88 GetMajor(), GetMinor(), GetBuild(), GetPatch(), candidate, in GetString()
92 GetMajor(), GetMinor(), GetBuild(), candidate, in GetString()
102 const char* candidate = IsCandidate() ? "-candidate" : ""; in GetSONAME() local
105 GetMajor(), GetMinor(), GetBuild(), GetPatch(), candidate); in GetSONAME()
108 GetMajor(), GetMinor(), GetBuild(), candidate); in GetSONAME()
/external/libvpx/libvpx/vp9/common/
Dvp9_mvref_common.c42 const MB_MODE_INFO *const candidate = &candidate_mi->mbmi; in find_mv_refs_idx() local
44 context_counter += mode_2_counter[candidate->mode]; in find_mv_refs_idx()
47 if (candidate->ref_frame[0] == ref_frame) in find_mv_refs_idx()
50 else if (candidate->ref_frame[1] == ref_frame) in find_mv_refs_idx()
62 const MB_MODE_INFO *const candidate = &xd->mi[mv_ref->col + mv_ref->row * in find_mv_refs_idx() local
66 if (candidate->ref_frame[0] == ref_frame) in find_mv_refs_idx()
67 ADD_MV_REF_LIST(candidate->mv[0], refmv_count, mv_ref_list, Done); in find_mv_refs_idx()
68 else if (candidate->ref_frame[1] == ref_frame) in find_mv_refs_idx()
69 ADD_MV_REF_LIST(candidate->mv[1], refmv_count, mv_ref_list, Done); in find_mv_refs_idx()
104 const MB_MODE_INFO *const candidate = &xd->mi[mv_ref->col + mv_ref->row in find_mv_refs_idx() local
[all …]
/external/mockito/src/org/mockito/internal/invocation/
DInvocationMatcher.java77 public boolean hasSimilarMethod(Invocation candidate) { in hasSimilarMethod() argument
79 String currentMethodName = candidate.getMethod().getName(); in hasSimilarMethod()
82 final boolean isUnverified = !candidate.isVerified(); in hasSimilarMethod()
83 final boolean mockIsTheSame = getInvocation().getMock() == candidate.getMock(); in hasSimilarMethod()
84 final boolean methodEquals = hasSameMethod(candidate); in hasSimilarMethod()
90 …final boolean overloadedButSameArgs = !methodEquals && safelyArgumentsMatch(candidate.getArguments… in hasSimilarMethod()
95 public boolean hasSameMethod(Invocation candidate) { in hasSameMethod() argument
99 Method m2 = candidate.getMethod(); in hasSameMethod()
DInvocationsFinder.java176 Invocation candidate = null; in findFirstUnverifiedInOrder() local
179 candidate = candidate != null ? candidate : i; in findFirstUnverifiedInOrder()
181 candidate = null; in findFirstUnverifiedInOrder()
184 return candidate; in findFirstUnverifiedInOrder()
/external/elfutils/src/lib/
Dnext_prime.c35 is_prime (size_t candidate) in is_prime() argument
41 while (sq < candidate && candidate % divn != 0) in is_prime()
51 return candidate % divn != 0; in is_prime()
/external/v8/test/cctest/
Dtest-version.cc40 bool candidate, const char* soname) { in SetVersion() argument
45 Version::candidate_ = candidate; in SetVersion()
53 int patch, bool candidate, in CheckVersion() argument
60 SetVersion(major, minor, build, patch, candidate, ""); in CheckVersion()
68 SetVersion(major, minor, build, patch, candidate, soname); in CheckVersion()
/external/clang/test/Modules/
Dredecl-merge.m30 // expected-note@Inputs/redecl-merge-left.h:93{{candidate function}}
31 // expected-note@Inputs/redecl-merge-right.h:90{{candidate function}}
82 // expected-note@Inputs/redecl-merge-left.h:60{{candidate found by name lookup is 'T2'}}
83 // expected-note@Inputs/redecl-merge-right.h:63{{candidate found by name lookup is 'T2'}}
90 // expected-note@Inputs/redecl-merge-left.h:64{{candidate function}}
91 // expected-note@Inputs/redecl-merge-right.h:70{{candidate function}}
97 // expected-note@Inputs/redecl-merge-left.h:77{{candidate found by name lookup is 'var2'}}
98 // expected-note@Inputs/redecl-merge-right.h:77{{candidate found by name lookup is 'var2'}}
100 // expected-note@Inputs/redecl-merge-left.h:79{{candidate found by name lookup is 'var3'}}
101 // expected-note@Inputs/redecl-merge-right.h:79{{candidate found by name lookup is 'var3'}}
/external/google-tv-pairing-protocol/cpp/
Dautogen.sh22 for candidate in "$@"; do
23 if "$candidate" --version >/dev/null 2>&1; then
24 echo "$candidate"
28 echo "$candidate" # the last one in $@
/external/wpa_supplicant_8/src/rsn_supp/
Dpreauth.c302 struct rsn_pmksa_candidate *candidate, *n; in rsn_preauth_candidate_process() local
323 dl_list_for_each_safe(candidate, n, &sm->pmksa_candidates, in rsn_preauth_candidate_process()
326 p = pmksa_cache_get(sm->pmksa, candidate->bssid, NULL, NULL); in rsn_preauth_candidate_process()
327 if (os_memcmp(sm->bssid, candidate->bssid, ETH_ALEN) != 0 && in rsn_preauth_candidate_process()
332 MAC2STR(candidate->bssid)); in rsn_preauth_candidate_process()
333 dl_list_del(&candidate->list); in rsn_preauth_candidate_process()
334 rsn_preauth_init(sm, candidate->bssid, in rsn_preauth_candidate_process()
336 os_free(candidate); in rsn_preauth_candidate_process()
341 MAC2STR(candidate->bssid)); in rsn_preauth_candidate_process()
345 wpa_sm_add_pmkid(sm, candidate->bssid, p->pmkid); in rsn_preauth_candidate_process()
[all …]
/external/junit/src/org/junit/experimental/theories/
DParameterSignature.java43 public boolean canAcceptType(Class<?> candidate) { in canAcceptType() argument
44 return type.isAssignableFrom(candidate); in canAcceptType()
75 Annotation candidate= findDeepAnnotation(each.annotationType() in findDeepAnnotation()
77 if (candidate != null) in findDeepAnnotation()
78 return annotationType.cast(candidate); in findDeepAnnotation()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/
DSyncSampleIntersectFinderImpl.java82 for (Track candidate : movie.getTracks()) { in sampleNumbers()
83 …if (candidate.getSyncSamples() != null && "vide".equals(candidate.getHandler()) && candidate.getSy… in sampleNumbers()
84 referenceTrack = candidate; in sampleNumbers()
131 for (Track candidate : movie.getTracks()) { in sampleNumbers()
132 if (candidate.getSyncSamples() != null && candidate.getSyncSamples().length > 0) { in sampleNumbers()
133 long[] refSyncSamples = sampleNumbers(candidate, movie); in sampleNumbers()
134 int refSampleCount = candidate.getSamples().size(); in sampleNumbers()
/external/owasp/sanitizer/empiricism/
Dhtml-containment.js303 var candidate = stack.shift();
304 if (isEnd(candidate.node)) {
305 var path = [candidate.node];
306 while (candidate.next) {
307 candidate = candidate.next;
308 path.push(candidate.node);
312 var adjacentNodes = adjacent(candidate.node);
316 for (var dupe = candidate; dupe; dupe = dupe.next) {
319 stack.push({ node: adjacentNode, next: candidate });
/external/ceres-solver/internal/ceres/
Dcanonical_views_clustering.cc70 double ComputeClusteringQualityDifference(const int candidate,
162 const int candidate, in ComputeClusteringQualityDifference() argument
166 options_.view_score_weight * graph_->VertexWeight(candidate); in ComputeClusteringQualityDifference()
171 const IntSet& neighbors = graph_->Neighbors(candidate); in ComputeClusteringQualityDifference()
177 const double new_similarity = graph_->EdgeWeight(*neighbor, candidate); in ComputeClusteringQualityDifference()
189 graph_->EdgeWeight(centers[i], candidate); in ComputeClusteringQualityDifference()
/external/dexmaker/src/mockito/java/com/google/dexmaker/mockito/
DDexmakerMockMaker.java103 public boolean isOut(StackTraceElement candidate) { in getStackTraceCleaner()
104 return defaultCleaner.isOut(candidate) in getStackTraceCleaner()
105 || candidate.getClassName().endsWith("_Proxy") // dexmaker class proxies in getStackTraceCleaner()
106 || candidate.getClassName().startsWith("$Proxy") // dalvik interface proxies in getStackTraceCleaner()
107 || candidate.getClassName().startsWith("com.google.dexmaker.mockito."); in getStackTraceCleaner()
/external/vogar/src/vogar/
DClassAnalyzer.java32 Method candidate = klass.getMethod(name, parameters); in hasMethod() local
33 int modifier = candidate.getModifiers(); in hasMethod()
34 Class<?> actualReturnType = candidate.getReturnType(); in hasMethod()
/external/clang/test/SemaObjCXX/
Darc-overloading.mm4 int &f0(id __strong const *); // expected-note{{candidate function not viable: 1st argument ('__wea…
39 int &f2(id __strong const *); // expected-note{{candidate function}}
40 float &f2(id __autoreleasing const *); // expected-note{{candidate function}}
58 int &f3(id __autoreleasing *); // expected-note{{candidate function not viable: 1st argument ('__un…
119 void f7(__strong id&); // expected-note{{candidate function not viable: 1st argument ('__weak id') …
120 …// expected-note{{candidate function not viable: 1st argument ('__autoreleasing id') has __autorel…
121 …// expected-note{{candidate function not viable: 1st argument ('__unsafe_unretained id') has __uns…
178 void f9790531(void *inClientData); // expected-note {{candidate function not viable: cannot implici…
179 void f9790531_1(struct S*inClientData); // expected-note {{candidate function not viable}}
180 void f9790531_2(char * inClientData); // expected-note {{candidate function not viable}}
/external/toybox/toys/pending/
Ddiff.c67 struct candidate { struct
69 struct candidate *prev, *next; argument
99 static int search (struct candidate **K, int r, int k, int j) in search()
105 if (((struct candidate*)(K[mid]))->b < j && in search()
106 ((struct candidate*)(K[mid + 1]))->b > j) in search()
109 if (((struct candidate*)(K[mid]))->b < j) low = mid + 1; in search()
110 else if (((struct candidate*)(K[mid]))->b > j) upper = mid - 1; in search()
118 static struct candidate * new_candidate (int i, int j, struct candidate* prev) in new_candidate()
120 struct candidate *c = xzalloc(sizeof(struct candidate)); in new_candidate()
129 static void free_candidates(struct candidate *c) in free_candidates()
[all …]
/external/nanohttpd/websocket/src/main/java/fi/iki/elonen/
DNanoWebSocketServer.java31 Response candidate = responseHandler.serve(session); in serve() local
32 return candidate == null ? super.serve(session) : candidate; in serve()
/external/v8/src/heap/
Dmark-compact.h432 static JSFunction** GetNextCandidateSlot(JSFunction* candidate) { in GetNextCandidateSlot() argument
434 HeapObject::RawField(candidate, JSFunction::kNextFunctionLinkOffset)); in GetNextCandidateSlot()
437 static JSFunction* GetNextCandidate(JSFunction* candidate) { in GetNextCandidate() argument
438 Object* next_candidate = candidate->next_function_link(); in GetNextCandidate()
442 static void SetNextCandidate(JSFunction* candidate, in SetNextCandidate() argument
444 candidate->set_next_function_link(next_candidate); in SetNextCandidate()
447 static void ClearNextCandidate(JSFunction* candidate, Object* undefined) { in ClearNextCandidate() argument
449 candidate->set_next_function_link(undefined, SKIP_WRITE_BARRIER); in ClearNextCandidate()
452 static SharedFunctionInfo* GetNextCandidate(SharedFunctionInfo* candidate) { in GetNextCandidate() argument
453 Object* next_candidate = candidate->code()->gc_metadata(); in GetNextCandidate()
[all …]
Dobjects-visiting.cc199 T* candidate = reinterpret_cast<T*>(list); in VisitWeakList() local
217 candidate = reinterpret_cast<T*>(retained); in VisitWeakList()
218 tail = candidate; in VisitWeakList()
224 WeakListVisitor<T>::VisitPhantomObject(heap, candidate); in VisitWeakList()
228 list = WeakListVisitor<T>::WeakNext(candidate); in VisitWeakList()
243 T* candidate = reinterpret_cast<T*>(list); in ClearWeakList() local
244 list = WeakListVisitor<T>::WeakNext(candidate); in ClearWeakList()
245 WeakListVisitor<T>::SetWeakNext(candidate, undefined); in ClearWeakList()

1234567