am 37a13208: Add separate configuration flag for hardware ALS support.
Merge commit '37a13208c93bbe00cf233baf1ebcd6e081972a27' into eclair-mr2 * commit '37a13208c93bbe00cf233baf1ebcd6e081972a27': Add separate configuration flag for hardware ALS support.
This commit is contained in:
@@ -67,7 +67,11 @@
|
|||||||
the slider can be opened (for example, in a pocket or purse). -->
|
the slider can be opened (for example, in a pocket or purse). -->
|
||||||
<bool name="config_bypass_keyguard_if_slider_open">true</bool>
|
<bool name="config_bypass_keyguard_if_slider_open">true</bool>
|
||||||
|
|
||||||
<!-- Flag indicating whether the device supports automatic brightness mode. -->
|
<!-- Flag indicating whether the device supports automatic brightness mode in hardware. -->
|
||||||
|
<bool name="config_hardware_automatic_brightness_available">false</bool>
|
||||||
|
|
||||||
|
<!-- Flag indicating whether the we should enable the automatic brightness in Settings.
|
||||||
|
Software implementation will be used if config_hardware_auto_brightness_available is not set -->
|
||||||
<bool name="config_automatic_brightness_available">false</bool>
|
<bool name="config_automatic_brightness_available">false</bool>
|
||||||
|
|
||||||
<!-- XXXXXX END OF RESOURCES USING WRONG NAMING CONVENTION -->
|
<!-- XXXXXX END OF RESOURCES USING WRONG NAMING CONVENTION -->
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ public class HardwareService extends IHardwareService.Stub {
|
|||||||
context.registerReceiver(mIntentReceiver, filter);
|
context.registerReceiver(mIntentReceiver, filter);
|
||||||
|
|
||||||
mAutoBrightnessAvailable = context.getResources().getBoolean(
|
mAutoBrightnessAvailable = context.getResources().getBoolean(
|
||||||
com.android.internal.R.bool.config_automatic_brightness_available);
|
com.android.internal.R.bool.config_hardware_automatic_brightness_available);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void finalize() throws Throwable {
|
protected void finalize() throws Throwable {
|
||||||
|
|||||||
Reference in New Issue
Block a user