Home
last modified time | relevance | path

Searched refs:mCachedBluetoothDevice (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DBluetoothUtilsTest.java60 private CachedBluetoothDevice mCachedBluetoothDevice; field in BluetoothUtilsTest
106 when(mCachedBluetoothDevice.getBtClass().getMajorDeviceClass()).thenReturn( in getBtClassDrawableWithDescription_typePhone_returnPhoneDrawable()
109 mContext, mCachedBluetoothDevice); in getBtClassDrawableWithDescription_typePhone_returnPhoneDrawable()
116 when(mCachedBluetoothDevice.getBtClass().getMajorDeviceClass()).thenReturn( in getBtClassDrawableWithDescription_typeComputer_returnComputerDrawable()
119 mContext, mCachedBluetoothDevice); in getBtClassDrawableWithDescription_typeComputer_returnComputerDrawable()
126 when(mCachedBluetoothDevice.isHearingAidDevice()).thenReturn(true); in getBtClassDrawableWithDescription_typeHearingAid_returnHearingAidDrawable()
127 BluetoothUtils.getBtClassDrawableWithDescription(mContext, mCachedBluetoothDevice); in getBtClassDrawableWithDescription_typeHearingAid_returnHearingAidDrawable()
136 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in getBtRainbowDrawableWithDescription_normalHeadset_returnAdaptiveIcon()
137 when(mCachedBluetoothDevice.getAddress()).thenReturn("1f:aa:bb"); in getBtRainbowDrawableWithDescription_normalHeadset_returnAdaptiveIcon()
141 mCachedBluetoothDevice).first).isInstanceOf(AdaptiveIcon.class); in getBtRainbowDrawableWithDescription_normalHeadset_returnAdaptiveIcon()
[all …]
DHearingAidAudioRoutingHelperTest.java72 private CachedBluetoothDevice mCachedBluetoothDevice; field in HearingAidAudioRoutingHelperTest
146 when(mCachedBluetoothDevice.isHearingAidDevice()).thenReturn(true); in getMatchedHearingDeviceAttributes_mainHearingDevice_equalAddress()
147 when(mCachedBluetoothDevice.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in getMatchedHearingDeviceAttributes_mainHearingDevice_equalAddress()
150 mCachedBluetoothDevice).getAddress(); in getMatchedHearingDeviceAttributes_mainHearingDevice_equalAddress()
157 when(mCachedBluetoothDevice.isHearingAidDevice()).thenReturn(true); in getMatchedHearingDeviceAttributes_subHearingDevice_equalAddress()
158 when(mCachedBluetoothDevice.getAddress()).thenReturn(NOT_EXPECT_DEVICE_ADDRESS); in getMatchedHearingDeviceAttributes_subHearingDevice_equalAddress()
159 when(mCachedBluetoothDevice.getSubDevice()).thenReturn(mSubCachedBluetoothDevice); in getMatchedHearingDeviceAttributes_subHearingDevice_equalAddress()
164 mCachedBluetoothDevice).getAddress(); in getMatchedHearingDeviceAttributes_subHearingDevice_equalAddress()
175 when(mCachedBluetoothDevice.isHearingAidDevice()).thenReturn(true); in getMatchedHearingDeviceAttributes_memberHearingDevice_equalAddress()
176 when(mCachedBluetoothDevice.getAddress()).thenReturn(NOT_EXPECT_DEVICE_ADDRESS); in getMatchedHearingDeviceAttributes_memberHearingDevice_equalAddress()
[all …]
DLocalBluetoothProfileManagerTest.java71 private CachedBluetoothDevice mCachedBluetoothDevice; field in LocalBluetoothProfileManagerTest
94 when(mDeviceManager.findDevice(mDevice)).thenReturn(mCachedBluetoothDevice); in setUp()
95 when(mCachedBluetoothDevice.getDevice()).thenReturn(mDevice); in setUp()
178 mCachedBluetoothDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in stateChangedHandler_receiveA2dpConnectionStateChanged_shouldDispatchCallback()
198 verify(mEventManager).dispatchProfileConnectionStateChanged(mCachedBluetoothDevice, in stateChangedHandler_receiveHeadsetConnectionStateChanged_shouldDispatchCallback()
212 when(mCachedBluetoothDevice.getHiSyncId()).thenReturn(HISYNCID); in stateChangedHandler_receiveHearingAidConnectionStateChanged_dispatchDeviceManager()
221 verify(mDeviceManager).onProfileConnectionStateChangedIfProcessed(mCachedBluetoothDevice, in stateChangedHandler_receiveHearingAidConnectionStateChanged_dispatchDeviceManager()
234 when(mCachedBluetoothDevice.getGroupId()).thenReturn(GROUP_ID); in stateChangedHandler_receiveHapClientConnectionStateChanged_dispatchDeviceManager()
243 verify(mDeviceManager).syncDeviceWithinHearingAidSetIfNeeded(mCachedBluetoothDevice, in stateChangedHandler_receiveHapClientConnectionStateChanged_dispatchDeviceManager()
285 verify(mCachedBluetoothDevice, never()).refresh(); in stateChangedHandler_receivePanConnectionStateChangedWithoutProfile_shouldNotRefresh()
[all …]
DHearingAidStatsLogUtilsTest.java60 private CachedBluetoothDevice mCachedBluetoothDevice; field in HearingAidStatsLogUtilsTest
64 when(mCachedBluetoothDevice.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in setBondEntryForDevice_addsEntryToDeviceAddressToBondEntryMap()
68 mCachedBluetoothDevice); in setBondEntryForDevice_addsEntryToDeviceAddressToBondEntryMap()
79 when(mCachedBluetoothDevice.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in logHearingAidInfo_removesEntryFromDeviceAddressToBondEntryMap()
83 mCachedBluetoothDevice); in logHearingAidInfo_removesEntryFromDeviceAddressToBondEntryMap()
84 HearingAidStatsLogUtils.logHearingAidInfo(mCachedBluetoothDevice); in logHearingAidInfo_removesEntryFromDeviceAddressToBondEntryMap()
DBluetoothEventManagerTest.java78 private CachedBluetoothDevice mCachedBluetoothDevice; field in BluetoothEventManagerTest
121 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedBluetoothDevice); in setUp()
198 mBluetoothEventManager.dispatchProfileConnectionStateChanged(mCachedBluetoothDevice, in dispatchProfileConnectionStateChanged_registerCallback_shouldDispatchCallback()
201 verify(mBluetoothCallback).onProfileConnectionStateChanged(mCachedBluetoothDevice, in dispatchProfileConnectionStateChanged_registerCallback_shouldDispatchCallback()
228 mCachedBluetoothDevice, in dispatchProfileConnectionStateChanged_flagOff_noUpdateFallbackDevice()
259 mCachedBluetoothDevice, in dispatchProfileConnectionStateChanged_notSupport_noUpdateFallbackDevice()
290 mCachedBluetoothDevice, in dispatchProfileConnectionStateChanged_profileNotReady_noUpdateFallbackDevice()
321 mCachedBluetoothDevice, in dispatchProfileConnectionStateChanged_notAssistantProfile_noUpdateFallbackDevice()
352 mCachedBluetoothDevice, in dispatchProfileConnectionStateChanged_audioSharing_updateFallbackDevice()
367 verify(mBluetoothCallback).onAclConnectionStateChanged(mCachedBluetoothDevice, in dispatchAclConnectionStateChanged_aclDisconnected_shouldDispatchCallback()
[all …]
DHeadsetProfileTest.java37 private CachedBluetoothDevice mCachedBluetoothDevice; field in HeadsetProfileTest
50 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in setUp()
DHearingAidProfileTest.java52 private CachedBluetoothDevice mCachedBluetoothDevice; field in HearingAidProfileTest
66 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputBroadcastDialogTest.java103 private final CachedBluetoothDevice mCachedBluetoothDevice = mock(CachedBluetoothDevice.class); field in MediaOutputBroadcastDialogTest
196 .thenReturn(mCachedBluetoothDevice); in startBroadcastWithConnectedDevices_hasBroadcastSource_failToAddSource()
197 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothFirstDevice); in startBroadcastWithConnectedDevices_hasBroadcastSource_failToAddSource()
219 mCachedBluetoothDevice); in startBroadcastWithConnectedDevices_noBroadcastSource_failToAddSource()
220 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothFirstDevice); in startBroadcastWithConnectedDevices_noBroadcastSource_failToAddSource()
393 .thenReturn(mCachedBluetoothDevice); in addSourceToAllConnectedDevices()
394 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothFirstDevice); in addSourceToAllConnectedDevices()