Home
last modified time | relevance | path

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

12345678910>>...12

/system/bt/btif/src/
Dbtif_hf_client.cc95 btif_hf_client_cb_t cb[HF_CLIENT_MAX_DEVICES]; member
103 bool is_connected(const btif_hf_client_cb_t* cb);
134 #define CHECK_BTHF_CLIENT_SLC_CONNECTED(cb) \ argument
139 } else if ((cb)->state != BTHF_CLIENT_CONNECTION_STATE_SLC_CONNECTED) { \
141 __func__, dump_hf_client_conn_state((cb)->state)); \
168 btif_hf_client_cb_t* cb = btif_hf_client_get_cb_by_bda(*bd_addr); in btif_in_hf_client_generic_evt() local
169 if (cb == NULL || !is_connected(cb)) { in btif_in_hf_client_generic_evt()
176 HAL_CBACK(bt_hf_client_callbacks, audio_state_cb, &cb->peer_bda, in btif_in_hf_client_generic_evt()
188 bool is_connected(const btif_hf_client_cb_t* cb) { in is_connected() argument
189 if ((cb->state == BTHF_CLIENT_CONNECTION_STATE_CONNECTED) || in is_connected()
[all …]
Dbtif_ble_advertiser.cc88 void RegisterAdvertiserCb(IdStatusCallback cb, uint8_t advertiser_id, in RegisterAdvertiserCb() argument
92 do_in_jni_thread(Bind(cb, advertiser_id, status)); in RegisterAdvertiserCb()
95 void RegisterAdvertiser(IdStatusCallback cb) override { in RegisterAdvertiser() argument
100 base::Unretained(this), cb))); in RegisterAdvertiser()
117 void GetOwnAddress(uint8_t advertiser_id, GetAddressCallback cb) override { in GetOwnAddress() argument
122 jni_thread_wrapper(FROM_HERE, cb))); in GetOwnAddress()
126 ParametersCallback cb) override { in SetParameters() argument
136 jni_thread_wrapper(FROM_HERE, cb))); in SetParameters()
140 StatusCallback cb) override { in SetData() argument
146 jni_thread_wrapper(FROM_HERE, cb))); in SetData()
[all …]
Dbtif_ble_scanner.cc208 void RegisterScanner(RegisterCallback cb) override { in RegisterScanner() argument
211 [](RegisterCallback cb) { in RegisterScanner() argument
214 jni_thread_wrapper(FROM_HERE, std::move(cb))); in RegisterScanner()
216 std::move(cb))); in RegisterScanner()
242 FilterParamSetupCallback cb) override { in ScanFilterParamSetup() argument
254 jni_thread_wrapper(FROM_HERE, std::move(cb)))); in ScanFilterParamSetup()
258 FilterConfigCallback cb) override { in ScanFilterAdd() argument
267 Bind(std::move(cb), in ScanFilterAdd()
271 void ScanFilterClear(int filter_index, FilterConfigCallback cb) override { in ScanFilterClear() argument
276 FROM_HERE, Bind(cb, BTM_BLE_PF_TYPE_ALL)))); in ScanFilterClear()
[all …]
/system/hwservicemanager/
Dtest_lazy.cpp83 sp<RecordingClientCallback> cb = new RecordingClientCallback; in TEST_F() local
86 service->addClientCallback(cb); in TEST_F()
94 ASSERT_THAT(cb->stream, ElementsAre()); in TEST_F()
98 sp<RecordingClientCallback> cb = new RecordingClientCallback; in TEST_F() local
101 service->addClientCallback(cb); in TEST_F()
107 ASSERT_THAT(cb->stream, ElementsAre(true)); in TEST_F()
113 ASSERT_THAT(cb->stream, ElementsAre(true)); in TEST_F()
116 ASSERT_THAT(cb->stream, ElementsAre(true, false)); // reported only after two intervals in TEST_F()
120 sp<RecordingClientCallback> cb = new RecordingClientCallback; in TEST_F() local
123 service->addClientCallback(cb); in TEST_F()
[all …]
/system/bt/service/ipc/binder/
Dbluetooth_avrcp_target_binder_server.cc43 auto cb = GetAvrcpTargetCallback(); \
44 if (!cb.get()) { \
48 cb; \
218 auto cb = TRY_GET_CB(); in OnGetRemoteFeatures() local
219 cb->OnGetRemoteFeatures(String16(addr.data(), addr.size()), features); in OnGetRemoteFeatures()
225 auto cb = TRY_GET_CB(); in OnGetPlayStatus() local
226 cb->OnGetPlayStatus(String16(addr.data(), addr.size())); in OnGetPlayStatus()
232 auto cb = TRY_GET_CB(); in OnListPlayerAppAttr() local
233 cb->OnListPlayerAppAttr(String16(addr.data(), addr.size())); in OnListPlayerAppAttr()
239 auto cb = TRY_GET_CB(); in OnListPlayerAppValues() local
[all …]
Dbluetooth_a2dp_source_binder_server.cc41 auto cb = GetA2dpSourceCallback(); \
42 if (!cb.get()) { \
46 cb; \
170 auto cb = TRY_GET_CB(); in OnConnectionState() local
171 cb->OnConnectionState(String16(device_address.c_str()), state); in OnConnectionState()
177 auto cb = TRY_GET_CB(); in OnAudioState() local
178 cb->OnAudioState(String16(device_address.c_str()), state); in OnAudioState()
192 auto cb = TRY_GET_CB(); in OnAudioConfig() local
193 cb->OnAudioConfig(String16(device_address.c_str()), codec_config, in OnAudioConfig()
200 auto cb = GetCallback(bluetooth::A2dpSource::kSingletonInstanceId); in GetA2dpSourceCallback() local
[all …]
Dbluetooth_a2dp_sink_binder_server.cc156 auto cb = GetA2dpSinkCallback(); in OnConnectionState() local
157 if (!cb.get()) { in OnConnectionState()
162 cb->OnConnectionState(String16(device_address.c_str()), state); in OnConnectionState()
168 auto cb = GetA2dpSinkCallback(); in OnAudioState() local
169 if (!cb.get()) { in OnAudioState()
174 cb->OnAudioState(String16(device_address.c_str()), state); in OnAudioState()
181 auto cb = GetA2dpSinkCallback(); in OnAudioConfig() local
182 if (!cb.get()) { in OnAudioConfig()
187 cb->OnAudioConfig(String16(device_address.c_str()), sample_rate, in OnAudioConfig()
197 auto cb = GetCallback(bluetooth::A2dpSink::kSingletonInstanceId); in GetA2dpSinkCallback() local
[all …]
Dbluetooth_le_advertiser_binder_server.cc93 auto cb = GetLECallback(advertiser_id); in StartMultiAdvertising() local
94 if (!cb.get()) { in StartMultiAdvertising()
99 cb->OnMultiAdvertiseCallback(status, true /* is_start */, settings_copy); in StartMultiAdvertising()
136 auto cb = GetLECallback(advertiser_id); in StopMultiAdvertising() local
137 if (!cb.get()) { in StopMultiAdvertising()
145 cb->OnMultiAdvertiseCallback(status, false /* is_start */, settings_copy); in StopMultiAdvertising()
160 auto cb = GetCallback(advertiser_id); in GetLECallback() local
162 static_cast<IBluetoothLeAdvertiserCallback*>(cb.get())); in GetLECallback()
176 android::sp<IBluetoothLeAdvertiserCallback> cb( in OnRegisterInstanceImpl() local
178 cb->OnAdvertiserRegistered(status, (status == bluetooth::BLE_STATUS_SUCCESS) in OnRegisterInstanceImpl()
Dbluetooth_low_energy_binder_server.cc126 auto cb = GetLECallback(client->GetInstanceId()); in OnConnectionState() local
127 if (!cb.get()) { in OnConnectionState()
132 cb->OnConnectionState(status, client_id, in OnConnectionState()
143 auto cb = GetLECallback(client_id); in OnMtuChanged() local
144 if (!cb.get()) { in OnMtuChanged()
149 cb->OnMtuChanged(status, String16(address, std::strlen(address)), mtu); in OnMtuChanged()
154 auto cb = GetCallback(client_id); in GetLECallback() local
156 static_cast<IBluetoothLowEnergyCallback*>(cb.get())); in GetLECallback()
173 android::sp<IBluetoothLowEnergyCallback> cb( in OnRegisterInstanceImpl() local
175 cb->OnClientRegistered(status, (status == bluetooth::BLE_STATUS_SUCCESS) in OnRegisterInstanceImpl()
Dbluetooth_le_scanner_binder_server.cc110 auto cb = GetLECallback(scanner->GetInstanceId()); in OnScanResult() local
111 if (!cb.get()) { in OnScanResult()
116 cb->OnScanResult(result); in OnScanResult()
121 auto cb = GetCallback(scanner_id); in GetLECallback() local
123 static_cast<IBluetoothLeScannerCallback*>(cb.get())); in GetLECallback()
140 android::sp<IBluetoothLeScannerCallback> cb( in OnRegisterInstanceImpl() local
142 cb->OnScannerRegistered(status, (status == bluetooth::BLE_STATUS_SUCCESS) in OnRegisterInstanceImpl()
Dbluetooth_avrcp_control_binder_server.cc169 auto func = [rc_connect, bt_connect, &device_address](IInterface* cb) { in OnConnectionState() argument
170 auto avrcp_control_cb = static_cast<IBluetoothAvrcpControlCallback*>(cb); in OnConnectionState()
182 auto func = [&device_address, &binder_attr](IInterface* cb) { in OnTrackChanged() argument
183 auto avrcp_control_cb = static_cast<IBluetoothAvrcpControlCallback*>(cb); in OnTrackChanged()
194 auto func = [&addr_s16, abs_vol, label](IInterface* cb) { in OnSetAbsVolumeRequest() argument
195 auto avrcp_control_cb = static_cast<IBluetoothAvrcpControlCallback*>(cb); in OnSetAbsVolumeRequest()
205 auto func = [&addr_s16, label](IInterface* cb) { in OnRegisterForAbsVolumeCallbackRequest() argument
206 auto avrcp_control_cb = static_cast<IBluetoothAvrcpControlCallback*>(cb); in OnRegisterForAbsVolumeCallbackRequest()
228 android::sp<IBluetoothAvrcpControlCallback> cb( in OnRegisterInstanceImpl() local
230 cb->OnRegistered(status, (status == bluetooth::BLE_STATUS_SUCCESS) in OnRegisterInstanceImpl()
/system/bt/stack/btm/
Dbtm_ble_batchscan.cc155 void storage_config_cb(Callback<void(uint8_t /* status */)> cb, uint8_t* p, in storage_config_cb() argument
173 cb.Run(status); in storage_config_cb()
176 void param_enable_cb(Callback<void(uint8_t /* status */)> cb, uint8_t* p, in param_enable_cb() argument
194 cb.Run(status); in param_enable_cb()
197 void disable_cb(base::Callback<void(uint8_t /* status */)> cb, uint8_t* p, in disable_cb() argument
226 cb.Run(status); in disable_cb()
234 hci_cmd_cb cb) { in btm_ble_read_batchscan_reports() argument
243 btu_hcif_send_cmd_with_cb(FROM_HERE, HCI_BLE_BATCH_SCAN_OCF, param, len, cb); in btm_ble_read_batchscan_reports()
249 tBTM_BLE_SCAN_REP_CBACK cb, uint8_t* p, uint16_t len) { in read_reports_cb() argument
274 cb.Run(status, report_format, num_records_all, data_all); in read_reports_cb()
[all …]
Dbtm_ble_multi_adv.cc49 base::Callback<void(const RawAddress& rpa)> cb);
146 IdTxPowerStatusCb cb; member
175 void GetOwnAddress(uint8_t inst_id, GetAddressCallback cb) override { in GetOwnAddress() argument
176 cb.Run(adv_inst[inst_id].own_address_type, adv_inst[inst_id].own_address); in GetOwnAddress()
188 void GenerateRpa(base::Callback<void(const RawAddress&)> cb) { in GenerateRpa() argument
189 btm_gen_resolvable_private_addr(std::move(cb)); in GenerateRpa()
241 base::Callback<void(uint8_t /* inst_id */, uint8_t /* status */)> cb) in RegisterAdvertiser()
255 cb, in RegisterAdvertiser()
262 cb.Run(p_inst->inst_id, BTM_BLE_MULTI_ADV_SUCCESS); in RegisterAdvertiser()
264 p_inst, cb)); in RegisterAdvertiser()
[all …]
Dbtm_ble_adv_filter.cc170 void btm_flt_update_cb(uint8_t expected_ocf, tBTM_BLE_PF_CFG_CBACK cb, in btm_flt_update_cb() argument
190 cb.Run(num_avail, action, status); in btm_flt_update_cb()
208 cb.Run(num_avail, action, status); in btm_flt_update_cb()
299 std::vector<uint8_t> name, tBTM_BLE_PF_CFG_CBACK cb) { in BTM_LE_PF_local_name() argument
320 base::Bind(&btm_flt_update_cb, BTM_BLE_META_PF_LOCAL_NAME, cb)); in BTM_LE_PF_local_name()
344 tBTM_BLE_PF_CFG_CBACK cb) { in BTM_LE_PF_manu_data() argument
383 base::Bind(&btm_flt_update_cb, BTM_BLE_META_PF_MANU_DATA, cb)); in BTM_LE_PF_manu_data()
396 tBTM_BLE_PF_CFG_CBACK cb) { in BTM_LE_PF_srvc_data_pattern() argument
421 base::Bind(&btm_flt_update_cb, BTM_BLE_META_PF_SRVC_DATA, cb)); in BTM_LE_PF_srvc_data_pattern()
492 tBTM_BLE_PF_CFG_CBACK cb) { in BTM_LE_PF_addr_filter() argument
[all …]
/system/bt/bta/gatt/
Dbta_gattc_queue.cc31 GATT_READ_OP_CB cb; member
47 GATT_READ_OP_CB tmp_cb = tmp->cb; in gatt_read_op_finished()
62 GATT_WRITE_OP_CB cb; member
69 GATT_WRITE_OP_CB tmp_cb = tmp->cb; in gatt_write_op_finished()
111 data->cb = op.read_cb; in gatt_execute_next_op()
119 data->cb = op.read_cb; in gatt_execute_next_op()
127 data->cb = op.write_cb; in gatt_execute_next_op()
136 data->cb = op.write_cb; in gatt_execute_next_op()
151 GATT_READ_OP_CB cb, void* cb_data) { in ReadCharacteristic() argument
154 .read_cb = cb, in ReadCharacteristic()
[all …]
/system/security/keystore/binder/android/security/keystore/
DIKeystoreService.aidl49 int addRngEntropy(IKeystoreResponseCallback cb, in byte[] data, int flags); in addRngEntropy() argument
50 …int generateKey(IKeystoreKeyCharacteristicsCallback cb, String alias, in KeymasterArguments argume… in generateKey() argument
52 …int getKeyCharacteristics (IKeystoreKeyCharacteristicsCallback cb, String alias, in KeymasterBlob … in getKeyCharacteristics() argument
54 …int importKey(IKeystoreKeyCharacteristicsCallback cb, String alias, in KeymasterArguments argument… in importKey() argument
56 … int exportKey(IKeystoreExportKeyCallback cb, String alias, int format, in KeymasterBlob clientId, in exportKey() argument
58 …int begin(in IKeystoreOperationResultCallback cb, IBinder appToken, String alias, int purpose, boo… in begin() argument
60 …int update(in IKeystoreOperationResultCallback cb, IBinder token, in KeymasterArguments params, in… in update() argument
61 …int finish(in IKeystoreOperationResultCallback cb, IBinder token, in KeymasterArguments params, in… in finish() argument
63 int abort(in IKeystoreResponseCallback cb, IBinder token); in abort() argument
67 …int attestKey(in IKeystoreCertificateChainCallback cb, String alias, in KeymasterArguments params); in attestKey() argument
[all …]
/system/bt/include/hardware/
Dble_advertiser.h63 virtual void GetOwnAddress(uint8_t advertiser_id, GetAddressCallback cb) = 0;
67 ParametersCallback cb) = 0;
71 std::vector<uint8_t> data, StatusCallback cb) = 0;
74 virtual void Enable(uint8_t advertiser_id, bool enable, StatusCallback cb,
81 virtual void StartAdvertising(uint8_t advertiser_id, StatusCallback cb,
100 StatusCallback cb) = 0;
104 StatusCallback cb) = 0;
107 StatusCallback cb) = 0;
Dble_scanner.h86 FilterParamSetupCallback cb) = 0;
90 FilterConfigCallback cb) = 0;
93 virtual void ScanFilterClear(int filt_index, FilterConfigCallback cb) = 0;
96 virtual void ScanFilterEnable(bool enable, EnableCallback cb) = 0;
100 Callback cb) = 0;
106 Callback cb) = 0;
111 Callback cb) = 0;
114 virtual void BatchscanDisable(Callback cb) = 0;
/system/bt/stack/include/
Dble_advertiser.h85 virtual void StartAdvertising(uint8_t advertiser_id, MultiAdvCb cb,
102 cb,
120 virtual void Enable(uint8_t inst_id, bool enable, MultiAdvCb cb,
127 ParametersCb cb) = 0;
132 std::vector<uint8_t> data, MultiAdvCb cb) = 0;
136 uint8_t inst_id, tBLE_PERIODIC_ADV_PARAMS* params, MultiAdvCb cb) = 0;
141 MultiAdvCb cb) = 0;
145 MultiAdvCb cb) = 0;
165 virtual void GetOwnAddress(uint8_t inst_id, GetAddressCallback cb) = 0;
Dbtm_ble_api.h97 base::Callback<void(uint8_t)> cb);
132 base::Callback<void(uint8_t /* status */)> cb,
139 tBLE_ADDR_TYPE addr_type, base::Callback<void(uint8_t /* status */)> cb);
143 base::Callback<void(uint8_t /* status */)> cb);
147 tBTM_BLE_SCAN_REP_CBACK cb);
691 tBTM_BLE_PF_PARAM_CB cb);
698 tBTM_BLE_PF_CFG_CBACK cb);
700 tBTM_BLE_PF_CFG_CBACK cb);
752 base::Callback<void(uint8_t tx_phy, uint8_t rx_phy, uint8_t status)> cb);
/system/bt/osi/test/
Dalarm_test.cc63 static void cb(UNUSED_ATTR void* data) { in cb() function
91 alarm_set(alarm, 10, cb, NULL); in TEST_F()
103 alarm_set(alarm, 10, cb, NULL); in TEST_F()
113 alarm_set(alarm, 10, cb, NULL); in TEST_F()
129 alarm_set(alarm, 10, cb, NULL); in TEST_F()
149 alarm_set(alarm, 0, cb, NULL); in TEST_F()
167 alarm_set(alarm, TIMER_INTERVAL_FOR_WAKELOCK_IN_MS + EPSILON_MS, cb, NULL); in TEST_F()
184 alarm_set(alarm[0], 10, cb, NULL); in TEST_F()
185 alarm_set(alarm[1], 20, cb, NULL); in TEST_F()
208 alarm_set(alarm[0], 10, cb, NULL); in TEST_F()
[all …]
/system/bt/vendor_libs/linux/interface/
Dbluetooth_hci.cc267 const ::android::sp<IBluetoothHciCallbacks>& cb) { in initialize()
269 if (cb == nullptr) { in initialize()
275 cb->linkToDeath(death_recipient_, 0); in initialize()
277 auto hidl_status = cb->initializationComplete( in initialize()
284 [cb](const hidl_vec<uint8_t>& packet) { cb->hciEventReceived(packet); }, in initialize()
285 [cb](const hidl_vec<uint8_t>& packet) { cb->aclDataReceived(packet); }, in initialize()
286 [cb](const hidl_vec<uint8_t>& packet) { cb->scoDataReceived(packet); }); in initialize()
292 unlink_cb_ = [cb](sp<BluetoothDeathRecipient>& death_recipient) { in initialize()
296 cb->unlinkToDeath(death_recipient); in initialize()
/system/core/libpixelflinger/
Draster.cpp59 surface_t* cb = &(c->state.buffers.color); in ggl_copyPixels() local
62 if (uint32_t(xs) > cb->width) in ggl_copyPixels()
64 if (uint32_t(ys) > cb->height) in ggl_copyPixels()
66 if (uint32_t(xs + width) > cb->width) in ggl_copyPixels()
68 if (uint32_t(ys + height) > cb->height) in ggl_copyPixels()
105 const GGLFormat* fp = &(c->formats[cb->format]); in ggl_copyPixels()
106 uint8_t* src = reinterpret_cast<uint8_t*>(cb->data) in ggl_copyPixels()
107 + (xs + (cb->stride * ys)) * fp->size; in ggl_copyPixels()
108 uint8_t* dst = reinterpret_cast<uint8_t*>(cb->data) in ggl_copyPixels()
109 + (xd + (cb->stride * yd)) * fp->size; in ggl_copyPixels()
[all …]
/system/bt/btif/avrcp/
Davrcp_service.cc139 MediaInterfaceWrapper(MediaInterface* cb) : wrapped_(cb){}; in MediaInterfaceWrapper() argument
147 auto cb_lambda = [](SongInfoCallback cb, SongInfo data) { in GetSongInfo() argument
148 do_in_main_thread(FROM_HERE, base::Bind(cb, data)); in GetSongInfo()
158 auto cb_lambda = [](PlayStatusCallback cb, PlayStatus status) { in GetPlayStatus() argument
159 do_in_main_thread(FROM_HERE, base::Bind(cb, status)); in GetPlayStatus()
169 auto cb_lambda = [](NowPlayingCallback cb, std::string curr_media_id, in GetNowPlayingList()
172 base::Bind(cb, curr_media_id, std::move(song_list))); in GetNowPlayingList()
182 auto cb_lambda = [](MediaListCallback cb, uint16_t curr_player, in GetMediaPlayerList()
185 base::Bind(cb, curr_player, std::move(player_list))); in GetMediaPlayerList()
196 auto cb_lambda = [](FolderItemsCallback cb, in GetFolderItems()
[all …]
/system/bt/test/rootcanal/
Dbluetooth_hci.cc73 Return<void> BluetoothHci::initialize(const sp<IBluetoothHciCallbacks>& cb) { in initialize() argument
76 if (cb == nullptr) { in initialize()
82 cb->linkToDeath(death_recipient_, 0); in initialize()
93 controller_->RegisterEventChannel([cb](std::shared_ptr<std::vector<uint8_t>> packet) { in initialize()
95 cb->hciEventReceived(hci_event); in initialize()
98 controller_->RegisterAclChannel([cb](std::shared_ptr<std::vector<uint8_t>> packet) { in initialize()
100 cb->aclDataReceived(acl_packet); in initialize()
103 controller_->RegisterScoChannel([cb](std::shared_ptr<std::vector<uint8_t>> packet) { in initialize()
105 cb->aclDataReceived(sco_packet); in initialize()
147 unlink_cb_ = [cb](sp<BluetoothDeathRecipient>& death_recipient) { in initialize()
[all …]

12345678910>>...12