diff options
| author | Zhao Wei Liew <zhaoweiliew@gmail.com> | 2017-01-14 15:09:45 +0800 |
|---|---|---|
| committer | Zhao Wei Liew <zhaoweiliew@gmail.com> | 2017-01-25 09:27:18 +0000 |
| commit | 809e3875cd2676c048c9804a8e32896cd9981045 (patch) | |
| tree | 5084d373fc47f1952ef96ccf4cf2f04e2f8cb1d0 | |
| parent | 606ebfbf5b9efcf855601abe2a6d3bcc1fc99f1f (diff) | |
| download | android_frameworks_opt_hardware-cm-13.0.tar.gz android_frameworks_opt_hardware-cm-13.0.tar.bz2 android_frameworks_opt_hardware-cm-13.0.zip | |
Revert "Add tap-to-wake class definition"HEADreplicant-6.0-0004-transitionreplicant-6.0-0004-rc6replicant-6.0-0004-rc5-transitionreplicant-6.0-0004-rc5replicant-6.0-0004-rc4replicant-6.0-0004-rc3replicant-6.0-0004-rc2replicant-6.0-0004-rc1replicant-6.0-0004replicant-6.0-0003replicant-6.0-0002replicant-6.0-0001cm-13.0
Support for this in the Settings has been removed since CM 13.0.
No official device on CM 13 and later is/should using this as
every one of them should have migrated to the native tap-to-wake
implementation.
This reverts commit b240ab8e7c1918202c8c98118aab2d34b0be6461.
Change-Id: I2bcf63feccd166d116a9a093d278cdafcac120af
| -rw-r--r-- | src/org/cyanogenmod/hardware/TapToWake.java | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/org/cyanogenmod/hardware/TapToWake.java b/src/org/cyanogenmod/hardware/TapToWake.java deleted file mode 100644 index 680de27..0000000 --- a/src/org/cyanogenmod/hardware/TapToWake.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2014 The CyanogenMod 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.cyanogenmod.hardware; - -/** - * Tap (usually double-tap) to wake. This *should always* be supported by - * the hardware directly. A lot of recent touch controllers have a firmware - * option for this - */ -public class TapToWake { - - /** - * Whether device supports it - * - * @return boolean Supported devices must return always true - */ - public static boolean isSupported() { return false; } - - /** - * This method return the current activation state - * - * @return boolean Must be false when feature is not supported or - * disabled. - */ - public static boolean isEnabled() { return false; } - - /** - * This method allows to set activation state - * - * @param state The new state - * @return boolean for on/off, exception if unsupported - */ - public static boolean setEnabled(boolean state) { throw new UnsupportedOperationException(); } - -} |
