Merge "Add a keycode to switch audio tracks (2/2)"
This commit is contained in:
commit
174c26045c
@ -265,6 +265,7 @@ enum {
|
|||||||
AKEYCODE_ASSIST = 219,
|
AKEYCODE_ASSIST = 219,
|
||||||
AKEYCODE_BRIGHTNESS_DOWN = 220,
|
AKEYCODE_BRIGHTNESS_DOWN = 220,
|
||||||
AKEYCODE_BRIGHTNESS_UP = 221,
|
AKEYCODE_BRIGHTNESS_UP = 221,
|
||||||
|
AKEYCODE_MEDIA_AUDIO_TRACK = 222,
|
||||||
|
|
||||||
// NOTE: If you add a new keycode here you must also add it to several other files.
|
// NOTE: If you add a new keycode here you must also add it to several other files.
|
||||||
// Refer to frameworks/base/core/java/android/view/KeyEvent.java for the full list.
|
// Refer to frameworks/base/core/java/android/view/KeyEvent.java for the full list.
|
||||||
|
@ -246,6 +246,7 @@ static const KeycodeLabel KEYCODES[] = {
|
|||||||
{ "ASSIST", 219 },
|
{ "ASSIST", 219 },
|
||||||
{ "BRIGHTNESS_DOWN", 220 },
|
{ "BRIGHTNESS_DOWN", 220 },
|
||||||
{ "BRIGHTNESS_UP", 221 },
|
{ "BRIGHTNESS_UP", 221 },
|
||||||
|
{ "MEDIA_AUDIO_TRACK", 222 },
|
||||||
|
|
||||||
// NOTE: If you add a new keycode here you must also add it to several other files.
|
// NOTE: If you add a new keycode here you must also add it to several other files.
|
||||||
// Refer to frameworks/base/core/java/android/view/KeyEvent.java for the full list.
|
// Refer to frameworks/base/core/java/android/view/KeyEvent.java for the full list.
|
||||||
|
@ -70,6 +70,7 @@ bool KeyEvent::hasDefaultAction(int32_t keyCode) {
|
|||||||
case AKEYCODE_MUTE:
|
case AKEYCODE_MUTE:
|
||||||
case AKEYCODE_BRIGHTNESS_DOWN:
|
case AKEYCODE_BRIGHTNESS_DOWN:
|
||||||
case AKEYCODE_BRIGHTNESS_UP:
|
case AKEYCODE_BRIGHTNESS_UP:
|
||||||
|
case AKEYCODE_MEDIA_AUDIO_TRACK:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,6 +109,7 @@ bool KeyEvent::isSystemKey(int32_t keyCode) {
|
|||||||
case AKEYCODE_SEARCH:
|
case AKEYCODE_SEARCH:
|
||||||
case AKEYCODE_BRIGHTNESS_DOWN:
|
case AKEYCODE_BRIGHTNESS_DOWN:
|
||||||
case AKEYCODE_BRIGHTNESS_UP:
|
case AKEYCODE_BRIGHTNESS_UP:
|
||||||
|
case AKEYCODE_MEDIA_AUDIO_TRACK:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user