/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 | 123 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 …]
|
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()
|
D | FastPairProvider.java | 115 + " 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/ |
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/bluetooth/ |
D | AdvancedBluetoothDetailsHeaderController.java | 50 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 …]
|
D | LeAudioBluetoothDetailsHeaderController.java | 39 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()
|
D | BluetoothDetailsHeaderController.java | 30 import com.android.settingslib.bluetooth.BluetoothUtils; 53 return !BluetoothUtils.isAdvancedDetailsHeader(mCachedDevice.getDevice()) && !hasLeAudio; in isAvailable() 66 BluetoothUtils.getBtRainbowDrawableWithDescription(mContext, mCachedDevice); in setHeaderProperties()
|
D | Utils.java | 42 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);
|
D | BluetoothFeatureProviderImpl.java | 28 import com.android.settingslib.bluetooth.BluetoothUtils; 51 return BluetoothUtils.getControlUriMetaData(bluetoothDevice); in getBluetoothDeviceControlUri()
|
D | QrCodeScanModeActivity.java | 32 import com.android.settingslib.bluetooth.BluetoothUtils; 44 private static final boolean DEBUG = BluetoothUtils.D;
|
/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
|
D | BluetoothDevicePreference.java | 61 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/ |
D | BluetoothOppPreference.java | 36 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/ |
D | BluetoothLeAudioContentMetadata.java | 22 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()
|
D | BluetoothLeAudioCodecConfigMetadata.java | 37 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/ |
D | DistanceMeasurementManager.java | 21 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/ |
D | AudioSharingBluetoothDeviceUpdater.java | 29 import com.android.settingslib.bluetooth.BluetoothUtils; 58 && BluetoothUtils.hasConnectedBroadcastSource(cachedDevice, mLocalBtManager)) { in isFilterMatched()
|
D | AudioSharingUtils.java | 40 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/ |
D | AudioStreamStateHandler.java | 29 import com.android.settingslib.bluetooth.BluetoothUtils; 35 private static final boolean DEBUG = BluetoothUtils.D;
|
D | AudioStreamsBroadcastAssistantCallback.java | 25 import com.android.settingslib.bluetooth.BluetoothUtils; 31 private static final boolean DEBUG = BluetoothUtils.D;
|
D | AudioStreamsActiveDeviceSummaryUpdater.java | 29 import com.android.settingslib.bluetooth.BluetoothUtils; 36 private static final boolean DEBUG = BluetoothUtils.D;
|
D | AudioStreamsRepository.java | 25 import com.android.settingslib.bluetooth.BluetoothUtils; 36 private static final boolean DEBUG = BluetoothUtils.D;
|