/frameworks/base/services/core/java/com/android/server/media/ |
D | BluetoothProfileMonitor.java | 48 private BluetoothLeAudio mLeAudioProfile; field in BluetoothProfileMonitor 71 bluetoothProfile = mLeAudioProfile; in isProfileSupported() 95 return mLeAudioProfile == null ? GROUP_ID_NO_GROUP : mLeAudioProfile.getGroupId( in getGroupId() 119 mLeAudioProfile = (BluetoothLeAudio) proxy; in onServiceConnected() 136 mLeAudioProfile = null; in onServiceDisconnected()
|
D | LegacyBluetoothRouteController.java | 82 private BluetoothLeAudio mLeAudioProfile; field in LegacyBluetoothRouteController 306 if (mLeAudioProfile != null in createBluetoothRoute() 307 && mLeAudioProfile.getConnectedDevices().contains(device)) { in createBluetoothRoute() 309 routeId = LE_AUDIO_ROUTE_ID_PREFIX + mLeAudioProfile.getGroupId(device); in createBluetoothRoute() 445 mLeAudioProfile = (BluetoothLeAudio) proxy; in onServiceConnected() 474 mLeAudioProfile = null; in onServiceDisconnected()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceTest.java | 99 private LeAudioProfile mLeAudioProfile; field in CachedBluetoothDeviceTest 147 when(mLeAudioProfile.isProfileReady()).thenReturn(true); in setUp() 148 when(mLeAudioProfile.getProfileId()).thenReturn(BluetoothProfile.LE_AUDIO); in setUp() 183 testTransitionFromConnectingToDisconnected(mA2dpProfile, mLeAudioProfile, in onProfileStateChanged_testConnectingToDisconnected_policyAllowed_problem() 185 testTransitionFromConnectingToDisconnected(mHearingAidProfile, mLeAudioProfile, in onProfileStateChanged_testConnectingToDisconnected_policyAllowed_problem() 187 testTransitionFromConnectingToDisconnected(mHfpProfile, mLeAudioProfile, in onProfileStateChanged_testConnectingToDisconnected_policyAllowed_problem() 189 testTransitionFromConnectingToDisconnected(mLeAudioProfile, mA2dpProfile, in onProfileStateChanged_testConnectingToDisconnected_policyAllowed_problem() 195 testTransitionFromConnectingToDisconnected(mA2dpProfile, mLeAudioProfile, in onProfileStateChanged_testConnectingToDisconnected_policyForbidden_noProblem() 197 testTransitionFromConnectingToDisconnected(mHearingAidProfile, mLeAudioProfile, in onProfileStateChanged_testConnectingToDisconnected_policyForbidden_noProblem() 199 testTransitionFromConnectingToDisconnected(mHfpProfile, mLeAudioProfile, in onProfileStateChanged_testConnectingToDisconnected_policyForbidden_noProblem() [all …]
|
D | CsipDeviceManagerTest.java | 77 private LeAudioProfile mLeAudioProfile; field in CsipDeviceManagerTest 122 when(mLocalProfileManager.getLeAudioProfile()).thenReturn(mLeAudioProfile); in setUp() 126 when(mLeAudioProfile.getConnectedGroupLeadDevice(anyInt())).thenReturn(null); in setUp() 147 profiles.add(mLeAudioProfile); in setUp() 152 profiles.add(mLeAudioProfile); in setUp() 211 when(mLeAudioProfile.getConnectedGroupLeadDevice(anyInt())).thenReturn(mDevice2); in getPreferredMainDevice_noConnectedDualModeDevice_returnLeadDevice() 255 profiles.add(mLeAudioProfile); in getPreferredMainDevice_noConnectedDeviceNoDualMode_returnFirstOneDevice()
|
D | HearingAidDeviceManagerTest.java | 107 private LeAudioProfile mLeAudioProfile; field in HearingAidDeviceManagerTest 142 when(mLocalProfileManager.getLeAudioProfile()).thenReturn(mLeAudioProfile); in setUp() 258 when(mCachedDevice1.getProfiles()).thenReturn(List.of(mLeAudioProfile, mHapClientProfile)); in initHearingAidDeviceIfNeeded_leAudio_validInfo_setHearingAidInfo() 259 when(mLeAudioProfile.getAudioLocation(mDevice1)).thenReturn(AUDIO_LOCATION_FRONT_LEFT); in initHearingAidDeviceIfNeeded_leAudio_validInfo_setHearingAidInfo() 281 when(mCachedDevice1.getProfiles()).thenReturn(List.of(mLeAudioProfile, mHapClientProfile)); in initHearingAidDeviceIfNeeded_leAudio_invalidInfo_notToSetHearingAidInfo() 282 when(mLeAudioProfile.getAudioLocation(mDevice1)).thenReturn(AUDIO_LOCATION_INVALID); in initHearingAidDeviceIfNeeded_leAudio_invalidInfo_notToSetHearingAidInfo() 491 when(mCachedDevice1.getProfiles()).thenReturn(List.of(mLeAudioProfile, mHapClientProfile)); in updateHearingAidsDevices_leAudio_validInfo_setHearingAidInfo() 492 when(mLeAudioProfile.getAudioLocation(mDevice1)).thenReturn(AUDIO_LOCATION_FRONT_LEFT); in updateHearingAidsDevices_leAudio_validInfo_setHearingAidInfo() 515 when(mCachedDevice1.getProfiles()).thenReturn(List.of(mLeAudioProfile, mHapClientProfile)); in updateHearingAidsDevices_leAudio_invalidInfo_notToSetHearingAidInfo() 516 when(mLeAudioProfile.getAudioLocation(mDevice1)).thenReturn(AUDIO_LOCATION_INVALID); in updateHearingAidsDevices_leAudio_invalidInfo_notToSetHearingAidInfo()
|
D | BluetoothEventManagerTest.java | 88 private LeAudioProfile mLeAudioProfile; field in BluetoothEventManagerTest 125 when(mLeAudioProfile.isProfileReady()).thenReturn(true); in setUp() 506 mCachedDevice1.onProfileStateChanged(mLeAudioProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_connectedMemberDevices_activeDeviceChanged() 507 mCachedDevice3.onProfileStateChanged(mLeAudioProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_connectedMemberDevices_activeDeviceChanged()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | LocalBluetoothProfileManager.java | 110 private LeAudioProfile mLeAudioProfile; field in LocalBluetoothProfileManager 247 if (mLeAudioProfile == null && supportedList.contains(BluetoothProfile.LE_AUDIO)) { in updateLocalProfiles() 251 mLeAudioProfile = new LeAudioProfile(mContext, mDeviceManager, this); in updateLocalProfiles() 252 addProfile(mLeAudioProfile, LeAudioProfile.NAME, in updateLocalProfiles() 563 return mLeAudioProfile; in getLeAudioProfile() 623 if (ArrayUtils.contains(uuids, BluetoothUuid.LE_AUDIO) && mLeAudioProfile != null) { in updateProfiles() 624 profiles.add(mLeAudioProfile); in updateProfiles() 625 removedProfiles.remove(mLeAudioProfile); in updateProfiles()
|