lineage-sdk: Import device hardware keys configs and constants

* Used to "live" in fw/b since ever, but will be here from now on.

Change-Id: I3469a4084590c96f41c6ff128cf008143d315728
This commit is contained in:
Bruno Martins
2017-12-18 14:53:01 +00:00
parent e613b863ec
commit 112da99f2a
3 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
/*
* Copyright (C) 2017 The LineageOS 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 org.lineageos.internal.util;
public class DeviceKeysConstants {
// Masks for checking presence of hardware keys.
// Must match values in:
// lineage/res/res/values/config.xml
public static final int KEY_MASK_HOME = 0x01;
public static final int KEY_MASK_BACK = 0x02;
public static final int KEY_MASK_MENU = 0x04;
public static final int KEY_MASK_ASSIST = 0x08;
public static final int KEY_MASK_APP_SWITCH = 0x10;
public static final int KEY_MASK_CAMERA = 0x20;
public static final int KEY_MASK_VOLUME = 0x40;
}