Home
last modified time | relevance | path

Searched refs:kcm (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/core/java/android/hardware/input/
DPhysicalKeyLayout.java141 public PhysicalKeyLayout(@NonNull KeyCharacterMap kcm, @Nullable KeyboardLayout layout) { in PhysicalKeyLayout() argument
142 initLayoutKeys(kcm, layout); in PhysicalKeyLayout()
145 private void initLayoutKeys(KeyCharacterMap kcm, KeyboardLayout layout) { in initLayoutKeys() argument
147 createIsoLayout(kcm); in initLayoutKeys()
151 createAnsiLayout(kcm); in initLayoutKeys()
153 createJisLayout(kcm); in initLayoutKeys()
155 createIsoLayout(kcm); in initLayoutKeys()
171 private void createAnsiLayout(KeyCharacterMap kcm) { in createAnsiLayout() argument
174 getKey(kcm, SCANCODE_GRAVE), getKey(kcm, SCANCODE_1), in createAnsiLayout()
175 getKey(kcm, SCANCODE_2), getKey(kcm, SCANCODE_3), getKey(kcm, SCANCODE_4), in createAnsiLayout()
[all …]
/frameworks/base/services/core/java/com/android/server/policy/
DModifierShortcutManager.java141 private Intent getIntent(KeyCharacterMap kcm, int keyCode, int metaState) { in getIntent() argument
154 int shortcutChar = kcm.get(keyCode, metaState); in getIntent()
161 shortcutChar = Character.toLowerCase(kcm.getDisplayLabel(keyCode)); in getIntent()
354 private boolean handleIntentShortcut(KeyCharacterMap kcm, KeyEvent keyEvent, int metaState) { in handleIntentShortcut() argument
362 if (kcm.isPrintingKey(keyCode)) { in handleIntentShortcut()
399 final Intent shortcutIntent = getIntent(kcm, keyCode, metaState); in handleIntentShortcut()
458 final KeyCharacterMap kcm = event.getKeyCharacterMap(); in interceptKey() local
459 if (handleIntentShortcut(kcm, event, metaState)) { in interceptKey()
DPhoneWindowManager.java3999 final KeyCharacterMap kcm = event.getKeyCharacterMap();
4008 fallbackAction = kcm.getFallbackAction(keyCode, metaState);
/frameworks/base/core/jni/
Dandroid_view_KeyCharacterMap.cpp71 std::unique_ptr<KeyCharacterMap> kcm) { in android_view_KeyCharacterMap_create() argument
72 NativeKeyCharacterMap* nativeMap = new NativeKeyCharacterMap(deviceId, std::move(kcm)); in android_view_KeyCharacterMap_create()
96 std::unique_ptr<KeyCharacterMap> kcm; in nativeReadFromParcel() local
99 kcm = KeyCharacterMap::readFromParcel(parcel); in nativeReadFromParcel()
100 if (!kcm.get()) { in nativeReadFromParcel()
104 NativeKeyCharacterMap* map = new NativeKeyCharacterMap(deviceId, std::move(kcm)); in nativeReadFromParcel()
Dandroid_view_KeyCharacterMap.h28 std::unique_ptr<KeyCharacterMap> kcm);
/frameworks/base/data/keyboards/
DAndroid.bp19 "*.kcm",
42 "*.kcm",
Dkeyboards.mk19 $(call find-copy-subdir-files,*.kcm,$(LOCAL_PATH),system/usr/keychars) \
/frameworks/base/core/java/android/view/
DKeyCharacterMap.java387 KeyCharacterMap kcm = KeyCharacterMap.load(VIRTUAL_KEYBOARD); in load() local
388 kcm.applyOverlay(layoutDescriptor, overlay); in load()
389 return kcm; in load()
DViewRootImpl.java8831 final KeyCharacterMap kcm = event.getKeyCharacterMap(); in process() local
8837 kcm.getFallbackAction(keyCode, metaState); in process()
/frameworks/base/packages/InputDevices/
DAndroid.bp59 srcs: ["res/raw/*.kcm"],
/frameworks/native/services/inputflinger/reader/
DEventHub.cpp1189 const std::shared_ptr<KeyCharacterMap> kcm = device->getKeyCharacterMap(); in addKeyRemapping() local
1190 if (kcm) { in addKeyRemapping()
1191 kcm->addKeyRemapping(fromKeyCode, toKeyCode); in addKeyRemapping()
1203 const std::shared_ptr<KeyCharacterMap> kcm = device->getKeyCharacterMap(); in mapKey() local
1204 if (kcm) { in mapKey()
1205 if (!kcm->mapKey(scanCode, usageCode, outKeycode)) { in mapKey()
1219 if (kcm) { in mapKey()
1222 *outKeycode = kcm->applyKeyRemapping(*outKeycode); in mapKey()
1226 kcm->applyKeyBehavior(*outKeycode, metaState); in mapKey()
/frameworks/base/services/core/java/com/android/server/input/
DInputShellCommand.java388 final KeyCharacterMap kcm = KeyCharacterMap.load(KeyCharacterMap.VIRTUAL_KEYBOARD); in sendText() local
389 final KeyEvent[] events = kcm.getEvents(chars); in sendText()