Lines Matching defs:state

63     // one state on screen, but can have multiple profiles, the later states override the
115 pw.println("BluetoothController state:");
207 paired.state = connectionStateToPairedDeviceState(info.connectionStateIndex);
214 int state = CONNECTION_STATES[index];
215 if (state == BluetoothAdapter.STATE_CONNECTED) return PairedDevice.STATE_CONNECTED;
216 if (state == BluetoothAdapter.STATE_CONNECTING) return PairedDevice.STATE_CONNECTING;
217 if (state == BluetoothAdapter.STATE_DISCONNECTING) return PairedDevice.STATE_DISCONNECTING;
290 private void updateConnectionState(BluetoothDevice device, int profile, int state) {
295 mHandler.obtainMessage(MSG_UPDATE_SINGLE_CONNECTION_STATE, profile, state, device)
332 int state = mProfiles.valueAt(j).getConnectionState(device);
333 handleUpdateConnectionState(device, mProfiles.keyAt(j), state);
340 private void handleUpdateConnectionState(BluetoothDevice device, int profile, int state) {
343 + " " + BluetoothUtil.connectionStateToString(state));
347 if (CONNECTION_STATES[i] == state) {
361 if (state == BluetoothProfile.STATE_CONNECTED) {
402 // If profiles are expanded to use more than just connection state and connect/disconnect
500 final int state = intent.getIntExtra(BluetoothAdapter.EXTRA_CONNECTION_STATE,
504 + connectionStateToString(state) + " " + deviceToString(device));
505 setConnecting(state == BluetoothAdapter.STATE_CONNECTING);
514 int state = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1);
517 + " " + BluetoothUtil.connectionStateToString(state));
518 if ((profile != -1) && (state != -1)) {
519 updateConnectionState(device, profile, state);