summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/ButtonSettings.java
Commit message (Collapse)AuthorAgeFilesLines
* Settings : Filter livelockscreen, button for secondary usersDanesh M2016-05-131-8/+8
| | | | | | | | Secondary users should not be able to configure either of those. OPO-696 Change-Id: I43409c090fb12df576c29297fb506c70e6583bce
* Settings : Add multiuser support for CMHardwareDanesh M2016-03-141-17/+0
| | | | | | | | | | - Show button for other users - Use services instead of CMHardware for vibrator and touch sensitivity - Do a one time restore of tunable settings CYNGNOS-1166 Change-Id: I0de8eef6bf73c344ee5789e9650dd96b25b1a6bc
* Settings: Add CMMetricsLogger constants to proper pages.Adnan Begovic2016-01-111-3/+2
| | | | Change-Id: I6e1d0ec2be4c6da51267c163575472827c9c50cd
* Settings : Cleanup control media volume toggleDanesh M2015-12-181-13/+0
| | | | Change-Id: I1e887e6a109aa75fcb1d1e74216fceb1cc91ab59
* Settings: move double press power for camera to button settingsAltaf-Mahdi2015-12-161-1/+30
| | | | Change-Id: Ie59e499c2df2129bf1942bfe95e5724579832336
* Settings: Fix Power end call switchAragaoAnderson2015-12-121-1/+1
| | | | Change-Id: Ib59a84b6026585cb3cb9e232b740568389d0fedb
* Settings : Port over reorganization from 12.1Danesh M2015-12-081-6/+5
| | | | Change-Id: I3d77bb96aba4a501d3223e72be60403694828a34
* Use ScreenType util from cmsdkLorDClockaN2015-11-301-6/+8
| | | | Change-Id: I07874c68802674695877c6bd0329c8973dd1c653
* settings: Remove direct usage of CMHardwareSteve Kondik2015-11-291-1/+0
| | | | | | * No need to reference this jar, all calls go thru the service. Change-Id: Id51f4156618e6d91750a2164cd95f65bef437e39
* Settings : Update settings reference for powerButton/bugReportDanesh M2015-11-171-7/+7
| | | | | | | Switch INCALL_POWER_BUTTON_BEHAVIOR and BUGREPORT_IN_POWER_MENU to Settings reference Change-Id: I0a14e8b1a667e3922540a77479bfc1932cad7130
* Settings: Buttons: remove all camera button preferences if unsupportedScott Mertz2015-11-171-6/+8
| | | | Change-Id: Ib32263eabb2608b4324d756affd311dfb8dfc5bb
* Settings: fix restoring DEV_FORCE_SHOW_NAVBAR setting on bootAltaf-Mahdi2015-11-161-2/+2
| | | | Change-Id: Ic6014149aed4367561c011c485c528dbd13289ad
* Settings: Move Secure settings to CMSettingsd34d2015-11-111-10/+10
| | | | Change-Id: If2e4f1e44b448c953f6fb1f3a0689b73cc3958c0
* Settings: Reference specific button settings from CMSettings.Adnan Begovic2015-11-091-49/+56
| | | | Change-Id: I743fd1b3a319428f2a9cf8ea7fbc6533774b369e
* Settings: Map to CM Settings.Adnan Begovic2015-10-291-29/+30
| | | | Change-Id: I2236b8b6b7cf1ad5e5db4ca1ec32d84351d2a08b
* settings: Move CMHW to CMSDKSteve Kondik2015-10-291-13/+11
| | | | | | * Update all references and API usage. Change-Id: If6bda2547bdd251ccf9a04ad0deac7f2fd51fa29
* [2/2] Camera button supportHazouPH2015-10-291-0/+28
| | | | | | | | | | | | | | | | Add support for camera button Based on commit http://review.cyanogenmod.org/#/c/52046/ This patch adds: - Use camera button as wake key - Use focus button as peek and wake key - Use camera button to launch (secure) camera Depends on [1/2] Camera button support in frameworks/base Change-Id: Idb959f24fec880d360afebf194a0bc573e011438
* Settings: persist backlight brightness settingRoman Birg2015-10-291-11/+2
| | | | | | | | Save the user value locally every time it is modified so we can retreive it reliably. Change-Id: I0d4489c17809a7a53864ab553d97aed60a8f8e88 Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: fix button back light restore logicRoman Birg2015-10-291-14/+13
| | | | | | | | | | | Only persist backlight data if it's modified by the user, otherwise we can just restore the default framework value when enabling. Always restore a backlight value setting, either the framework default, or user saved value. Change-Id: I2d6e95a48bc4ac4dbe6d639d87dc93ec1799c290 Signed-off-by: Roman Birg <roman@cyngn.com>
* Revert "Settings: use correct default value for backlight brightness"Nir Bruderman2015-10-291-4/+6
| | | | | | | | | This causes to lose the ability to turn off the backlight brightness at all! On every boot the values resets back to default now. This reverts commit a3a044f17d6a11508507e5ed083dac157dd3bd6d. Change-Id: I55c0e31a9e2182896bccae5206679d99ea9a15f9
* Settings: use correct default value for backlight brightnessRoman Birg2015-10-291-6/+4
| | | | | | | | | | When the user has enabled the nav bar through the setupwizard and returns back to the buttons settings and toggles the nav bar off, the backlight brightness would not be restored because there was no previous value to read from, so use the default framework value if none exists. Change-Id: If4ce90bcde3c9a59f26e49be2c585df844ead6bd Signed-off-by: Roman Birg <roman@cyngn.com>
* Option to use volume keys to control media volume anytime (1/2)Pawit Pornkitprasan2015-10-291-1/+15
| | | | | | | | | | Some users don't adjust ringtone volume often (e.g. only use toggle to switch between silent and non-silent) mode. Having an option to use the volume keys to control media volume anytime allows media volume to be controllled/muted before entering a game or other apps with sound in an undesirable location. Change-Id: I6dbd25d1a14bcf5b1bf0b0468b96f4b4f8efdb14
* Settings: Change to CmHardwareServiceScott Mertz2015-10-291-17/+19
| | | | Change-Id: Iab392aefa9476a2e956a697210f3f7e6426ff815
* settings: Squashed commit of CMHW featuresDanny Baumann2015-10-291-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add hardware tunables (gamma, color, vibration strength). Change-Id: I44e3e4e6cb444498a7c56048618cd92a0e2b8e59 Settings: restore hardware tunable values on boot Change-Id: I9d2720947d615cab6a7ab9b596b24b8033dd0b4f Settings: Add default value for display color control (2/2) Change-Id: I50b684abe504c21ef49492f99b18873d75509697 settings: Move headset option, hide MoreDeviceSettings if empty * This option fits much better in the sound menu under "automation and effects", and on many devices it's the only option in the "More..." menu under Tap & Pay. * Move it, and remove the MoreDeviceSettings top-level category if there's nothing else in it. Change-Id: Idd82f582a1ba54f8b45fbd4fbe631057e9515f86 Remove 'More device settings' menu Change-Id: I86cd84f6f6c408b26c04d92529e9a031c4fed1f7 DisplayColor: Properly handle a minValue * Previously setting anything as a minValue would cause the percentages to get out of whack. For instance, setting it to 35 would cause the maximum percentage to climb above 100% as well as still allowing the value to be set lower than the min. * This makes the maximum for the slider the max value minus the min (so we get the proper spread for min to max) and then adds the min back on before setting so we can't possibly go below the min. Change-Id: I8dcdc422f54847940351fae10c74af6301d1e1be Settings: AdaptiveBacklight support Add support for adaptive backlight technologies like NVIDIA SmartDimmer, QCOM CABL or Samsung CABC. Patchset 2: Use internal shared prefs to store the smardimmer setting Patchset 3: Rename to AdaptiveBacklight Patchset 4: Reorganize settings and strings to follow design guidelines Patchset 5: CleanUp Patchset 6: Added suggestions Patchset 7: Sync default value. CleanUp. Depends on http://review.cyanogenmod.org/#/c/48465/ Change-Id: I52cb990f36593b265a00b46a5f63590515822ea5 settings: Add support for SRE * Add support for sunlight readability enhancement * Optionally depends on adaptive backlight, depending on HAL Change-Id: I9ca388ffd68080f0e497edb81d5f8616c194ea1d Cleanup. Now that button and keyboard backlight don't use the HW framework anymore, there's no point in having an abstraction for a single use case. Change-Id: Ib66b2a29a105d53e3ba4273abb06977b132c1fc8
* Settings: Update setting constants.Adnan2015-10-291-6/+6
| | | | Change-Id: Ie8ceba9adf0fb1a570e7f3287e136f12ac1328dd
* Settings: set volume wake dependency in codeRoman Birg2015-10-291-0/+16
| | | | | | | | | It is possible for volume_wake_screen to be removed from the preference list, but volbtn_music_controls has a hard dependency on volume_wake_screen. Let's setup this depenency only if both exist. Signed-off-by: Roman Birg <roman@cyngn.com> Change-Id: I18b2ecc0de36779ebdea3a0d20c1971ce85549cb
* Settings: Clean up code style in ButtonSettingsAdnan Begovic2015-10-291-11/+16
| | | | Change-Id: I6df0ee12536dcca2b9734785bebe16a0fea7f0c2
* Settings: ButtonSettings: Introduce recents long press actionNextbit2015-10-291-0/+84
| | | | | | | | | | | | | Add a new preference in Settings > Buttons > Recents long press action that controls the behavior of recents long press intent ACTION_RECENTS_LONG_PRESS. The user preference is saved in Settings.Secure.RECENTS_LONG_PRESS_ACTIVITY; if empty the default is the system's "switch to last app" behavior. Settings.Secure is used intentionally over Settings.System for permission reasons. Change-Id: Ifc61b5958a88360e32db31459f0205b6ba5306b3
* Settings : Add hooks for device specific featuresDanesh M2015-10-291-0/+4
| | | | | | | | | | Add support for : Devices with bluetooth input peripherals Devices with screen gesture support Devices with a back touchpad Change-Id: Ia4835c69a8ba8fb76597e0ab0540f8ef1ed6e322
* Power menu customizations [2/2]Dave Kessler2015-10-291-1/+0
| | | | | | | | | | | | | | power reboot screenshot profile switcher airplane mode user switcher bug reports [mikeioannina]: Modify for CyanogenMod Change-Id: Iadb41a661770f8b71eef4e12b1d8f04d0ba3e6be
* Remove 'Navigation bar' PreferenceCategory when emptyMarcos Marado2015-10-291-1/+3
| | | | Change-Id: I64e9d034870c2366a7604c70c71acb7aa8c1b5e1
* Allow disabling Search/Recents button wake (1/2)Michael Bestas2015-10-291-0/+11
| | | | Change-Id: Ic7c1b007b28b204b85f580cf20f82bcc7e863c9d
* Forward port Search button configurationMichael Bestas2015-10-291-0/+28
| | | | | | | Enables the ability to assign different actions to short and long presses on the Search button. Change-Id: I0f7ca9145155debe4af6d96681724fc9911845a0
* setting: Always remove Left-handed mode setting for non-phonesChristopher R. Palmer2015-10-291-5/+5
| | | | | | | | | | | | | | | | Right now, this option is only removed if you have a navigation bar enabled and you aren't a phone. This leads to UI wonkiness on devices that allow the navigation bar to be toggled on/off: * Enable the navigation bar. * Navigate elsewhere and back to Buttons (force it to reload) * Settings >> Buttons now contains a (grayed out) Left-handed mode. * Enable the navigation bar. Now Left-handed mode is available as an option even though it shouldn't be. Change-Id: Ifb3cdd18a014edffaf8bc53c46fc3c2f7a681370
* Settings: don't remove navigation bar prefs when togglingRoman Birg2015-10-291-8/+19
| | | | | | | | | | | | | For devices which support the KeyDisabler class, toggling the nav bar removes the navigation bar category, but does not add it back. If a device can have the nav bar toggled, don't remove the category, but just disable/enable it. [mikeioannina]: Enable categories that depend on navbar toggle only when the navbar switch has finished. Signed-off-by: Roman Birg <roman@cyngn.com> Change-Id: Ie527e3eb357e4a46097257d90c07c78e61f043a9
* Forward port 'Swap volume buttons' (3/3)Michael Bestas2015-10-291-1/+14
| | | | Change-Id: I44a2b37b95848fff24c53c4c3561a3c000c487a1
* Forward port button/keyboard backlight optionsDanny Baumann2015-10-291-0/+17
| | | | Change-Id: Ica02fad15392201b719144c4b911407d5b370cee
* Fix exception being thrown if CMHW is not installed.Danny Baumann2015-10-291-2/+2
| | | | | | Happens during debugging when mmp'ing the app. Change-Id: Ief84a812696ef3f2515701790f96649cbde0f7d9
* Keydisabler: fix button light restore logicDave Daynard2015-10-291-4/+6
| | | | | | | | | | | Do not assign default button brightness if backup key is not found. Instead do nothing. This will prevent brightness being reset to default on boot when navbar is disabled. If backup key is not found when actually toggling navbar then we've got bigger problems. Change-Id: I649bf1480a42f2cbe94d0a47a0c6055c934b4f56
* Buttons: Prevent toggling disable hardware keys too quicklyEthan Chen2015-10-291-0/+7
| | | | | | | * Apparently the phone window manager _really_ doesn't like it when you do toggle this too quickly. Change-Id: I936c6554927ffcdc7c78edaf25f71aedba497ac8
* Settings: fix NPE in ButtonSettingsPawit Pornkitprasan2015-10-291-0/+2
| | | | Change-Id: Ib2ab4d7d5ed3aaceeba8fe942b7a29cd01f003fb
* [2/2] Left handed navbar during landscape modeShuhao Wu2015-10-291-0/+36
| | | | | | | | | | | | | | | | | | | | | This patch allows for the navbar to be moved to the left side of the screen during landscape mode. Left handed people are more used to this option. Screenshot: http://i.imgur.com/jWqJcEV.png Contributors: Decad3nce https://github.com/CyanogenMod/android_packages_apps_Settings/commit/a2b5ff1542e802f4257e7a7746ceb9e1c9cf333e romanbb https://github.com/CyanogenMod/android_packages_apps_Settings/commit/34344a5fa2a03d849901f09340f3dd8010e2a7fe crpalmer https://github.com/CyanogenMod/android_packages_apps_Settings/commit/6833e8c627e0b44b0ee7191fce714556ab3eac25 Change-Id: Ic95e3fda1f55efd2ec908c8d7226e638ec0ab80a
* Cleanup button wake settings (1/2)Michael Bestas2015-10-291-26/+32
| | | | Change-Id: I972251384eee15cf9e4915cd82d189ed7ef3050d
* Buttons: Forward port Recents button configurationMatt Mower2015-10-291-0/+29
| | | | | | | Enables the ability to assign different actions to short and long presses on the Recents (App Switch) button. Change-Id: I5f8835841218932789431057e0531914a29980b9
* Settings - Button settings: CheckBoxes to SwitchesSTELIX2015-10-291-17/+17
| | | | | Change-Id: Id72eec3ee2d5f9b90725c7787d21a34f8f58de57 Signed-off-by: STELIX <ssspinni@gmail.com>
* Settings: last app action in long pressMarcos Marado2015-10-291-4/+4
| | | | Change-Id: I72d9cb5bca5eedd20ea80ee69d370a478e59def4
* bugfix: there are other options after in-app searchMarcos Marado2015-10-291-2/+2
| | | | | | | | On "Settings -> Buttons -> Home Button -> Long press action" there's a list of options. Any option after the "in-app search" one was being ignored. Change-Id: I136235a6798496a0a8786bad59b168845c677bdd
* Settings: volume wake preferenceMartin Brabham2015-10-291-1/+26
| | | | Change-Id: I6a732e627b75a1be533ecd96cb018307de0e5a77
* Answer call with hardware HOME button (1/2)Oleksandr Byelkin2015-10-291-2/+72
| | | | | | | | | | | | | | | Squashed commit of the following: Author: Oleksandr Byelkin <sanja.byelkin@gmail.com> Adds ability to answer call with hardware HOME button preparation to winter time Change-Id: I0d22a6fbb92a61f08b50cae5c14d0030b81ee6ec Author: Michael Bestas <mikeioannina@gmail.com> Settings: Move home answer & power end call options Move 'Home answers call' & 'Power ends call' options to button settings Change-Id: I2f365a3d278b0845b7c5ffcfe70c54160a00c24e
* Settings: allow home button to wake device [2/2]Danny Baumann2015-10-291-0/+4
| | | | Change-Id: I5c887422636f8bc51cb324339b3cdcac7af54400