Home | History | Annotate | Download | only in heart_rate

Lines Matching defs:bluetooth

29 #include <android/bluetooth/IBluetooth.h>
35 using android::bluetooth::IBluetooth;
41 std::string kServiceName = "bluetooth-service";
50 // Handles the case where the Bluetooth process dies.
61 LOG(ERROR) << "The Bluetooth daemon has died. Aborting.";
95 sp<IBluetooth> bluetooth;
96 status_t status = getService(String16(kServiceName.c_str()), &bluetooth);
103 // Bluetooth needs to be enabled for our demo to work.
105 bluetooth->IsEnabled(&enabled);
107 LOG(ERROR) << "Bluetooth is not enabled.";
112 // handle the case where the Bluetooth daemon process (bluetoothtbd) dies
116 if (android::IInterface::asBinder(bluetooth.get())->linkToDeath(dr) !=
123 // otherwise, incoming callbacks from the Bluetooth daemon would block the
145 new heart_rate::HeartRateServer(bluetooth, main_loop.task_runner(),