Lines Matching refs:state
160 * Compare the existing headset state with the new state and pass along accordingly. Note
182 Log.e(TAG, "No state change.");
186 // reject all suspect transitions: only accept state changes from:
241 int state;
244 state = 1;
246 state = 0;
265 Slog.v(TAG, "device "+headsetName+((state == 1) ? " connected" : " disconnected"));
267 mAudioManager.setWiredDeviceConnectionState(device, state, headsetName);
310 " not found while attempting to determine initial switch state");
378 int state = Integer.parseInt(event.get("SWITCH_STATE"));
380 updateStateLocked(devPath, name, state);
383 Slog.e(TAG, "Could not parse switch state from event " + event);
387 private void updateStateLocked(String devPath, String name, int state) {
391 updateLocked(name, uei.computeNewHeadsetState(mHeadsetState, state));
415 return String.format("/sys/class/switch/%s/state", mDevName);