6ec6f79e1a
Added the concept of a keyboard layout overlay, which is a key character map file that has "type OVERLAY". Added support for loading keyboard layout overlays from resources dynamically. The layouts are reloaded whenever they are changed in the Settings application or an application is installed. This is somewhat more aggressive than necessary so we might want to optimize it later. Before system-ready, the input system uses just the generic keyboard layouts that are included on the device system image. After system-ready, it considers the user's selected keyboard layout overlay and attempts to load it as necessary. We need to wait until system-ready before doing this because we need to be in a state where it is safe to start applications or access their resources. Bug: 6110399 Change-Id: Iae0886d3356649b0d2440aa00910a888cedd8323
43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
# Copyright (C) 2012 The Android Open Source Project
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
|
|
LOCAL_JAVA_LIBRARIES :=
|
|
|
|
LOCAL_PACKAGE_NAME := InputDevices
|
|
LOCAL_CERTIFICATE := platform
|
|
|
|
include $(BUILD_PACKAGE)
|
|
|
|
# Validate all key maps.
|
|
include $(CLEAR_VARS)
|
|
|
|
validatekeymaps := $(HOST_OUT_EXECUTABLES)/validatekeymaps$(HOST_EXECUTABLE_SUFFIX)
|
|
files := frameworks/base/packages/InputDevices/res/raw/*.kcm
|
|
|
|
LOCAL_MODULE := validate_input_devices_keymaps
|
|
LOCAL_MODULE_TAGS := optional
|
|
LOCAL_REQUIRED_MODULES := validatekeymaps
|
|
|
|
validate_input_devices_keymaps: $(files)
|
|
$(hide) $(validatekeymaps) $(files)
|
|
|
|
include $(BUILD_PHONY_PACKAGE)
|