diff options
author | Nick Pelly <npelly@google.com> | 2009-09-24 11:14:15 -0700 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2009-09-24 19:34:54 -0700 |
commit | 18b1e79a123b979d25bfa5d0b0ee5d0382dbd64b (patch) | |
tree | e0d6ccb1c8c3c7b6a653253f0b98a416f3521025 /api | |
parent | cc89ef3d6e9b1f9be657c9158ad04b8de104434c (diff) | |
download | frameworks_base-18b1e79a123b979d25bfa5d0b0ee5d0382dbd64b.zip frameworks_base-18b1e79a123b979d25bfa5d0b0ee5d0382dbd64b.tar.gz frameworks_base-18b1e79a123b979d25bfa5d0b0ee5d0382dbd64b.tar.bz2 |
Bluetooth API: Do not allow apps to programmatically make BT discoverable.
Instead add ACTION_REQUEST_DISCOVERABLE for the system to show a dialog to
adjust discoverable mode.
Also remove createBond(), removeBond() and cancelBondProcess(). The Settings
App already handles these automatically when connections require bonding.
Change-Id: I216154cd1b6de410de64ba91b07d7263ac03e8df
Diffstat (limited to 'api')
-rw-r--r-- | api/current.xml | 68 |
1 files changed, 22 insertions, 46 deletions
diff --git a/api/current.xml b/api/current.xml index b776052..35bfab3 100644 --- a/api/current.xml +++ b/api/current.xml @@ -25927,19 +25927,6 @@ <parameter name="name" type="java.lang.String"> </parameter> </method> -<method name="setScanMode" - return="boolean" - abstract="false" - native="false" - synchronized="false" - static="false" - final="false" - deprecated="not deprecated" - visibility="public" -> -<parameter name="mode" type="int"> -</parameter> -</method> <method name="startDiscovery" return="boolean" abstract="false" @@ -25984,6 +25971,17 @@ visibility="public" > </field> +<field name="ACTION_REQUEST_DISCOVERABLE" + type="java.lang.String" + transient="false" + volatile="false" + value=""android.bluetooth.adapter.action.REQUEST_DISCOVERABLE"" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> <field name="ACTION_SCAN_MODE_CHANGED" type="java.lang.String" transient="false" @@ -26017,6 +26015,17 @@ visibility="public" > </field> +<field name="EXTRA_DISCOVERABLE_DURATION" + type="java.lang.String" + transient="false" + volatile="false" + value=""android.bluetooth.adapter.extra.DISCOVERABLE_DURATION"" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> <field name="EXTRA_LOCAL_NAME" type="java.lang.String" transient="false" @@ -27063,28 +27072,6 @@ > <implements name="android.os.Parcelable"> </implements> -<method name="cancelBondProcess" - return="boolean" - abstract="false" - native="false" - synchronized="false" - static="false" - final="false" - deprecated="not deprecated" - visibility="public" -> -</method> -<method name="createBond" - return="boolean" - abstract="false" - native="false" - synchronized="false" - static="false" - final="false" - deprecated="not deprecated" - visibility="public" -> -</method> <method name="createRfcommSocket" return="android.bluetooth.BluetoothSocket" abstract="false" @@ -27155,17 +27142,6 @@ visibility="public" > </method> -<method name="removeBond" - return="boolean" - abstract="false" - native="false" - synchronized="false" - static="false" - final="false" - deprecated="not deprecated" - visibility="public" -> -</method> <method name="writeToParcel" return="void" abstract="false" |