Home
last modified time | relevance | path

Searched refs:mHfpDeviceListLiveData (Results 1 – 6 of 6) sorted by relevance

/aosp12/packages/apps/Car/Dialer/src/com/android/car/dialer/bluetooth/
H A DUiBluetoothMonitor.java41 private HfpDeviceListLiveData mHfpDeviceListLiveData; field in UiBluetoothMonitor
54 mHfpDeviceListLiveData = hfpDeviceListLiveData; in UiBluetoothMonitor()
62 mHfpDeviceListLiveData.observeForever(mHfpDeviceListObserver); in UiBluetoothMonitor()
71 removeObserver(mHfpDeviceListLiveData, mHfpDeviceListObserver); in tearDown()
92 return mHfpDeviceListLiveData; in getHfpDeviceListLiveData()
/aosp12/packages/apps/Car/Dialer/tests/unittests/src/com/android/car/dialer/bluetooth/
H A DHfpDeviceListLiveDataTest.java57 private HfpDeviceListLiveData mHfpDeviceListLiveData; field in HfpDeviceListLiveDataTest
79 mHfpDeviceListLiveData = new HfpDeviceListLiveData( in setup()
89 mHfpDeviceListLiveData.observe(mMockLifecycleOwner, in testOnActive()
104 mHfpDeviceListLiveData.observe(mMockLifecycleOwner, in testOnBluetoothHfpStateChange()
108 assertThat(mHfpDeviceListLiveData.getValue()).isNotEmpty(); in testOnBluetoothHfpStateChange()
114 assertThat(mHfpDeviceListLiveData.getValue()).isEmpty(); in testOnBluetoothHfpStateChange()
120 mHfpDeviceListLiveData.observe(mMockLifecycleOwner, in testOnInactiveUnregister()
/aosp12/packages/apps/Car/Dialer/tests/unittests/src/com/android/car/dialer/ui/warning/
H A DBluetoothErrorStringLiveDataTest.java53 private MutableLiveData<List<BluetoothDevice>> mHfpDeviceListLiveData; field in BluetoothErrorStringLiveDataTest
61 mHfpDeviceListLiveData = new MutableLiveData<>(Collections.emptyList()); in setUp()
109 mHfpDeviceListLiveData.setValue(Collections.emptyList()); in testDialerAppState_hfpNoConnected_bluetoothError()
124 mHfpDeviceListLiveData.setValue(Collections.singletonList(mockBluetoothDevice)); in testDialerAppState_bluetoothAllSet_dialerAppNoError()
134 mHfpDeviceListLiveData, mPairedListLiveData, mBluetoothStateLiveData, in initializeBluetoothErrorStringLiveData()
139 mHfpDeviceListLiveData.observeForever(error -> { in initializeBluetoothErrorStringLiveData()
/aosp12/packages/apps/Car/Dialer/framework/fake/src/com/android/car/dialer/framework/
H A DFakeHfpManager.java47 private MutableLiveData<List<BluetoothDevice>> mHfpDeviceListLiveData; field in FakeHfpManager
61 mHfpDeviceListLiveData = new MutableLiveData<>(mDeviceList); in FakeHfpManager()
73 mHfpDeviceListLiveData.postValue(mDeviceList); in connectHfpDevice()
87 mHfpDeviceListLiveData.postValue(mDeviceList); in disconnectHfpDevice()
108 return mHfpDeviceListLiveData; in getHfpDeviceListLiveData()
/aosp12/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/warning/
H A DBluetoothErrorStringLiveData.java52 private LiveData<List<BluetoothDevice>> mHfpDeviceListLiveData; field in BluetoothErrorStringLiveData
69 mHfpDeviceListLiveData = hfpDeviceListLiveData; in BluetoothErrorStringLiveData()
73 addSource(mHfpDeviceListLiveData, this::onHfpDevicesChanged); in BluetoothErrorStringLiveData()
116 List<BluetoothDevice> mHfpDeviceList = mHfpDeviceListLiveData.getValue(); in isHfpConnected()
/aosp12/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/
H A DTelecomActivityViewModel.java48 private final LiveData<List<BluetoothDevice>> mHfpDeviceListLiveData; field in TelecomActivityViewModel
65 mHfpDeviceListLiveData = hfpDeviceListLiveData; in TelecomActivityViewModel()
71 mRefreshTabsLiveData = new RefreshUiEvent(mHfpDeviceListLiveData, in TelecomActivityViewModel()