/external/guice/extensions/testlib/test/com/google/inject/testing/fieldbinder/ |
D | BoundFieldModuleTest.java | 55 @Bind private Integer anInt = testValue; in testBindingOnePrivate() 68 @Bind public Integer anInt = testValue; in testBindingOnePublic() 78 @Bind Integer anInt; 105 @Bind private Integer anInt = testValue; in testBindingTwo() 106 @Bind private String aString = testString; in testBindingTwo() 120 @Bind(to = Number.class) in testBindingSuperType() 134 @Bind(to = Number.class) in testBindingSuperTypeAccessSubType() 153 @Bind(to = String.class) in testBindingIncorrectTypeProviderFails() 184 @Bind private Integer anInt = testValue1; in testBindingWithBindingAnnotation() 186 @Bind @SomeBindingAnnotation private Integer anotherInt = testValue2; in testBindingWithBindingAnnotation() [all …]
|
/external/webrtc/rtc_base/ |
D | bind_unittest.cc | 130 Bind(&MethodBindTester::NullaryVoid, &object)(); in TEST() 132 EXPECT_EQ(1, Bind(&MethodBindTester::NullaryInt, &object)()); in TEST() 134 EXPECT_EQ(2, Bind(&MethodBindTester::NullaryConst, in TEST() 137 Bind(&MethodBindTester::UnaryVoid, &object, 5)(); in TEST() 139 EXPECT_EQ(100, Bind(&MethodBindTester::Identity<int>, &object, 100)()); in TEST() 142 EXPECT_EQ(string_value, Bind(&MethodBindTester::Identity<std::string>, in TEST() 148 EXPECT_EQ(12, Bind(&MethodBindTester::UnaryByPointer, &object, &value)()); in TEST() 154 EXPECT_EQ(13, Bind(&MethodBindTester::UnaryByRef, &object, value)()); in TEST() 158 EXPECT_EQ(56, Bind(&MethodBindTester::Multiply, &object, 7, 8)()); in TEST() 163 EXPECT_EQ(42, Bind(&Return42)()); in TEST() [all …]
|
/external/deqp/modules/glshared/ |
D | glsAttributeLocationTests.cpp | 473 void bindAttributes (TestLog& log, const glw::Functions& gl, deUint32 program, const vector<Bind>& … in bindAttributes() 475 for (vector<Bind>::const_iterator iter = binds.begin(); iter != binds.end(); ++iter) in bindAttributes() 680 Bind::Bind (const std::string& attribute, deUint32 location) in Bind() function in deqp::gls::AttributeLocationTestUtil::Bind 689 const vector<Bind>& preAttachBind, in runTest() 690 const vector<Bind>& preLinkBind, in runTest() 691 const vector<Bind>& postLinkBind, in runTest() 817 const vector<Bind> noBindings; in iterate() 820 vector<Bind> bindings; in iterate() 823 bindings.push_back(Bind("a_0", 3)); in iterate() 842 const vector<Bind> noBindings; in iterate() [all …]
|
/external/libchrome/base/test/ |
D | test_mock_time_task_runner_unittest.cc | 36 base::Bind([](int* counter) { *counter += 1; }, Unretained(&counter))); in TEST() 39 base::Bind([](int* counter) { *counter += 32; }, Unretained(&counter))); in TEST() 42 base::Bind([](int* counter) { *counter += 256; }, Unretained(&counter)), in TEST() 46 base::Bind([](int* counter) { *counter += 64; }, Unretained(&counter)), in TEST() 50 base::Bind([](int* counter) { *counter += 1024; }, in TEST() 55 base::Bind([](int* counter) { *counter += 4096; }, in TEST() 99 base::Bind([](int* counter) { *counter += 1; }, Unretained(&counter))); in TEST() 102 base::Bind([](int* counter) { *counter += 32; }, Unretained(&counter))); in TEST() 105 base::Bind([](int* counter) { *counter += 256; }, Unretained(&counter)), in TEST() 109 base::Bind([](int* counter) { *counter += 64; }, Unretained(&counter)), in TEST() [all …]
|
/external/libchrome/base/ |
D | bind_unittest.cc | 368 Callback<int(int, int, int)> cb = Bind(&Sum, 32, 16, 8); in TEST_F() 371 Callback<int(int, int, int, int, int, int)> c1 = Bind(&Sum); in TEST_F() 374 Callback<int(int, int, int)> c2 = Bind(c1, 32, 16, 8); in TEST_F() 377 Callback<int()> c3 = Bind(c2, 4, 2, 1); in TEST_F() 637 Bind(&FunctionWithWeakFirstParam, weak_factory.GetWeakPtr()); in TEST_F() 759 Bind(F&& f, Args&&... args) { in Bind() function 771 Bind(F&& f, Args&&... args) { in Bind() function 808 ClosureType normal_cb = TypeParam::Bind(&VoidFunc0); in TYPED_TEST() 810 TypeParam::Bind(&PolymorphicIdentity<NoRef*>, &no_ref); in TYPED_TEST() 814 ClosureType method_cb = TypeParam::Bind(&HasRef::VoidMethod0, &has_ref); in TYPED_TEST() [all …]
|
D | callback_list_unittest.cc | 64 cb_reg_->Add(Bind(&Adder::IncrementTotal, Unretained(this))); in AddCallback() 122 c1.Add(Bind(&Summer::AddOneParam, Unretained(&s))); in TEST() 129 c2.Add(Bind(&Summer::AddTwoParam, Unretained(&s))); in TEST() 136 subscription3 = c3.Add(Bind(&Summer::AddThreeParam, Unretained(&s))); in TEST() 143 subscription4 = c4.Add(Bind(&Summer::AddFourParam, Unretained(&s))); in TEST() 150 subscription5 = c5.Add(Bind(&Summer::AddFiveParam, Unretained(&s))); in TEST() 158 subscription6 = c6.Add(Bind(&Summer::AddSixParam, Unretained(&s))); in TEST() 171 cb_reg.Add(Bind(&Listener::IncrementTotal, Unretained(&a))); in TEST() 173 cb_reg.Add(Bind(&Listener::IncrementTotal, Unretained(&b))); in TEST() 186 cb_reg.Add(Bind(&Listener::IncrementTotal, Unretained(&c))); in TEST() [all …]
|
D | callback_helpers_unittest.cc | 20 base::Closure cb = base::Bind(&Increment, &run_count); in TEST() 38 base::ScopedClosureRunner runner(base::Bind(&Increment, &run_count)); in TEST() 48 base::ScopedClosureRunner runner(base::Bind(&Increment, &run_count)); in TEST() 62 runner.ReplaceClosure(base::Bind(&Increment, &run_count_1)); in TEST() 63 runner.ReplaceClosure(base::Bind(&Increment, &run_count_2)); in TEST() 74 base::ScopedClosureRunner runner(base::Bind(&Increment, &run_count_3)); in TEST() 86 new base::ScopedClosureRunner(base::Bind(&Increment, &run_count))); in TEST() 98 base::ScopedClosureRunner runner(base::Bind(&Increment, &run_count_1)); in TEST() 100 base::ScopedClosureRunner runner2(base::Bind(&Increment, &run_count_2)); in TEST()
|
D | task_runner_util_unittest.cc | 76 Bind(&ReturnFourtyTwo), in TEST() 77 Bind(&StoreValue, &result)); in TEST() 89 Bind(&ReturnFourtyTwo), in TEST() 90 Bind(&StoreDoubleValue, &result)); in TEST() 103 Bind(&CreateFoo), Bind(&ExpectFoo)); in TEST() 117 Bind(&CreateScopedFoo), Bind(&ExpectScopedFoo)); in TEST()
|
D | cancelable_callback_unittest.cc | 44 base::Bind(&Increment, base::Unretained(&count))); in TEST() 65 base::Bind(&Increment, base::Unretained(&count))); in TEST() 93 base::Bind(&Increment, base::Unretained(&count))); in TEST() 110 CancelableClosure cancelable(base::Bind(RefCountedParam, ref_counted)); in TEST() 128 base::Bind(&Increment, base::Unretained(&count))); in TEST() 138 base::Bind(&IncrementBy, base::Unretained(&count), 3)); in TEST() 162 cancelable.Reset(base::Bind(&Increment, in TEST() 176 CancelableClosure cancelable(base::Bind(&Increment, in TEST() 200 base::Bind(&OnMoveOnlyReceived, base::Unretained(&result))); in TEST()
|
D | bind_unittest.nc | 94 Bind(&HasRef::VoidMethod0, const_has_ref_ptr_); 107 Bind(&NoRef::VoidMethod0, &no_ref); 119 Bind(&NoRef::VoidConstMethod0, &no_ref); 131 Bind(&PolymorphicIdentity<NoRef*>, const_no_ref_ptr); 143 Bind(&PolymorphicIdentity<NoRefParent*>, const_child_ptr); 160 Callback<int(Parent&)> ref_arg_cb = Bind(&UnwrapParentRef); 171 Callback<int()> ref_cb = Bind(&UnwrapParentRef, p); 185 Bind(&HasRef::VoidMethod0, p); 196 Bind(&VoidPolymorphic1<int*>, &a); 198 Bind(&VoidPolymorphic1<HasRef*>, &for_raw_ptr); [all …]
|
/external/libchrome/mojo/public/cpp/bindings/tests/ |
D | associated_interface_unittest.cc | 79 base::Bind(&DeleteSender, sender_impl)); in GetSender() 153 base::Bind(&AssociatedInterfaceTest::QuitRunLoop, in QuitRunLoop() 177 return base::Bind(&DoSetFlagAndRunClosure, flag, closure); in SetFlagAndRunClosure() 184 return base::Bind( in ExpectValueSetFlagAndRunClosure() 206 ptr0.Bind(std::move(ptr_info)); in TEST_F() 212 ptr1.Bind(std::move(ptr_info)); in TEST_F() 260 ptr_.Bind(std::move(ptr_info)); in SetUp() 275 base::Bind(&TestSender::Send, base::Unretained(next_sender_), ++value)); in Send() 308 base::Bind(&TestReceiver::SendMethodCalled, base::Unretained(this))); in SetUp() 311 base::Bind(&TestReceiver::SendMethodCalled, base::Unretained(this))); in SetUp() [all …]
|
D | report_bad_message_unittest.cc | 26 binding_.Bind(std::move(request)); in BindImpl() 65 mojo::core::SetDefaultProcessErrorCallback(base::Bind( in SetUp() 98 SetErrorHandler(base::Bind([] (bool* flag) { *flag = true; }, &error)); in TEST_P() 105 SetErrorHandler(base::Bind([] (bool* flag) { *flag = true; }, &error)); in TEST_P() 122 SetErrorHandler(base::Bind([] (bool* flag) { *flag = true; }, &error)); in TEST_P() 126 base::Bind([] (const base::Closure& quit) { in TEST_P() 140 SetErrorHandler(base::Bind([] (bool* flag) { *flag = true; }, &error)); in TEST_P() 145 base::Bind([] (const base::Closure& quit, in TEST_P() 165 SetErrorHandler(base::Bind([] (bool* flag) { *flag = true; }, &error)); in TEST_P() 177 SetErrorHandler(base::Bind([] (bool* flag) { *flag = true; }, &error)); in TEST_P()
|
D | sync_handle_registry_unittest.cc | 31 auto callback1 = base::Bind(callback, &called1); in TEST_F() 32 auto callback2 = base::Bind(callback, &called2); in TEST_F() 63 auto callback1 = base::Bind([](bool* called) { *called = true; }, &called1); in TEST_F() 64 auto callback2 = base::Bind( in TEST_F() 71 auto callback3 = base::Bind([](bool* called) { *called = true; }, &called3); in TEST_F() 105 auto callback = base::Bind( in TEST_F() 120 base::Bind([](bool* called) { *called = true; }, &nested_called); in TEST_F() 141 auto callback = base::Bind( in TEST_F() 151 base::Bind([](bool* called) { *called = true; }, &nested_called); in TEST_F() 174 auto callback = base::Bind( in TEST_F() [all …]
|
D | interface_ptr_unittest.cc | 80 base::Bind(&MathCalculatorUI::Output, base::Unretained(this), closure)); in Add() 86 base::Bind(&MathCalculatorUI::Output, base::Unretained(this), closure)); in Multiply() 116 base::Bind(&SelfDestructingMathCalculatorUI::Output, in BeginTest() 127 base::Bind(&SelfDestructingMathCalculatorUI::Output, in Output() 241 base::Bind(&EndToEndInterfacePtrTest::RunTestImpl, in RunTest() 251 calculator_ui_->Add(2.0, base::Bind(&EndToEndInterfacePtrTest::AddDone, in RunTestImpl() 254 base::Bind(&EndToEndInterfacePtrTest::MultiplyDone, in RunTestImpl() 325 ptr.Bind(InterfacePtrInfo<math::Calculator>()); in TEST_P() 366 base::Bind(&SetFlagAndRunClosure, &encountered_error, in TEST_P() 432 base::Bind(&IgnoreValueAndRunClosure, in TEST_P() [all …]
|
/external/llvm-project/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/ |
D | bind_return_type.pass.cpp | 36 template <class Bind, class ...Args> 38 -> decltype((std::declval<Bind>()(std::declval<Args>()...)), std::true_type{}); 40 template <class Bind, class ...> 53 using Bind = decltype(ret); in do_test() typedef 85 LIBCPP_STATIC_ASSERT(!CheckCall<Bind>(), ""); in do_test() 86 static_assert(CheckCall<Bind, int>(), ""); in do_test() 87 static_assert(CheckCall<Bind, int, int>(), ""); in do_test() 100 using Bind = decltype(ret); in do_test_r() typedef 112 LIBCPP_STATIC_ASSERT(!CheckCall<Bind>(), ""); in do_test_r() 113 static_assert(CheckCall<Bind, int>(), ""); in do_test_r() [all …]
|
/external/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/ |
D | bind_return_type.pass.cpp | 37 template <class Bind, class ...Args> 39 -> decltype((std::declval<Bind>()(std::declval<Args>()...)), std::true_type{}); 41 template <class Bind, class ...> 54 using Bind = decltype(ret); in do_test() typedef 86 LIBCPP_STATIC_ASSERT(!CheckCall<Bind>(), ""); in do_test() 87 static_assert(CheckCall<Bind, int>(), ""); in do_test() 88 static_assert(CheckCall<Bind, int, int>(), ""); in do_test() 101 using Bind = decltype(ret); in do_test_r() typedef 113 LIBCPP_STATIC_ASSERT(!CheckCall<Bind>(), ""); in do_test_r() 114 static_assert(CheckCall<Bind, int>(), ""); in do_test_r() [all …]
|
/external/libchrome/mojo/public/cpp/bindings/ |
D | thread_safe_interface_ptr.h | 100 base::Bind(forward_, base::Passed(message))); in Accept() 120 FROM_HERE, base::Bind(forward_with_responder_, base::Passed(message), in AcceptWithResponder() 139 FROM_HERE, base::Bind(forward_with_responder_, base::Passed(message), in AcceptWithResponder() 154 base::Bind(assign_true, &event_signaled)); in AcceptWithResponder() 232 base::Bind(&ForwardToCallingThread::CallAcceptAndDeleteResponder, in Accept() 321 task_runner_->PostTask(FROM_HERE, base::Bind(&PtrWrapper::Bind, this, in BindOnTaskRunner() 333 task_runner_->PostTask(FROM_HERE, base::Bind(&PtrWrapper::Bind, this, in BindOnTaskRunner() 339 task_runner_, base::Bind(&PtrWrapper::Accept, this), in CreateForwarder() 340 base::Bind(&PtrWrapper::AcceptWithResponder, this), in CreateForwarder() 349 void Bind(PtrInfoType ptr_info) { in Bind() function [all …]
|
/external/libbrillo/brillo/http/ |
D | http_utils_test.cc | 45 kEchoUrl, request_type::kPost, base::Bind(EchoDataHandler)); in TEST() 67 kEchoUrl, request_type::kPost, base::Bind(EchoDataHandler)); in TEST() 89 base::Bind(success_callback, custom_data), in TEST() 90 base::Bind(error_callback)); in TEST() 95 transport->AddHandler(kMethodEchoUrl, "*", base::Bind(EchoMethodHandler)); in TEST() 117 transport->AddHandler(kMethodEchoUrl, "*", base::Bind(EchoMethodHandler)); in TEST() 134 transport->AddHandler(kMethodEchoUrl, "*", base::Bind(EchoMethodHandler)); in TEST() 174 base::Bind(success_callback), in TEST() 175 base::Bind(error_callback)); in TEST() 192 transport->AddHandler(json_echo_url, "*", base::Bind(JsonEchoHandler)); in TEST() [all …]
|
/external/libchrome/base/i18n/ |
D | streaming_utf8_validator_perftest.cc | 176 base::Bind(ConstructRepeatedTestString, kOneByteSeqRangeStart), in TEST() 183 base::Bind(ConstructRangedTestString, in TEST() 192 base::Bind(ConstructRepeatedTestString, kTwoByteSeqRangeStart), in TEST() 199 base::Bind(ConstructRangedTestString, in TEST() 209 base::Bind(ConstructRepeatedTestString, kThreeByteSeqRangeStart), in TEST() 216 base::Bind(ConstructRangedTestString, in TEST() 225 base::Bind(ConstructRepeatedTestString, kFourByteSeqRangeStart), in TEST() 232 base::Bind(ConstructRangedTestString, in TEST()
|
/external/perfetto/src/ipc/ |
D | deferred_unittest.cc | 39 deferred.Bind([num_callbacks](AsyncResult<TestMessage> msg) { in TEST() 66 deferred.Bind([num_callbacks](AsyncResult<TestMessage> msg) { in TEST() 87 deferred.Bind([num_callbacks](AsyncResult<TestMessage> msg) { in TEST() 101 deferred.Bind( in TEST() 110 deferred.Bind([](AsyncResult<TestMessage>) {}); in TEST() 115 deferred.Bind([num_callbacks](AsyncResult<TestMessage> msg) { in TEST() 139 deferred.Bind(callback); in TEST() 161 deferred.Bind(callback); in TEST() 171 deferred.Bind([num_callbacks](AsyncResult<TestMessage> msg) { in TEST() 195 deferred.Bind(callback); in TEST() [all …]
|
/external/libchrome/base/timer/ |
D | timer_unittest.cc | 115 quit_closure_ = Bind(IgnoreResult(&SequencedTaskRunner::PostTask), in SetTaskRunner() 443 Bind(&Receiver::OnCalled, Unretained(&receiver))); in TEST() 485 Bind(&Receiver::OnCalled, Unretained(&receiver))); in TEST() 568 base::Bind(&OneShotSelfOwningTimerTester::Run, this)); in StartTimer() 608 timer.Start(FROM_HERE, TimeDelta::FromDays(1), Bind(&TimerTestCallback)); in TEST() 619 timer.Start(FROM_HERE, TimeDelta::FromDays(1), Bind(&TimerTestCallback)); in TEST() 634 timer.Start(FROM_HERE, TimeDelta::FromDays(1), Bind(&TimerTestCallback)); in TEST() 643 Timer timer(FROM_HERE, TimeDelta::FromDays(1), Bind(&TimerTestCallback), in TEST() 656 Timer timer(FROM_HERE, TimeDelta::FromDays(1), Bind(&TimerTestCallback), in TEST() 697 Bind(&SetCallbackHappened1)); in TEST() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | dynamic_dimension_inference_test.cc | 116 TF_CHECK_OK(module_->dynamic_parameter_binding().Bind( in TEST_F() 135 TF_CHECK_OK(module_->dynamic_parameter_binding().Bind( in TEST_F() 161 TF_CHECK_OK(module_->dynamic_parameter_binding().Bind( in TEST_F() 192 TF_CHECK_OK(module_->dynamic_parameter_binding().Bind( in TEST_F() 223 TF_CHECK_OK(module_->dynamic_parameter_binding().Bind( in TEST_F() 255 TF_CHECK_OK(module_->dynamic_parameter_binding().Bind( in TEST_F() 279 TF_CHECK_OK(module_->dynamic_parameter_binding().Bind( in TEST_F() 332 TF_CHECK_OK(module_->dynamic_parameter_binding().Bind( in TEST_F() 337 TF_CHECK_OK(module_->dynamic_parameter_binding().Bind( in TEST_F() 340 TF_CHECK_OK(module_->dynamic_parameter_binding().Bind( in TEST_F() [all …]
|
/external/perfetto/src/tracing/ipc/consumer/ |
D | consumer_ipc_client_impl.cc | 90 async_response.Bind( in EnableTracing() 110 async_response.Bind( in ChangeTraceConfig() 127 async_response.Bind( in StartTracing() 143 async_response.Bind( in DisableTracing() 164 async_response.Bind( in ReadBuffers() 215 async_response.Bind( in FreeBuffers() 232 async_response.Bind( in Flush() 250 async_response.Bind( in Detach() 270 async_response.Bind( in Attach() 285 enable_resp.Bind( in Attach() [all …]
|
/external/vixl/test/aarch64/examples/ |
D | test-examples.cc | 168 masm.Bind(&test); \ 200 masm.Bind(&factorial); in TEST() 225 masm.Bind(&factorial_rec); in TEST() 241 masm.Bind(&neon_matrix_multiply); in TEST() 308 masm.Bind(&add2_vectors); in TEST() 356 masm.Bind(&add3_double); in TEST() 382 masm.Bind(&add4_double); in TEST() 408 masm.Bind(&sum_array); in TEST() 436 masm.Bind(&func_abs); in TEST() 451 masm.Bind(&crc32); in TEST() [all …]
|
/external/libbrillo/brillo/dbus/ |
D | dbus_object.h | 139 this, method_name, base::Bind(handler)); in AddSimpleMethodHandler() 149 this, method_name, base::Bind(handler, instance)); in AddSimpleMethodHandler() 158 this, method_name, base::Bind(handler, instance)); in AddSimpleMethodHandler() 177 this, method_name, base::Bind(handler)); in AddSimpleMethodHandlerWithError() 188 this, method_name, base::Bind(handler, instance)); in AddSimpleMethodHandlerWithError() 198 this, method_name, base::Bind(handler, instance)); in AddSimpleMethodHandlerWithError() 220 this, method_name, base::Bind(handler)); in AddSimpleMethodHandlerWithErrorAndMessage() 232 this, method_name, base::Bind(handler, instance)); in AddSimpleMethodHandlerWithErrorAndMessage() 242 this, method_name, base::Bind(handler, instance)); in AddSimpleMethodHandlerWithErrorAndMessage() 265 this, method_name, base::Bind(handler)); in AddMethodHandler() [all …]
|