Search in sources :

Example 1 with KeyboardShortcutsReceiver

use of android.view.WindowManager.KeyboardShortcutsReceiver in project android_frameworks_base by ResurrectionRemix.

the class KeyboardShortcuts method showKeyboardShortcuts.

private void showKeyboardShortcuts(int deviceId) {
    retrieveKeyCharacterMap(deviceId);
    Recents.getSystemServices().requestKeyboardShortcuts(mContext, new KeyboardShortcutsReceiver() {

        @Override
        public void onKeyboardShortcutsReceived(final List<KeyboardShortcutGroup> result) {
            result.add(getSystemShortcuts());
            final KeyboardShortcutGroup appShortcuts = getDefaultApplicationShortcuts();
            if (appShortcuts != null) {
                result.add(appShortcuts);
            }
            showKeyboardShortcutsDialog(result);
        }
    }, deviceId);
}
Also used : KeyboardShortcutGroup(android.view.KeyboardShortcutGroup) KeyboardShortcutsReceiver(android.view.WindowManager.KeyboardShortcutsReceiver)

Example 2 with KeyboardShortcutsReceiver

use of android.view.WindowManager.KeyboardShortcutsReceiver in project platform_frameworks_base by android.

the class KeyboardShortcuts method showKeyboardShortcuts.

private void showKeyboardShortcuts(int deviceId) {
    retrieveKeyCharacterMap(deviceId);
    Recents.getSystemServices().requestKeyboardShortcuts(mContext, new KeyboardShortcutsReceiver() {

        @Override
        public void onKeyboardShortcutsReceived(final List<KeyboardShortcutGroup> result) {
            result.add(getSystemShortcuts());
            final KeyboardShortcutGroup appShortcuts = getDefaultApplicationShortcuts();
            if (appShortcuts != null) {
                result.add(appShortcuts);
            }
            showKeyboardShortcutsDialog(result);
        }
    }, deviceId);
}
Also used : KeyboardShortcutGroup(android.view.KeyboardShortcutGroup) KeyboardShortcutsReceiver(android.view.WindowManager.KeyboardShortcutsReceiver)

Example 3 with KeyboardShortcutsReceiver

use of android.view.WindowManager.KeyboardShortcutsReceiver in project android_frameworks_base by DirtyUnicorns.

the class KeyboardShortcuts method showKeyboardShortcuts.

private void showKeyboardShortcuts(int deviceId) {
    retrieveKeyCharacterMap(deviceId);
    Recents.getSystemServices().requestKeyboardShortcuts(mContext, new KeyboardShortcutsReceiver() {

        @Override
        public void onKeyboardShortcutsReceived(final List<KeyboardShortcutGroup> result) {
            result.add(getSystemShortcuts());
            final KeyboardShortcutGroup appShortcuts = getDefaultApplicationShortcuts();
            if (appShortcuts != null) {
                result.add(appShortcuts);
            }
            showKeyboardShortcutsDialog(result);
        }
    }, deviceId);
}
Also used : KeyboardShortcutGroup(android.view.KeyboardShortcutGroup) KeyboardShortcutsReceiver(android.view.WindowManager.KeyboardShortcutsReceiver)

Example 4 with KeyboardShortcutsReceiver

use of android.view.WindowManager.KeyboardShortcutsReceiver in project android_frameworks_base by AOSPA.

the class KeyboardShortcuts method showKeyboardShortcuts.

private void showKeyboardShortcuts(int deviceId) {
    retrieveKeyCharacterMap(deviceId);
    Recents.getSystemServices().requestKeyboardShortcuts(mContext, new KeyboardShortcutsReceiver() {

        @Override
        public void onKeyboardShortcutsReceived(final List<KeyboardShortcutGroup> result) {
            result.add(getSystemShortcuts());
            final KeyboardShortcutGroup appShortcuts = getDefaultApplicationShortcuts();
            if (appShortcuts != null) {
                result.add(appShortcuts);
            }
            showKeyboardShortcutsDialog(result);
        }
    }, deviceId);
}
Also used : KeyboardShortcutGroup(android.view.KeyboardShortcutGroup) KeyboardShortcutsReceiver(android.view.WindowManager.KeyboardShortcutsReceiver)

Example 5 with KeyboardShortcutsReceiver

use of android.view.WindowManager.KeyboardShortcutsReceiver in project android_frameworks_base by crdroidandroid.

the class KeyboardShortcuts method showKeyboardShortcuts.

private void showKeyboardShortcuts(int deviceId) {
    retrieveKeyCharacterMap(deviceId);
    Recents.getSystemServices().requestKeyboardShortcuts(mContext, new KeyboardShortcutsReceiver() {

        @Override
        public void onKeyboardShortcutsReceived(final List<KeyboardShortcutGroup> result) {
            result.add(getSystemShortcuts());
            final KeyboardShortcutGroup appShortcuts = getDefaultApplicationShortcuts();
            if (appShortcuts != null) {
                result.add(appShortcuts);
            }
            showKeyboardShortcutsDialog(result);
        }
    }, deviceId);
}
Also used : KeyboardShortcutGroup(android.view.KeyboardShortcutGroup) KeyboardShortcutsReceiver(android.view.WindowManager.KeyboardShortcutsReceiver)

Aggregations

KeyboardShortcutGroup (android.view.KeyboardShortcutGroup)5 KeyboardShortcutsReceiver (android.view.WindowManager.KeyboardShortcutsReceiver)5