Home | History | Annotate | Download | only in bluetooth

Lines Matching refs:when

24 import static org.mockito.Mockito.when;
70 when(mCachedBluetoothDevice.isConnected()).thenReturn(true);
80 when(mCachedBluetoothDevice.isConnected()).thenReturn(false);
81 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED);
91 when(mCachedBluetoothDevice.isConnected()).thenReturn(false);
92 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE);
93 when(mCachedBluetoothDevice.startPairing()).thenReturn(true);
94 when(mCachedBluetoothDevice.hasHumanReadableName()).thenReturn(true);
106 when(mCachedBluetoothDevice.isConnected()).thenReturn(false);
107 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE);
108 when(mCachedBluetoothDevice.startPairing()).thenReturn(true);
109 when(mCachedBluetoothDevice.hasHumanReadableName()).thenReturn(false);
133 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE);
142 when(um.hasUserRestriction(UserManager.DISALLOW_CONFIG_BLUETOOTH)).thenReturn(true);
149 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED);
152 when(um.hasUserRestriction(UserManager.DISALLOW_CONFIG_BLUETOOTH)).thenReturn(false);
159 when(mCachedBluetoothDevice.getBatteryLevel())
161 when(mCachedBluetoothDevice.getBtClass())
171 doReturn(false).when(mCachedBluetoothDevice).hasHumanReadableName();
181 doReturn(false).when(mCachedBluetoothDevice).hasHumanReadableName();