Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 25 of 92) sorted by relevance

1234

/hardware/interfaces/biometrics/fingerprint/2.1/vts/functional/
DVtsHalBiometricsFingerprintV2_1TargetTest.cpp203 sp<FingerprintCallbackBase> cb = new FingerprintCallbackBase(); in TEST_F() local
204 Return<uint64_t> rc = mService->setNotify(cb); in TEST_F()
228 sp<ErrorCallback> cb = new ErrorCallback(); in TEST_F() local
229 Return<uint64_t> rc = mService->setNotify(cb); in TEST_F()
241 ASSERT_TRUE(waitForCallback(cb->promise.get_future())); in TEST_F()
242 ASSERT_NE(FingerprintError::ERROR_NO_ERROR, cb->error); in TEST_F()
247 sp<ErrorCallback> cb = new ErrorCallback(); in TEST_F() local
248 Return<uint64_t> rc = mService->setNotify(cb); in TEST_F()
256 ASSERT_TRUE(waitForCallback(cb->promise.get_future())); in TEST_F()
257 ASSERT_NE(FingerprintError::ERROR_NO_ERROR, cb->error); in TEST_F()
[all …]
/hardware/interfaces/bluetooth/1.0/default/
Dbluetooth_hci.cc57 const ::android::sp<IBluetoothHciCallbacks>& cb) { in initialize()
59 if (cb == nullptr) { in initialize()
65 cb->linkToDeath(death_recipient_, 0); in initialize()
68 [cb](bool status) { in initialize()
69 auto hidl_status = cb->initializationComplete( in initialize()
75 [cb](const hidl_vec<uint8_t>& packet) { in initialize()
76 auto hidl_status = cb->hciEventReceived(packet); in initialize()
81 [cb](const hidl_vec<uint8_t>& packet) { in initialize()
82 auto hidl_status = cb->aclDataReceived(packet); in initialize()
87 [cb](const hidl_vec<uint8_t>& packet) { in initialize()
[all …]
/hardware/qcom/wlan/cld80211-lib/
Dcld80211_lib.c165 int cld80211_recv_msg(struct nl_sock *sock, struct nl_cb *cb) in cld80211_recv_msg() argument
167 if (!sock || !cb) { in cld80211_recv_msg()
172 int res = nl_recvmsgs(sock, cb); in cld80211_recv_msg()
181 struct nl_cb *cb) in cld80211_handle_event() argument
185 cld80211_recv_msg(sock, cb); in cld80211_handle_event()
189 cld80211_recv_msg(sock, cb); in cld80211_handle_event()
358 struct nl_cb *cb = nl_cb_alloc(NL_CB_DEFAULT); in cld80211_send_recv_msg() local
359 if (!cb) in cld80211_send_recv_msg()
368 nl_cb_set(cb, NL_CB_SEQ_CHECK, NL_CB_CUSTOM, no_seq_check, NULL); in cld80211_send_recv_msg()
369 nl_cb_err(cb, NL_CB_CUSTOM, error_handler, &err); in cld80211_send_recv_msg()
[all …]
/hardware/broadcom/wlan/bcmdhd/dhdutil/
Ddhdu_nl80211.c81 dhd_nli->cb = nl_cb_alloc(NL_CB_DEBUG); in dhd_nl_sock_connect()
82 if (dhd_nli->cb == NULL) in dhd_nl_sock_connect()
85 nl_socket_set_cb(dhd_nli->nl, dhd_nli->cb); in dhd_nl_sock_connect()
89 nl_cb_put(dhd_nli->cb); in dhd_nl_sock_connect()
97 nl_cb_put(dhd_nli->cb); in dhd_nl_sock_disconnect()
121 nl_cb_err(dhd_nli->cb, NL_CB_CUSTOM, dhd_nl_error_handler, &err); in dhd_nl_do_testmode()
122 nl_cb_set(dhd_nli->cb, NL_CB_ACK, NL_CB_CUSTOM, in dhd_nl_do_testmode()
124 nl_cb_set(dhd_nli->cb, NL_CB_FINISH, NL_CB_CUSTOM, in dhd_nl_do_testmode()
126 nl_cb_set(dhd_nli->cb, NL_CB_VALID, NL_CB_CUSTOM, in dhd_nl_do_testmode()
129 nl_recvmsgs(dhd_nli->nl, dhd_nli->cb); in dhd_nl_do_testmode()
/hardware/interfaces/wifi/1.0/default/
Dhidl_callback_util.h69 bool addCallback(const sp<CallbackType>& cb) { in addCallback() argument
72 uint64_t cookie = reinterpret_cast<uint64_t>(cb.get()); in addCallback()
73 if (cb_set_.find(cb) != cb_set_.end()) { in addCallback()
77 if (!cb->linkToDeath(death_handler_, cookie)) { in addCallback()
81 cb_set_.insert(cb); in addCallback()
89 CallbackType* cb = reinterpret_cast<CallbackType*>(cookie); in onObjectDeath() local
90 const auto& iter = cb_set_.find(cb); in onObjectDeath()
100 for (const sp<CallbackType>& cb : cb_set_) { in invalidate() local
101 if (!cb->unlinkToDeath(death_handler_)) { in invalidate()
/hardware/interfaces/tests/foo/1.0/default/
DFoo.cpp92 const sp<IFooCallback> &cb) { in callMe() argument
93 LOG(INFO) << "SERVER(Foo) callMe " << cb.get(); in callMe()
95 if (cb != NULL) { in callMe()
98 << cb.get() in callMe()
101 cb->heyItsYou(cb); in callMe()
104 << cb.get() in callMe()
109 << cb.get() in callMe()
114 bool answer = cb->heyItsYouIsntIt(cb); in callMe()
118 << cb.get() in callMe()
126 << cb.get() in callMe()
[all …]
/hardware/libhardware/modules/input/evdev/
DInputHost.h43 InputHostBase(input_host_t* host, input_host_callbacks_t cb) : mHost(host), mCallbacks(cb) {} in InputHostBase() argument
55 InputReport(input_host_t* host, input_host_callbacks_t cb, input_report_t* r) : in InputReport() argument
56 InputHostBase(host, cb), mReport(r) {} in InputReport()
75 InputReportDefinition(input_host_t* host, input_host_callbacks_t cb, in InputReportDefinition() argument
76 input_report_definition_t* r) : InputHostBase(host, cb), mReportDefinition(r) {} in InputReportDefinition()
96 InputDeviceDefinition(input_host_t* host, input_host_callbacks_t cb, in InputDeviceDefinition() argument
98 InputHostBase(host, cb), mDeviceDefinition(d) {} in InputDeviceDefinition()
115 InputProperty(input_host_t* host, input_host_callbacks_t cb, input_property_t* p) : in InputProperty() argument
116 InputHostBase(host, cb), mProperty(p) {} in InputProperty()
133 InputPropertyMap(input_host_t* host, input_host_callbacks_t cb, input_property_map_t* m) : in InputPropertyMap() argument
[all …]
/hardware/libhardware/include/hardware/
Dble_advertiser.h61 virtual void GetOwnAddress(uint8_t advertiser_id, GetAddressCallback cb) = 0;
65 ParametersCallback cb) = 0;
69 std::vector<uint8_t> data, StatusCallback cb) = 0;
72 virtual void Enable(uint8_t advertiser_id, bool enable, StatusCallback cb,
79 virtual void StartAdvertising(uint8_t advertiser_id, StatusCallback cb,
98 StatusCallback cb) = 0;
102 StatusCallback cb) = 0;
105 StatusCallback cb) = 0;
Dble_scanner.h86 FilterParamSetupCallback cb) = 0;
96 FilterConfigCallback cb) = 0;
99 virtual void ScanFilterClear(int filt_index, FilterConfigCallback cb) = 0;
102 virtual void ScanFilterEnable(bool enable, EnableCallback cb) = 0;
106 Callback cb) = 0;
112 Callback cb) = 0;
117 Callback cb) = 0;
120 virtual void BatchscanDisable(Callback cb) = 0;
/hardware/interfaces/contexthub/1.0/vts/functional/
DVtsHalContexthubV1_0TargetTest.cpp121 Result registerCallback(sp<IContexthubCallback> cb) { in registerCallback() argument
122 Result result = hubApi->registerCallback(getHubId(), cb); in registerCallback()
235 sp<QueryAppsCallback> cb = new QueryAppsCallback(); in TEST_P() local
236 ASSERT_OK(registerCallback(cb)); in TEST_P()
243 ASSERT_TRUE(waitForCallback(cb->promise.get_future(), &appList)); in TEST_P()
273 ASSERT_OK(registerCallback(cb)); in SetUp()
276 sp<TxnResultCallback> cb = new TxnResultCallback(); member in __anon41211db20111::ContexthubTxnTest
330 cb->expectedTxnId = 0123; in TEST_P()
340 Result result = hubApi->loadNanoApp(getHubId(), emptyApp, cb->expectedTxnId); in TEST_P()
342 cb->promise.get_future())); in TEST_P()
[all …]
/hardware/interfaces/gatekeeper/1.0/default/
DGatekeeper.cpp59 enroll_cb cb) in enroll() argument
81 cb(rsp); in enroll()
89 verify_cb cb) in verify() argument
114 cb(rsp); in verify()
118 Return<void> Gatekeeper::deleteUser(uint32_t uid, deleteUser_cb cb) { in deleteUser() argument
134 cb(rsp); in deleteUser()
138 Return<void> Gatekeeper::deleteAllUsers(deleteAllUsers_cb cb) { in deleteAllUsers() argument
153 cb(rsp); in deleteAllUsers()
/hardware/qcom/bt/msm8998/libbt-vendor/src/
Dhardware.c141 q->cb->dealloc(p_evt_buf); in hw_epilog_cback()
144 q->cb->epilog_cb(BT_VND_OP_RESULT_SUCCESS); in hw_epilog_cback()
168 p_buf = (HC_BT_HDR *) q->cb->alloc(BT_HC_HDR_SIZE + HCI_CMD_PREAMBLE_SIZE); in __hw_epilog_process()
181 q->cb->xmit_cb(HCI_RESET, p_buf, hw_epilog_cback); in __hw_epilog_process()
186 q->cb->epilog_cb(BT_VND_OP_RESULT_FAIL); in __hw_epilog_process()
Dbt_vendor_qcom.c606 static int init(const bt_vendor_callbacks_t *cb, unsigned char *bdaddr) in init() argument
614 if (!cb || !bdaddr) { in init()
615 ALOGE("Invalid input args cb %p bdaddr %p", cb, bdaddr); in init()
630 temp->cb = (bt_vendor_callbacks_t*)cb; in init()
812 q->cb->fwcfg_cb(BT_VND_OP_RESULT_SUCCESS); in op()
820 q->cb->fwcfg_cb(BT_VND_OP_RESULT_SUCCESS); in op()
826 q->cb->scocfg_cb(BT_VND_OP_RESULT_SUCCESS); //dummy in op()
1175 q->cb->lpm_cb(BT_VND_OP_RESULT_SUCCESS); in op()
1191 q->cb->lpm_cb(lpm_result); in op()
1214 q->cb->lpm_set_state_cb(wake_assert); in op()
[all …]
/hardware/interfaces/contexthub/1.0/default/
DContexthub.cpp193 const sp<IContexthubCallback> &cb) { in registerCallback() argument
212 mCachedHubInfo[hubId].callback = cb; in registerCallback()
213 if (cb != nullptr) { in registerCallback()
214 Return<bool> linkResult = cb->linkToDeath(mDeathRecipient, hubId); in registerCallback()
256 int Contexthub::handleOsMessage(sp<IContexthubCallback> cb, in handleOsMessage() argument
278 if (cb != nullptr) { in handleOsMessage()
279 cb->handleTxnResult(mTransactionId, result); in handleOsMessage()
303 if (cb != nullptr) { in handleOsMessage()
304 cb->handleAppsInfo(apps); in handleOsMessage()
320 if (cb != nullptr) { in handleOsMessage()
[all …]
/hardware/interfaces/memtrack/1.0/vts/functional/
DVtsHalMemtrackV1_0TargetTest.cpp85 auto cb = generate_cb(&s, &v); in TEST_F() local
89 memtrack->getMemory(-1, static_cast<MemtrackType>(i), cb); in TEST_F()
100 auto cb = generate_cb(&s, &v); in TEST_F() local
101 Return<void> ret = memtrack->getMemory(getpid(), MemtrackType::NUM_TYPES, cb); in TEST_F()
118 auto cb = generate_cb(&s, &v); in TEST_F() local
123 memtrack->getMemory(getpid(), static_cast<MemtrackType>(i), cb); in TEST_F()
/hardware/interfaces/tests/baz/1.0/default/
DBaz.cpp28 Return<void> heyItsMe(const sp<IBazCallback> &cb) override;
33 const sp<IBazCallback> &cb) { in heyItsMe() argument
34 LOG(INFO) << "SERVER: heyItsMe cb = " << cb.get(); in heyItsMe()
272 Return<void> Baz::callMe(const sp<IBazCallback>& cb) { in callMe() argument
273 LOG(INFO) << "callMe " << cb.get(); in callMe()
275 if (cb != NULL) { in callMe()
277 cb->heyItsMe(my_cb); in callMe()
283 Return<void> Baz::callMeLater(const sp<IBazCallback>& cb) { in callMeLater() argument
284 LOG(INFO) << "callMeLater " << cb.get(); in callMeLater()
286 mStoredCallback = cb; in callMeLater()
/hardware/interfaces/graphics/mapper/2.0/default/
DGralloc1Mapper.cpp153 const auto& cb = flex.planes[1]; in toYCbCrLayout() local
156 if (cb.h_increment != cr.h_increment || cb.v_increment != cr.v_increment) { in toYCbCrLayout()
161 outLayout->cb = cb.top_left; in toYCbCrLayout()
164 outLayout->cStride = cb.v_increment; in toYCbCrLayout()
165 outLayout->chromaStep = cb.h_increment; in toYCbCrLayout()
/hardware/qcom/wlan/qcwcn/wifi_hal/
Dwificonfig.cpp378 struct nl_cb *cb; in requestEvent() local
380 cb = nl_cb_alloc(NL_CB_DEFAULT); in requestEvent()
381 if (!cb) { in requestEvent()
392 nl_cb_err(cb, NL_CB_CUSTOM, error_handler_wifi_config, &res); in requestEvent()
393 nl_cb_set(cb, NL_CB_FINISH, NL_CB_CUSTOM, finish_handler_wifi_config, in requestEvent()
395 nl_cb_set(cb, NL_CB_ACK, NL_CB_CUSTOM, ack_handler_wifi_config, &res); in requestEvent()
399 nl_recvmsgs(mInfo->cmd_sock, cb); in requestEvent()
Dwifi_hal.cpp272 struct nl_cb *cb = nl_socket_get_cb(user_sock); in wifi_init_user_sock() local
273 if (cb == NULL) { in wifi_init_user_sock()
279 nl_cb_set(cb, NL_CB_SEQ_CHECK, NL_CB_CUSTOM, no_seq_check, NULL); in wifi_init_user_sock()
280 nl_cb_err(cb, NL_CB_CUSTOM, error_handler, &info->user_sock_arg); in wifi_init_user_sock()
281 nl_cb_set(cb, NL_CB_FINISH, NL_CB_CUSTOM, finish_handler, &info->user_sock_arg); in wifi_init_user_sock()
282 nl_cb_set(cb, NL_CB_ACK, NL_CB_CUSTOM, ack_handler, &info->user_sock_arg); in wifi_init_user_sock()
284 nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, user_sock_message_handler, info); in wifi_init_user_sock()
285 nl_cb_put(cb); in wifi_init_user_sock()
300 struct nl_cb *cb = nl_socket_get_cb(info->cldctx->sock); in wifi_init_cld80211_sock_cb() local
301 if (cb == NULL) { in wifi_init_cld80211_sock_cb()
[all …]
/hardware/interfaces/automotive/vehicle/2.0/default/tests/
DVehicleHalManager_test.cpp241 sp<MockedVehicleCallback> cb = new MockedVehicleCallback(); in TEST_F() local
250 StatusCode res = manager->subscribe(cb, options); in TEST_F()
259 sp<MockedVehicleCallback> cb = new MockedVehicleCallback(); in TEST_F() local
268 StatusCode res = manager->subscribe(cb, options); in TEST_F()
275 auto& receivedEnvents = cb->getReceivedEvents(); in TEST_F()
277 ASSERT_TRUE(cb->waitForExpectedEvents(0)) << " Unexpected events received: " in TEST_F()
286 cb->reset(); in TEST_F()
290 ASSERT_TRUE(cb->waitForExpectedEvents(1)) << "Events received: " in TEST_F()
294 toString(cb->getReceivedEvents().front()[0])); in TEST_F()
300 sp<MockedVehicleCallback> cb = new MockedVehicleCallback(); in TEST_F() local
[all …]
/hardware/libhardware/tests/input/evdev/
DInputHub_test.cpp53 void setInputCallback(const InputCbFunc& cb) { mInputCb = cb; } in setInputCallback() argument
54 void setDeviceAddedCallback(const DeviceCbFunc& cb) { mDeviceAddedCb = cb; } in setDeviceAddedCallback() argument
55 void setDeviceRemovedCallback(const DeviceCbFunc& cb) { mDeviceRemovedCb = cb; } in setDeviceRemovedCallback() argument
/hardware/invensense/6515/libsensors_iio/software/simple_apps/common/
Dmlerrorcode.h61 #define CALL_CHECK_N_CALLBACK(f, cb) { \ argument
66 cb; \
/hardware/interfaces/tests/bar/1.0/default/
DBar.cpp55 const sp<IFooCallback> &cb) { in callMe() argument
56 return mFoo->callMe(cb); in callMe()
147 Return<void> Bar::echoNullInterface(const sp<IFooCallback> &cb, echoNullInterface_cb _hidl_cb) { in echoNullInterface() argument
148 return mFoo->echoNullInterface(cb, _hidl_cb); in echoNullInterface()
/hardware/broadcom/wlan/bcmdhd/wifi_hal/
Dcpp_bindings.cpp595 struct nl_cb *cb = nl_cb_alloc(NL_CB_DEFAULT); in requestResponse() local
596 if (!cb) in requestResponse()
605 nl_cb_set(cb, NL_CB_SEQ_CHECK, NL_CB_CUSTOM, no_seq_check, NULL); in requestResponse()
606 nl_cb_err(cb, NL_CB_CUSTOM, error_handler, &err); in requestResponse()
607 nl_cb_set(cb, NL_CB_FINISH, NL_CB_CUSTOM, finish_handler, &err); in requestResponse()
608 nl_cb_set(cb, NL_CB_ACK, NL_CB_CUSTOM, ack_handler, &err); in requestResponse()
609 nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, response_handler, this); in requestResponse()
612 int res = nl_recvmsgs(mInfo->cmd_sock, cb); in requestResponse()
618 nl_cb_put(cb); in requestResponse()
/hardware/interfaces/ir/1.0/vts/functional/
DVtsHalIrV1_0TargetTest.cpp50 auto cb = [&](bool s, hidl_vec<ConsumerIrFreqRange> v) { in TEST_F() local
54 Return<void> ret = ir->getCarrierFreqs(cb); in TEST_F()

1234