Searched refs:btState (Results 1 – 6 of 6) sorted by relevance
98 int btState = 0; in onClick() local104 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()
694 int btState = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR); in handleBtStateChange() local696 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() local826 Log.d(TAG, "BtState = " + btState); in applyBtSettings()833 if (btState != BluetoothAdapter.STATE_ON) { in applyBtSettings()840 if (btState != BluetoothAdapter.STATE_TURNING_ON) { in applyBtSettings()
106 int btState = mLocalAdapter.getState(); in onCreate() local108 switch (btState) { in onCreate()149 Log.e(TAG, "Unknown adapter state: " + btState); in onCreate()
111 int btState = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR); in onReceive() local112 if (btState != BluetoothAdapter.STATE_TURNING_ON) { in onReceive()
35 int btState = prefs.getInt(KEY_BT_STATE, BluetoothAdapter.STATE_OFF); in onConnectionChanged() local44 if (btState != newBtState) { in onConnectionChanged()54 btState = newBtState; in onConnectionChanged()71 editor.putInt(KEY_BT_STATE, btState); in onConnectionChanged()
457 int btState = adapter.getState(); in updateBluetoothState() local458 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()