/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/ |
D | BluetoothUtilsTest.java | 74 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/ |
D | BluetoothConnectionRetryManager.java | 72 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 …]
|
D | CarBluetoothUserService.java | 128 Slogf.d(TAG, "Creating proxy for %s", BluetoothUtils.getProfileName(profile)); in setupBluetoothConnectionProxies() 170 BluetoothUtils.getProfileName(profile)); 187 BluetoothUtils.getProfileName(profile)); 203 BluetoothUtils.getProfileName(profile)); 213 BluetoothUtils.getProfileName(profile)); 222 BluetoothUtils.getProfileName(profile)); 290 BluetoothUtils.getProfileName(profile)); in getConnectionPolicy() 300 BluetoothUtils.getProfileName(profile)); in getConnectionPolicy() 312 Slogf.w(TAG, "Unsupported Profile: %s", BluetoothUtils.getProfileName(profile)); in getConnectionPolicy() 321 BluetoothUtils.getProfileName(profile), in getConnectionPolicy() [all …]
|
D | BluetoothDeviceManager.java | 148 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 …]
|
D | BluetoothProfileInhibitManager.java | 219 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()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | AdvancedBluetoothDetailsHeaderController.java | 54 import com.android.settingslib.bluetooth.BluetoothUtils; 141 return BluetoothUtils.isAdvancedDetailsHeader(mCachedDevice.getDevice()) in getAvailabilityStatus() 267 BluetoothUtils.getIntMetaData( in refresh() 270 != BluetoothUtils.META_INT_ERROR); in refresh() 276 BluetoothUtils.getFastPairCustomizedField( in refresh() 281 BluetoothUtils.getIntMetaData( in refresh() 287 BluetoothUtils.getIntMetaData( in refresh() 293 BluetoothUtils.getIntMetaData( in refresh() 308 && (leftBatteryLevel.get() > BluetoothUtils.META_INT_ERROR in refresh() 310 > BluetoothUtils.META_INT_ERROR in refresh() [all …]
|
D | LeAudioBluetoothDetailsHeaderController.java | 42 import com.android.settingslib.bluetooth.BluetoothUtils; 118 return !BluetoothUtils.isAdvancedDetailsHeader(mCachedDevice.getDevice()) && hasLeAudio in getAvailabilityStatus() 172 && BluetoothUtils.isTemporaryBondDevice(mCachedDevice.getDevice()); in refresh() 184 BluetoothUtils.getBtRainbowDrawableWithDescription(mContext, mCachedDevice); in refresh() 239 updateBatteryLayout(R.id.bt_battery_case, BluetoothUtils.META_INT_ERROR); in hideAllOfBatteryLayouts() 241 updateBatteryLayout(R.id.bt_battery_left, BluetoothUtils.META_INT_ERROR); in hideAllOfBatteryLayouts() 243 updateBatteryLayout(R.id.bt_battery_right, BluetoothUtils.META_INT_ERROR); in hideAllOfBatteryLayouts() 245 updateBatteryLayout(R.id.bt_battery_mono, BluetoothUtils.META_INT_ERROR); in hideAllOfBatteryLayouts() 298 if (batteryLevel != BluetoothUtils.META_INT_ERROR) { in updateBatteryLayout()
|
D | GeneralBluetoothDetailsHeaderController.java | 35 import com.android.settingslib.bluetooth.BluetoothUtils; 63 return !BluetoothUtils.isAdvancedDetailsHeader(mCachedDevice.getDevice()) && !hasLeAudio; in isAvailable() 79 BluetoothUtils.getBtRainbowDrawableWithDescription(mContext, mCachedDevice); in refresh() 93 && BluetoothUtils.isTemporaryBondDevice(mCachedDevice.getDevice()); in refresh()
|
D | Utils.java | 45 import com.android.settingslib.bluetooth.BluetoothUtils; 46 import com.android.settingslib.bluetooth.BluetoothUtils.ErrorListener; 81 static final boolean V = BluetoothUtils.V; // verbose logging 82 static final boolean D = BluetoothUtils.D; // regular logging 200 BluetoothUtils.setErrorListener(mErrorListener); 320 if (!BluetoothUtils.isBroadcasting(localBtManager)) return false; in shouldBlockPairingInAudioSharing() 333 d -> BluetoothUtils.isTemporaryBondDevice(d.getDevice()) in shouldBlockPairingInAudioSharing() 336 d -> BluetoothUtils.hasActiveLocalBroadcastSourceForBtDevice(d, in shouldBlockPairingInAudioSharing() 338 .map(d -> BluetoothUtils.getGroupId(deviceManager.findDevice(d))).collect( in shouldBlockPairingInAudioSharing()
|
D | BluetoothDetailsAudioSharingController.java | 37 import com.android.settingslib.bluetooth.BluetoothUtils; 63 return BluetoothUtils.isAudioSharingUIAvailable(mContext) in isAvailable() 84 if ((BluetoothUtils.isActiveLeAudioDevice(mCachedDevice) in refresh() 87 && !BluetoothUtils.isBroadcasting(mLocalBluetoothManager)) { in refresh()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/ |
D | AudioSharingUtils.java | 40 import com.android.settingslib.bluetooth.BluetoothUtils; 59 private static final boolean DEBUG = BluetoothUtils.D; 97 int groupId = BluetoothUtils.getGroupId(cachedDevice); in fetchConnectedDevicesByGroupId() 145 && !BluetoothUtils.hasConnectedBroadcastSource(leadDevice, localBtManager)) { in buildOrderedConnectedLeadDevices() 225 .anyMatch(BluetoothUtils::isActiveMediaDevice); in hasActiveConnectedLeadDevice() 233 BluetoothUtils.getGroupId(cachedDevice), in buildAudioSharingDeviceItem() 244 return cachedDevice != null && BluetoothUtils.isActiveLeAudioDevice(cachedDevice); in isActiveLeAudioDevice() 353 if (BluetoothUtils.isAudioSharingHysteresisModeFixAvailable(context)) { in setUserPreferredPrimary() 354 int groupId = BluetoothUtils.getGroupId(cachedDevice); in setUserPreferredPrimary()
|
D | AudioSharingReceiver.java | 47 import com.android.settingslib.bluetooth.BluetoothUtils; 90 if (!BluetoothUtils.isAudioSharingUIAvailable(context)) { in onReceive() 115 if (BluetoothUtils.isAudioSharingUIAvailable(context)) { in onReceive() 117 if (BluetoothUtils.isBroadcasting(manager)) { in onReceive() 137 || !BluetoothUtils.isAudioSharingUIAvailable(context)) { in onReceive() 164 || !BluetoothUtils.isAudioSharingUIAvailable(context)) { in onReceive() 193 boolean isBroadcasting = BluetoothUtils.isBroadcasting(btManager); in validToAddSource() 209 d -> !BluetoothUtils.hasConnectedBroadcastSourceForBtDevice(d, in validToAddSource() 216 d -> BluetoothUtils.hasConnectedBroadcastSourceForBtDevice(d, in validToAddSource()
|
D | AudioSharingCallAudioPreferenceController.java | 50 import com.android.settingslib.bluetooth.BluetoothUtils; 209 BluetoothUtils.getPrimaryGroupIdForBroadcast( in displayPreference() 254 && BluetoothUtils.isBroadcasting(mBtManager)) { in onActiveDeviceChanged() 305 Settings.Secure.getUriFor(BluetoothUtils.getPrimaryGroupIdUriForBroadcast()), in registerCallbacks() 343 && BluetoothUtils.getAudioSharingPreviewValue(mContentResolver))) in setCallAudioGroup() 417 BluetoothUtils.getPrimaryGroupIdForBroadcast(mContext.getContentResolver(), in getActiveItemWithIndex() 443 int targetDeviceGroupId = BluetoothUtils.getGroupId(target); in logCallAudioDeviceChange() 455 ? BluetoothUtils.getGroupId(cachedDevice) in logCallAudioDeviceChange()
|
D | AudioSharingJoinHandlerActivity.java | 24 import com.android.settingslib.bluetooth.BluetoothUtils; 34 || !BluetoothUtils.isAudioSharingUIAvailable(this)) { in onCreate() 43 || !BluetoothUtils.isAudioSharingUIAvailable(this)) { in onNewIntent()
|
D | AudioSharingDeviceVolumeGroupController.java | 47 import com.android.settingslib.bluetooth.BluetoothUtils; 92 int groupId = BluetoothUtils.getGroupId(cachedDevice); 96 && BluetoothUtils.getGroupId(preference.getCachedDevice()) 265 int volume = mValueMap.getOrDefault(BluetoothUtils.getGroupId(cachedDevice), -1); in onDeviceAdded() 373 Settings.Secure.getUriFor(BluetoothUtils.getPrimaryGroupIdUriForBroadcast()), in registerCallbacks() 419 int groupId = BluetoothUtils.getGroupId(cachedDevice); in getPreferenceOrderForDevice() 422 && groupId == BluetoothUtils.getPrimaryGroupIdForBroadcast(mContentResolver, in getPreferenceOrderForDevice()
|
D | AudioSharingBluetoothDeviceUpdater.java | 29 import com.android.settingslib.bluetooth.BluetoothUtils; 58 if (BluetoothUtils.isAudioSharingUIAvailable(mContext) in isFilterMatched() 61 && BluetoothUtils.hasConnectedBroadcastSource(cachedDevice, mLocalBtManager)) { in isFilterMatched()
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothLeAudioContentMetadata.java | 22 import android.bluetooth.BluetoothUtils.TypeValueEntry; 133 BluetoothUtils.writeStringToParcel(out, mProgramInfo); in writeToParcel() 134 BluetoothUtils.writeStringToParcel(out, mLanguage); in writeToParcel() 178 List<TypeValueEntry> entries = BluetoothUtils.parseLengthTypeValueBytes(rawBytes); in fromRawBytes() 277 entries = BluetoothUtils.parseLengthTypeValueBytes(mRawMetadata); in build() 307 byte[] rawBytes = BluetoothUtils.serializeTypeValue(entries); in build()
|
D | BluetoothGatt.java | 23 import static android.bluetooth.BluetoothUtils.logRemoteException; 312 + BluetoothUtils.toAnonymizedAddress(address)) 346 + BluetoothUtils.toAnonymizedAddress(address)) 385 + BluetoothUtils.toAnonymizedAddress(address))); 435 + BluetoothUtils.toAnonymizedAddress(address) 499 + (" Device=" + BluetoothUtils.toAnonymizedAddress(address)) 568 + (" Device=" + BluetoothUtils.toAnonymizedAddress(address)) 649 + BluetoothUtils.toAnonymizedAddress(address) 687 + BluetoothUtils.toAnonymizedAddress(address) 751 + BluetoothUtils.toAnonymizedAddress(address) [all …]
|
D | BluetoothHidDeviceAppSdpSettings.java | 116 BluetoothUtils.writeStringToParcel(out, mName); in writeToParcel() 117 BluetoothUtils.writeStringToParcel(out, mDescription); in writeToParcel() 118 BluetoothUtils.writeStringToParcel(out, mProvider); in writeToParcel()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/ |
D | AvailableMediaDeviceGroupController.java | 52 import com.android.settingslib.bluetooth.BluetoothUtils; 180 if (BluetoothUtils.isAudioSharingUIAvailable(mContext)) { in AvailableMediaDeviceGroupController() 201 if (BluetoothUtils.isAudioSharingUIAvailable(mContext)) { in onStart() 217 if (BluetoothUtils.isAudioSharingUIAvailable(mContext)) { in onStop() 279 if (BluetoothUtils.isAudioSharingUIAvailable(mContext) && mDialogHandler != null) { in onDeviceClick() 295 if (BluetoothUtils.isAudioSharingUIAvailable(mContext)) { in init() 343 } else if (BluetoothUtils.isAudioSharingUIAvailable(mContext) in updateTitle() 344 && BluetoothUtils.isBroadcasting(mBtManager)) { in updateTitle()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | InteropUtil.java | 20 import android.bluetooth.BluetoothUtils; 71 + BluetoothUtils.toAnonymizedAddress(address)); in interopMatchAddr() 135 + BluetoothUtils.toAnonymizedAddress(address)); in interopMatchAddrOrName() 170 + BluetoothUtils.toAnonymizedAddress(address) in interopDatabaseAddAddr() 203 + BluetoothUtils.toAnonymizedAddress(address)); in interopDatabaseRemoveAddr()
|
/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/bluetooth/ |
D | BluetoothUtilsTest.java | 68 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/connecteddevice/audiosharing/audiostreams/ |
D | AudioStreamConfirmDialogActivity.java | 29 import com.android.settingslib.bluetooth.BluetoothUtils; 54 if (BluetoothUtils.isAudioSharingUIAvailable(this) in createUiFromIntent() 72 if (BluetoothUtils.isAudioSharingUIAvailable(this) in onStart() 93 if (BluetoothUtils.isAudioSharingUIAvailable(this) in onServiceConnected()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothUtils.java | 42 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
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/ |
D | BluetoothOppPreference.java | 36 import android.bluetooth.BluetoothUtils; 114 + BluetoothUtils.toAnonymizedAddress( in getChannel() 128 "setName for " + BluetoothUtils.toAnonymizedAddress(brEdrAddress) + " to " + name); in setName() 141 + BluetoothUtils.toAnonymizedAddress(Utils.getBrEdrAddress(remoteDevice)) in setChannel()
|