Home
last modified time | relevance | path

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

123

/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
H A DBluetoothUtilsTest.java66 final Pair<Drawable, String> pair = BluetoothUtils.getBtClassDrawableWithDescription( in getBtClassDrawableWithDescription_typePhone_returnPhoneDrawable()
76 final Pair<Drawable, String> pair = BluetoothUtils.getBtClassDrawableWithDescription( in getBtClassDrawableWithDescription_typeComputer_returnComputerDrawable()
89 assertThat(BluetoothUtils.getBtRainbowDrawableWithDescription( in getBtRainbowDrawableWithDescription_normalHeadset_returnAdaptiveIcon()
100 assertThat(BluetoothUtils.getStringMetaData(mBluetoothDevice, in getStringMetaData_hasMetaData_getCorrectMetaData()
110 assertThat(BluetoothUtils.getIntMetaData(mBluetoothDevice, in getIntMetaData_hasMetaData_getCorrectMetaData()
120 assertThat(BluetoothUtils.getIntMetaData(mBluetoothDevice, in getIntMetaData_invalidMetaData_getErrorCode()
122 .isEqualTo(BluetoothUtils.META_INT_ERROR); in getIntMetaData_invalidMetaData_getErrorCode()
131 assertThat(BluetoothUtils.getBooleanMetaData(mBluetoothDevice, in getBooleanMetaData_hasMetaData_getCorrectMetaData()
141 assertThat(BluetoothUtils.getUriMetaData(mBluetoothDevice, in getUriMetaData_hasMetaData_getCorrectMetaData()
150 assertThat(BluetoothUtils.getUriMetaData(mBluetoothDevice, in getUriMetaData_nullMetaData_getNullUri()
[all …]
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
H A DBluetoothMediaDevice.java27 import com.android.settingslib.bluetooth.BluetoothUtils;
61 BluetoothUtils.getBtDrawableWithDescription(mContext, mCachedDevice).first; in getIcon()
65 return BluetoothUtils.buildAdvancedDrawable(mContext, drawable); in getIcon()
70 return BluetoothUtils.getBtClassDrawableWithDescription(mContext, mCachedDevice).first; in getIconWithoutBackground()
102 && BluetoothUtils.getBooleanMetaData( in isFastPairDevice()
H A DInfoMediaDevice.java32 import com.android.settingslib.bluetooth.BluetoothUtils;
64 return BluetoothUtils.buildAdvancedDrawable(mContext, drawable); in getIcon()
H A DPhoneMediaDevice.java35 import com.android.settingslib.bluetooth.BluetoothUtils;
90 return BluetoothUtils.buildAdvancedDrawable(mContext, drawable); in getIcon()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DCachedBluetoothDevice.java177 if (BluetoothUtils.D) { in onProfileStateChanged()
183 if (BluetoothUtils.D) { in onProfileStateChanged()
282 if (BluetoothUtils.D) { in disconnect()
366 if (BluetoothUtils.D) { in connectInt()
410 if (BluetoothUtils.D) { in unpair()
413 } else if (BluetoothUtils.V) { in unpair()
504 if (BluetoothUtils.D) { in refreshName()
677 if (BluetoothUtils.D) { in updateProfiles()
719 if (BluetoothUtils.D) { in onUuidChanged()
995 if (BluetoothUtils.getBooleanMetaData( in getConnectionSummary()
[all …]
H A DBluetoothUtils.java33 public class BluetoothUtils { class
145 final Pair<Drawable, String> pair = BluetoothUtils.getBtDrawableWithDescription(context, in getBtRainbowDrawableWithDescription()
182 final Pair<Drawable, String> pair = BluetoothUtils.getBtClassDrawableWithDescription( in getBtDrawableWithDescription()
/aosp12/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DUtils.java37 import com.android.settingslib.bluetooth.BluetoothUtils;
38 import com.android.settingslib.bluetooth.BluetoothUtils.ErrorListener;
51 static final boolean V = BluetoothUtils.V; // verbose logging
52 static final boolean D = BluetoothUtils.D; // regular logging
152 BluetoothUtils.setErrorListener(mErrorListener);
175 final boolean untetheredHeadset = BluetoothUtils.getBooleanMetaData(bluetoothDevice, in isAdvancedDetailsHeader()
182 final String deviceType = BluetoothUtils.getStringMetaData(bluetoothDevice, in isAdvancedDetailsHeader()
H A DAdvancedBluetoothDetailsHeaderController.java48 import com.android.settingslib.bluetooth.BluetoothUtils;
188 final String deviceType = BluetoothUtils.getStringMetaData(device, in refresh()
204 || BluetoothUtils.getBooleanMetaData(device, in refresh()
258 final String iconUri = BluetoothUtils.getStringMetaData(bluetoothDevice, iconMetaKey); in updateSubLayout()
264 BluetoothUtils.getBtRainbowDrawableWithDescription(mContext, mCachedDevice); in updateSubLayout()
280 if (batteryLevel != BluetoothUtils.META_INT_ERROR) { in updateSubLayout()
285 int lowBatteryLevel = BluetoothUtils.getIntMetaData(bluetoothDevice, in updateSubLayout()
287 if (lowBatteryLevel == BluetoothUtils.META_INT_ERROR) { in updateSubLayout()
326 return BluetoothUtils.getBooleanMetaData(bluetoothDevice, in isUntetheredHeadset()
328 || TextUtils.equals(BluetoothUtils.getStringMetaData(bluetoothDevice, in isUntetheredHeadset()
[all …]
H A DBluetoothDetailsHeaderController.java29 import com.android.settingslib.bluetooth.BluetoothUtils;
69 BluetoothUtils.getBtRainbowDrawableWithDescription(mContext, mCachedDevice); in setHeaderProperties()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
H A DBluetoothUtils.java36 final class BluetoothUtils { class
37 private static final Logger LOG = new Logger(BluetoothUtils.class);
44 com.android.settingslib.bluetooth.BluetoothUtils.setErrorListener(
45 com.android.car.settings.bluetooth.BluetoothUtils::showError);
60 private BluetoothUtils() { in BluetoothUtils() method in BluetoothUtils
H A DBluetoothDeviceNamePreferenceController.java31 import com.android.settingslib.bluetooth.BluetoothUtils;
59 com.android.settingslib.bluetooth.BluetoothUtils.getBtClassDrawableWithDescription( in updateState()
69 summaryJoiner.add(getContext().getString(BluetoothUtils in updateState()
H A DBluetoothDevicePreference.java33 import com.android.settingslib.bluetooth.BluetoothUtils;
108 setSummary(getContext().getString(BluetoothUtils in refreshUi()
115 Pair<Drawable, String> pair = com.android.settingslib.bluetooth.BluetoothUtils in refreshUi()
H A DBluetoothDevicePickerPreferenceController.java106 BluetoothUtils.persistSelectedDeviceInPicker(getContext(), cachedDevice.getAddress()); in onDeviceClickedInternal()
117 BluetoothUtils.showError(getContext(), cachedDevice.getName(), in onDeviceClickedInternal()
H A DBluetoothDevicePickerFragment.java45 mManager = BluetoothUtils.getLocalBtManager(context); in onAttach()
H A DBluetoothPairingRequest.java49 boolean shouldShowDialog = BluetoothUtils.shouldShowDialogInForeground( in onReceive()
H A DBluetoothPairingSelectionFragment.java69 mManager = BluetoothUtils.getLocalBtManager(context); in onAttach()
H A DRemoteRenameDialogFragment.java53 LocalBluetoothManager manager = BluetoothUtils.getLocalBtManager(context); in onAttach()
H A DBluetoothDeviceDetailsFragment.java61 LocalBluetoothManager manager = BluetoothUtils.getLocalBtManager(context); in onAttach()
H A DBluetoothUnbondedDevicesPreferenceController.java69 BluetoothUtils.showError(getContext(), cachedDevice.getName(), in onDeviceClickedInternal()
H A DBluetoothPreferenceController.java56 mBluetoothManager = BluetoothUtils.getLocalBtManager(context); in BluetoothPreferenceController()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
H A DBluetoothDevicePickerFragmentTest.java72 BluetoothUtils.class, withSettings().lenient()).startMocking(); in setUp()
73 when(BluetoothUtils.getLocalBtManager(any())).thenReturn( in setUp()
H A DBluetoothDeviceNamePreferenceControllerTest.java42 import com.android.settingslib.bluetooth.BluetoothUtils;
117 assertThat(mPreference.getSummary()).isEqualTo(mContext.getString(BluetoothUtils in refreshUi_notConnected_setsDisconnectedAsSummary()
H A DBluetoothPairingSelectionFragmentTest.java76 BluetoothUtils.class, withSettings().lenient()).startMocking(); in setUp()
77 when(BluetoothUtils.getLocalBtManager(any())).thenReturn( in setUp()
H A DBluetoothDevicePreferenceTest.java37 import com.android.settingslib.bluetooth.BluetoothUtils;
106 assertThat(mPreference.getSummary()).isEqualTo(mContext.getString(BluetoothUtils in onAttached_connected_setsConnectedAsSummary()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/
H A DKeyboardUI.java46 import com.android.settingslib.bluetooth.BluetoothUtils;
191 BluetoothUtils.setErrorListener(new BluetoothErrorListener()); in init()
608 private final class BluetoothErrorListener implements BluetoothUtils.ErrorListener {

123