Home
last modified time | relevance | path

Searched refs:finder (Results 1 – 25 of 99) sorted by relevance

1234

/external/opencv/cvaux/src/
Dcvclique.cpp129 void cvStartFindCliques( CvGraph* graph, CvCliqueFinder* finder, int reverse, int weighted, int wei…
135 finder->weighted = 1;
136 finder->best_weight = 0;
137 finder->vertex_weights = (float*)malloc( sizeof(float)*(graph->total+1));
138 finder->cur_weight = (float*)malloc( sizeof(float)*(graph->total+1));
139 finder->cand_weight = (float*)malloc( sizeof(float)*(graph->total+1));
141 finder->cur_weight[0] = 0;
142 finder->cand_weight[0] = 0;
148 finder->vertex_weights[i] = ver->weight;
149 finder->cand_weight[0] += ver->weight;
[all …]
/external/droiddriver/src/io/appium/droiddriver/base/
DBaseDroidDriver.java40 public UiElement find(Finder finder) { in find() argument
41 Logs.call(Log.VERBOSE, this, "find", finder); in find()
42 return finder.find(getRootElement()); in find()
46 public boolean has(Finder finder) { in has() argument
49 find(finder); in has()
57 public boolean has(Finder finder, long timeoutMillis) { in has() argument
59 getPoller().pollFor(this, finder, Poller.EXISTS, timeoutMillis); in has()
67 public UiElement on(Finder finder) { in on() argument
68 Logs.call(this, "on", finder); in on()
69 return getPoller().pollFor(this, finder, Poller.EXISTS); in on()
[all …]
DDefaultPoller.java60 public <T> T pollFor(DroidDriver driver, Finder finder, ConditionChecker<T> checker) { in pollFor() argument
61 return pollFor(driver, finder, checker, timeoutMillis); in pollFor()
65 public <T> T pollFor(DroidDriver driver, Finder finder, ConditionChecker<T> checker, in pollFor() argument
78 return checker.check(driver, finder); in pollFor()
84 pollingListener.onPolling(driver, finder); in pollFor()
90 timeoutListener.onTimeout(driver, finder); in pollFor()
93 "Timed out after %d milliseconds waiting for %s %s", timeoutMillis, finder, checker)); in pollFor()
/external/testng/src/main/java/org/testng/internal/annotations/
DAnnotationHelper.java31 public static ITestAnnotation findTest(IAnnotationFinder finder, Class<?> cls) { in findTest() argument
32 return finder.findAnnotation(cls, ITestAnnotation.class); in findTest()
35 public static ITestAnnotation findTest(IAnnotationFinder finder, Method m) { in findTest() argument
36 return finder.findAnnotation(m, ITestAnnotation.class); in findTest()
39 public static ITestAnnotation findTest(IAnnotationFinder finder, ITestNGMethod m) { in findTest() argument
40 return finder.findAnnotation(m, ITestAnnotation.class); in findTest()
43 public static IFactoryAnnotation findFactory(IAnnotationFinder finder, Method m) { in findFactory() argument
44 return finder.findAnnotation(m, IFactoryAnnotation.class); in findFactory()
47 public static IFactoryAnnotation findFactory(IAnnotationFinder finder, Constructor c) { in findFactory() argument
48 return finder.findAnnotation(c, IFactoryAnnotation.class); in findFactory()
[all …]
/external/droiddriver/src/io/appium/droiddriver/
DPoller.java34 void onTimeout(DroidDriver driver, Finder finder); in onTimeout() argument
44 void onPolling(DroidDriver driver, Finder finder); in onPolling() argument
76 T check(DroidDriver driver, Finder finder) throws UnsatisfiedConditionException; in check() argument
89 public UiElement check(DroidDriver driver, Finder finder) throws UnsatisfiedConditionException {
91 return driver.find(finder);
108 public Void check(DroidDriver driver, Finder finder) throws UnsatisfiedConditionException {
111 driver.find(finder);
130 <T> T pollFor(DroidDriver driver, Finder finder, ConditionChecker<T> checker); in pollFor() argument
138 <T> T pollFor(DroidDriver driver, Finder finder, ConditionChecker<T> checker, long timeoutMillis); in pollFor() argument
DDroidDriver.java31 boolean has(Finder finder); in has() argument
56 boolean has(Finder finder, long timeoutMillis); in has() argument
67 UiElement on(Finder finder); in on() argument
79 UiElement find(Finder finder); in find() argument
96 void checkExists(Finder finder); in checkExists() argument
106 void checkGone(Finder finder); in checkGone() argument
/external/droiddriver/src/io/appium/droiddriver/exceptions/
DElementNotFoundException.java26 public ElementNotFoundException(Finder finder) { in ElementNotFoundException() argument
27 super(failMessage(finder)); in ElementNotFoundException()
30 public ElementNotFoundException(Finder finder, Throwable cause) { in ElementNotFoundException() argument
31 super(failMessage(finder), cause); in ElementNotFoundException()
42 protected static String failMessage(Finder finder) { in failMessage() argument
43 return "Could not find any element matching " + finder; in failMessage()
/external/mockito/src/org/mockito/internal/verification/checkers/
DMissingInvocationInOrderChecker.java22 private final InvocationsFinder finder; field in MissingInvocationInOrderChecker
28 MissingInvocationInOrderChecker(InvocationsFinder finder, Reporter reporter) { in MissingInvocationInOrderChecker() argument
29 this.finder = finder; in MissingInvocationInOrderChecker()
34 … List<Invocation> chunk = finder.findAllMatchingUnverifiedChunks(invocations, wanted, context); in check()
40 Invocation previousInOrder = finder.findPreviousVerifiedInOrder(invocations, context); in check()
49 List<Invocation> actualInvocations = finder.findInvocations(invocations, wanted); in check()
51 Invocation similar = finder.findSimilarInvocation(invocations, wanted); in check()
DMissingInvocationChecker.java20 private final InvocationsFinder finder; field in MissingInvocationChecker
26 MissingInvocationChecker(InvocationsFinder finder, Reporter reporter) { in MissingInvocationChecker() argument
27 this.finder = finder; in MissingInvocationChecker()
32 List<Invocation> actualInvocations = finder.findInvocations(invocations, wanted); in check()
35 Invocation similar = finder.findSimilarInvocation(invocations, wanted); in check()
DNumberOfInvocationsChecker.java21 private final InvocationsFinder finder; field in NumberOfInvocationsChecker
28 NumberOfInvocationsChecker(Reporter reporter, InvocationsFinder finder) { in NumberOfInvocationsChecker() argument
30 this.finder = finder; in NumberOfInvocationsChecker()
34 List<Invocation> actualInvocations = finder.findInvocations(invocations, wanted); in check()
38 Location lastInvocation = finder.getLastLocation(actualInvocations); in check()
DNumberOfInvocationsInOrderChecker.java22 private final InvocationsFinder finder; field in NumberOfInvocationsInOrderChecker
29 NumberOfInvocationsInOrderChecker(InvocationsFinder finder, Reporter reporter) { in NumberOfInvocationsInOrderChecker() argument
30 this.finder = finder; in NumberOfInvocationsInOrderChecker()
35 … List<Invocation> chunk = finder.findMatchingChunk(invocations, wanted, wantedCount, context); in check()
40 Location lastInvocation = finder.getLastLocation(chunk); in check()
DNonGreedyNumberOfInvocationsInOrderChecker.java21 private final InvocationsFinder finder; field in NonGreedyNumberOfInvocationsInOrderChecker
29 …NonGreedyNumberOfInvocationsInOrderChecker(InvocationsFinder finder, Reporter reporter, Invocation… in NonGreedyNumberOfInvocationsInOrderChecker() argument
30 this.finder = finder; in NonGreedyNumberOfInvocationsInOrderChecker()
39 … Invocation next = finder.findFirstMatchingUnverifiedInvocation( invocations, wanted, context ); in check()
/external/testng/src/main/java/org/testng/internal/
DExpectedExceptionsHolder.java14 protected final IAnnotationFinder finder; field in ExpectedExceptionsHolder
19 …protected ExpectedExceptionsHolder(IAnnotationFinder finder, ITestNGMethod method, IExpectedExcept… in ExpectedExceptionsHolder() argument
20 this.finder = finder; in ExpectedExceptionsHolder()
22 expectedClasses = findExpectedClasses(finder, method); in ExpectedExceptionsHolder()
26 private static Class<?>[] findExpectedClasses(IAnnotationFinder finder, ITestNGMethod method) { in findExpectedClasses() argument
28 finder.findAnnotation(method, IExpectedExceptionsAnnotation.class); in findExpectedClasses()
35 ITestAnnotation testAnnotation = finder.findAnnotation(method, ITestAnnotation.class); in findExpectedClasses()
DParameters.java50 IAnnotationFinder finder, in createInstantiationParameters() argument
55 finder.findOptionalValues(ctor), methodAnnotation, finder, parameterNames, in createInstantiationParameters()
72 IAnnotationFinder finder, in createConfigurationParameters() argument
89 finder, xmlSuite, IConfigurationAnnotation.class, "@Configuration"); in createConfigurationParameters()
120 IAnnotationFinder finder, in createParameters() argument
250 … IAnnotationFinder finder, ITestContext context) { in findDataProvider() argument
253 IDataProvidable dp = findDataProviderInfo(clazz, m, finder); in findDataProvider()
259 … result = findDataProvider(instance, clazz, finder, dataProviderName, dataProviderClass, context); in findDataProvider()
277 IAnnotationFinder finder) { in findDataProviderInfo() argument
284 result = AnnotationHelper.findTest(finder, m.getMethod()); in findDataProviderInfo()
[all …]
DRegexpExpectedExceptionsHolder.java18 private final IAnnotationFinder finder; field in RegexpExpectedExceptionsHolder
21 public RegexpExpectedExceptionsHolder(IAnnotationFinder finder, ITestNGMethod method) { in RegexpExpectedExceptionsHolder() argument
22 this.finder = finder; in RegexpExpectedExceptionsHolder()
51 finder.findAnnotation(method, IExpectedExceptionsAnnotation.class); in getRegExp()
58 ITestAnnotation testAnnotation = finder.findAnnotation(method, ITestAnnotation.class); in getRegExp()
DConfiguration.java25 public Configuration(IAnnotationFinder finder) { in Configuration() argument
26 init(finder); in Configuration()
29 private void init(IAnnotationFinder finder) { in init() argument
30 m_annotationFinder = finder; in init()
39 public void setAnnotationFinder(IAnnotationFinder finder) { in setAnnotationFinder() argument
40 m_annotationFinder = finder; in setAnnotationFinder()
DClassHelper.java137 IAnnotationFinder finder) { in findDeclaredFactoryMethod() argument
141 IFactoryAnnotation f = finder.findAnnotation(method, IFactoryAnnotation.class); in findDeclaredFactoryMethod()
152 IAnnotation f = finder.findAnnotation(constructor, IFactoryAnnotation.class); in findDeclaredFactoryMethod()
286 IAnnotationFinder finder, in createInstance() argument
290 return createInstance1(declaringClass, classes, xmlTest, finder, in createInstance()
306 IAnnotationFinder finder, in createInstance1() argument
315 Constructor<?> constructor = findAnnotatedConstructor(finder, declaringClass); in createInstance1()
317 …IParametersAnnotation annotation = finder.findAnnotation(constructor, IParametersAnnotation.class); in createInstance1()
322 finder, in createInstance1()
430 private static Constructor<?> findAnnotatedConstructor(IAnnotationFinder finder, in findAnnotatedConstructor() argument
[all …]
DMethodHelper.java48 boolean forTests, RunInfo runInfo, IAnnotationFinder finder, in collectAndOrderMethods() argument
57 finder, in collectAndOrderMethods() local
60 return sortMethods(forTests, includedMethods, finder).toArray(new ITestNGMethod[]{}); in collectAndOrderMethods()
158 protected static boolean isEnabled(Class<?> objectClass, IAnnotationFinder finder) { in isEnabled() argument
159 ITestAnnotation testClassAnnotation = AnnotationHelper.findTest(finder, objectClass); in isEnabled()
163 protected static boolean isEnabled(Method m, IAnnotationFinder finder) { in isEnabled() argument
164 ITestAnnotation annotation = AnnotationHelper.findTest(finder, m); in isEnabled()
168 annotation = AnnotationHelper.findTest(finder, m.getDeclaringClass()); in isEnabled()
271 List<ITestNGMethod> allMethods, IAnnotationFinder finder) { in sortMethods() argument
/external/mockito/src/org/mockito/internal/debugging/
DWarningsPrinterImpl.java17 private WarningsFinder finder; field in WarningsPrinterImpl
27 WarningsPrinterImpl(boolean warnAboutUnstubbed, WarningsFinder finder) { in WarningsPrinterImpl() argument
29 this.finder = finder; in WarningsPrinterImpl()
33 finder.find(new LoggingListener(warnAboutUnstubbed, logger)); in print()
/external/pdfium/testing/tools/
Drun_pixel_tests.py61 finder = common.DirectoryFinder(options.build_dir)
62 fixup_path = finder.ScriptPath('fixup_pdf_template.py')
63 source_dir = finder.TestingDir(os.path.join('resources', 'pixel'))
64 pdfium_test_path = finder.ExecutablePath('pdfium_test')
69 working_dir = finder.WorkingDir(os.path.join('testing', 'pixel'))
73 test_suppressor = suppressor.Suppressor(finder)
74 image_differ = pngdiffer.PNGDiffer(finder)
Drun_javascript_tests.py53 finder = common.DirectoryFinder(options.build_dir)
54 fixup_path = finder.ScriptPath('fixup_pdf_template.py')
55 text_diff_path = finder.ScriptPath('text_diff.py')
56 source_dir = finder.TestingDir(os.path.join('resources', 'javascript'))
57 pdfium_test_path = finder.ExecutablePath('pdfium_test')
62 working_dir = finder.WorkingDir(os.path.join('testing', 'javascript'))
Drun_corpus_tests.py95 finder = common.DirectoryFinder(options.build_dir)
96 pdfium_test_path = finder.ExecutablePath('pdfium_test')
101 working_dir = finder.WorkingDir(os.path.join('testing', 'corpus'))
105 test_suppressor = suppressor.Suppressor(finder)
106 image_differ = pngdiffer.PNGDiffer(finder)
111 walk_from_dir = finder.TestingDir('corpus');
/external/guice/extensions/persist/src/com/google/inject/persist/finder/
DDynamicFinder.java17 package com.google.inject.persist.finder;
28 private final Finder finder; field in DynamicFinder
32 this.finder = method.getAnnotation(Finder.class); in DynamicFinder()
45 return finder; in metadata()
/external/guice/extensions/persist/src/com/google/inject/persist/jpa/
DJpaPersistModule.java28 import com.google.inject.persist.finder.DynamicFinder;
29 import com.google.inject.persist.finder.Finder;
77 for (Class<?> finder : dynamicFinders) { in configurePersistence()
78 bindFinder(finder); in configurePersistence()
173 DynamicFinder finder = DynamicFinder.from(method); in isDynamicFinderValid() local
174 if (null == finder) { in isDynamicFinderValid()
/external/autotest/server/site_tests/display_ServerChameleonConnection/
Ddisplay_ServerChameleonConnection.py30 finder = chameleon_port_finder.ChameleonVideoInputFinder(
32 ports = finder.find_all_ports()
37 msg = str(finder)

1234