/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | BluetoothUtilsTest.java | 108 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/ |
D | DeviceItemFactory.kt | 22 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 …]
|
D | AudioSharingInteractor.kt | 20 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()
|
D | DeviceItemActionInteractor.kt | 26 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>()
|
D | BluetoothTileDialogViewModel.kt | 31 import com.android.settingslib.bluetooth.BluetoothUtils 149 if (BluetoothUtils.isAudioSharingEnabled()) { in showDialog()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bluetooth/qsdialog/ |
D | DeviceItemActionInteractorTest.kt | 24 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 …]
|
D | AudioSharingInteractorTest.kt | 24 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/ |
D | BluetoothMediaDevice.java | 32 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/ |
D | HearingDevicesChecker.java | 26 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/ |
D | CachedBluetoothDevice.java | 230 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 …]
|
D | BluetoothUtils.java | 48 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()
|
D | LocalBluetoothLeBroadcastAssistant.java | 54 private static final boolean DEBUG = BluetoothUtils.D; 436 return BluetoothUtils.getConnectionStateSummary(state); in getSummaryResourceForDevice()
|
D | HidDeviceProfile.java | 159 return BluetoothUtils.getConnectionStateSummary(state); in getSummaryResourceForDevice()
|
D | PanProfile.java | 158 return BluetoothUtils.getConnectionStateSummary(state); in getSummaryResourceForDevice()
|
D | MapClientProfile.java | 187 return BluetoothUtils.getConnectionStateSummary(state); in getSummaryResourceForDevice()
|
D | LocalBluetoothAdapter.java | 245 if (BluetoothUtils.V) { in setBluetoothEnabled()
|
D | SapProfile.java | 186 return BluetoothUtils.getConnectionStateSummary(state); in getSummaryResourceForDevice()
|
D | HfpClientProfile.java | 194 return BluetoothUtils.getConnectionStateSummary(state); in getSummaryResourceForDevice()
|
D | A2dpSinkProfile.java | 194 return BluetoothUtils.getConnectionStateSummary(state); in getSummaryResourceForDevice()
|
D | HidProfile.java | 169 return BluetoothUtils.getConnectionStateSummary(state); in getSummaryResourceForDevice()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/domain/interactor/ |
D | DeviceIconInteractor.kt | 24 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/ |
D | AncSliceRepository.kt | 23 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/ |
D | BluetoothTile.java | 42 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/ |
D | KeyboardUI.java | 46 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/ |
D | VolumePanelDialog.java | 50 import com.android.settingslib.bluetooth.BluetoothUtils; 275 final String uri = BluetoothUtils.getControlUriMetaData(bluetoothDevice); in getExtraControlUri()
|