summaryrefslogtreecommitdiff
path: root/packages/InputDevices/src
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-04-05 11:49:26 -0700
committerJeff Brown <jeffbrown@google.com>2012-04-05 14:42:10 -0700
commit9df6e7a926ce480baf70e97ee1b9ea387193f6ad (patch)
treedfe752a296e934467d76d6727b687a8fc8fad586 /packages/InputDevices/src
parentdedf1b2727556223aafcebba1a567ffa816412d2 (diff)
Initial commit of InputManager and keyboard layout API.
Added a new InputManager service for interacting with input devices and configuring them. This will be the focus of an upcoming refactoring. Added an API for registering keyboard layouts with the system based on the use of a broadcast receiver. Applications can register their own keyboard layouts simply by declaring a broadcast receiver in their manifests. Added the skeleton of a package that will ultimately contain the keyboard layouts and other input device related resources that are part of the base system. Bug: 6110399 Change-Id: Ie01b0ef4adbd5198f6f012e73964bdef3c51805c
Diffstat (limited to 'packages/InputDevices/src')
-rw-r--r--packages/InputDevices/src/com/android/inputdevices/InputDeviceReceiver.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/InputDevices/src/com/android/inputdevices/InputDeviceReceiver.java b/packages/InputDevices/src/com/android/inputdevices/InputDeviceReceiver.java
new file mode 100644
index 000000000000..50a7c2f69cef
--- /dev/null
+++ b/packages/InputDevices/src/com/android/inputdevices/InputDeviceReceiver.java
@@ -0,0 +1,28 @@
+/*
+ * 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.
+ */
+
+package com.android.inputdevices;
+
+import android.content.BroadcastReceiver;
+import android.content.Context;
+import android.content.Intent;
+
+public class InputDeviceReceiver extends BroadcastReceiver {
+ @Override
+ public void onReceive(Context context, Intent intent) {
+ // Nothing to do at this time.
+ }
+}