Home | History | Annotate | Download | only in server

Lines Matching defs:headset

50  * <p>WiredAccessoryManager monitors for a wired headset on the main board or dock using
132 int headset;
136 headset = 0;
140 headset = BIT_HEADSET_NO_MIC;
144 headset = BIT_HEADSET;
148 headset = BIT_HEADSET;
152 headset = 0;
156 updateLocked(NAME_H2W, (mHeadsetState & ~(BIT_HEADSET | BIT_HEADSET_NO_MIC)) | headset);
161 * Compare the existing headset state with the new state and pass along accordingly. Note
162 * that this only supports a single headset at a time. Inserting both a usb and jacked headset
188 // - a: 0 headset to 1 headset
189 // - b: 1 headset to 0 headset
194 // - c: 0 usb headset to 1 usb headset
195 // - d: 1 usb headset to 0 usb headset
238 private void setDeviceStateLocked(int headset,
240 if ((headsetState & headset) != (prevHeadsetState & headset)) {
244 if ((headsetState & headset) != 0) {
250 if (headset == BIT_HEADSET) {
252 } else if (headset == BIT_HEADSET_NO_MIC){
254 } else if (headset == BIT_USB_HEADSET_ANLG) {
256 } else if (headset == BIT_USB_HEADSET_DGTL) {
258 } else if (headset == BIT_HDMI_AUDIO) {
261 Slog.e(TAG, "setDeviceState() invalid headset type: "+headset);
337 Slog.w(TAG, "This kernel does not have wired headset support");
374 if (LOG) Slog.v(TAG, "Headset UEVENT: " + event.toString());