visibility="public"
>
</field>
+<field name="KEYCODE_VOLUME_MUTE"
+ type="int"
+ transient="false"
+ volatile="false"
+ value="94"
+ static="true"
+ final="true"
+ deprecated="not deprecated"
+ visibility="public"
+>
+</field>
+<field name="KEYCODE_SLEEP"
+ type="int"
+ transient="false"
+ volatile="false"
+ value="95"
+ static="true"
+ final="true"
+ deprecated="not deprecated"
+ visibility="public"
+>
+</field>
+<field name="KEYCODE_WIFI"
+ type="int"
+ transient="false"
+ volatile="false"
+ value="96"
+ static="true"
+ final="true"
+ deprecated="not deprecated"
+ visibility="public"
+>
+</field>
<field name="KEYCODE_W"
type="int"
transient="false"
public static final int KEYCODE_MUTE = 91;
public static final int KEYCODE_PAGE_UP = 92;
public static final int KEYCODE_PAGE_DOWN = 93;
- public static final int KEYCODE_WIFI = 238;
- public static final int KEYCODE_SLEEP = 142;
+ public static final int KEYCODE_VOLUME_MUTE = 94;
+ public static final int KEYCODE_SLEEP = 95;
+ public static final int KEYCODE_WIFI = 96;
+
// NOTE: If you add a new keycode here you must also add it to:
// isSystem()
// frameworks/base/include/ui/KeycodeLabels.h
// those new codes. This is intended to maintain a consistent
// set of key code definitions across all Android devices.
- private static final int LAST_KEYCODE = KEYCODE_PAGE_DOWN;
+ private static final int LAST_KEYCODE = KEYCODE_WIFI;
/**
* @deprecated There are now more than MAX_KEYCODE keycodes.
case KEYCODE_CAMERA:
case KEYCODE_FOCUS:
case KEYCODE_SEARCH:
+ case KEYCODE_VOLUME_MUTE:
case KEYCODE_SLEEP:
case KEYCODE_WIFI:
return true;
<enum name="KEYCODE_MUTE" value="91" />
<enum name="KEYCODE_PAGE_UP" value="92" />
<enum name="KEYCODE_PAGE_DOWN" value="93" />
- <enum name="KEYCODE_WIFI" value="238" />
- <enum name="KEYCODE_SLEEP" value="142" />
+ <enum name="KEYCODE_VOLUME_MUTE" value="94" />
+ <enum name="KEYCODE_SLEEP" value="95" />
+ <enum name="KEYCODE_WIFI" value="96" />
</attr>
<!-- ***************************************************************** -->
{ "MUTE", 91 },
{ "PAGE_UP", 92 },
{ "PAGE_DOWN", 93 },
- { "WIFI",238},
- { "SLEEP",142},
+ { "VOLUME_MUTE",94},
+ { "SLEEP",95},
+ { "WIFI",96},
// NOTE: If you add a new keycode here you must also add it to:
// (enum KeyCode, in this file)
kKeyCodeMute = 91,
kKeyCodePageUp = 92,
kKeyCodePageDown = 93,
- kKeyCodeWifi = 238,
- kKeyCodeSleep = 142
+ kKeyCodeVolumeMute = 94,
+ kKeyCodeSleep = 95,
+ kKeyCodeWifi = 96,
} KeyCode;
static const KeycodeLabel FLAGS[] = {
case FLAG:
if (token == "key") {
if (scancode != -1) {
- //LOGI("got key decl scancode=%d keycode=%d"
+ // LOGI("got key decl scancode=%d keycode=%d"
// " flags=0x%08x\n", scancode, keycode, flags);
Key k = { keycode, flags };
m_keys.add(scancode, k);
*flags = k.flags;
//LOGD("mapped scancode=%d to keycode=%d flags=0x%08x\n", scancode,
- // keycode, flags);
+ // *keycode, *flags);
return NO_ERROR;
}