/external/webrtc/webrtc/base/ |
asyncinvoker.h | 33 // invocation and execution of the functor. AsyncInvoker is designed to 74 // Call |functor| asynchronously on |thread|, with no callback upon 77 void AsyncInvoke(Thread* thread, const FunctorT& functor, uint32_t id = 0) { 79 new RefCountedObject<FireAndForgetAsyncClosure<FunctorT> >(functor)); 83 // Call |functor| asynchronously on |thread| with |delay_ms|, with no callback 87 const FunctorT& functor, 91 new RefCountedObject<FireAndForgetAsyncClosure<FunctorT> >(functor)); 95 // Call |functor| asynchronously on |thread|, calling |callback| when done. 98 const FunctorT& functor, 104 this, Thread::Current(), functor, callback, callback_host)) [all...] |
callback.h | 75 template <class T> Callback0(const T& functor) 76 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {} 90 explicit HelperImpl(const T& functor) : functor_(functor) {} 105 template <class T> Callback1(const T& functor) 106 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {} 120 explicit HelperImpl(const T& functor) : functor_(functor) {} 136 template <class T> Callback2(const T& functor) 137 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {} [all...] |
messagehandler.h | 37 // Helper class to facilitate executing a functor on a thread. 41 explicit FunctorMessageHandler(const FunctorT& functor) 42 : functor_(functor) {} 58 explicit FunctorMessageHandler(const FunctorT& functor) : functor_(functor) {} 71 explicit FunctorMessageHandler(const FunctorT& functor) 72 : functor_(functor) {}
|
asyncinvoker-inl.h | 43 explicit FireAndForgetAsyncClosure(const FunctorT& functor) 44 : functor_(functor) {} 84 const FunctorT& functor, 88 functor_(functor), 112 const FunctorT& functor, 116 functor_(functor) {
|
callback.h.pump | 76 template <class T> Callback$i(const T& functor) 77 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {} 91 explicit HelperImpl(const T& functor) : functor_(functor) {}
|
bind_unittest.cc | 168 auto functor = Bind(&LifeTimeCheck::NullaryVoid, &object); local 184 auto functor = Bind(&LifeTimeCheck::NullaryVoid, scoped_object); local 192 // Test Bind where method object is captured as scoped_refptr<> and the functor 213 auto functor = local 234 auto functor = Bind(&Ref, x); local 235 EXPECT_NE(&x, functor());
|
/frameworks/base/libs/hwui/ |
GlFunctorLifecycleListener.h | 19 #include <utils/Functor.h> 28 virtual void onGlFunctorReleased(Functor* functor) = 0;
|
AnimatorManager.cpp | 148 AnimateFunctor functor(info, mAnimationHandle->context(), &dirtyMask); 149 auto newEnd = std::remove_if(mAnimators.begin(), mAnimators.end(), functor); 186 EndActiveAnimatorsFunctor functor(mAnimationHandle->context()); 187 for_each(mAnimators.begin(), mAnimators.end(), functor);
|
DisplayList.cpp | 76 iter.listener->onGlFunctorReleased(iter.functor); 95 (*iter.functor)(DrawGlInfo::kModeSync, nullptr);
|
/frameworks/base/libs/hwui/tests/unit/ |
CanvasContextTests.cpp | 47 TestUtils::MockFunctor functor; local 48 CanvasContext::invokeFunctor(renderThread, &functor); 51 ASSERT_EQ(functor.getLastMode(), DrawGlInfo::kModeProcessNoContext); 53 ASSERT_EQ(functor.getLastMode(), DrawGlInfo::kModeProcess);
|
/external/libchrome/base/ |
bind.h | 27 template <typename Functor, typename... Args> 28 inline base::Callback<MakeUnboundRunType<Functor, Args...>> Bind( 29 Functor&& functor, 31 using BindState = internal::MakeBindStateType<Functor, Args...>; 32 using UnboundRunType = MakeUnboundRunType<Functor, Args...>; 36 return CallbackType(new BindState(std::forward<Functor>(functor),
|
bind_internal.h | 28 // Functor -- A movable type representing something that should be called. 39 // invocation manner for a Functor. This is where function 41 // InvokeHelper<> -- Take a Functor + arguments and actully invokes it. 45 // Invoker<> -- Unwraps the curried parameters and executes the Functor. 81 // IsConvertibleToRunType<Functor> is std::true_type if |Functor| has operator() 96 template <typename Functor, typename SFINAE = void> 133 template <typename Functor, typename SFINAE = void> 140 template <typename Functor> 142 Functor, [all...] |
/frameworks/base/libs/hwui/pipeline/skia/ |
GLFunctorDrawable.h | 23 #include <utils/Functor.h> 33 * This drawable wraps a OpenGL functor enabling it to be recorded into a list 38 GLFunctorDrawable(Functor* functor, GlFunctorLifecycleListener* listener, SkCanvas* canvas) 39 : mFunctor(functor) 52 Functor* mFunctor;
|
SkiaDisplayList.cpp | 32 for (auto& functor : mChildFunctors) { 33 functor.syncFunctor();
|
SkiaOpenGLPipeline.h | 52 static void invokeFunctor(const renderthread::RenderThread& thread, Functor* functor);
|
SkiaVulkanPipeline.h | 50 static void invokeFunctor(const renderthread::RenderThread& thread, Functor* functor);
|
/test/vts/utils/python/retry/ |
retry.py | 19 def GenericRetry(handler, max_retry, functor, 24 To retry based on the return value of |functor| see the timeout_util module. 33 handler: A functor invoked w/ the exception instance that 34 functor(*args, **kwargs) threw. If it returns True, then a 39 functor: A callable to pass args and kwargs to. 46 success_functor: Optional functor that accepts 1 argument. Will be called 47 after successful call to |functor|, with the argument 48 being the number of attempts (1 = |functor| succeeded on 55 *args: Positional args passed to functor. 56 **kwargs: Optional args passed to functor [all...] |
/external/eigen/unsupported/test/ |
NumericalDiff.cpp | 11 // Generic functor 13 struct Functor 26 Functor() : m_inputs(InputsAtCompileTime), m_values(ValuesAtCompileTime) {} 27 Functor(int inputs, int values) : m_inputs(inputs), m_values(values) {} 34 struct my_functor : Functor<double> 36 my_functor(void): Functor<double>(3,15) {} 75 my_functor functor; local 80 functor.actual_df(x, actual_jac); 84 NumericalDiff<my_functor> numDiff(functor); 96 my_functor functor; local [all...] |
NonLinearOptimization.cpp | 106 // Generic functor 108 struct Functor 121 Functor() : m_inputs(InputsAtCompileTime), m_values(ValuesAtCompileTime) {} 122 Functor(int inputs, int values) : m_inputs(inputs), m_values(values) {} 131 struct lmder_functor : Functor<double> 133 lmder_functor(void): Functor<double>(3,15) {} 177 lmder_functor functor; local 178 LevenbergMarquardt<lmder_functor> lm(functor); 206 lmder_functor functor; local 207 LevenbergMarquardt<lmder_functor> lm(functor); 291 hybrj_functor functor; local 324 hybrj_functor functor; local 380 hybrd_functor functor; local 407 hybrd_functor functor; local 482 lmstr_functor functor; local 511 lmstr_functor functor; local 567 lmdif_functor functor; local 597 lmdif_functor functor; local 683 chwirut2_functor functor; local 763 misra1a_functor functor; local 853 hahn1_functor functor; local 939 misra1d_functor functor; local 1017 lanczos1_functor functor; local 1105 rat42_functor functor; local 1183 MGH10_functor functor; local 1259 BoxBOD_functor functor; local 1341 MGH17_functor functor; local 1435 MGH09_functor functor; local 1521 Bennett5_functor functor; local 1608 thurber_functor functor; local 1700 rat43_functor functor; local 1787 eckerle4_functor functor; local [all...] |
/external/skia/include/private/ |
SkTSearch.h | 34 // The most general form of SkTSearch takes an array of T and a key of type K. A functor, less, is 71 // Adapts a less-than function to a functor. 76 // Specialization for case when T==K and the caller wants to use a function rather than functor. 79 static SkTLessFunctionToFunctorAdaptor<T, LESS> functor; local 80 return SkTSearch(base, count, target, elemSize, functor); 83 // Adapts operator < to a functor. 91 static SkTLessFunctor<T> functor; local 92 return SkTSearch(base, count, target, elemSize, functor); 95 // Similar to SkLessFunctionToFunctorAdaptor but makes the functor interface take T* rather than T. 104 static SkTLessFunctionToPtrFunctorAdaptor<T, LESS> functor; local [all...] |
/tools/repohooks/rh/ |
shell_unittest.py | 47 def _testData(self, functor, tests, check_type=True): 50 result = functor(test_input) 51 self._assertEqual(functor.__name__, test_input, test_output, result)
|
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
TensorReductionSycl.h | 144 Op functor = reducer; local 156 const auto device_self_expr= TensorReductionOp<Op, Dims, decltype(device_expr.expr) ,MakeGlobalPointer>(device_expr.expr, dims, functor); 164 tmp_global_accessor.get_pointer()[globalid]=InnerMostDimReducer<decltype(device_self_evaluator), Op, false>::reduce(device_self_evaluator, red_factor*globalid, red_factor, const_cast<Op&>(functor)); 170 tmp_global_accessor.get_pointer()[globalid]+=InnerMostDimReducer<decltype(device_self_evaluator), Op, false>::reduce(device_self_evaluator, red_factor*(rng), remaining, const_cast<Op&>(functor)); 206 Op functor = reducer; local 219 const auto device_self_expr= TensorReductionOp<Op, Dims, decltype(device_expr.expr) ,MakeGlobalPointer>(device_expr.expr, dims, functor); 227 typename DeiceSelf::CoeffReturnType accum = functor.initialize(); 228 GenericDimReducer<DeiceSelf::NumReducedDims-1, DeiceSelf, Op>::reduce(device_self_evaluator, device_self_evaluator.firstInput(globalid),const_cast<Op&>(functor), &accum); 229 functor.finalize(accum);
|
/external/eigen/unsupported/Eigen/src/NonLinearOptimization/ |
LevenbergMarquardt.h | 56 : functor(_functor) { nfev = njev = iter = 0; fnorm = gnorm = 0.; useExternalScaling=false; } 89 FunctorType &functor, 119 FunctorType &functor; member in class:Eigen::LevenbergMarquardt 141 m = functor.values(); 174 m = functor.values(); 201 if ( functor(x, fvec) < 0) 222 Index df_ret = functor.df(x, fjac); 287 if ( functor(wa2, wa4) < 0) 369 m = functor.values(); 388 m = functor.values() [all...] |
/external/eigen/test/ |
denseLM.cpp | 102 int test_minimizeLM(FunctorType& functor, VectorType& uv) 104 LevenbergMarquardt<FunctorType> lm(functor); 115 int test_lmder(FunctorType& functor, VectorType& uv) 119 LevenbergMarquardt<FunctorType> lm(functor); 128 int test_minimizeSteps(FunctorType& functor, VectorType& uv) 131 LevenbergMarquardt<FunctorType> lm(functor);
|
/external/eigen/unsupported/Eigen/src/LevenbergMarquardt/ |
LevenbergMarquardt.h | 89 // to be defined in the functor 92 // to be defined in the functor if no automatic differentiation 122 LevenbergMarquardt(FunctorType& functor) 123 : m_functor(functor),m_nfev(0),m_njev(0),m_fnorm(0.0),m_gnorm(0), 138 FunctorType &functor, 368 FunctorType &functor, 375 Index m = functor.values(); 381 NumericalDiff<FunctorType> numDiff(functor);
|