Home
last modified time | relevance | path

Searched refs:BluetoothUtils (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DBluetoothUtilsTest.java108 final Pair<Drawable, String> pair = BluetoothUtils.getBtClassDrawableWithDescription( in getBtClassDrawableWithDescription_typePhone_returnPhoneDrawable()
118 final Pair<Drawable, String> pair = BluetoothUtils.getBtClassDrawableWithDescription( in getBtClassDrawableWithDescription_typeComputer_returnComputerDrawable()
127 BluetoothUtils.getBtClassDrawableWithDescription(mContext, mCachedBluetoothDevice); in getBtClassDrawableWithDescription_typeHearingAid_returnHearingAidDrawable()
139 assertThat(BluetoothUtils.getBtRainbowDrawableWithDescription( in getBtRainbowDrawableWithDescription_normalHeadset_returnAdaptiveIcon()
150 assertThat(BluetoothUtils.getStringMetaData(mBluetoothDevice, in getStringMetaData_hasMetaData_getCorrectMetaData()
160 assertThat(BluetoothUtils.getIntMetaData(mBluetoothDevice, in getIntMetaData_hasMetaData_getCorrectMetaData()
170 assertThat(BluetoothUtils.getIntMetaData(mBluetoothDevice, in getIntMetaData_invalidMetaData_getErrorCode()
172 .isEqualTo(BluetoothUtils.META_INT_ERROR); in getIntMetaData_invalidMetaData_getErrorCode()
181 assertThat(BluetoothUtils.getBooleanMetaData(mBluetoothDevice, in getBooleanMetaData_hasMetaData_getCorrectMetaData()
191 assertThat(BluetoothUtils.getUriMetaData(mBluetoothDevice, in getUriMetaData_hasMetaData_getCorrectMetaData()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/bluetooth/qsdialog/
DDeviceItemFactory.kt22 import com.android.settingslib.bluetooth.BluetoothUtils
67 BluetoothUtils.getBtClassDrawableWithDescription(context, cachedDevice).let { in isFilterMatched()
85 return BluetoothUtils.isActiveMediaDevice(cachedDevice) && in isFilterMatched()
86 BluetoothUtils.isAvailableMediaBluetoothDevice(cachedDevice, audioManager) in isFilterMatched()
111 BluetoothUtils.hasConnectedBroadcastSource(cachedDevice, localBluetoothManager) in isFilterMatched()
134 return BluetoothUtils.isActiveMediaDevice(cachedDevice) && in isFilterMatched()
135 BluetoothUtils.isAvailableHearingDevice(cachedDevice) in isFilterMatched()
145 return !BluetoothUtils.isActiveMediaDevice(cachedDevice) && in isFilterMatched()
146 BluetoothUtils.isAvailableMediaBluetoothDevice(cachedDevice, audioManager) in isFilterMatched()
169 return !BluetoothUtils.isActiveMediaDevice(cachedDevice) && in isFilterMatched()
[all …]
DAudioSharingInteractor.kt20 import com.android.settingslib.bluetooth.BluetoothUtils in <lambda>()
74 BluetoothUtils.isBroadcasting(localBluetoothManager) -> in getButtonState()
80 BluetoothUtils.hasConnectedBroadcastSource( in getButtonState()
86 deviceItem.any { BluetoothUtils.isActiveLeAudioDevice(it.cachedBluetoothDevice) } -> in getButtonState()
DDeviceItemActionInteractor.kt26 import com.android.settingslib.bluetooth.BluetoothUtils in <lambda>()
82 BluetoothUtils.isAudioSharingEnabled() && in <lambda>()
87 val inAudioSharing = BluetoothUtils.isBroadcasting(localBluetoothManager) in <lambda>()
182 !BluetoothUtils.hasConnectedBroadcastSource( in <lambda>()
DBluetoothTileDialogViewModel.kt31 import com.android.settingslib.bluetooth.BluetoothUtils
149 if (BluetoothUtils.isAudioSharingEnabled()) { in showDialog()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bluetooth/qsdialog/
DDeviceItemActionInteractorTest.kt24 import com.android.settingslib.bluetooth.BluetoothUtils
75 mockitoSession().initMocks(this).mockStatic(BluetoothUtils::class.java).startMocking() in setUp()
125 whenever(BluetoothUtils.isAudioSharingEnabled()).thenReturn(false) in testOnClick_connectedMedia_setActive()
142 whenever(BluetoothUtils.isAudioSharingEnabled()).thenReturn(false) in testOnClick_activeMedia_disconnect()
159 whenever(BluetoothUtils.isAudioSharingEnabled()).thenReturn(false) in testOnClick_connectedOtherDevice_disconnect()
176 whenever(BluetoothUtils.isAudioSharingEnabled()).thenReturn(false) in testOnClick_saved_connect()
193 whenever(BluetoothUtils.isAudioSharingEnabled()).thenReturn(false) in testOnClick_audioSharingDisabled_shouldNotLaunchSettings()
214 whenever(BluetoothUtils.isAudioSharingEnabled()).thenReturn(true) in testOnClick_inAudioSharing_clickedDeviceHasSource_shouldNotLaunchSettings()
220 whenever(BluetoothUtils.isBroadcasting(ArgumentMatchers.any())).thenReturn(true) in testOnClick_inAudioSharing_clickedDeviceHasSource_shouldNotLaunchSettings()
222 BluetoothUtils.hasConnectedBroadcastSource( in testOnClick_inAudioSharing_clickedDeviceHasSource_shouldNotLaunchSettings()
[all …]
DAudioSharingInteractorTest.kt24 import com.android.settingslib.bluetooth.BluetoothUtils
65 mockitoSession().initMocks(this).mockStatic(BluetoothUtils::class.java).startMocking() in setUp()
106 whenever(BluetoothUtils.isBroadcasting(localBluetoothManager)).thenReturn(true) in testButtonStateUpdate_isBroadcasting_returnSharingAudio()
125 whenever(BluetoothUtils.isBroadcasting(localBluetoothManager)).thenReturn(false) in testButtonStateUpdate_hasSource_returnGone()
128 BluetoothUtils.hasConnectedBroadcastSource( in testButtonStateUpdate_hasSource_returnGone()
147 whenever(BluetoothUtils.isBroadcasting(localBluetoothManager)).thenReturn(false) in testButtonStateUpdate_hasActiveDevice_returnAudioSharing()
150 BluetoothUtils.hasConnectedBroadcastSource( in testButtonStateUpdate_hasActiveDevice_returnAudioSharing()
156 whenever(BluetoothUtils.isActiveLeAudioDevice(cachedBluetoothDevice)).thenReturn(true) in testButtonStateUpdate_hasActiveDevice_returnAudioSharing()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DBluetoothMediaDevice.java32 import com.android.settingslib.bluetooth.BluetoothUtils;
83 return BluetoothUtils.isAdvancedUntetheredDevice(mCachedDevice.getDevice()) in getIcon()
85 : BluetoothUtils.getBtClassDrawableWithDescription(mContext, mCachedDevice).first; in getIcon()
90 return BluetoothUtils.isAdvancedUntetheredDevice(mCachedDevice.getDevice()) in getIconWithoutBackground()
92 : BluetoothUtils.getBtClassDrawableWithDescription(mContext, mCachedDevice).first; in getIconWithoutBackground()
129 && BluetoothUtils.getBooleanMetaData( in isFastPairDevice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesChecker.java26 import com.android.settingslib.bluetooth.BluetoothUtils;
95 .anyMatch(device -> BluetoothUtils.isActiveMediaDevice(device) in isAnyActiveHearingDevice()
96 && BluetoothUtils.isAvailableHearingDevice(device) in isAnyActiveHearingDevice()
103 return BluetoothUtils.isExclusivelyManagedBluetoothDevice(mContext, in isExclusivelyManagedBluetoothDevice()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDevice.java230 if (BluetoothUtils.D) { in onProfileStateChanged()
236 if (BluetoothUtils.D) { in onProfileStateChanged()
386 if (BluetoothUtils.D) { in disconnect()
532 if (BluetoothUtils.D) { in connectInt()
576 if (BluetoothUtils.D) { in unpair()
579 } else if (BluetoothUtils.V) { in unpair()
696 if (BluetoothUtils.D) { in refreshName()
755 if (BluetoothUtils.isAdvancedDetailsHeader(mDevice)) { in refresh()
756 Uri uri = BluetoothUtils.getUriMetaData(getDevice(), in refresh()
760 (BitmapDrawable) BluetoothUtils.getBtDrawableWithDescription( in refresh()
[all …]
DBluetoothUtils.java48 public class BluetoothUtils { class
186 BluetoothUtils.getBtDrawableWithDescription(context, cachedDevice); in getBtRainbowDrawableWithDescription()
227 BluetoothUtils.getBtClassDrawableWithDescription(context, cachedDevice); in getBtDrawableWithDescription()
588 if (!sourceList.isEmpty() && sourceList.stream().anyMatch(BluetoothUtils::isConnected)) { in hasConnectedBroadcastSource()
599 if (!list.isEmpty() && list.stream().anyMatch(BluetoothUtils::isConnected)) { in hasConnectedBroadcastSource()
DLocalBluetoothLeBroadcastAssistant.java54 private static final boolean DEBUG = BluetoothUtils.D;
436 return BluetoothUtils.getConnectionStateSummary(state); in getSummaryResourceForDevice()
DHidDeviceProfile.java159 return BluetoothUtils.getConnectionStateSummary(state); in getSummaryResourceForDevice()
DPanProfile.java158 return BluetoothUtils.getConnectionStateSummary(state); in getSummaryResourceForDevice()
DMapClientProfile.java187 return BluetoothUtils.getConnectionStateSummary(state); in getSummaryResourceForDevice()
DLocalBluetoothAdapter.java245 if (BluetoothUtils.V) { in setBluetoothEnabled()
DSapProfile.java186 return BluetoothUtils.getConnectionStateSummary(state); in getSummaryResourceForDevice()
DHfpClientProfile.java194 return BluetoothUtils.getConnectionStateSummary(state); in getSummaryResourceForDevice()
DA2dpSinkProfile.java194 return BluetoothUtils.getConnectionStateSummary(state); in getSummaryResourceForDevice()
DHidProfile.java169 return BluetoothUtils.getConnectionStateSummary(state); in getSummaryResourceForDevice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/domain/interactor/
DDeviceIconInteractor.kt24 import com.android.settingslib.bluetooth.BluetoothUtils
42 return if (BluetoothUtils.isAdvancedUntetheredDevice(cachedDevice.device)) in loadIcon()
44 else BluetoothUtils.getBtClassDrawableWithDescription(context, cachedDevice).first in loadIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/anc/data/repository/
DAncSliceRepository.kt23 import com.android.settingslib.bluetooth.BluetoothUtils
76 val uri: String? = BluetoothUtils.getControlUriMetaData(this) in ancSlice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBluetoothTile.java42 import com.android.settingslib.bluetooth.BluetoothUtils;
264 if (batteryLevel > BluetoothUtils.META_INT_ERROR) { in getSecondaryLabel()
309 return BluetoothUtils.getIntMetaData(device.getDevice(), in getMetadataBatteryLevel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/
DKeyboardUI.java46 import com.android.settingslib.bluetooth.BluetoothUtils;
204 BluetoothUtils.setErrorListener(new BluetoothErrorListener()); in init()
621 private final class BluetoothErrorListener implements BluetoothUtils.ErrorListener {
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumePanelDialog.java50 import com.android.settingslib.bluetooth.BluetoothUtils;
275 final String uri = BluetoothUtils.getControlUriMetaData(bluetoothDevice); in getExtraControlUri()

12