Home
last modified time | relevance | path

Searched refs:mProfileManager (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DLocalBluetoothProfileManagerTest.java72 private LocalBluetoothProfileManager mProfileManager; field in LocalBluetoothProfileManagerTest
85 mProfileManager = new LocalBluetoothProfileManager(mContext, mLocalBluetoothAdapter, in setUp()
96 mProfileManager.updateLocalProfiles(); in constructor_initiateHidAndHidDeviceProfile()
98 assertThat(mProfileManager.getHidProfile()).isNotNull(); in constructor_initiateHidAndHidDeviceProfile()
99 assertThat(mProfileManager.getHidDeviceProfile()).isNotNull(); in constructor_initiateHidAndHidDeviceProfile()
104 mProfileManager = spy(new LocalBluetoothProfileManager(mContext, mLocalBluetoothAdapter, in constructor_doNotUpdateProfiles()
107 verify(mProfileManager, never()).updateLocalProfiles(); in constructor_doNotUpdateProfiles()
115 mProfileManager.updateLocalProfiles(); in updateLocalProfiles_addA2dpToLocalProfiles()
116 assertThat(mProfileManager.getA2dpProfile()).isNull(); in updateLocalProfiles_addA2dpToLocalProfiles()
117 assertThat(mProfileManager.getHeadsetProfile()).isNull(); in updateLocalProfiles_addA2dpToLocalProfiles()
[all …]
DCachedBluetoothDeviceTest.java55 private LocalBluetoothProfileManager mProfileManager; field in CachedBluetoothDeviceTest
83 mCachedDevice = spy(new CachedBluetoothDevice(mContext, mProfileManager, mDevice)); in setUp()
705 new CachedBluetoothDevice(mContext, mProfileManager, mDevice); in deviceName_testAliasNameAvailable()
715 new CachedBluetoothDevice(mContext, mProfileManager, mDevice); in deviceName_testNameNotAvailable()
732 new CachedBluetoothDevice(mContext, mProfileManager, mDevice); in deviceName_testRenameDevice()
747 when(mProfileManager.getA2dpProfile()).thenReturn(mA2dpProfile); in setActive()
748 when(mProfileManager.getHeadsetProfile()).thenReturn(mHfpProfile); in setActive()
767 when(mProfileManager.getA2dpProfile()).thenReturn(mA2dpProfile); in isA2dpDevice_isA2dpDevice()
776 when(mProfileManager.getA2dpProfile()).thenReturn(mA2dpProfile); in isA2dpDevice_isNotA2dpDevice()
785 when(mProfileManager.getHeadsetProfile()).thenReturn(mHfpProfile); in isHfpDevice_isHfpDevice()
[all …]
DSapProfileTest.java48 private LocalBluetoothProfileManager mProfileManager; field in SapProfileTest
61 mProfile = new SapProfile(RuntimeEnvironment.application, mDeviceManager, mProfileManager); in setUp()
DHfpClientProfileTest.java48 private LocalBluetoothProfileManager mProfileManager; field in HfpClientProfileTest
62 mDeviceManager, mProfileManager); in setUp()
DMapClientProfileTest.java48 private LocalBluetoothProfileManager mProfileManager; field in MapClientProfileTest
62 mDeviceManager, mProfileManager); in setUp()
DPbapClientProfileTest.java48 private LocalBluetoothProfileManager mProfileManager; field in PbapClientProfileTest
62 mDeviceManager, mProfileManager); in setUp()
DHidDeviceProfileTest.java48 private LocalBluetoothProfileManager mProfileManager; field in HidDeviceProfileTest
62 mDeviceManager, mProfileManager); in setUp()
DA2dpSinkProfileTest.java48 private LocalBluetoothProfileManager mProfileManager; field in A2dpSinkProfileTest
62 mDeviceManager, mProfileManager); in setUp()
DHeadsetProfileTest.java33 private LocalBluetoothProfileManager mProfileManager; field in HeadsetProfileTest
52 mProfile = new HeadsetProfile(context, mDeviceManager, mProfileManager); in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DLocalBluetoothAdapter.java48 private LocalBluetoothProfileManager mProfileManager; field in LocalBluetoothAdapter
63 mProfileManager = manager; in setProfileManager()
173 A2dpProfile a2dp = mProfileManager.getA2dpProfile(); in startScanning()
177 A2dpSinkProfile a2dpSink = mProfileManager.getA2dpSinkProfile(); in startScanning()
212 if (mProfileManager != null) { in setBluetoothStateInt()
213 mProfileManager.setBluetoothStateOn(); in setBluetoothStateInt()
DLocalBluetoothManager.java51 private final LocalBluetoothProfileManager mProfileManager; field in LocalBluetoothManager
116 mProfileManager = new LocalBluetoothProfileManager(mContext, in LocalBluetoothManager()
119 mProfileManager.updateLocalProfiles(); in LocalBluetoothManager()
162 return mProfileManager; in getProfileManager()
DMapClientProfile.java44 private final LocalBluetoothProfileManager mProfileManager; field in MapClientProfile
78 mProfileManager.callServiceConnectedListeners(); in onServiceConnected()
83 mProfileManager.callServiceDisconnectedListeners(); in onServiceDisconnected()
101 mProfileManager = profileManager; in MapClientProfile()
DSapProfile.java44 private final LocalBluetoothProfileManager mProfileManager; field in SapProfile
76 mProfileManager.callServiceConnectedListeners(); in onServiceConnected()
81 mProfileManager.callServiceDisconnectedListeners(); in onServiceDisconnected()
98 mProfileManager = profileManager; in SapProfile()
DMapProfile.java44 private final LocalBluetoothProfileManager mProfileManager; field in MapProfile
77 mProfileManager.callServiceConnectedListeners(); in onServiceConnected()
82 mProfileManager.callServiceDisconnectedListeners(); in onServiceDisconnected()
100 mProfileManager = profileManager; in MapProfile()
DCachedBluetoothDevice.java59 private final LocalBluetoothProfileManager mProfileManager; field in CachedBluetoothDevice
98 mProfileManager = profileManager; in CachedBluetoothDevice()
172 PbapServerProfile PbapProfile = mProfileManager.getPbapProfile(); in disconnect()
393 A2dpProfile a2dpProfile = mProfileManager.getA2dpProfile(); in setActive()
400 HeadsetProfile headsetProfile = mProfileManager.getHeadsetProfile(); in setActive()
407 HearingAidProfile hearingAidProfile = mProfileManager.getHearingAidProfile(); in setActive()
571 mProfileManager.updateProfiles(uuids, localUuids, mProfiles, mRemovedProfiles, in updateProfiles()
589 A2dpProfile a2dpProfile = mProfileManager.getA2dpProfile(); in fetchActiveDevices()
593 HeadsetProfile headsetProfile = mProfileManager.getHeadsetProfile(); in fetchActiveDevices()
597 HearingAidProfile hearingAidProfile = mProfileManager.getHearingAidProfile(); in fetchActiveDevices()
[all …]
DHeadsetProfile.java44 private final LocalBluetoothProfileManager mProfileManager; field in HeadsetProfile
77 mProfileManager.callServiceConnectedListeners(); in onServiceConnected()
81 mProfileManager.callServiceDisconnectedListeners(); in onServiceDisconnected()
98 mProfileManager = profileManager; in HeadsetProfile()
DHearingAidProfile.java44 private final LocalBluetoothProfileManager mProfileManager; field in HearingAidProfile
75 mProfileManager.callServiceConnectedListeners(); in onServiceConnected()
96 mProfileManager = profileManager; in HearingAidProfile()
DHidDeviceProfile.java42 private final LocalBluetoothProfileManager mProfileManager; field in HidDeviceProfile
51 mProfileManager = profileManager; in HidDeviceProfile()
DPbapClientProfile.java48 private final LocalBluetoothProfileManager mProfileManager; field in PbapClientProfile
103 mProfileManager = profileManager; in PbapClientProfile()
DHidProfile.java41 private final LocalBluetoothProfileManager mProfileManager; field in HidProfile
88 mProfileManager = profileManager; in HidProfile()
DHfpClientProfile.java51 private final LocalBluetoothProfileManager mProfileManager; field in HfpClientProfile
99 mProfileManager = profileManager; in HfpClientProfile()
DA2dpSinkProfile.java48 private final LocalBluetoothProfileManager mProfileManager; field in A2dpSinkProfile
92 mProfileManager = profileManager; in A2dpSinkProfile()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DPhoneMediaDevice.java38 private LocalBluetoothProfileManager mProfileManager; field in PhoneMediaDevice
46 mProfileManager = mLocalBluetoothManager.getProfileManager(); in PhoneMediaDevice()
73 final HearingAidProfile hapProfile = mProfileManager.getHearingAidProfile(); in connect()
74 final A2dpProfile a2dpProfile = mProfileManager.getA2dpProfile(); in connect()
DBluetoothMediaManager.java48 private LocalBluetoothProfileManager mProfileManager; field in BluetoothMediaManager
62 mProfileManager = mLocalBluetoothManager.getProfileManager(); in BluetoothMediaManager()
81 mProfileManager.addServiceListener(this); in addServiceListenerIfNecessary()
92 final A2dpProfile a2dpProfile = mProfileManager.getA2dpProfile(); in addConnectableA2dpDevices()
123 final HearingAidProfile hapProfile = mProfileManager.getHearingAidProfile(); in addConnectableHearingAidDevices()
305 final HearingAidProfile hearingAidProfile = mProfileManager.getHearingAidProfile(); in findActiveHearingAidDevice()
327 mProfileManager.removeServiceListener(this); in onServiceConnected()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DBluetoothMediaManagerTest.java60 private LocalBluetoothProfileManager mProfileManager; field in BluetoothMediaManagerTest
80 when(mLocalBluetoothManager.getProfileManager()).thenReturn(mProfileManager); in setUp()
82 when(mProfileManager.getA2dpProfile()).thenReturn(mA2dpProfile); in setUp()
83 when(mProfileManager.getHearingAidProfile()).thenReturn(mHapProfile); in setUp()
174 verify(mProfileManager).addServiceListener(mMediaManager); in starScan_a2dpAndHapProfileNotReady_shouldRegisterCallback()
189 verify(mProfileManager, never()).addServiceListener(mMediaManager); in starScan_a2dpAndHapProfileReady_shouldNotRegisterCallback()
205 verify(mProfileManager, never()).removeServiceListener(mMediaManager); in onServiceConnected_a2dpAndHapProfileNotReady_doNothing()
221 verify(mProfileManager).removeServiceListener(mMediaManager); in onDeviceAttributesChanged_a2dpAndHapProfileReady_shouldUnregisterCallback()

12