Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/bluetooth/
DRequestPermissionHelperActivity.java98 int btState = 0; in onClick() local
104 btState = mLocalAdapter.getBluetoothState(); in onClick()
106 } while (btState == BluetoothAdapter.STATE_TURNING_OFF && --retryCount > 0); in onClick()
111 if (btState == BluetoothAdapter.STATE_TURNING_ON in onClick()
112 || btState == BluetoothAdapter.STATE_ON in onClick()
DDockService.java694 int btState = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR); in handleBtStateChange() local
696 if(DEBUG) Log.d(TAG, "BtState = " + btState + " mPendingDevice = " + mPendingDevice); in handleBtStateChange()
697 if (btState == BluetoothAdapter.STATE_ON) { in handleBtStateChange()
699 } else if (btState == BluetoothAdapter.STATE_TURNING_OFF) { in handleBtStateChange()
706 } else if (btState == BluetoothAdapter.STATE_OFF) { in handleBtStateChange()
824 int btState = mLocalAdapter.getBluetoothState(); in applyBtSettings() local
826 Log.d(TAG, "BtState = " + btState); in applyBtSettings()
833 if (btState != BluetoothAdapter.STATE_ON) { in applyBtSettings()
840 if (btState != BluetoothAdapter.STATE_TURNING_ON) { in applyBtSettings()
DRequestPermissionActivity.java106 int btState = mLocalAdapter.getState(); in onCreate() local
108 switch (btState) { in onCreate()
149 Log.e(TAG, "Unknown adapter state: " + btState); in onCreate()
DDockEventReceiver.java111 int btState = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR); in onReceive() local
112 if (btState != BluetoothAdapter.STATE_TURNING_ON) { in onReceive()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothConnectionsManager.java35 int btState = prefs.getInt(KEY_BT_STATE, BluetoothAdapter.STATE_OFF); in onConnectionChanged() local
44 if (btState != newBtState) { in onConnectionChanged()
54 btState = newBtState; in onConnectionChanged()
71 editor.putInt(KEY_BT_STATE, btState); in onConnectionChanged()
/packages/apps/Settings/src/com/android/settings/
DTetherSettings.java457 int btState = adapter.getState(); in updateBluetoothState() local
458 if (btState == BluetoothAdapter.STATE_TURNING_OFF) { in updateBluetoothState()
461 } else if (btState == BluetoothAdapter.STATE_TURNING_ON) { in updateBluetoothState()
466 if (btState == BluetoothAdapter.STATE_ON && bluetoothPan != null in updateBluetoothState()