summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/HardwareService.java
AgeCommit message (Collapse)Author
2009-11-25Remove HardwareService and move vibrator support to VibratorService.Mike Lockwood
The lights support is only needed by PowerManagerService and NotificationManagerService, so we do not need a Binder API for it. Move backlight and notification light support to new LightsService class. The camera flash is now handled directly by the camera HAL, so the flash Hardware service flash support is obsolete. Change-Id: I086d681f54668e7f7de3e8b90df3de19d59833c5 Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-11-10Add support for specifying the current LCD brightness mode to the backlight ↵Mike Lockwood
driver. This allows the driver to behave differently depending on if the lighting is being managed by the light sensor or by a user preference. Change-Id: I4b9325f82b7aded0ce5cfc6c07658666bbdae331 Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-11-04Fix bad merge fixes build breakage.Eric Olsen
Signed-off-by: Eric Olsen <eolsen@android.com>
2009-11-04Add support for colored LED on jogball backlight.Eric Olsen
Signed-off-by: Eric Olsen <eolsen@android.com>
2009-11-03Remove obsolete hardware auto-brightness support.Mike Lockwood
Change-Id: Ibd0ef67f887254f26ce19faf0627f8b246ec0a18 Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-15Add separate configuration flag for hardware ALS support.Mike Lockwood
A new flag config_hardware_automatic_brightness_available indicates that the device has hardware support for automatic screen brightness management, while config_automatic_brightness_available now indicates that automatic brightness mode is available in general. If config_automatic_brightness_available is true but config_hardware_automatic_brightness_available is false, then automatic brightness mode support in PowerManager support will be used. Bug b/2015734 (Ambient light sensor support in power manager) Change-Id: I6cd888252043dd63df3c25a1d14c21a04a91ad28 Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-15Move backlight brightness from HardwareService to PowerManagerMike Lockwood
to prevent apps from changing the hardware behind its back. Fixes b/2041941 Lock screen flashes the screen very bright before dimming Change-Id: Ice757f7ae87902bdfb3634471cf44f020ebfaae4 Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-15Add automatic lighting control frameworkDan Murphy
Add changes to have the ability to turn on and off the automatic light sensing for the device. This is fully configurable and is by default not present. Vendors should override the ALS setting to enable the automatic lighting controls. These changes will add a check box to the Brightness settings menu to give control to the user to allow the device's display lighting to be controlled via the slide bar or the auto lighting system. If the user selects auto then the slide bar will become invisible. Manual mode will present the slide bar to the user. Change-Id: I146a6d75b99b08c9b839218ce6b85adf21f9fd73 Signed-off-by: Dan Murphy <D.Murphy@motorola.com> Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-19Check for a timeout <= 0 before adding the vibration.Patrick Scott
A timeout of 0 could cause the vibration thread to run with a null pattern and crash the system server. Instead, we should just ignore vibrations that don't make any sense (similar to ignoring a bad pattern vibration).
2009-07-06Improve the Vibrator service by keeping track of multiple vibration requests.Patrick Scott
There are 2 types of vibrations: simple and repeated. Simple vibrations run for a given length of time while repeated patterns run until canceled or the calling process dies. If a vibration is currently running and another request is issued, the newer request always takes precedence unless the current vibration is a simple one and the time left is longer than the new request. If a repeating vibration is running and a new request overrides that vibration, the current vibration is pushed onto a stack. Once the new vibration completes, the previous vibration resumes. IBinder tokens are used to identify Vibration requests which means that multiple calls to Vibrator.vibrate with the same Vibrator object will override previous vibrations on that object.
2009-03-31AI 143823: am: CL 143800 am: CL 143748 Fix issue #1743326 (More battery stats)Dianne Hackborn
Adds stats for: - Number of raw user events that have happened in the system. - Number of times user activity has been reported, dividied by UID and type of activity. - Duration of screen brightness levels in 4 buckets. - Per-UID tracking of who has turned on Wifi and how long we can attribute it being on because of them. Original author: hackbod Merged from: //branches/cupcake/... Original author: android-build Merged from: //branches/donutburger/... Automated import of CL 143823
2009-03-24Automated import from //branches/master/...@141087,141087Joe Onorato
2009-03-18auto import from //branches/cupcake_rel/...@140373The Android Open Source Project
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2009-03-03auto import from //depot/cupcake/@132589The Android Open Source Project
2009-03-02auto import from //depot/cupcake/@137055The Android Open Source Project
2009-02-10auto import from //branches/cupcake/...@130745The Android Open Source Project
2008-10-21Initial ContributionThe Android Open Source Project