Home
last modified time | relevance | path

Searched refs:maxConnectionState (Results 1 – 2 of 2) sorted by relevance

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/bluetooth/
H A DBluetoothRepositoryImplTest.kt68 assertThat(status.maxConnectionState).isEqualTo(BluetoothProfile.STATE_CONNECTING)
84 assertThat(status.maxConnectionState).isEqualTo(BluetoothProfile.STATE_DISCONNECTED)
101 assertThat(status.maxConnectionState).isEqualTo(BluetoothProfile.STATE_CONNECTING)
109 whenever(it.maxConnectionState).thenReturn(BluetoothProfile.STATE_CONNECTING)
114 assertThat(status.maxConnectionState).isEqualTo(BluetoothProfile.STATE_CONNECTING)
123 whenever(it.maxConnectionState).thenReturn(BluetoothProfile.STATE_CONNECTING)
128 whenever(it.maxConnectionState).thenReturn(BluetoothProfile.STATE_CONNECTED)
134 assertThat(status.maxConnectionState).isEqualTo(BluetoothProfile.STATE_CONNECTED)
144 whenever(it.maxConnectionState).thenReturn(BluetoothProfile.STATE_CONNECTED)
149 whenever(it.maxConnectionState).thenReturn(BluetoothProfile.STATE_CONNECTED)
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/bluetooth/
H A DBluetoothRepository.kt75 var maxConnectionState = regex
80 .maxOf { it.maxConnectionState }
87 connectedDevices.isEmpty() && maxConnectionState == BluetoothAdapter.STATE_CONNECTED
91 maxConnectionState = BluetoothAdapter.STATE_DISCONNECTED
94 ConnectionStatusModel(maxConnectionState, connectedDevices)
101 val maxConnectionState: Int,