/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
H A D | BluetoothUtilsTest.java | 66 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 D | BluetoothMediaDevice.java | 27 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 D | InfoMediaDevice.java | 32 import com.android.settingslib.bluetooth.BluetoothUtils; 64 return BluetoothUtils.buildAdvancedDrawable(mContext, drawable); in getIcon()
|
H A D | PhoneMediaDevice.java | 35 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 D | CachedBluetoothDevice.java | 177 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 D | BluetoothUtils.java | 33 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 D | Utils.java | 37 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 D | AdvancedBluetoothDetailsHeaderController.java | 48 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 D | BluetoothDetailsHeaderController.java | 29 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 D | BluetoothUtils.java | 36 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 D | BluetoothDeviceNamePreferenceController.java | 31 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 D | BluetoothDevicePreference.java | 33 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 D | BluetoothDevicePickerPreferenceController.java | 106 BluetoothUtils.persistSelectedDeviceInPicker(getContext(), cachedDevice.getAddress()); in onDeviceClickedInternal() 117 BluetoothUtils.showError(getContext(), cachedDevice.getName(), in onDeviceClickedInternal()
|
H A D | BluetoothDevicePickerFragment.java | 45 mManager = BluetoothUtils.getLocalBtManager(context); in onAttach()
|
H A D | BluetoothPairingRequest.java | 49 boolean shouldShowDialog = BluetoothUtils.shouldShowDialogInForeground( in onReceive()
|
H A D | BluetoothPairingSelectionFragment.java | 69 mManager = BluetoothUtils.getLocalBtManager(context); in onAttach()
|
H A D | RemoteRenameDialogFragment.java | 53 LocalBluetoothManager manager = BluetoothUtils.getLocalBtManager(context); in onAttach()
|
H A D | BluetoothDeviceDetailsFragment.java | 61 LocalBluetoothManager manager = BluetoothUtils.getLocalBtManager(context); in onAttach()
|
H A D | BluetoothUnbondedDevicesPreferenceController.java | 69 BluetoothUtils.showError(getContext(), cachedDevice.getName(), in onDeviceClickedInternal()
|
H A D | BluetoothPreferenceController.java | 56 mBluetoothManager = BluetoothUtils.getLocalBtManager(context); in BluetoothPreferenceController()
|
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/ |
H A D | BluetoothDevicePickerFragmentTest.java | 72 BluetoothUtils.class, withSettings().lenient()).startMocking(); in setUp() 73 when(BluetoothUtils.getLocalBtManager(any())).thenReturn( in setUp()
|
H A D | BluetoothDeviceNamePreferenceControllerTest.java | 42 import com.android.settingslib.bluetooth.BluetoothUtils; 117 assertThat(mPreference.getSummary()).isEqualTo(mContext.getString(BluetoothUtils in refreshUi_notConnected_setsDisconnectedAsSummary()
|
H A D | BluetoothPairingSelectionFragmentTest.java | 76 BluetoothUtils.class, withSettings().lenient()).startMocking(); in setUp() 77 when(BluetoothUtils.getLocalBtManager(any())).thenReturn( in setUp()
|
H A D | BluetoothDevicePreferenceTest.java | 37 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 D | KeyboardUI.java | 46 import com.android.settingslib.bluetooth.BluetoothUtils; 191 BluetoothUtils.setErrorListener(new BluetoothErrorListener()); in init() 608 private final class BluetoothErrorListener implements BluetoothUtils.ErrorListener {
|