Convert country code to Layoutinfo (Language tag + Layout type)
Instead of passing country code to InputDevice.java, convert it to Language tag and Layout type on native side and pass that forward instead. We can later add support for HID language tag, that would give us better layout information than country code. This HID language tag is for Keyboard devices so, we set this country code derived language tag also for Keyboards only, even though country code could be specified for all types of devices. Moreover, we are using language tag and layout type for setting layout related info for Virtual keyboard devices too, making using country code redundant. Test: atest inputflinger_tests Bug: 259530132 Change-Id: I8eca5537a5bb44d0b8b056947cc317ac82a0901f
Loading
Please register or sign in to comment