Fix build by commenting out references to removed hidden API in sl4a.
Change-Id: I65d2c6844d6dacf360e21e794a6eb88aa6f6a8e8
diff --git a/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothLeAdvertiseFacade.java b/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothLeAdvertiseFacade.java
index 9d5db59..47b247d 100644
--- a/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothLeAdvertiseFacade.java
+++ b/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothLeAdvertiseFacade.java
@@ -57,7 +57,7 @@
private static int BleAdvertiseSettingsCount;
private static int BleAdvertiseDataCount;
private final HashMap<Integer, myAdvertiseCallback> mAdvertiseCallbackList;
- private final HashMap<Integer, myClassicAdvertiseCallback> mClassicAdvertiseCallbackList;
+ //private final HashMap<Integer, myClassicAdvertiseCallback> mClassicAdvertiseCallbackList;
private final BluetoothLeAdvertiser mAdvertise;
private final Service mService;
private Builder mAdvertiseDataBuilder;
@@ -77,7 +77,7 @@
});
mEventFacade = manager.getReceiver(EventFacade.class);
mAdvertiseCallbackList = new HashMap<Integer, myAdvertiseCallback>();
- mClassicAdvertiseCallbackList = new HashMap<Integer, myClassicAdvertiseCallback>();
+ //mClassicAdvertiseCallbackList = new HashMap<Integer, myClassicAdvertiseCallback>();
mAdvertise = mBluetoothAdapter.getBluetoothLeAdvertiser();
mAdvertiseDataList = new HashMap<Integer, AdvertiseData>();
mAdvertiseSettingsList = new HashMap<Integer, AdvertiseSettings>();
@@ -104,7 +104,7 @@
* Constructs a myClassicAdvertiseCallback obj and returns its index
*
* @return myClassicAdvertiseCallback.index
- */
+
@Rpc(description = "Generate a new myClassicAdvertisement Object")
public Integer genClassicBleAdvertiseCallback() {
ClassicBleAdvertiseCallbackCount += 1;
@@ -113,7 +113,7 @@
mClassicAdvertiseCallbackList.put(mCallback.index,
mCallback);
return mCallback.index;
- }
+ }*/
/**
* Constructs a AdvertiseData obj and returns its index
@@ -221,6 +221,7 @@
* @param index the id of the advertisement to stop advertising on
* @throws Exception
*/
+/*
@Rpc(description = "Stops an ongoing classic ble advertisement scan")
public void stopClassicBleAdvertising(
@RpcParameter(name = "index")
@@ -233,7 +234,7 @@
throw new Exception("Invalid index input:" + Integer.toString(index));
}
}
-
+*/
/**
* Starts ble advertising
*
@@ -330,7 +331,7 @@
*
* @param callbackIndex The advertisementCallback index
* @throws Exception
- */
+
@Rpc(description = "Starts ble advertisement")
public void startClassicBleAdvertising(
@RpcParameter(name = "callbackIndex")
@@ -348,7 +349,7 @@
throw new Exception("Invalid callbackIndex input" + Integer.toString(callbackIndex));
}
}
-
+*/
/**
* Set ble advertisement data include tx power level
*
@@ -671,7 +672,7 @@
mResults.clear();
}
}
-
+/*
private class myClassicAdvertiseCallback implements
android.bluetooth.BluetoothAdapter.AdvertiseCallback {
public Integer index;
@@ -684,7 +685,6 @@
mResults = new Bundle();
}
- @Override
public void onAdvertiseStart(int status) {
Log.d("bluetooth_classic_le_advertisement onAdvertiseStart " + mEventType + " "
+ index);
@@ -695,7 +695,6 @@
mResults.clear();
}
- @Override
public void onAdvertiseStop(int status) {
Log.d("bluetooth_classic_le_advertisement onAdvertiseStop " + mEventType + " "
+ index);
@@ -707,7 +706,7 @@
}
}
-
+*/
@Override
public void shutdown() {
if (mAdvertiseCallbackList.isEmpty() == false) {
@@ -722,16 +721,16 @@
mAdvertiseSettingsList.clear();
mAdvertiseDataList.clear();
}
-
+/*
if (mClassicAdvertiseCallbackList.isEmpty() == false) {
for (myClassicAdvertiseCallback mAdvertise : mClassicAdvertiseCallbackList
.values()) {
if (mAdvertise != null) {
- mBluetoothAdapter.stopAdvertising(mAdvertise);
+ //mBluetoothAdapter.stopAdvertising(mAdvertise);
}
}
mAdvertiseCallbackList.clear();
- }
+ }*/
}
}