Loading android/app/jni/com_android_bluetooth_pan.cpp +0 −9 Original line number Diff line number Diff line Loading @@ -171,14 +171,6 @@ static void cleanupNative(JNIEnv* env, jobject object) { btIf = NULL; } static jint getPanLocalRoleNative(JNIEnv* env, jobject object) { debug("in"); int local_role = 0; if (sPanIf) local_role = sPanIf->get_local_role(); debug("out"); return (jint)local_role; } static jboolean connectPanNative(JNIEnv* env, jobject object, jbyteArray address, jint src_role, jint dest_role) { Loading Loading @@ -228,7 +220,6 @@ static JNINativeMethod sMethods[] = { {"initializeNative", "()V", (void*)initializeNative}, {"cleanupNative", "()V", (void*)cleanupNative}, {"connectPanNative", "([BII)Z", (void*)connectPanNative}, {"getPanLocalRoleNative", "()I", (void*)getPanLocalRoleNative}, {"disconnectPanNative", "([B)Z", (void*)disconnectPanNative}, // TBD cleanup }; Loading android/app/src/com/android/bluetooth/pan/PanService.java +0 −35 Original line number Diff line number Diff line Loading @@ -289,25 +289,6 @@ public class PanService extends ProfileService { return service.getConnectionState(device); } private boolean isPanNapOn() { PanService service = getService(); if (service == null) { return false; } return service.isPanNapOn(); } private boolean isPanUOn() { if (DBG) { Log.d(TAG, "isTetheringOn call getPanLocalRoleNative"); } PanService service = getService(); if (service == null) { return false; } return service.isPanUOn(); } @Override public boolean isTetheringOn() { // TODO(BT) have a variable marking the on/off state Loading Loading @@ -382,20 +363,6 @@ public class PanService extends ProfileService { return panDevice.mState; } boolean isPanNapOn() { if (DBG) { Log.d(TAG, "isTetheringOn call getPanLocalRoleNative"); } return (getPanLocalRoleNative() & BluetoothPan.LOCAL_NAP_ROLE) != 0; } boolean isPanUOn() { if (DBG) { Log.d(TAG, "isTetheringOn call getPanLocalRoleNative"); } return (getPanLocalRoleNative() & BluetoothPan.LOCAL_PANU_ROLE) != 0; } public boolean isTetheringOn() { // TODO(BT) have a variable marking the on/off state enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); Loading Loading @@ -801,6 +768,4 @@ public class PanService extends ProfileService { private native boolean disconnectPanNative(byte[] btAddress); private native int getPanLocalRoleNative(); } Loading
android/app/jni/com_android_bluetooth_pan.cpp +0 −9 Original line number Diff line number Diff line Loading @@ -171,14 +171,6 @@ static void cleanupNative(JNIEnv* env, jobject object) { btIf = NULL; } static jint getPanLocalRoleNative(JNIEnv* env, jobject object) { debug("in"); int local_role = 0; if (sPanIf) local_role = sPanIf->get_local_role(); debug("out"); return (jint)local_role; } static jboolean connectPanNative(JNIEnv* env, jobject object, jbyteArray address, jint src_role, jint dest_role) { Loading Loading @@ -228,7 +220,6 @@ static JNINativeMethod sMethods[] = { {"initializeNative", "()V", (void*)initializeNative}, {"cleanupNative", "()V", (void*)cleanupNative}, {"connectPanNative", "([BII)Z", (void*)connectPanNative}, {"getPanLocalRoleNative", "()I", (void*)getPanLocalRoleNative}, {"disconnectPanNative", "([B)Z", (void*)disconnectPanNative}, // TBD cleanup }; Loading
android/app/src/com/android/bluetooth/pan/PanService.java +0 −35 Original line number Diff line number Diff line Loading @@ -289,25 +289,6 @@ public class PanService extends ProfileService { return service.getConnectionState(device); } private boolean isPanNapOn() { PanService service = getService(); if (service == null) { return false; } return service.isPanNapOn(); } private boolean isPanUOn() { if (DBG) { Log.d(TAG, "isTetheringOn call getPanLocalRoleNative"); } PanService service = getService(); if (service == null) { return false; } return service.isPanUOn(); } @Override public boolean isTetheringOn() { // TODO(BT) have a variable marking the on/off state Loading Loading @@ -382,20 +363,6 @@ public class PanService extends ProfileService { return panDevice.mState; } boolean isPanNapOn() { if (DBG) { Log.d(TAG, "isTetheringOn call getPanLocalRoleNative"); } return (getPanLocalRoleNative() & BluetoothPan.LOCAL_NAP_ROLE) != 0; } boolean isPanUOn() { if (DBG) { Log.d(TAG, "isTetheringOn call getPanLocalRoleNative"); } return (getPanLocalRoleNative() & BluetoothPan.LOCAL_PANU_ROLE) != 0; } public boolean isTetheringOn() { // TODO(BT) have a variable marking the on/off state enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); Loading Loading @@ -801,6 +768,4 @@ public class PanService extends ProfileService { private native boolean disconnectPanNative(byte[] btAddress); private native int getPanLocalRoleNative(); }