/system/bt/btif/src/ |
H A D | btif_hf_client.cc | 95 btif_hf_client_cb_t cb[HF_CLIENT_MAX_DEVICES]; member in struct:__anon570 103 bool is_connected(const btif_hf_client_cb_t* cb); 134 #define CHECK_BTHF_CLIENT_SLC_CONNECTED(cb) \ 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); local 169 if (cb == NULL || !is_connected(cb)) { 176 HAL_CBACK(bt_hf_client_callbacks, audio_state_cb, &cb->peer_bda, 188 bool is_connected(const btif_hf_client_cb_t* cb) { argument 255 btif_hf_client_cb_t* cb = &btif_hf_client_cb_arr.cb[i]; local 301 btif_hf_client_cb_t* cb = btif_hf_client_allocate_cb(); local 340 btif_hf_client_cb_t* cb = btif_hf_client_get_cb_by_bda(*bd_addr); local 359 btif_hf_client_cb_t* cb = btif_hf_client_get_cb_by_bda(*bd_addr); local 389 btif_hf_client_cb_t* cb = btif_hf_client_get_cb_by_bda(*bd_addr); local 408 btif_hf_client_cb_t* cb = btif_hf_client_get_cb_by_bda(*bd_addr); local 430 btif_hf_client_cb_t* cb = btif_hf_client_get_cb_by_bda(*bd_addr); local 453 btif_hf_client_cb_t* cb = btif_hf_client_get_cb_by_bda(*bd_addr); local 483 btif_hf_client_cb_t* cb = btif_hf_client_get_cb_by_bda(*bd_addr); local 506 btif_hf_client_cb_t* cb = btif_hf_client_get_cb_by_bda(*bd_addr); local 527 btif_hf_client_cb_t* cb = btif_hf_client_get_cb_by_bda(*bd_addr); local 615 btif_hf_client_cb_t* cb = btif_hf_client_get_cb_by_bda(*bd_addr); local 638 btif_hf_client_cb_t* cb = btif_hf_client_get_cb_by_bda(*bd_addr); local 657 btif_hf_client_cb_t* cb = btif_hf_client_get_cb_by_bda(*bd_addr); local 676 btif_hf_client_cb_t* cb = btif_hf_client_get_cb_by_bda(*bd_addr); local 695 btif_hf_client_cb_t* cb = btif_hf_client_get_cb_by_bda(*bd_addr); local 737 btif_hf_client_cb_t* cb = btif_hf_client_get_cb_by_bda(*bd_addr); local 774 btif_hf_client_cb_t* cb = btif_hf_client_get_cb_by_bda(ind->bd_addr); local 829 btif_hf_client_cb_t* cb = btif_hf_client_get_cb_by_bda(p_data->bd_addr); local [all...] |
H A D | btif_ble_advertiser.cc | 88 void RegisterAdvertiserCb(IdStatusCallback cb, uint8_t advertiser_id, argument 92 do_in_jni_thread(Bind(cb, advertiser_id, status)); 95 void RegisterAdvertiser(IdStatusCallback cb) override { 100 base::Unretained(this), cb))); 117 void GetOwnAddress(uint8_t advertiser_id, GetAddressCallback cb) override { 122 jni_thread_wrapper(FROM_HERE, cb))); 126 ParametersCallback cb) override { 136 jni_thread_wrapper(FROM_HERE, cb))); 140 StatusCallback cb) override { 146 jni_thread_wrapper(FROM_HERE, cb))); [all...] |
H A D | btif_ble_scanner.cc | 208 void RegisterScanner(RegisterCallback cb) override { 211 [](RegisterCallback cb) { 214 jni_thread_wrapper(FROM_HERE, std::move(cb))); 216 std::move(cb))); 242 FilterParamSetupCallback cb) override { 254 jni_thread_wrapper(FROM_HERE, std::move(cb)))); 258 FilterConfigCallback cb) override { 267 Bind(std::move(cb), 271 void ScanFilterClear(int filter_index, FilterConfigCallback cb) override { 276 FROM_HERE, Bind(cb, BTM_BLE_PF_TYPE_AL [all...] |
H A D | btif_hearing_aid.cc | 41 const tracked_objects::Location& from_here, base::Callback<void()> cb) { 44 base::Callback<void()> cb) { do_in_jni_thread(from_here, cb); }, 45 from_here, std::move(cb)); 40 jni_thread_wrapper( const tracked_objects::Location& from_here, base::Callback<void()> cb) argument
|
/system/bt/hci/include/ |
H A D | btsnoop_mem.h | 32 void btsnoop_mem_set_callback(btsnoop_data_cb cb);
|
/system/core/include/utils/ |
H A D | misc.h | 35 void add_sysprop_change_callback(sysprop_change_callback cb, int priority);
|
/system/core/libutils/include/utils/ |
H A D | misc.h | 35 void add_sysprop_change_callback(sysprop_change_callback cb, int priority);
|
/system/bt/include/hardware/ |
H A D | ble_advertiser.h | 63 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;
|
H A D | ble_scanner.h | 86 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/osi/include/ |
H A D | alarm.h | 56 // Sets an |alarm| to execute a callback in the future. The |cb| 63 // it is cancelled or freed. When the alarm fires, the |cb| 66 // void cb(void *data) {...} 68 // The |data| argument may be NULL, but the |cb| callback may not 69 // be NULL. All |cb| callbacks scheduled through this call are 74 void alarm_set(alarm_t* alarm, period_ms_t interval_ms, alarm_callback_t cb, 78 // is same as |alarm_set| except that the |cb| callback is scheduled for 81 alarm_callback_t cb, void* data);
|
/system/bt/stack/btm/ |
H A D | btm_ble_batchscan.cc | 155 void storage_config_cb(Callback<void(uint8_t /* status */)> cb, uint8_t* p, argument 173 cb.Run(status); 176 void param_enable_cb(Callback<void(uint8_t /* status */)> cb, uint8_t* p, argument 194 cb.Run(status); 197 void disable_cb(base::Callback<void(uint8_t /* status */)> cb, uint8_t* p, argument 226 cb.Run(status); 234 hci_cmd_cb cb) { 243 btu_hcif_send_cmd_with_cb(FROM_HERE, HCI_BLE_BATCH_SCAN_OCF, param, len, cb); 249 tBTM_BLE_SCAN_REP_CBACK cb, uint8_t* p, uint16_t len) { 274 cb 233 btm_ble_read_batchscan_reports(tBTM_BLE_BATCH_SCAN_MODE scan_mode, hci_cmd_cb cb) argument 248 read_reports_cb(std::vector<uint8_t> data_all, uint8_t num_records_all, tBTM_BLE_SCAN_REP_CBACK cb, uint8_t* p, uint16_t len) argument 300 btm_ble_set_storage_config(uint8_t batch_scan_full_max, uint8_t batch_scan_trunc_max, uint8_t batch_scan_notify_threshold, hci_cmd_cb cb) argument 318 btm_ble_set_batchscan_param(tBTM_BLE_BATCH_SCAN_MODE scan_mode, uint32_t scan_interval, uint32_t scan_window, tBLE_ADDR_TYPE addr_type, tBTM_BLE_DISCARD_RULE discard_rule, hci_cmd_cb cb) argument 343 btm_ble_enable_batchscan(hci_cmd_cb cb) argument 372 BTM_BleSetStorageConfig(uint8_t batch_scan_full_max, uint8_t batch_scan_trunc_max, uint8_t batch_scan_notify_threshold, Callback<void(uint8_t )> cb, tBTM_BLE_SCAN_THRESHOLD_CBACK* p_thres_cback, tBTM_BLE_REF_VALUE ref_value) argument 412 BTM_BleEnableBatchScan(tBTM_BLE_BATCH_SCAN_MODE scan_mode, uint32_t scan_interval, uint32_t scan_window, tBLE_ADDR_TYPE addr_type, tBTM_BLE_DISCARD_RULE discard_rule, Callback<void(uint8_t )> cb) argument 464 BTM_BleDisableBatchScan(base::Callback<void(uint8_t )> cb) argument 480 BTM_BleReadScanReports(tBTM_BLE_BATCH_SCAN_MODE scan_mode, tBTM_BLE_SCAN_REP_CBACK cb) argument [all...] |
H A D | btm_ble_multi_adv.cc | 47 base::Callback<void(uint8_t[8])> cb); 148 IdTxPowerStatusCb cb; member in struct:__anon960::CreatorParams 177 void GetOwnAddress(uint8_t inst_id, GetAddressCallback cb) override { 178 cb.Run(adv_inst[inst_id].own_address_type, adv_inst[inst_id].own_address); 190 void OnRpaGenerationComplete(base::Callback<void(RawAddress)> cb, argument 215 cb.Run(bda); 218 void GenerateRpa(base::Callback<void(RawAddress)> cb) { argument 221 weak_factory_.GetWeakPtr(), std::move(cb))); 273 base::Callback<void(uint8_t /* inst_id */, uint8_t /* status */)> cb) 287 cb, 319 MultiAdvCb cb; member in struct:__anon960::BleAdvertisingManagerImpl::CreatorParams 631 base::Closure cb = Bind( local 674 EnableFinish(AdvertisingInstance* p_inst, bool enable, MultiAdvCb cb, uint8_t status) argument 782 SetDataAdvDataSender(uint8_t is_scan_rsp, uint8_t inst_id, uint8_t operation, uint8_t length, uint8_t* data, MultiAdvCb cb) argument [all...] |
/system/bt/bta/gatt/ |
H A D | bta_gattc_queue.cc | 31 GATT_READ_OP_CB cb; member in struct:gatt_read_op_data 47 GATT_READ_OP_CB tmp_cb = tmp->cb; 62 GATT_WRITE_OP_CB cb; member in struct:gatt_write_op_data 69 GATT_WRITE_OP_CB tmp_cb = tmp->cb; 111 data->cb = op.read_cb; 119 data->cb = op.read_cb; 127 data->cb = op.write_cb; 136 data->cb = op.write_cb; 151 GATT_READ_OP_CB cb, void* cb_data) { 154 .read_cb = cb, 150 ReadCharacteristic(uint16_t conn_id, uint16_t handle, GATT_READ_OP_CB cb, void* cb_data) argument 159 ReadDescriptor(uint16_t conn_id, uint16_t handle, GATT_READ_OP_CB cb, void* cb_data) argument 168 WriteCharacteristic(uint16_t conn_id, uint16_t handle, std::vector<uint8_t> value, tGATT_WRITE_TYPE write_type, GATT_WRITE_OP_CB cb, void* cb_data) argument 181 WriteDescriptor(uint16_t conn_id, uint16_t handle, std::vector<uint8_t> value, tGATT_WRITE_TYPE write_type, GATT_WRITE_OP_CB cb, void* cb_data) argument [all...] |
/system/bt/bta/include/ |
H A D | bta_gatt_queue.h | 39 GATT_READ_OP_CB cb, void* cb_data); 41 GATT_READ_OP_CB cb, void* cb_data); 45 GATT_WRITE_OP_CB cb, void* cb_data); 48 tGATT_WRITE_TYPE write_type, GATT_WRITE_OP_CB cb,
|
/system/bt/service/ipc/binder/ |
H A D | bluetooth_gatt_client_binder_server.cc | 64 auto cb = GetCallback(client_id); local 66 static_cast<IBluetoothGattClientCallback*>(cb.get())); 81 android::sp<IBluetoothGattClientCallback> cb( 83 cb->OnClientRegistered(status, (status == bluetooth::BLE_STATUS_SUCCESS)
|
H A D | bluetooth_le_advertiser_binder_server.cc | 93 auto cb = GetLECallback(advertiser_id); 94 if (!cb.get()) { 99 cb->OnMultiAdvertiseCallback(status, true /* is_start */, settings_copy); 136 auto cb = GetLECallback(advertiser_id); 137 if (!cb.get()) { 145 cb->OnMultiAdvertiseCallback(status, false /* is_start */, settings_copy); 160 auto cb = GetCallback(advertiser_id); local 162 static_cast<IBluetoothLeAdvertiserCallback*>(cb.get())); 176 android::sp<IBluetoothLeAdvertiserCallback> cb( 178 cb [all...] |
H A D | bluetooth_low_energy_binder_server.cc | 126 auto cb = GetLECallback(client->GetInstanceId()); local 127 if (!cb.get()) { 132 cb->OnConnectionState(status, client_id, 143 auto cb = GetLECallback(client_id); local 144 if (!cb.get()) { 149 cb->OnMtuChanged(status, String16(address, std::strlen(address)), mtu); 154 auto cb = GetCallback(client_id); local 156 static_cast<IBluetoothLowEnergyCallback*>(cb.get())); 173 android::sp<IBluetoothLowEnergyCallback> cb( 175 cb [all...] |
H A D | bluetooth_le_scanner_binder_server.cc | 110 auto cb = GetLECallback(scanner->GetInstanceId()); local 111 if (!cb.get()) { 116 cb->OnScanResult(result); 121 auto cb = GetCallback(scanner_id); local 123 static_cast<IBluetoothLeScannerCallback*>(cb.get())); 140 android::sp<IBluetoothLeScannerCallback> cb( 142 cb->OnScannerRegistered(status, (status == bluetooth::BLE_STATUS_SUCCESS)
|
/system/bt/stack/include/ |
H A D | ble_advertiser.h | 78 /* Register an advertising instance, status will be returned in |cb| 85 virtual void StartAdvertising(uint8_t advertiser_id, MultiAdvCb cb, 91 /* Register an advertising instance, status will be returned in |cb| 102 cb, 111 /* Register an advertising instance, status will be returned in |cb| 119 * returned in |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) [all...] |
/system/bt/hci/src/ |
H A D | btsnoop_mem.cc | 25 void btsnoop_mem_set_callback(btsnoop_data_cb cb) { data_callback = cb; } argument
|
/system/security/keystore-engine/ |
H A D | keystore_backend_hidl.cpp | 48 auto cb = [&](IKeystore::KeystoreStatusCode status, local 57 key_id, std::vector<uint8_t>(in, in + len), cb); 78 auto cb = [&](IKeystore::KeystoreStatusCode status, local 86 Return<void> ret = service->getPublicKey(key_id, cb);
|
/system/bt/test/rootcanal/ |
H A D | bluetooth_hci.cc | 69 Return<void> BluetoothHci::initialize(const sp<IBluetoothHciCallbacks>& cb) { argument 72 if (cb == nullptr) { 73 ALOGE("cb == nullptr! -> Unable to call initializationComplete(ERR)"); 78 cb->linkToDeath(death_recipient_, 0); 88 controller_.RegisterEventChannel([cb](std::unique_ptr<EventPacket> event) { 97 cb->hciEventReceived(hci_event); 100 controller_.RegisterAclChannel([cb](std::unique_ptr<AclPacket> packet) { 104 cb->aclDataReceived(acl_packet); 107 controller_.RegisterScoChannel([cb](std::unique_ptr<ScoPacket> packet) { 116 cb [all...] |
/system/bt/vendor_libs/linux/interface/ |
H A D | bluetooth_hci.cc | 268 const ::android::sp<IBluetoothHciCallbacks>& cb) { 270 if (cb == nullptr) { 271 ALOGE("cb == nullptr! -> Unable to call initializationComplete(ERR)"); 276 cb->linkToDeath(death_recipient_, 0); 278 auto hidl_status = cb->initializationComplete( 285 [cb](const hidl_vec<uint8_t>& packet) { cb->hciEventReceived(packet); }, 286 [cb](const hidl_vec<uint8_t>& packet) { cb->aclDataReceived(packet); }, 287 [cb](cons 267 initialize( const ::android::sp<IBluetoothHciCallbacks>& cb) argument [all...] |
/system/bt/osi/test/ |
H A D | alarm_test.cc | 78 static void cb(UNUSED_ATTR void* data) { function 106 alarm_set(alarm, 10, cb, NULL); 118 alarm_set(alarm, 10, cb, NULL); 128 alarm_set(alarm, 10, cb, NULL); 144 alarm_set(alarm, 10, cb, NULL); 164 alarm_set(alarm, 0, cb, NULL); 182 alarm_set(alarm, TIMER_INTERVAL_FOR_WAKELOCK_IN_MS + EPSILON_MS, cb, NULL); 199 alarm_set(alarm[0], 10, cb, NULL); 200 alarm_set(alarm[1], 20, cb, NULL); 223 alarm_set(alarm[0], 10, cb, NUL [all...] |
/system/core/libpixelflinger/ |
H A D | raster.cpp | 59 surface_t* cb = &(c->state.buffers.color); local 62 if (uint32_t(xs) > cb->width) 64 if (uint32_t(ys) > cb->height) 66 if (uint32_t(xs + width) > cb->width) 68 if (uint32_t(ys + height) > cb->height) 105 const GGLFormat* fp = &(c->formats[cb->format]); 106 uint8_t* src = reinterpret_cast<uint8_t*>(cb->data) 107 + (xs + (cb->stride * ys)) * fp->size; 108 uint8_t* dst = reinterpret_cast<uint8_t*>(cb->data) 109 + (xd + (cb [all...] |