Lines Matching defs:state
49 * Local cache of bonding state.
50 * We keep our own state to track the intermediate state BONDING, which
130 public synchronized void setBondState(String address, int state) {
131 setBondState(address, state, 0);
134 /** reason is ignored unless state == BOND_NOT_BONDED */
135 public synchronized void setBondState(String address, int state, int reason) {
136 if (DBG) Log.d(TAG, "setBondState " + "address" + " " + state + "reason: " + reason);
139 if (oldState == state) {
144 // If yes, reset the state.
151 if (state == BluetoothDevice.BOND_BONDED) {
158 } else if (state == BluetoothDevice.BOND_BONDING) {
162 } else if (state == BluetoothDevice.BOND_NONE) {
166 setProfilePriorities(address, state);
169 Log.d(TAG, address + " bond state " + oldState + " -> " + state
174 intent.putExtra(BluetoothDevice.EXTRA_BOND_STATE, state);
176 if (state == BluetoothDevice.BOND_NONE) {
185 mState.put(address, state);
235 Integer state = mState.get(address);
236 if (state == null) {
239 return state.intValue();
242 /*package*/ synchronized String[] listInState(int state) {
245 if (e.getValue().intValue() == state) {
450 // the bond state change
451 private void setProfilePriorities(String address, int state) {
454 mBluetoothInputProfileHandler.setInitialInputDevicePriority(remoteDevice, state);
460 if (state == BluetoothDevice.BOND_BONDED) {
470 } else if (state == BluetoothDevice.BOND_NONE) {