Home
last modified time | relevance | path

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

1234

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DBluetoothUtilsTest.java74 assertThat(BluetoothUtils.getDeviceDebugInfo(mMockBluetoothDevice)) in testGetDeviceDebugInfo()
80 byte[] conversionResults = BluetoothUtils.getBytesFromAddress(TEST_LOCAL_ADDRESS_STRING); in testGetBytesFromAddress()
86 assertThat(BluetoothUtils.getDeviceDebugInfo(null)).isEqualTo("(null)"); in testGetDeviceDebugInfo_nullDevice()
92 assertThat(BluetoothUtils.isProfileSupported(Arrays.asList(A2DP_SOURCE_UUIDS), in testIsA2dpSourceProfileSupportedBothSupported_returnsTrue()
99 assertThat(BluetoothUtils.isProfileSupported(Arrays.asList(WRONG_UUIDS), in testIsA2dpSourceProfileSupportedRemoteSupported_returnsFalse()
106 assertThat(BluetoothUtils.isProfileSupported(Arrays.asList(A2DP_SOURCE_UUIDS), in testIsA2dpSourceProfileSupportedLocalSupported_returnsFalse()
113 assertThat(BluetoothUtils.isProfileSupported(Arrays.asList(WRONG_UUIDS), in testIsA2dpSourceProfileSupportedBothUnsupported_returnsFalse()
120 assertThat(BluetoothUtils.isProfileSupported(Arrays.asList(A2DP_SOURCE_UUIDS), in testIsA2dpSourceProfileSupportedBothSupportSameRole_returnsFalse()
127 assertThat(BluetoothUtils.isProfileSupported(Arrays.asList(A2DP_SINK_UUIDS), in testIsA2dpSinkProfileSupportedBothSupported_returnsTrue()
134 assertThat(BluetoothUtils.isProfileSupported(Arrays.asList(WRONG_UUIDS), in testIsA2dpSinkProfileSupportedRemoteSupported_returnsFalse()
[all …]
/packages/services/Car/service/src/com/android/car/bluetooth/
DBluetoothConnectionRetryManager.java72 private static final int[] MANAGED_PROFILES = BluetoothUtils.getManagedProfilesIds();
91 } else if (BluetoothUtils.isAProfileAction(action)) { in onReceive()
93 int profile = BluetoothUtils.getProfileFromConnectionAction(action); in onReceive()
161 BluetoothUtils.getBondStateName(state)); in handleDeviceBondStateChange()
182 BluetoothUtils.getProfileName(profile)); in handleProfileConnectionStateChange()
194 BluetoothUtils.getProfileName(profile)); in handleProfileConnectionStateChange()
208 BluetoothUtils.getProfileName(profile), in handleProfileConnectionStateChange()
236 if (BluetoothUtils.isProfileSupported(ourUuids, device, profileId)) { in trackDevice()
239 Slogf.d(TAG, " %s", BluetoothUtils.getProfileName(profileId)); in trackDevice()
267 BluetoothUtils.getProfileName(profile), device); in untrackProfile()
[all …]
DCarBluetoothUserService.java123 Slogf.d(TAG, "Creating proxy for %s", BluetoothUtils.getProfileName(profile)); in setupBluetoothConnectionProxies()
165 BluetoothUtils.getProfileName(profile));
182 BluetoothUtils.getProfileName(profile));
198 BluetoothUtils.getProfileName(profile));
208 BluetoothUtils.getProfileName(profile));
217 BluetoothUtils.getProfileName(profile));
285 BluetoothUtils.getProfileName(profile)); in getConnectionPolicy()
295 BluetoothUtils.getProfileName(profile)); in getConnectionPolicy()
304 Slogf.w(TAG, "Unsupported Profile: %s", BluetoothUtils.getProfileName(profile)); in getConnectionPolicy()
313 BluetoothUtils.getProfileName(profile), in getConnectionPolicy()
[all …]
DBluetoothDeviceManager.java148 int profile = BluetoothUtils.getProfileFromConnectionAction(action); in onReceive()
176 BluetoothUtils.getDeviceDebugInfo(device), in handleProfileConnectionStateChanged()
177 BluetoothUtils.getProfileName(profile), in handleProfileConnectionStateChanged()
178 BluetoothUtils.getConnectionStateName(state)); in handleProfileConnectionStateChanged()
213 BluetoothUtils.getBondStateName(state)); in handleDeviceBondStateChange()
234 BluetoothUtils.getAdapterStateName(state)); in handleAdapterStateChange()
300 filter.addAction(BluetoothUtils.A2DP_SOURCE_CONNECTION_STATE_CHANGED); in start()
301 filter.addAction(BluetoothUtils.A2DP_SINK_CONNECTION_STATE_CHANGED); in start()
302 filter.addAction(BluetoothUtils.HFP_CLIENT_CONNECTION_STATE_CHANGED); in start()
303 filter.addAction(BluetoothUtils.MAP_CLIENT_CONNECTION_STATE_CHANGED); in start()
[all …]
DBluetoothProfileInhibitManager.java219 mLogHeader, BluetoothUtils.getProfileName(mParams.getProfile()), in binderDied()
333 mLogHeader, BluetoothUtils.getProfileName(profile), device.getAddress()); in requestProfileInhibit()
353 mLogHeader, BluetoothUtils.getProfileName(profile), device.getAddress()); in releaseProfileInhibit()
382 mLogHeader, BluetoothUtils.getProfileName(profile), device.getAddress()); in isProfileInhibited()
443 mLogHeader, BluetoothUtils.getProfileName(params.getProfile()), in addInhibitRecord()
453 mLogHeader, BluetoothUtils.getProfileName(params.getProfile()), in addInhibitRecord()
538 mLogHeader, BluetoothUtils.getProfileName(params.getProfile()), in restoreConnectionPolicy()
551 mLogHeader, BluetoothUtils.getProfileName(params.getProfile()), in restoreConnectionPolicy()
647 mLogHeader, BluetoothUtils.getProfileName(profile)); in isProxyAvailable()
DFastPairProvider.java115 + " fastpairing=%b", BluetoothUtils.getScanModeName(mScanMode),
116 BluetoothUtils.getScanModeName(newScanMode), isDiscovering,
147 BluetoothUtils.getAdapterStateName(oldState),
148 BluetoothUtils.getAdapterStateName(newState));
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothUtilsTest.java68 assertThat(BluetoothUtils.shouldEnableBTScanning(mContext, settingsPackage)) in isSystemCallingPackage_shouldEnableBluetoothScanning()
70 assertThat(BluetoothUtils.shouldEnableBTScanning(mContext, SYSTEM_UI_PACKAGE_NAME)) in isSystemCallingPackage_shouldEnableBluetoothScanning()
76 assertThat(BluetoothUtils.shouldEnableBTScanning(mContext, ALLOWED_PACKAGE_NAME)) in isAllowedCallingPackage_shouldEnableBluetoothScanning()
82 assertThat(BluetoothUtils.shouldEnableBTScanning(mContext, DISALLOWED_PACKAGE_NAME)) in isNotAllowedCallingPackage_shouldNotEnableBluetoothScanning()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DAdvancedBluetoothDetailsHeaderController.java50 import com.android.settingslib.bluetooth.BluetoothUtils;
135 return BluetoothUtils.isAdvancedDetailsHeader(mCachedDevice.getDevice()) in getAvailabilityStatus()
258 BluetoothUtils.getIntMetaData( in refresh()
261 != BluetoothUtils.META_INT_ERROR); in refresh()
362 () -> BluetoothUtils.getStringMetaData(bluetoothDevice, iconMetaKey)); in updateSubLayout()
365 () -> BluetoothUtils.getIntMetaData(bluetoothDevice, batteryMetaKey)); in updateSubLayout()
368 () -> BluetoothUtils.getBooleanMetaData(bluetoothDevice, chargeMetaKey)); in updateSubLayout()
373 BluetoothUtils.getIntMetaData( in updateSubLayout()
375 if (level == BluetoothUtils.META_INT_ERROR) { in updateSubLayout()
434 BluetoothUtils.getBtRainbowDrawableWithDescription(mContext, mCachedDevice); in updateSubLayoutUi()
[all …]
DLeAudioBluetoothDetailsHeaderController.java39 import com.android.settingslib.bluetooth.BluetoothUtils;
114 return !BluetoothUtils.isAdvancedDetailsHeader(mCachedDevice.getDevice()) && hasLeAudio in getAvailabilityStatus()
169 BluetoothUtils.getBtRainbowDrawableWithDescription(mContext, mCachedDevice); in refresh()
222 updateBatteryLayout(R.id.bt_battery_case, BluetoothUtils.META_INT_ERROR); in hideAllOfBatteryLayouts()
224 updateBatteryLayout(R.id.bt_battery_left, BluetoothUtils.META_INT_ERROR); in hideAllOfBatteryLayouts()
226 updateBatteryLayout(R.id.bt_battery_right, BluetoothUtils.META_INT_ERROR); in hideAllOfBatteryLayouts()
282 if (batteryLevel != BluetoothUtils.META_INT_ERROR) { in updateBatteryLayout()
DBluetoothDetailsHeaderController.java30 import com.android.settingslib.bluetooth.BluetoothUtils;
53 return !BluetoothUtils.isAdvancedDetailsHeader(mCachedDevice.getDevice()) && !hasLeAudio; in isAvailable()
66 BluetoothUtils.getBtRainbowDrawableWithDescription(mContext, mCachedDevice); in setHeaderProperties()
DUtils.java42 import com.android.settingslib.bluetooth.BluetoothUtils;
43 import com.android.settingslib.bluetooth.BluetoothUtils.ErrorListener;
65 static final boolean V = BluetoothUtils.V; // verbose logging
66 static final boolean D = BluetoothUtils.D; // regular logging
184 BluetoothUtils.setErrorListener(mErrorListener);
DBluetoothFeatureProviderImpl.java28 import com.android.settingslib.bluetooth.BluetoothUtils;
51 return BluetoothUtils.getControlUriMetaData(bluetoothDevice); in getBluetoothDeviceControlUri()
DQrCodeScanModeActivity.java32 import com.android.settingslib.bluetooth.BluetoothUtils;
44 private static final boolean DEBUG = BluetoothUtils.D;
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothUtils.java42 public final class BluetoothUtils { class
43 private static final Logger LOG = new Logger(BluetoothUtils.class);
50 com.android.settingslib.bluetooth.BluetoothUtils.setErrorListener(
51 com.android.car.settings.bluetooth.BluetoothUtils::showError);
69 private BluetoothUtils() { in BluetoothUtils() method in BluetoothUtils
DBluetoothDevicePreference.java61 BluetoothUtils.BLUETOOTH_SHOW_DEVICES_WITHOUT_NAMES_PROPERTY, false); in BluetoothDevicePreference()
110 Pair<Drawable, String> pair = com.android.settingslib.bluetooth.BluetoothUtils in refreshUi()
132 Pair<Drawable, String> pair = com.android.settingslib.bluetooth.BluetoothUtils in getConnectionSummary()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppPreference.java36 import android.bluetooth.BluetoothUtils;
131 + BluetoothUtils.toAnonymizedAddress(getBrEdrAddress(remoteDevice)) in getChannel()
144 "Setname for " + BluetoothUtils.toAnonymizedAddress(brEdrAddress) + " to " + name); in setName()
157 + BluetoothUtils.toAnonymizedAddress(getBrEdrAddress(remoteDevice)) in setChannel()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothLeAudioContentMetadata.java22 import android.bluetooth.BluetoothUtils.TypeValueEntry;
181 List<TypeValueEntry> entries = BluetoothUtils.parseLengthTypeValueBytes(rawBytes); in fromRawBytes()
280 entries = BluetoothUtils.parseLengthTypeValueBytes(mRawMetadata); in build()
310 byte[] rawBytes = BluetoothUtils.serializeTypeValue(entries); in build()
DBluetoothLeAudioCodecConfigMetadata.java37 import android.bluetooth.BluetoothUtils.TypeValueEntry;
288 List<TypeValueEntry> entries = BluetoothUtils.parseLengthTypeValueBytes(rawBytes); in fromRawBytes()
472 entries = BluetoothUtils.parseLengthTypeValueBytes(mRawMetadata); in build()
518 byte[] rawBytes = BluetoothUtils.serializeTypeValue(entries); in build()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/
DDistanceMeasurementManager.java21 import android.bluetooth.BluetoothUtils;
106 + BluetoothUtils.toAnonymizedAddress(address)); in startDistanceMeasurement()
185 + BluetoothUtils.toAnonymizedAddress(address)); in stopDistanceMeasurement()
317 + BluetoothUtils.toAnonymizedAddress(address) in onDistanceMeasurementStarted()
373 + BluetoothUtils.toAnonymizedAddress(address) in onDistanceMeasurementStartFail()
419 + BluetoothUtils.toAnonymizedAddress(address) in onDistanceMeasurementStopped()
477 + BluetoothUtils.toAnonymizedAddress(address) in onDistanceMeasurementResult()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingBluetoothDeviceUpdater.java29 import com.android.settingslib.bluetooth.BluetoothUtils;
58 && BluetoothUtils.hasConnectedBroadcastSource(cachedDevice, mLocalBtManager)) { in isFilterMatched()
DAudioSharingUtils.java40 import com.android.settingslib.bluetooth.BluetoothUtils;
62 private static final boolean DEBUG = BluetoothUtils.D;
145 && !BluetoothUtils.hasConnectedBroadcastSource(leadDevice, localBtManager)) { in buildOrderedConnectedLeadDevices()
244 return BluetoothUtils.isActiveLeAudioDevice(cachedDevice); in isActiveLeAudioDevice()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamStateHandler.java29 import com.android.settingslib.bluetooth.BluetoothUtils;
35 private static final boolean DEBUG = BluetoothUtils.D;
DAudioStreamsBroadcastAssistantCallback.java25 import com.android.settingslib.bluetooth.BluetoothUtils;
31 private static final boolean DEBUG = BluetoothUtils.D;
DAudioStreamsActiveDeviceSummaryUpdater.java29 import com.android.settingslib.bluetooth.BluetoothUtils;
36 private static final boolean DEBUG = BluetoothUtils.D;
DAudioStreamsRepository.java25 import com.android.settingslib.bluetooth.BluetoothUtils;
36 private static final boolean DEBUG = BluetoothUtils.D;

1234