Home
last modified time | relevance | path

Searched refs:oneOf (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/
DBluetoothManagerService.java593 if (mAdapter != null && mState.oneOf(STATE_BLE_ON)) {
595 } else if (mAdapter != null && mState.oneOf(STATE_ON)) {
699 if (mState.oneOf(STATE_OFF, STATE_BLE_TURNING_OFF)) { in onBleScanDisabled()
709 if (mState.oneOf(STATE_BLE_ON)) { in onBleScanDisabled()
925 if (mAdapter == null || !mState.oneOf(STATE_ON)) { in isMediaProfileConnected()
968 if (mAdapter != null && mState.oneOf(STATE_ON)) { in disableBleScanMode()
1033 if (mState.oneOf( in enableBle()
1063 if (mState.oneOf(STATE_OFF)) { in disableBle()
1070 if (mState.oneOf(STATE_BLE_ON) && !isBleAppPresent()) { in disableBle()
1573 if (!mState.oneOf(STATE_OFF)) { in handleMessage()
[all …]
/packages/modules/Bluetooth/service/src/
DAdapterStateTest.kt124 assertThat(mState.oneOf(state0, state1)).isTrue() in oneOf_expectMatch()
133 assertThat(mState.oneOf(state1, state2)).isFalse() in oneOf_expectNotMatch()
DAdapterState.kt41 fun oneOf(vararg states: Int): Boolean = states.contains(get()) in get() method
DAutoOnFeature.kt67 if (state.oneOf(STATE_ON)) { in resetAutoOnTimerForUser()
/packages/modules/Bluetooth/service/src/airplane/
DModeListener.kt95 val isBluetoothOn = state.oneOf(STATE_ON, STATE_TURNING_ON, STATE_TURNING_OFF) in initialize()
124 Flags.airplaneModeXBleOn() && isOnOverrode == false && state.oneOf(STATE_ON) in initialize()
/packages/apps/Messaging/src/com/android/messaging/util/
DAssert.java125 public static void oneOf(final int actual, final int ...expected) { in oneOf() method in Assert
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkSelectorTest.java1693 assertThat(nominatorId, is(oneOf( in testMultipleNominatorsSetsNominatorIdCorrectly()