Home
last modified time | relevance | path

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

12345678910>>...21

/external/v8/src/compiler/
Djs-inlining-heuristic.cc93 Candidate candidate; in Reduce() local
94 candidate.node = node; in Reduce()
95 candidate.num_functions = CollectFunctions( in Reduce()
96 callee, candidate.functions, kMaxCallPolymorphism, candidate.shared_info); in Reduce()
97 if (candidate.num_functions == 0) { in Reduce()
99 } else if (candidate.num_functions > 1 && !FLAG_polymorphic_inlining) { in Reduce()
108 candidate.total_size = 0; in Reduce()
112 for (int i = 0; i < candidate.num_functions; ++i) { in Reduce()
114 candidate.functions[i].is_null() in Reduce()
115 ? candidate.shared_info in Reduce()
[all …]
Dinstruction-scheduler.cc31 auto candidate = nodes_.end(); in PopBestCandidate() local
35 candidate = iterator; in PopBestCandidate()
40 if (candidate != nodes_.end()) { in PopBestCandidate()
41 ScheduleGraphNode *result = *candidate; in PopBestCandidate()
42 nodes_.erase(candidate); in PopBestCandidate()
54 auto candidate = nodes_.begin(); in PopBestCandidate() local
55 std::advance(candidate, isolate()->random_number_generator()->NextInt( in PopBestCandidate()
57 ScheduleGraphNode *result = *candidate; in PopBestCandidate()
58 nodes_.erase(candidate); in PopBestCandidate()
224 ScheduleGraphNode* candidate = ready_list.PopBestCandidate(cycle); in ScheduleBlock() local
[all …]
/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/
DPhoneNumberMatcher.java253 CharSequence candidate = text.subSequence(start, matcher.end()); in find() local
258 candidate = trimAfterFirstMatch(PhoneNumberUtil.SECOND_NUMBER_START_PATTERN, candidate); in find()
260 PhoneNumberMatch match = extractMatch(candidate, start); in find()
265 index = start + candidate.length(); in find()
276 private static CharSequence trimAfterFirstMatch(Pattern pattern, CharSequence candidate) { in trimAfterFirstMatch() argument
277 Matcher trailingCharsMatcher = pattern.matcher(candidate); in trimAfterFirstMatch()
279 candidate = candidate.subSequence(0, trailingCharsMatcher.start()); in trimAfterFirstMatch()
281 return candidate; in trimAfterFirstMatch()
315 private PhoneNumberMatch extractMatch(CharSequence candidate, int offset) { in extractMatch() argument
317 if (SLASH_SEPARATED_DATES.matcher(candidate).find()) { in extractMatch()
[all …]
/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/junit/src/main/java/org/junit/experimental/theories/
DParameterSignature.java66 public boolean canAcceptValue(Object candidate) { in canAcceptValue() argument
67 return (candidate == null) ? !type.isPrimitive() : canAcceptType(candidate.getClass()); in canAcceptValue()
70 public boolean canAcceptType(Class<?> candidate) { in canAcceptType() argument
71 return type.isAssignableFrom(candidate) || in canAcceptType()
72 isAssignableViaTypeConversion(type, candidate); in canAcceptType()
75 public boolean canPotentiallyAcceptType(Class<?> candidate) { in canPotentiallyAcceptType() argument
76 return candidate.isAssignableFrom(type) || in canPotentiallyAcceptType()
77 isAssignableViaTypeConversion(candidate, type) || in canPotentiallyAcceptType()
78 canAcceptType(candidate); in canPotentiallyAcceptType()
81 private boolean isAssignableViaTypeConversion(Class<?> targetType, Class<?> candidate) { in isAssignableViaTypeConversion() argument
[all …]
/external/syzkaller/syz-fuzzer/
Dworkqueue.go20 candidate []*WorkCandidate member
82 wq.candidate = append(wq.candidate, item)
92 if len(wq.triageCandidate)+len(wq.candidate)+len(wq.triage)+len(wq.smash) == 0 {
103 } else if len(wq.candidate) != 0 {
104 last := len(wq.candidate) - 1
105 item = wq.candidate[last]
106 wq.candidate = wq.candidate[:last]
107 wantCandidates = len(wq.candidate) < wq.procs
130 return len(wq.candidate) < wq.procs
/external/webrtc/talk/app/webrtc/
Djsepsessiondescription.cc120 const IceCandidateInterface* candidate) { in AddCandidate() argument
121 if (!candidate || candidate->sdp_mline_index() < 0) in AddCandidate()
124 if (!GetMediasectionIndex(candidate, &mediasection_index)) { in AddCandidate()
137 cricket::Candidate updated_candidate = candidate->candidate(); in AddCandidate()
146 new JsepIceCandidate(candidate->sdp_mid(), in AddCandidate()
178 const IceCandidateInterface* candidate, in GetMediasectionIndex() argument
180 if (!candidate || !index) { in GetMediasectionIndex()
183 *index = static_cast<size_t>(candidate->sdp_mline_index()); in GetMediasectionIndex()
184 if (description_ && !candidate->sdp_mid().empty()) { in GetMediasectionIndex()
188 if (candidate->sdp_mid() == description_->contents().at(i).name) { in GetMediasectionIndex()
Djsepicecandidate.cc57 const cricket::Candidate& candidate) in JsepIceCandidate() argument
60 candidate_(candidate) { in JsepIceCandidate()
85 const IceCandidateInterface* candidate) const { in HasCandidate()
89 if ((*it)->sdp_mid() == candidate->sdp_mid() && in HasCandidate()
90 (*it)->sdp_mline_index() == candidate->sdp_mline_index() && in HasCandidate()
91 (*it)->candidate().IsEquivalent(candidate->candidate())) { in HasCandidate()
Djsepicecandidate.h45 const cricket::Candidate& candidate);
49 void SetCandidate(const cricket::Candidate& candidate) { in SetCandidate() argument
50 candidate_ = candidate; in SetCandidate()
55 virtual const cricket::Candidate& candidate() const { in candidate() function
77 virtual bool HasCandidate(const IceCandidateInterface* candidate) const;
79 virtual void add(JsepIceCandidate* candidate) { in add() argument
80 candidates_.push_back(candidate); in add()
/external/mockito/src/main/java/org/mockito/internal/invocation/
DInvocationMatcher.java80 public boolean matches(Invocation candidate) { in matches() argument
81 …return invocation.getMock().equals(candidate.getMock()) && hasSameMethod(candidate) && argumentsMa… in matches()
88 public boolean hasSimilarMethod(Invocation candidate) { in hasSimilarMethod() argument
90 String candidateMethodName = candidate.getMethod().getName(); in hasSimilarMethod()
95 if (candidate.isVerified()) { in hasSimilarMethod()
98 if (getInvocation().getMock() != candidate.getMock()) { in hasSimilarMethod()
101 if (hasSameMethod(candidate)) { in hasSimilarMethod()
105 return !argumentsMatch(candidate); in hasSimilarMethod()
109 public boolean hasSameMethod(Invocation candidate) { in hasSameMethod() argument
113 Method m2 = candidate.getMethod(); in hasSameMethod()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/
DPrimes.java150 …public static MROutput enhancedMRProbablePrimeTest(BigInteger candidate, SecureRandom random, int … in enhancedMRProbablePrimeTest() argument
152 checkCandidate(candidate, "candidate"); in enhancedMRProbablePrimeTest()
163 if (candidate.bitLength() == 2) in enhancedMRProbablePrimeTest()
167 if (!candidate.testBit(0)) in enhancedMRProbablePrimeTest()
172 BigInteger w = candidate; in enhancedMRProbablePrimeTest()
173 BigInteger wSubOne = candidate.subtract(ONE); in enhancedMRProbablePrimeTest()
174 BigInteger wSubTwo = candidate.subtract(TWO); in enhancedMRProbablePrimeTest()
253 public static boolean hasAnySmallFactors(BigInteger candidate) in hasAnySmallFactors() argument
255 checkCandidate(candidate, "candidate"); in hasAnySmallFactors()
257 return implHasAnySmallFactors(candidate); in hasAnySmallFactors()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/
DPrimes.java154 …public static MROutput enhancedMRProbablePrimeTest(BigInteger candidate, SecureRandom random, int … in enhancedMRProbablePrimeTest() argument
156 checkCandidate(candidate, "candidate"); in enhancedMRProbablePrimeTest()
167 if (candidate.bitLength() == 2) in enhancedMRProbablePrimeTest()
171 if (!candidate.testBit(0)) in enhancedMRProbablePrimeTest()
176 BigInteger w = candidate; in enhancedMRProbablePrimeTest()
177 BigInteger wSubOne = candidate.subtract(ONE); in enhancedMRProbablePrimeTest()
178 BigInteger wSubTwo = candidate.subtract(TWO); in enhancedMRProbablePrimeTest()
257 public static boolean hasAnySmallFactors(BigInteger candidate) in hasAnySmallFactors() argument
259 checkCandidate(candidate, "candidate"); in hasAnySmallFactors()
261 return implHasAnySmallFactors(candidate); in hasAnySmallFactors()
[all …]
/external/skqp/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/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/tensorflow/tensorflow/python/framework/
Dregistry_test.py39 def testRegistryBasics(self, candidate): argument
43 myreg.register(candidate)
44 self.assertEqual(myreg.lookup(candidate.__name__), candidate)
45 myreg.register(candidate, 'testKey')
46 self.assertEqual(myreg.lookup('testKey'), candidate)
48 sorted(myreg.list()), sorted(['testKey', candidate.__name__]))
/external/webrtc/webrtc/api/objc/
DRTCIceCandidate.mm45 (webrtc::IceCandidateInterface *)candidate {
46 NSParameterAssert(candidate);
48 candidate->ToString(&sdp);
51 sdpMLineIndex:candidate->sdp_mline_index()
52 sdpMid:[NSString stringForStdString:candidate->sdp_mid()]];
58 webrtc::IceCandidateInterface *candidate = webrtc::CreateIceCandidate(
61 if (!candidate) {
62 RTCLog(@"Failed to create ICE candidate: %s\nline: %s",
67 return rtc::scoped_ptr<webrtc::IceCandidateInterface>(candidate);
/external/clang/include/clang/Sema/
DTypoCorrection.h276 virtual bool ValidateCandidate(const TypoCorrection &candidate);
284 virtual unsigned RankCandidate(const TypoCorrection &candidate) { in RankCandidate() argument
285 return (!MatchesTypo(candidate) && ValidateCandidate(candidate)) in RankCandidate()
308 bool MatchesTypo(const TypoCorrection &candidate) { in MatchesTypo() argument
309 return Typo && candidate.isResolved() && !candidate.requiresImport() && in MatchesTypo()
310 candidate.getCorrectionAsIdentifierInfo() == Typo && in MatchesTypo()
313 candidate.getCorrectionSpecifier() == TypoNNS; in MatchesTypo()
325 bool ValidateCandidate(const TypoCorrection &candidate) override { in ValidateCandidate() argument
326 return candidate.getCorrectionDeclAs<C>(); in ValidateCandidate()
339 bool ValidateCandidate(const TypoCorrection &candidate) override;
[all …]
/external/deqp-deps/glslang/glslang/MachineIndependent/
DParseContextBase.cpp380 const TFunction& candidate = *(*it); in selectFunction() local
384 if (call.getParamCount() < candidate.getFixedParamCount() || in selectFunction()
385 call.getParamCount() > candidate.getParamCount()) in selectFunction()
392 const int paramCount = std::min(call.getParamCount(), candidate.getParamCount()); in selectFunction()
394 if (candidate[param].type->getQualifier().isParamInput()) { in selectFunction()
395 … if (! convertible(*call[param].type, *candidate[param].type, candidate.getBuiltInOp(), param)) { in selectFunction()
400 if (candidate[param].type->getQualifier().isParamOutput()) { in selectFunction()
401 … if (! convertible(*candidate[param].type, *call[param].type, candidate.getBuiltInOp(), param)) { in selectFunction()
409 viableCandidates.push_back(&candidate); in selectFunction()
445 const TFunction& candidate = *(*it); in selectFunction() local
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/Sparc/
DDelaySlotFiller.cpp62 MachineBasicBlock::iterator candidate);
74 bool delayHasHazard(MachineBasicBlock::iterator candidate,
187 bool Filler::delayHasHazard(MachineBasicBlock::iterator candidate, in delayHasHazard() argument
194 if (candidate->isImplicitDef() || candidate->isKill()) in delayHasHazard()
197 if (candidate->getDesc().mayLoad()) { in delayHasHazard()
203 if (candidate->getDesc().mayStore()) { in delayHasHazard()
211 for (unsigned i = 0, e = candidate->getNumOperands(); i!= e; ++i) { in delayHasHazard()
212 const MachineOperand &MO = candidate->getOperand(i); in delayHasHazard()
295 MachineBasicBlock::iterator candidate) in isDelayFiller() argument
297 if (candidate == MBB.begin()) in isDelayFiller()
[all …]
/external/v8/src/
Dversion.cc30 const char* candidate = IsCandidate() ? " (candidate)" : ""; in GetString() local
33 GetPatch(), GetEmbedder(), candidate); in GetString()
36 GetEmbedder(), candidate); in GetString()
45 const char* candidate = IsCandidate() ? "-candidate" : ""; in GetSONAME() local
48 GetBuild(), GetPatch(), GetEmbedder(), candidate); in GetSONAME()
51 GetEmbedder(), candidate); in GetSONAME()
/external/webrtc/webrtc/tools/loopback_test/
Dloopback_test.js41 pc.addIceCandidate = function (candidate, successCallback, argument
43 if (forceTurn && candidate.candidate.indexOf("typ relay ") == -1) {
44 trace("Dropping non-turn candidate: " + candidate.candidate);
48 origAddIceCandidate.call(this, candidate, successCallback,
158 if (e.candidate) {
159 this.addIceCandidate(new RTCIceCandidate(e.candidate),
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_AllCandidateSampler.pbtxt14 the ID of a sampled candidate.
21 the number of times each candidate is expected to occur in a batch
29 candidate representing the number of times the candidate is expected
68 summary: "Generates labels for candidate sampling with a learned unigram distribution."
70 See explanations of candidate sampling and the data formats at
71 go/candidate-sampling.
73 For each batch, this op picks a single set of sampled candidate labels.
/external/desugar/java/com/google/devtools/common/options/
DGenericTypeHelper.java91 Type candidate = matchTypeVariable(type, variable); in getActualReturnType() local
92 if (candidate != null) { in getActualReturnType()
93 return candidate; in getActualReturnType()
98 candidate = matchTypeVariable(interfaceType, variable); in getActualReturnType()
99 if (candidate != null) { in getActualReturnType()
100 return candidate; in getActualReturnType()
/external/swiftshader/third_party/LLVM/lib/Target/MBlaze/
DMBlazeDelaySlotFiller.cpp67 static bool hasImmInstruction(MachineBasicBlock::iterator &candidate) { in hasImmInstruction() argument
70 unsigned numOper = candidate->getNumOperands(); in hasImmInstruction()
72 MachineOperand &mop = candidate->getOperand(op); in hasImmInstruction()
107 static bool delayHasHazard(MachineBasicBlock::iterator &candidate, in delayHasHazard() argument
110 MachineBasicBlock::iterator a = candidate; in delayHasHazard()
112 MCInstrDesc desc = candidate->getDesc(); in delayHasHazard()
182 MachineBasicBlock::iterator candidate) { in isDelayFiller() argument
183 if (candidate == MBB.begin()) in isDelayFiller()
186 MCInstrDesc brdesc = (--candidate)->getDesc(); in isDelayFiller()

12345678910>>...21