Home
last modified time | relevance | path

Searched refs:KeyboardLogEvent (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/policy/
DShortcutLoggingTests.java34 import com.android.server.input.KeyboardMetricsCollector.KeyboardLogEvent;
70 KeyboardLogEvent.HOME, KeyEvent.KEYCODE_H, META_ON}, in shortcutTestArguments()
72 KeyboardLogEvent.HOME, KeyEvent.KEYCODE_ENTER, META_ON}, in shortcutTestArguments()
73 {"HOME key -> Open Home", new int[]{KeyEvent.KEYCODE_HOME}, KeyboardLogEvent.HOME, in shortcutTestArguments()
76 KeyboardLogEvent.RECENT_APPS, KeyEvent.KEYCODE_RECENT_APPS, 0}, in shortcutTestArguments()
78 KeyboardLogEvent.RECENT_APPS, KeyEvent.KEYCODE_TAB, META_ON}, in shortcutTestArguments()
80 KeyboardLogEvent.RECENT_APPS, KeyEvent.KEYCODE_TAB, ALT_ON}, in shortcutTestArguments()
81 {"BACK key -> Go back", new int[]{KeyEvent.KEYCODE_BACK}, KeyboardLogEvent.BACK, in shortcutTestArguments()
84 KeyboardLogEvent.BACK, KeyEvent.KEYCODE_ESCAPE, META_ON}, in shortcutTestArguments()
86 KeyboardLogEvent.BACK, KeyEvent.KEYCODE_DPAD_LEFT, META_ON}, in shortcutTestArguments()
[all …]
DTestPhoneWindowManager.java101 import com.android.server.input.KeyboardMetricsCollector.KeyboardLogEvent;
826 void assertShortcutLogged(int vendorId, int productId, KeyboardLogEvent logEvent, in assertShortcutLogged()
/frameworks/base/services/core/java/com/android/server/input/
DKeyboardMetricsCollector.java69 public enum KeyboardLogEvent { enum in KeyboardMetricsCollector
226 private static final SparseArray<KeyboardLogEvent> VALUE_TO_ENUM_MAP = new SparseArray<>();
229 for (KeyboardLogEvent type : KeyboardLogEvent.values()) {
234 KeyboardLogEvent(int enumValue, String enumName) { in KeyboardLogEvent() method in KeyboardMetricsCollector.KeyboardLogEvent
248 public static KeyboardLogEvent from(int value) { in from()
256 public static KeyboardLogEvent getVolumeEvent(int keycode) { in getVolumeEvent()
273 public static KeyboardLogEvent getBrightnessEvent(int keycode) { in getBrightnessEvent()
289 public static KeyboardLogEvent getLogEventFromIntent(Intent intent) { in getLogEventFromIntent()
295 KeyboardLogEvent logEvent = getEventFromSelectorCategory(intentCategory); in getLogEventFromIntent()
326 private static KeyboardLogEvent getEventFromSelectorCategory(String category) { in getEventFromSelectorCategory()
[all …]
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java230 import com.android.server.input.KeyboardMetricsCollector.KeyboardLogEvent;
826 handleKeyboardSystemEvent(KeyboardLogEvent.from(msg.arg1), (KeyEvent) msg.obj); in handleMessage()
1832 logKeyboardSystemsEvent(event, KeyboardLogEvent.HOME); in handleShortPressOnHome()
2066 logKeyboardSystemsEvent(event, KeyboardLogEvent.APP_SWITCH); in handleDoubleTapOnHome()
2093 logKeyboardSystemsEvent(event, KeyboardLogEvent.ALL_APPS); in handleLongPressOnHome()
2097 logKeyboardSystemsEvent(event, KeyboardLogEvent.LAUNCH_ASSISTANT); in handleLongPressOnHome()
2102 logKeyboardSystemsEvent(event, KeyboardLogEvent.TOGGLE_NOTIFICATION_PANEL); in handleLongPressOnHome()
3290 private void handleKeyboardSystemEvent(KeyboardLogEvent keyboardLogEvent, KeyEvent event) {
3298 KeyboardLogEvent keyboardSystemEvent) {
3306 KeyboardLogEvent keyboardSystemEvent) {
[all …]
DModifierShortcutManager.java43 import com.android.server.input.KeyboardMetricsCollector.KeyboardLogEvent;
392 logKeyboardShortcut(keyEvent, KeyboardLogEvent.getLogEventFromIntent(intent)); in handleIntentShortcut()
409 logKeyboardShortcut(keyEvent, KeyboardLogEvent.getLogEventFromIntent(shortcutIntent)); in handleIntentShortcut()
415 private void logKeyboardShortcut(KeyEvent event, KeyboardLogEvent logEvent) { in logKeyboardShortcut()
419 private void handleKeyboardLogging(KeyEvent event, KeyboardLogEvent logEvent) { in handleKeyboardLogging()