summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-03-04 18:41:49 -0800
committerDianne Hackborn <hackbod@google.com>2010-03-05 10:57:47 -0800
commit2856c5b19a9e62a32a835c84a87a24b324c799fe (patch)
tree158cbec3bca0103f5c7257d3692eba99f00c039b /include
parent51edc0fb698513719fac2da33f95f521493ca103 (diff)
downloadframeworks_native-2856c5b19a9e62a32a835c84a87a24b324c799fe.zip
frameworks_native-2856c5b19a9e62a32a835c84a87a24b324c799fe.tar.gz
frameworks_native-2856c5b19a9e62a32a835c84a87a24b324c799fe.tar.bz2
Refactor car mode.
Extract all UI behavior from dock observer and ACTION_DOCK_EVENT. Also introduce a desk type to go along with the car type all through the resource system, since we now need to have corresponding high-level broadcasts for desk dock mode. As part of that I also reworked some of the logic for switching modes to all funnel through a single update() call that looks all of the current state to decide what to do next, and fixed various locking issues. In addition I found there were bugs in the configuration change handling causing us to only switch into the car mode config and then never get out of it. Unfortunately now that we are actually changing the configuration for each mode change, the transitions between them are really crummy as we restart all kinds of activities. :(
Diffstat (limited to 'include')
-rw-r--r--include/utils/ResourceTypes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/utils/ResourceTypes.h b/include/utils/ResourceTypes.h
index cbcef4e..0e796dc 100644
--- a/include/utils/ResourceTypes.h
+++ b/include/utils/ResourceTypes.h
@@ -946,7 +946,8 @@ struct ResTable_config
MASK_UI_MODE_TYPE = 0x0f,
UI_MODE_TYPE_ANY = 0x00,
UI_MODE_TYPE_NORMAL = 0x01,
- UI_MODE_TYPE_CAR = 0x02,
+ UI_MODE_TYPE_DESK = 0x02,
+ UI_MODE_TYPE_CAR = 0x03,
// uiMode bits for the night switch.
MASK_UI_MODE_NIGHT = 0x30,