Home
last modified time | relevance | path

Searched refs:BluetoothClass (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothDeviceFilter.java19 import android.bluetooth.BluetoothClass;
102 abstract boolean matches(ParcelUuid[] uuids, BluetoothClass btClass); in matches()
112 boolean matches(ParcelUuid[] uuids, BluetoothClass btClass) { in matches()
121 if (btClass.doesClassMatch(BluetoothClass.PROFILE_A2DP) || in matches()
122 btClass.doesClassMatch(BluetoothClass.PROFILE_HEADSET)) { in matches()
133 boolean matches(ParcelUuid[] uuids, BluetoothClass btClass) { in matches()
140 && btClass.doesClassMatch(BluetoothClass.PROFILE_OPP); in matches()
147 boolean matches(ParcelUuid[] uuids, BluetoothClass btClass) { in matches()
154 && btClass.doesClassMatch(BluetoothClass.PROFILE_PANU); in matches()
161 boolean matches(ParcelUuid[] uuids, BluetoothClass btClass) { in matches()
[all …]
DHidProfile.java23 import android.bluetooth.BluetoothClass;
171 public int getDrawableResource(BluetoothClass btClass) { in getDrawableResource()
178 public static int getHidClassDrawable(BluetoothClass btClass) { in getHidClassDrawable()
180 case BluetoothClass.Device.PERIPHERAL_KEYBOARD: in getHidClassDrawable()
181 case BluetoothClass.Device.PERIPHERAL_KEYBOARD_POINTING: in getHidClassDrawable()
183 case BluetoothClass.Device.PERIPHERAL_POINTING: in getHidClassDrawable()
DBluetoothUtils.java3 import android.bluetooth.BluetoothClass;
66 BluetoothClass btClass = cachedDevice.getBtClass(); in getBtClassDrawableWithDescription()
69 case BluetoothClass.Device.Major.COMPUTER: in getBtClassDrawableWithDescription()
74 case BluetoothClass.Device.Major.PHONE: in getBtClassDrawableWithDescription()
80 case BluetoothClass.Device.Major.PERIPHERAL: in getBtClassDrawableWithDescription()
85 case BluetoothClass.Device.Major.IMAGING: in getBtClassDrawableWithDescription()
104 if (btClass.doesClassMatch(BluetoothClass.PROFILE_HEADSET)) { in getBtClassDrawableWithDescription()
110 if (btClass.doesClassMatch(BluetoothClass.PROFILE_A2DP)) { in getBtClassDrawableWithDescription()
DLocalBluetoothProfile.java19 import android.bluetooth.BluetoothClass;
81 int getDrawableResource(BluetoothClass btClass); in getDrawableResource()
DOppProfile.java19 import android.bluetooth.BluetoothClass;
87 public int getDrawableResource(BluetoothClass btClass) { in getDrawableResource()
DPbapServerProfile.java22 import android.bluetooth.BluetoothClass;
139 public int getDrawableResource(BluetoothClass btClass) { in getDrawableResource()
DHidDeviceProfile.java22 import android.bluetooth.BluetoothClass;
164 public int getDrawableResource(BluetoothClass btClass) { in getDrawableResource()
DPanProfile.java23 import android.bluetooth.BluetoothClass;
162 public int getDrawableResource(BluetoothClass btClass) { in getDrawableResource()
DSapProfile.java23 import android.bluetooth.BluetoothClass;
190 public int getDrawableResource(BluetoothClass btClass) { in getDrawableResource()
DPbapClientProfile.java23 import android.bluetooth.BluetoothClass;
186 public int getDrawableResource(BluetoothClass btClass) { in getDrawableResource()
DA2dpSinkProfile.java24 import android.bluetooth.BluetoothClass;
198 public int getDrawableResource(BluetoothClass btClass) { in getDrawableResource()
DMapProfile.java23 import android.bluetooth.BluetoothClass;
192 public int getDrawableResource(BluetoothClass btClass) { in getDrawableResource()
DMapClientProfile.java23 import android.bluetooth.BluetoothClass;
193 public int getDrawableResource(BluetoothClass btClass) { in getDrawableResource()
DHfpClientProfile.java23 import android.bluetooth.BluetoothClass;
199 public int getDrawableResource(BluetoothClass btClass) { in getDrawableResource()
DHeadsetProfile.java24 import android.bluetooth.BluetoothClass;
224 public int getDrawableResource(BluetoothClass btClass) { in getDrawableResource()
DHearingAidProfile.java24 import android.bluetooth.BluetoothClass;
248 public int getDrawableResource(BluetoothClass btClass) { in getDrawableResource()
/frameworks/base/core/java/android/bluetooth/
DBluetoothClass.java58 public final class BluetoothClass implements Parcelable { class
70 public BluetoothClass(int classInt) { in BluetoothClass() method in BluetoothClass
76 if (o instanceof BluetoothClass) { in equals()
77 return mClass == ((BluetoothClass) o).mClass; in equals()
97 public static final @android.annotation.NonNull Parcelable.Creator<BluetoothClass> CREATOR =
98 new Parcelable.Creator<BluetoothClass>() {
99 public BluetoothClass createFromParcel(Parcel in) {
100 return new BluetoothClass(in.readInt());
103 public BluetoothClass[] newArray(int size) {
104 return new BluetoothClass[size];
DBluetoothMap.java238 public static boolean doesClassMatchSink(BluetoothClass btClass) { in doesClassMatchSink()
241 case BluetoothClass.Device.COMPUTER_DESKTOP: in doesClassMatchSink()
242 case BluetoothClass.Device.COMPUTER_LAPTOP: in doesClassMatchSink()
243 case BluetoothClass.Device.COMPUTER_SERVER: in doesClassMatchSink()
244 case BluetoothClass.Device.COMPUTER_UNCATEGORIZED: in doesClassMatchSink()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DBluetoothMediaDevice.java18 import android.bluetooth.BluetoothClass;
91 final BluetoothClass bluetoothClass = mCachedDevice.getDevice().getBluetoothClass(); in isCarKitDevice()
95 case BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE: in isCarKitDevice()
96 case BluetoothClass.Device.AUDIO_VIDEO_CAR_AUDIO: in isCarKitDevice()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DMediaDeviceTest.java22 import android.bluetooth.BluetoothClass;
59 private final BluetoothClass mHeadreeClass =
60 new BluetoothClass(BluetoothClass.Device.AUDIO_VIDEO_HEADPHONES);
61 private final BluetoothClass mCarkitClass =
62 new BluetoothClass(BluetoothClass.Device.AUDIO_VIDEO_CAR_AUDIO);
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DBluetoothUtilsTest.java24 import android.bluetooth.BluetoothClass;
65 BluetoothClass.Device.Major.PHONE); in getBtClassDrawableWithDescription_typePhone_returnPhoneDrawable()
75 BluetoothClass.Device.Major.COMPUTER); in getBtClassDrawableWithDescription_typeComputer_returnComputerDrawable()
DCachedBluetoothDeviceManagerTest.java27 import android.bluetooth.BluetoothClass;
57 private final BluetoothClass DEVICE_CLASS_1 =
58 new BluetoothClass(BluetoothClass.Device.AUDIO_VIDEO_HEADPHONES);
59 private final BluetoothClass DEVICE_CLASS_2 =
60 new BluetoothClass(BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE);
DHearingAidDeviceManagerTest.java26 import android.bluetooth.BluetoothClass;
50 private final BluetoothClass DEVICE_CLASS =
51 new BluetoothClass(BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBluetoothTile.java21 import android.bluetooth.BluetoothClass;
208 final BluetoothClass bluetoothClass = lastDevice.getBtClass(); in getSecondaryLabel()
213 } else if (bluetoothClass.doesClassMatch(BluetoothClass.PROFILE_A2DP)) { in getSecondaryLabel()
216 } else if (bluetoothClass.doesClassMatch(BluetoothClass.PROFILE_HEADSET)) { in getSecondaryLabel()
219 } else if (bluetoothClass.doesClassMatch(BluetoothClass.PROFILE_HID)) { in getSecondaryLabel()
/frameworks/base/services/core/java/com/android/server/audio/
DBtHelper.java22 import android.bluetooth.BluetoothClass;
534 BluetoothClass btClass = btDevice.getBluetoothClass(); in handleBtScoActiveDeviceChange()
543 case BluetoothClass.Device.AUDIO_VIDEO_WEARABLE_HEADSET: in handleBtScoActiveDeviceChange()
544 case BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE: in handleBtScoActiveDeviceChange()
547 case BluetoothClass.Device.AUDIO_VIDEO_CAR_AUDIO: in handleBtScoActiveDeviceChange()

12