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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations