android.server
Class BluetoothEventLoop
java.lang.Object
android.server.BluetoothEventLoop
class BluetoothEventLoop
- extends Object
TODO: Move this to
java/services/com/android/server/BluetoothEventLoop.java
and make the contructor package private again.
|
Method Summary |
protected void |
finalize()
Called by the virtual machine when there are no longer any (non-weak)
references to the receiver. |
(package private) HashMap<String,IBluetoothDeviceCallback> |
getCreateBondingCallbacks()
|
(package private) HashMap<String,Integer> |
getPasskeyAgentRequestData()
|
(package private) HashMap<String,IBluetoothDeviceCallback> |
getRemoteServiceChannelCallbacks()
|
boolean |
isEventLoopRunning()
|
void |
onBondingCreated(String address)
|
void |
onBondingRemoved(String address)
|
void |
onDiscoveryCompleted()
|
void |
onDiscoveryStarted()
|
void |
onModeChanged(String mode)
|
void |
onNameChanged(String name)
|
void |
onPairingCancel()
|
void |
onPairingRequest()
|
void |
onPasskeyAgentCancel(String address)
|
void |
onPasskeyAgentRequest(String address,
int nativeData)
|
void |
onRemoteAliasChanged(String address,
String alias)
|
void |
onRemoteAliasCleared(String address)
|
void |
onRemoteClassUpdated(String address,
int deviceClass)
|
void |
onRemoteDeviceConnected(String address)
|
void |
onRemoteDeviceDisappeared(String address)
|
void |
onRemoteDeviceDisconnected(String address)
|
void |
onRemoteDeviceDisconnectRequested(String address)
|
void |
onRemoteDeviceFound(String address,
int deviceClass,
short rssi)
|
void |
onRemoteNameChanged(String address,
String name)
|
void |
onRemoteNameFailed(String address)
|
void |
onRemoteNameUpdated(String address,
String name)
|
(package private) void |
start()
|
void |
stop()
|
BluetoothEventLoop
BluetoothEventLoop(Context context,
BluetoothDeviceService bluetoothService)
finalize
protected void finalize()
throws Throwable
- Description copied from class:
Object
- Called by the virtual machine when there are no longer any (non-weak)
references to the receiver. Subclasses can use this facility to guarantee
that any associated resources are cleaned up before the receiver is
garbage collected. Uncaught exceptions which are thrown during the
running of the method cause it to terminate immediately, but are
otherwise ignored.
Note: The virtual machine assumes that the implementation in class Object
is empty.
- Overrides:
finalize in class Object
- Throws:
Throwable - The virtual machine ignores any exceptions which are
thrown during finalization.
getCreateBondingCallbacks
HashMap<String,IBluetoothDeviceCallback> getCreateBondingCallbacks()
getRemoteServiceChannelCallbacks
HashMap<String,IBluetoothDeviceCallback> getRemoteServiceChannelCallbacks()
getPasskeyAgentRequestData
HashMap<String,Integer> getPasskeyAgentRequestData()
start
void start()
stop
public void stop()
isEventLoopRunning
public boolean isEventLoopRunning()
onModeChanged
public void onModeChanged(String mode)
onDiscoveryStarted
public void onDiscoveryStarted()
onDiscoveryCompleted
public void onDiscoveryCompleted()
onPairingRequest
public void onPairingRequest()
onPairingCancel
public void onPairingCancel()
onRemoteDeviceFound
public void onRemoteDeviceFound(String address,
int deviceClass,
short rssi)
onRemoteDeviceDisappeared
public void onRemoteDeviceDisappeared(String address)
onRemoteClassUpdated
public void onRemoteClassUpdated(String address,
int deviceClass)
onRemoteDeviceConnected
public void onRemoteDeviceConnected(String address)
onRemoteDeviceDisconnectRequested
public void onRemoteDeviceDisconnectRequested(String address)
onRemoteDeviceDisconnected
public void onRemoteDeviceDisconnected(String address)
onRemoteNameUpdated
public void onRemoteNameUpdated(String address,
String name)
onRemoteNameFailed
public void onRemoteNameFailed(String address)
onRemoteNameChanged
public void onRemoteNameChanged(String address,
String name)
onRemoteAliasChanged
public void onRemoteAliasChanged(String address,
String alias)
onRemoteAliasCleared
public void onRemoteAliasCleared(String address)
onBondingCreated
public void onBondingCreated(String address)
onBondingRemoved
public void onBondingRemoved(String address)
onNameChanged
public void onNameChanged(String name)
onPasskeyAgentRequest
public void onPasskeyAgentRequest(String address,
int nativeData)
onPasskeyAgentCancel
public void onPasskeyAgentCancel(String address)
Please submit a feedback, bug or feature