Home
last modified time | relevance | path

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

123

/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
H A DA2dpDeviceCriteria.java19 import android.bluetooth.BluetoothClass;
30 return majorDeviceClass == BluetoothClass.Device.Major.AUDIO_VIDEO; in isMatchingMajorDeviceClass()
36 return (majorMinorClass == BluetoothClass.Device.AUDIO_VIDEO_UNCATEGORIZED || in isMatchingDeviceClass()
37 majorMinorClass == BluetoothClass.Device.AUDIO_VIDEO_WEARABLE_HEADSET || in isMatchingDeviceClass()
38 majorMinorClass == BluetoothClass.Device.AUDIO_VIDEO_HEADPHONES || in isMatchingDeviceClass()
39 majorMinorClass == BluetoothClass.Device.AUDIO_VIDEO_LOUDSPEAKER || in isMatchingDeviceClass()
40 majorMinorClass == BluetoothClass.Device.AUDIO_VIDEO_PORTABLE_AUDIO || in isMatchingDeviceClass()
41 majorMinorClass == BluetoothClass.Device.AUDIO_VIDEO_HIFI_AUDIO in isMatchingDeviceClass()
H A DInputDeviceCriteria.java19 import android.bluetooth.BluetoothClass;
38 return majorDeviceClass == BluetoothClass.Device.Major.PERIPHERAL; in isMatchingMajorDeviceClass()
50 public boolean isInputDevice(BluetoothClass bluetoothClass) { in isInputDevice()
H A DAccessoriesFragment.java20 import android.bluetooth.BluetoothClass;
188 if (devClass == BluetoothClass.Device.AUDIO_VIDEO_WEARABLE_HEADSET) { in getImageIdForDevice()
190 } else if (devClass == BluetoothClass.Device.AUDIO_VIDEO_HEADPHONES in getImageIdForDevice()
191 || devClass == BluetoothClass.Device.AUDIO_VIDEO_LOUDSPEAKER in getImageIdForDevice()
192 || devClass == BluetoothClass.Device.AUDIO_VIDEO_PORTABLE_AUDIO in getImageIdForDevice()
193 || devClass == BluetoothClass.Device.AUDIO_VIDEO_HIFI_AUDIO) { in getImageIdForDevice()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A 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 …]
H A 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()
H A DBluetoothUtils.java5 import android.bluetooth.BluetoothClass;
75 BluetoothClass btClass = cachedDevice.getBtClass(); in getBtClassDrawableWithDescription()
78 case BluetoothClass.Device.Major.COMPUTER: in getBtClassDrawableWithDescription()
83 case BluetoothClass.Device.Major.PHONE: in getBtClassDrawableWithDescription()
89 case BluetoothClass.Device.Major.PERIPHERAL: in getBtClassDrawableWithDescription()
94 case BluetoothClass.Device.Major.IMAGING: in getBtClassDrawableWithDescription()
113 if (btClass.doesClassMatch(BluetoothClass.PROFILE_HEADSET)) { in getBtClassDrawableWithDescription()
119 if (btClass.doesClassMatch(BluetoothClass.PROFILE_A2DP)) { in getBtClassDrawableWithDescription()
H A DLocalBluetoothProfile.java19 import android.bluetooth.BluetoothClass;
81 int getDrawableResource(BluetoothClass btClass); in getDrawableResource()
H A DOppProfile.java19 import android.bluetooth.BluetoothClass;
87 public int getDrawableResource(BluetoothClass btClass) { in getDrawableResource()
H A DPbapServerProfile.java22 import android.bluetooth.BluetoothClass;
139 public int getDrawableResource(BluetoothClass btClass) { in getDrawableResource()
H A DHidDeviceProfile.java22 import android.bluetooth.BluetoothClass;
164 public int getDrawableResource(BluetoothClass btClass) { in getDrawableResource()
/aosp12/frameworks/base/core/java/android/bluetooth/
H A DBluetoothClass.java59 public final class BluetoothClass implements Parcelable { class
71 public BluetoothClass(int classInt) { in BluetoothClass() method in BluetoothClass
77 if (o instanceof BluetoothClass) { in equals()
78 return mClass == ((BluetoothClass) o).mClass; in equals()
98 public static final @android.annotation.NonNull Parcelable.Creator<BluetoothClass> CREATOR =
99 new Parcelable.Creator<BluetoothClass>() {
100 public BluetoothClass createFromParcel(Parcel in) {
101 return new BluetoothClass(in.readInt());
104 public BluetoothClass[] newArray(int size) {
105 return new BluetoothClass[size];
H A DBluetoothMap.java259 public static boolean doesClassMatchSink(BluetoothClass btClass) { in doesClassMatchSink()
262 case BluetoothClass.Device.COMPUTER_DESKTOP: in doesClassMatchSink()
263 case BluetoothClass.Device.COMPUTER_LAPTOP: in doesClassMatchSink()
264 case BluetoothClass.Device.COMPUTER_SERVER: in doesClassMatchSink()
265 case BluetoothClass.Device.COMPUTER_UNCATEGORIZED: in doesClassMatchSink()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
H A DBluetoothMediaDevice.java18 import android.bluetooth.BluetoothClass;
87 final BluetoothClass bluetoothClass = mCachedDevice.getDevice().getBluetoothClass(); in isCarKitDevice()
91 case BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE: in isCarKitDevice()
92 case BluetoothClass.Device.AUDIO_VIDEO_CAR_AUDIO: in isCarKitDevice()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
H A DBluetoothPairingControllerTest.java23 import android.bluetooth.BluetoothClass;
42 private final BluetoothClass mBluetoothClass =
43 new BluetoothClass(BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE);
H A DBluetoothDetailsControllerTestBase.java22 import android.bluetooth.BluetoothClass;
63 protected BluetoothClass mBluetoothDeviceClass;
141 .setMajorDeviceClass(BluetoothClass.Device.Major.AUDIO_VIDEO) in makeDefaultDeviceConfig()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/qc/
H A DPairedBluetoothDevices.java26 import android.bluetooth.BluetoothClass;
223 BluetoothClass btClass = device.getBtClass(); in getIconRes()
226 case BluetoothClass.Device.Major.COMPUTER: in getIconRes()
228 case BluetoothClass.Device.Major.PHONE: in getIconRes()
230 case BluetoothClass.Device.Major.PERIPHERAL: in getIconRes()
232 case BluetoothClass.Device.Major.IMAGING: in getIconRes()
247 if (btClass.doesClassMatch(BluetoothClass.PROFILE_HEADSET)) { in getIconRes()
250 if (btClass.doesClassMatch(BluetoothClass.PROFILE_A2DP)) { in getIconRes()
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
H A DCachedBluetoothDeviceManagerTest.java27 import android.bluetooth.BluetoothClass;
54 private final BluetoothClass DEVICE_CLASS_1 =
55 new BluetoothClass(BluetoothClass.Device.AUDIO_VIDEO_HEADPHONES);
56 private final BluetoothClass DEVICE_CLASS_2 =
57 new BluetoothClass(BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE);
H A DBluetoothUtilsTest.java24 import android.bluetooth.BluetoothClass;
65 BluetoothClass.Device.Major.PHONE); in getBtClassDrawableWithDescription_typePhone_returnPhoneDrawable()
75 BluetoothClass.Device.Major.COMPUTER); in getBtClassDrawableWithDescription_typeComputer_returnComputerDrawable()
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
H A DMediaDeviceTest.java29 import android.bluetooth.BluetoothClass;
67 private final BluetoothClass mHeadreeClass =
68 new BluetoothClass(BluetoothClass.Device.AUDIO_VIDEO_HEADPHONES);
69 private final BluetoothClass mCarkitClass =
70 new BluetoothClass(BluetoothClass.Device.AUDIO_VIDEO_CAR_AUDIO);
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
H A DBluetoothDeviceNamePreferenceControllerTest.java27 import android.bluetooth.BluetoothClass;
124 new BluetoothClass(BluetoothClass.Device.Major.PHONE)); in refreshUi_setsIcon()
H A DBluetoothDevicePreferenceTest.java27 import android.bluetooth.BluetoothClass;
114 new BluetoothClass(BluetoothClass.Device.Major.PHONE)); in onAttached_setsIcon()
/aosp12/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DBluetoothPairingController.java18 import android.bluetooth.BluetoothClass;
182 == BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE) { in getContactSharingState()
197 getDeviceClass() == BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE)) { in setContactSharingState()
/aosp12/packages/apps/Nfc/src/com/android/nfc/handover/
H A DBluetoothPeripheralHandover.java21 import android.bluetooth.BluetoothClass;
124 int transport, OobData oobData, ParcelUuid[] uuids, BluetoothClass btClass, in BluetoothPeripheralHandover()
589 boolean hasA2dpCapability(ParcelUuid[] uuids, BluetoothClass btClass) { in hasA2dpCapability()
597 if (btClass != null && btClass.doesClassMatch(BluetoothClass.PROFILE_A2DP)) { in hasA2dpCapability()
603 boolean hasHeadsetCapability(ParcelUuid[] uuids, BluetoothClass btClass) { in hasHeadsetCapability()
611 if (btClass != null && btClass.doesClassMatch(BluetoothClass.PROFILE_HEADSET)) { in hasHeadsetCapability()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DBluetoothTile.java20 import android.bluetooth.BluetoothClass;
218 final BluetoothClass bluetoothClass = lastDevice.getBtClass(); in getSecondaryLabel()
223 } else if (bluetoothClass.doesClassMatch(BluetoothClass.PROFILE_A2DP)) { in getSecondaryLabel()
226 } else if (bluetoothClass.doesClassMatch(BluetoothClass.PROFILE_HEADSET)) { in getSecondaryLabel()
229 } else if (bluetoothClass.doesClassMatch(BluetoothClass.PROFILE_HID)) { in getSecondaryLabel()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
H A DBondStateMachine.java26 import android.bluetooth.BluetoothClass;
258 BluetoothClass btClass = dev.getBluetoothClass(); in processMessage()
260 if (btDeviceClass == BluetoothClass.Device.PERIPHERAL_KEYBOARD || btDeviceClass in processMessage()
261 == BluetoothClass.Device.PERIPHERAL_KEYBOARD_POINTING) { in processMessage()
412 BluetoothClass deviceClass = device.getBluetoothClass(); in sendIntent()
545 + " name:" + Utils.getName(bdDevice) + " cod:" + new BluetoothClass(cod)); in pinRequestCallback()

123