Methods Summary |
---|
public abstract int | connect(java.lang.String address)
|
public abstract int | disconnect(java.lang.String address)
|
public static void | fill(int btClass, java.util.List profiles)Temporary method to fill profiles based on a device's class.
NOTE: This list happens to define the connection order. We should put this logic in a more
well known place when this method is no longer temporary.
profiles.clear();
if (BluetoothHeadset.doesClassMatch(btClass)) {
profiles.add(Profile.HEADSET);
}
if (BluetoothA2dp.doesClassMatchSink(btClass)) {
profiles.add(Profile.A2DP);
}
|
public abstract int | getConnectionStatus(java.lang.String address)
|
public static com.android.settings.bluetooth.LocalBluetoothProfileManager | getProfileManager(LocalBluetoothManager localManager, com.android.settings.bluetooth.LocalBluetoothProfileManager$Profile profile)
LocalBluetoothProfileManager profileManager;
synchronized (sProfileMap) {
profileManager = sProfileMap.get(profile);
if (profileManager == null) {
switch (profile) {
case A2DP:
profileManager = new A2dpProfileManager(localManager);
break;
case HEADSET:
profileManager = new HeadsetProfileManager(localManager);
break;
}
sProfileMap.put(profile, profileManager);
}
}
return profileManager;
|
public abstract int | getSummary(java.lang.String address)
|
public boolean | isConnected(java.lang.String address)
return SettingsBtStatus.isConnectionStatusConnected(getConnectionStatus(address));
|
public abstract boolean | isPreferred(java.lang.String address)
|
public abstract void | setPreferred(java.lang.String address, boolean preferred)
|