OSDN Git Service

Move startAdvertising() logic into native code (1/3)
authorJakub Pawlowski <jpawlowski@google.com>
Thu, 17 Nov 2016 21:17:04 +0000 (13:17 -0800)
committerJakub Pawlowski <jpawlowski@google.com>
Fri, 18 Nov 2016 19:53:11 +0000 (11:53 -0800)
commite82cce565b1549001f5a70526239c2d92106f85a
treef9a3622e965ff8e679e0e19e5bfdd392c04672b6
parent2beef8d58967ba6ed33d5da97fff13ca729e64a7
Move startAdvertising() logic into native code (1/3)

AdvertiseManager.startAdvertising() was implemented in Java layer for
historical reasons. Now that we have nice native callbacks and tests,
it can be moved into native code, where it will be shared between
Android daemon and bluetoothtbd.

Bug: 30622771
Test: native tests added to cover startAdvertising
Change-Id: Ifee1fc74ad3e749ffc0c6a734e450c540b5b59bb
jni/com_android_bluetooth_gatt.cpp
src/com/android/bluetooth/gatt/AdvertiseManager.java
src/com/android/bluetooth/gatt/GattService.java