summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFranco <frapeti@gmail.com>2015-01-27 20:37:05 -0300
committerFranco <frapeti@gmail.com>2015-02-05 22:06:55 -0300
commit7ebe1cc3d24c2384a5e398eaf4f8be3593672823 (patch)
treecfd17327fc642765504d40b19a8e315bf4315fe0
parent4acfb64e4b16216e0a82897227b0e031469a258a (diff)
downloadandroid_hardware_lineage_lineagehw-7ebe1cc3d24c2384a5e398eaf4f8be3593672823.tar.gz
android_hardware_lineage_lineagehw-7ebe1cc3d24c2384a5e398eaf4f8be3593672823.tar.bz2
android_hardware_lineage_lineagehw-7ebe1cc3d24c2384a5e398eaf4f8be3593672823.zip
Hardware: Add touchscreen hovering support
Change-Id: Ic29cecda93179ba6ffec523af9600f621a2bf9bd
-rw-r--r--src/org/cyanogenmod/hardware/TouchscreenHovering.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/org/cyanogenmod/hardware/TouchscreenHovering.java b/src/org/cyanogenmod/hardware/TouchscreenHovering.java
new file mode 100644
index 0000000..b06f665
--- /dev/null
+++ b/src/org/cyanogenmod/hardware/TouchscreenHovering.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2015 The CyanogenMod Project
+ * Copyright (C) 2015 Franco Rapetti <frapeti@gmail.com>
+ * Copyright (C) 2013 Xiao-Long Chen <chenxiaolong@cxl.epac.to>
+ *
+ * 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.cyanogenmod.hardware;
+
+/**
+ * Touchscreen Hovering
+ */
+public class TouchscreenHovering {
+
+ /**
+ * Whether device supports touchscreen hovering.
+ *
+ * @return boolean Supported devices must return always true
+ */
+ public static boolean isSupported() { return false; }
+
+ /**
+ * This method return the current activation status of touchscreen hovering
+ *
+ * @return boolean Must be false if touchscreen hovering is not supported or not activated,
+ * or the operation failed while reading the status; true in any other case.
+ */
+ public static boolean isEnabled() { return false; }
+
+ /**
+ * This method allows to setup touchscreen hovering status.
+ *
+ * @param status The new touchscreen hovering status
+ * @return boolean Must be false if touchscreen hovering is not supported or the operation
+ * failed; true in any other case.
+ */
+ public static boolean setEnabled(boolean status) { return false; }
+
+}