Searched defs:cb (Results 1 - 25 of 58) sorted by relevance

123

/system/bt/btif/src/
H A Dbtif_hearing_aid.cc41 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
H A Dbtif_ble_advertiser.cc88 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 Dbtif_gatt_server.cc435 base::Callback<void(uint8_t tx_phy, uint8_t rx_phy, uint8_t status)> cb) {
438 jni_thread_wrapper(FROM_HERE, cb)));
433 btif_gatts_read_phy( const RawAddress& bd_addr, base::Callback<void(uint8_t tx_phy, uint8_t rx_phy, uint8_t status)> cb) argument
/system/bt/hci/src/
H A Dbtsnoop_mem.cc25 void btsnoop_mem_set_callback(btsnoop_data_cb cb) { data_callback = cb; } argument
/system/security/keystore/
H A Dkeystore_get_wifi_hidl.cpp50 auto cb = [&](IKeystore::KeystoreStatusCode status, hidl_vec<uint8_t> returnedValue) { local
58 Return<void> ret = service->getBlob(hidl_string(key, keyLength), cb);
H A Dpermissions.cpp107 union selinux_callback cb; local
108 cb.func_audit = audit_callback;
109 selinux_set_callback(SELINUX_CB_AUDIT, cb);
110 cb.func_log = selinux_log_callback;
111 selinux_set_callback(SELINUX_CB_LOG, cb);
/system/security/keystore-engine/
H A Dkeystore_backend_hidl.cpp48 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/service/ipc/binder/
H A Dbluetooth_gatt_client_binder_server.cc64 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 Dinterface_with_instances_base.cc48 bluetooth::BluetoothInstanceFactory::RegisterCallback cb = local
65 if (factory->RegisterInstance(app_uuid, cb)) return true;
H A Dbluetooth_le_advertiser_binder_server.cc93 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 Dbluetooth_le_scanner_binder_server.cc110 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)
H A Dbluetooth_low_energy_binder_server.cc126 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...]
/system/core/libutils/
H A Dmisc.cpp48 void add_sysprop_change_callback(sysprop_change_callback cb, int priority) { argument
54 info.callback = cb;
/system/bt/osi/test/
H A Dalarm_test.cc78 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/connectivity/wificond/tests/
H A Doffload_scan_manager_test.cpp76 Return<void> HidlStatusReturn(android::wificond::StatusCallback cb, argument
78 cb(*status);
82 Return<void> ScanStatusReturn(android::wificond::OnScanStatsCallback cb, argument
85 cb(*status, stats);
/system/tools/hidl/test/hidl_test/
H A DFooCallback.cpp33 ALOGI("SERVER(FooCallback) 1: heyItsYou cb = %p", _cb.get());
47 ALOGI("SERVER(FooCallback) 3: heyItsYouIsntIt cb = %p sleeping for %" PRId64 " seconds", _cb.get(), DELAY_S);
49 ALOGI("SERVER(FooCallback) 4: heyItsYouIsntIt cb = %p responding", _cb.get());
57 ALOGI("SERVER(FooCallback) 5: heyItsYouIsntIt cb = %p responding", _cb.get());
77 Return<void> FooCallback::reportResults(int64_t ns, reportResults_cb cb) { argument
108 cb(leftToWaitNs, invokeInfo);
/system/update_engine/update_manager/
H A Dgeneric_variables_unittest.cc129 base::Callback<CopyConstructorTestClass(void)> cb = base::Bind( local
131 CallCopyVariable<CopyConstructorTestClass> var("var", cb);
144 base::Callback<bool(void)> cb; local
145 CallCopyVariable<bool> var("var", cb);
/system/bt/bta/gatt/
H A Dbta_gattc_queue.cc31 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...]
H A Dbta_gatts_api.cc118 BTA_GATTS_AddServiceCb cb) {
125 cb.Run(GATT_ERROR, server_if, std::move(service));
131 cb.Run(GATT_ERROR, server_if, std::move(service));
139 cb.Run(GATT_ERROR, server_if, std::move(service));
149 cb.Run(GATT_SUCCESS, server_if, std::move(service));
170 BTA_GATTS_AddServiceCb cb) {
172 std::move(service), std::move(cb)));
116 bta_gatts_add_service_impl(tGATT_IF server_if, std::vector<btgatt_db_element_t> service, BTA_GATTS_AddServiceCb cb) argument
168 BTA_GATTS_AddService(tGATT_IF server_if, std::vector<btgatt_db_element_t> service, BTA_GATTS_AddServiceCb cb) argument
H A Dbta_gattc_api.cc72 * |cb| one time callback when registration is finished
75 BtaAppRegisterCallback cb) {
80 p_client_cb, std::move(cb)));
74 BTA_GATTC_AppRegister(tBTA_GATTC_CBACK* p_client_cb, BtaAppRegisterCallback cb) argument
/system/bt/test/rootcanal/
H A Dbluetooth_hci.cc69 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/core/libpixelflinger/
H A Draster.cpp59 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...]
/system/libhidl/base/
H A DHidlInternal.cpp196 auto cb = (cbFun)dlsym(handle, ("HIDL_INSTRUMENTATION_FUNCTION_" local
204 instrumentationCallbacks->push_back(cb);
/system/bt/btif/avrcp/
H A Davrcp_service.cc135 MediaInterfaceWrapper(MediaInterface* cb) : wrapped_(cb){}; argument
143 auto cb_lambda = [](SongInfoCallback cb, SongInfo data) {
144 do_in_bta_thread(FROM_HERE, base::Bind(cb, data));
154 auto cb_lambda = [](PlayStatusCallback cb, PlayStatus status) {
155 do_in_bta_thread(FROM_HERE, base::Bind(cb, status));
165 auto cb_lambda = [](NowPlayingCallback cb, std::string curr_media_id,
168 base::Bind(cb, curr_media_id, std::move(song_list)));
178 auto cb_lambda = [](MediaListCallback cb, uint16_t curr_player,
181 base::Bind(cb, curr_playe
[all...]
/system/bt/btif/include/
H A Dbtif_common.h188 const tracked_objects::Location& from_here, base::Callback<R(Args...)> cb) {
191 base::Callback<R(Args...)> cb, Args... args) {
193 base::Bind(cb, std::forward<Args>(args)...));
195 from_here, std::move(cb));
187 jni_thread_wrapper( const tracked_objects::Location& from_here, base::Callback<R(Args...)> cb) argument

Completed in 3663 milliseconds

123