Home
last modified time | relevance | path

Searched refs:KeyCharacterMap (Results 1 – 25 of 79) sorted by relevance

1234

/frameworks/native/libs/input/tests/
DInputDevice_test.cpp61 base::Result<std::shared_ptr<KeyCharacterMap>> ret = in loadKeyCharacterMap()
62 KeyCharacterMap::load(path, KeyCharacterMap::Format::BASE); in loadKeyCharacterMap()
83 std::shared_ptr<KeyCharacterMap> map = KeyCharacterMap::readFromParcel(&parcel); in TEST_F()
91 base::Result<std::shared_ptr<KeyCharacterMap>> overlay = in TEST_F()
92 KeyCharacterMap::load(overlayPath, KeyCharacterMap::Format::OVERLAY); in TEST_F()
97 std::shared_ptr<KeyCharacterMap> map = KeyCharacterMap::readFromParcel(&parcel); in TEST_F()
105 base::Result<std::shared_ptr<KeyCharacterMap>> frenchOverlay = in TEST_F()
106 KeyCharacterMap::load(frenchOverlayPath, KeyCharacterMap::Format::OVERLAY); in TEST_F()
108 base::Result<std::shared_ptr<KeyCharacterMap>> englishOverlay = in TEST_F()
109 KeyCharacterMap::load(englishOverlayPath, KeyCharacterMap::Format::OVERLAY); in TEST_F()
[all …]
/frameworks/native/libs/input/
DKeyCharacterMap.cpp85 KeyCharacterMap::KeyCharacterMap(const std::string& filename) : mLoadFileName(filename) {} in KeyCharacterMap() function in android::KeyCharacterMap
87 base::Result<std::shared_ptr<KeyCharacterMap>> KeyCharacterMap::load(const std::string& filename, in load()
94 std::shared_ptr<KeyCharacterMap> map = in load()
95 std::shared_ptr<KeyCharacterMap>(new KeyCharacterMap(filename)); in load()
108 base::Result<std::shared_ptr<KeyCharacterMap>> KeyCharacterMap::loadContents( in loadContents()
116 std::shared_ptr<KeyCharacterMap> map = in loadContents()
117 std::shared_ptr<KeyCharacterMap>(new KeyCharacterMap(filename)); in loadContents()
130 status_t KeyCharacterMap::load(Tokenizer* tokenizer, Format format) { in load()
148 void KeyCharacterMap::clear() { in clear()
156 status_t KeyCharacterMap::reloadBaseFromFile() { in reloadBaseFromFile()
[all …]
DKeyboard.cpp152 base::Result<std::shared_ptr<KeyCharacterMap>> ret = in loadKeyCharacterMap()
153 KeyCharacterMap::load(path, KeyCharacterMap::Format::BASE); in loadKeyCharacterMap()
176 KeyCharacterMap::KeyboardType::SPECIAL_FUNCTION) { in isEligibleBuiltInKeyboard()
/frameworks/native/include/input/
DKeyCharacterMap.h43 class KeyCharacterMap {
75 static base::Result<std::shared_ptr<KeyCharacterMap>> load(const std::string& filename,
79 static base::Result<std::shared_ptr<KeyCharacterMap>> loadContents(const std::string& filename,
86 void combine(const KeyCharacterMap& overlay);
146 static std::unique_ptr<KeyCharacterMap> readFromParcel(Parcel* parcel);
151 bool operator==(const KeyCharacterMap& other) const = default;
153 KeyCharacterMap(const KeyCharacterMap& other) = default;
206 KeyCharacterMap* mMap;
213 Parser(KeyCharacterMap* map, Tokenizer* tokenizer, Format format);
236 KeyCharacterMap(const std::string& filename);
DKeyboard.h28 class KeyCharacterMap; variable
39 std::shared_ptr<KeyCharacterMap> keyCharacterMap;
/frameworks/base/core/java/android/view/
DKeyCharacterMap.java37 public class KeyCharacterMap implements Parcelable { class
286 public static final @android.annotation.NonNull Parcelable.Creator<KeyCharacterMap> CREATOR =
287 new Parcelable.Creator<KeyCharacterMap>() {
288 public KeyCharacterMap createFromParcel(Parcel in) {
289 return new KeyCharacterMap(in);
291 public KeyCharacterMap[] newArray(int size) {
292 return new KeyCharacterMap[size];
310 private static native KeyCharacterMap nativeObtainEmptyKeyCharacterMap(int deviceId); in nativeObtainEmptyKeyCharacterMap()
317 private KeyCharacterMap(Parcel in) { in KeyCharacterMap() method in KeyCharacterMap
329 private KeyCharacterMap(long ptr) { in KeyCharacterMap() method in KeyCharacterMap
[all …]
DKeyCharacterMap.aidl19 parcelable KeyCharacterMap;
/frameworks/base/core/jni/
Dandroid_view_KeyCharacterMap.cpp51 NativeKeyCharacterMap(int32_t deviceId, std::unique_ptr<KeyCharacterMap> map) in NativeKeyCharacterMap()
61 inline const std::unique_ptr<KeyCharacterMap>& getMap() const { in getMap()
67 std::unique_ptr<KeyCharacterMap> mMap;
71 std::unique_ptr<KeyCharacterMap> kcm) { in android_view_KeyCharacterMap_create()
96 std::unique_ptr<KeyCharacterMap> kcm; in nativeReadFromParcel()
99 kcm = KeyCharacterMap::readFromParcel(parcel); in nativeReadFromParcel()
144 KeyCharacterMap::FallbackAction fallbackAction; in nativeGetFallbackAction()
235 const std::unique_ptr<KeyCharacterMap>& map1 = in nativeEquals()
237 const std::unique_ptr<KeyCharacterMap>& map2 = in nativeEquals()
253 base::Result<std::shared_ptr<KeyCharacterMap>> ret = in nativeApplyOverlay()
[all …]
Dandroid_view_InputDevice.cpp63 std::shared_ptr<KeyCharacterMap> map = deviceInfo.getKeyCharacterMap(); in android_view_InputDevice_create()
64 std::unique_ptr<KeyCharacterMap> mapCopy; in android_view_InputDevice_create()
66 mapCopy = std::make_unique<KeyCharacterMap>(*map); in android_view_InputDevice_create()
Dandroid_view_KeyCharacterMap.h28 std::unique_ptr<KeyCharacterMap> kcm);
/frameworks/base/tests/Input/src/com/android/test/input/
DInputDeviceTest.java66 KeyCharacterMap keyCharacterMap = device.getKeyCharacterMap(); in assertDeviceEquals()
67 KeyCharacterMap outKeyCharacterMap = outDevice.getKeyCharacterMap(); in assertDeviceEquals()
82 private void assertInputDeviceParcelUnparcel(KeyCharacterMap keyCharacterMap) { in assertInputDeviceParcelUnparcel()
131 final KeyCharacterMap keyCharacterMap = in testParcelUnparcelInputDevice_VirtualCharacterMap()
132 KeyCharacterMap.load(KeyCharacterMap.VIRTUAL_KEYBOARD); in testParcelUnparcelInputDevice_VirtualCharacterMap()
138 final KeyCharacterMap keyCharacterMap = KeyCharacterMap.obtainEmptyMap(DEVICE_ID); in testParcelUnparcelInputDevice_EmptyCharacterMap()
/frameworks/base/core/tests/coretests/src/android/util/
DKeyUtils.java21 import android.view.KeyCharacterMap;
56 final KeyCharacterMap keyCharMap = KeyCharacterMap.load(pushMenuKey.getDeviceId()); in chordMenuKey()
/frameworks/base/core/java/android/text/method/
DTextKeyListener.java32 import android.view.KeyCharacterMap;
192 KeyCharacterMap kmap = event.getKeyCharacterMap(); in getKeyListener()
195 if (kind == KeyCharacterMap.ALPHA) { in getKeyListener()
197 } else if (kind == KeyCharacterMap.NUMERIC) { in getKeyListener()
199 } else if (kind == KeyCharacterMap.FULL in getKeyListener()
200 || kind == KeyCharacterMap.SPECIAL_FUNCTION) { in getKeyListener()
DQwertyKeyListener.java27 import android.view.KeyCharacterMap;
132 if (i == KeyCharacterMap.PICKER_DIALOG_INPUT) { in onKeyDown()
135 KeyCharacterMap.PICKER_DIALOG_INPUT, true, 1); in onKeyDown()
141 if (i == KeyCharacterMap.HEX_INPUT) { in onKeyDown()
173 if ((i & KeyCharacterMap.COMBINING_ACCENT) != 0) { in onKeyDown()
175 i = i & KeyCharacterMap.COMBINING_ACCENT_MASK; in onKeyDown()
483 PICKER_SETS.put(KeyCharacterMap.PICKER_DIALOG_INPUT, in PICKER_SETS.put()
DMetaKeyKeyListener.java24 import android.view.KeyCharacterMap;
184 == KeyCharacterMap.MODIFIER_BEHAVIOR_CHORDED_OR_TOGGLED) { in getMetaState()
235 == KeyCharacterMap.MODIFIER_BEHAVIOR_CHORDED_OR_TOGGLED) { in getMetaState()
407 case KeyCharacterMap.MODIFIER_BEHAVIOR_CHORDED_OR_TOGGLED: in release()
604 case KeyCharacterMap.MODIFIER_BEHAVIOR_CHORDED_OR_TOGGLED: in release()
/frameworks/base/core/java/android/hardware/input/
DPhysicalKeyLayout.java23 import android.view.KeyCharacterMap;
141 public PhysicalKeyLayout(@NonNull KeyCharacterMap kcm, @Nullable KeyboardLayout layout) { in PhysicalKeyLayout()
145 private void initLayoutKeys(KeyCharacterMap kcm, KeyboardLayout layout) { in initLayoutKeys()
171 private void createAnsiLayout(KeyCharacterMap kcm) { in createAnsiLayout()
219 private void createIsoLayout(KeyCharacterMap kcm) { in createIsoLayout()
270 private void createJisLayout(KeyCharacterMap kcm) { in createJisLayout()
324 private static LayoutKey getKey(KeyCharacterMap kcm, int scanCode, float keyWeight) { in getKey()
330 private static LayoutKey getKey(KeyCharacterMap kcm, int scanCode) { in getKey()
334 private static String getKeyText(KeyCharacterMap kcm, int keyCode, int modifierState) { in getKeyText()
338 int utf8Char = (kcm.get(keyCode, modifierState) & KeyCharacterMap.COMBINING_ACCENT_MASK); in getKeyText()
[all …]
/frameworks/base/tools/validatekeymaps/
DMain.cpp156 base::Result<std::shared_ptr<KeyCharacterMap>> ret = in validateFile()
157 KeyCharacterMap::load(filename, KeyCharacterMap::Format::ANY); in validateFile()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java28 import android.view.KeyCharacterMap;
53 private final KeyCharacterMap mKeyCharacterMap =
54 KeyCharacterMap.load(KeyCharacterMap.VIRTUAL_KEYBOARD);
191 keyCode, 0, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, in sendKeyAndWaitForEvent()
195 keyCode, 0, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, in sendKeyAndWaitForEvent()
548 keyCode, 0, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0,
552 keyCode, 0, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0,
/frameworks/base/services/core/java/com/android/server/media/
DMediaShellCommand.java37 import android.view.KeyCharacterMap;
201 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD)); in runDispatch()
203 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD)); in runDispatch()
341 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD); in dispatchKeyCode()
343 KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, InputDevice.SOURCE_KEYBOARD); in dispatchKeyCode()
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/
DShortcutKeyTestBase.java55 import android.view.KeyCharacterMap;
149 0 /*repeat*/, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0 /*scancode*/, in sendKeyCombination()
167 KeyCharacterMap.VIRTUAL_KEYBOARD, 0 /*scancode*/, in sendKeyCombination()
178 0, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0 /*scancode*/, 0 /*flags*/, in sendKeyCombination()
/frameworks/base/core/java/com/android/internal/app/
DToolbarActionBar.java31 import android.view.KeyCharacterMap;
477 final KeyCharacterMap kmap = KeyCharacterMap.load( in onKeyShortcut()
478 event != null ? event.getDeviceId() : KeyCharacterMap.VIRTUAL_KEYBOARD); in onKeyShortcut()
479 menu.setQwertyMode(kmap.getKeyboardType() != KeyCharacterMap.NUMERIC); in onKeyShortcut()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DTaskOperations.java29 import android.view.KeyCharacterMap;
63 0 /* repeat */, 0 /* metaState */, KeyCharacterMap.VIRTUAL_KEYBOARD, in sendBackEvent()
/frameworks/base/services/core/java/com/android/server/input/
DInputShellCommand.java59 import android.view.KeyCharacterMap;
388 final KeyCharacterMap kcm = KeyCharacterMap.load(KeyCharacterMap.VIRTUAL_KEYBOARD); in sendText()
452 0 /*metaState*/, KeyCharacterMap.VIRTUAL_KEYBOARD, 0 /*scancode*/, 0 /*flags*/, in sendKeyEvent()
701 metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0 /*scancode*/, 0 /*flags*/, in sendKeyCombination()
720 0, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0 /*scancode*/, 0 /*flags*/, in sendKeyCombination()
/frameworks/base/core/java/android/view/inputmethod/
DBaseInputConnection.java43 import android.view.KeyCharacterMap;
79 KeyCharacterMap mKeyCharacterMap;
691 KeyCharacterMap.VIRTUAL_KEYBOARD, in performEditorAction()
704 KeyCharacterMap.VIRTUAL_KEYBOARD, in performEditorAction()
846 mKeyCharacterMap = KeyCharacterMap.load(KeyCharacterMap.VIRTUAL_KEYBOARD); in sendCurrentText()
864 content.toString(), KeyCharacterMap.VIRTUAL_KEYBOARD, 0); in sendCurrentText()
/frameworks/base/services/core/java/com/android/server/input/debug/
DFocusEventDebugView.java37 import android.view.KeyCharacterMap;
349 if ((unicodeChar & KeyCharacterMap.COMBINING_ACCENT) != 0) { in getLabel()
351 final int combiningChar = KeyCharacterMap.getCombiningChar( in getLabel()
352 unicodeChar & KeyCharacterMap.COMBINING_ACCENT_MASK); in getLabel()

1234