summaryrefslogtreecommitdiffstats
path: root/policy
Commit message (Collapse)AuthorAgeFilesLines
* am 0be53567: am 19a06fe9: Merge "Fix issue #5755172: Soft menu key ↵Dianne Hackborn2011-12-133-2/+4
|\ | | | | | | | | | | | | disappears when menu is open" into ics-mr1 * commit '0be53567c1c2299c548d3204d2b9240108fbd53a': Fix issue #5755172: Soft menu key disappears when menu is open
| * Fix issue #5755172: Soft menu key disappears when menu is openDianne Hackborn2011-12-133-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to work more like before in determining whether the menu key is needed -- in some cases look back in the window list to determine this if we don't know the value from the current window. This requires adding a new private flag indicating whether the compat menu state is known for a window, which is set by PhoneWindow as part of its existing process of computing the flag for its own windows. Now we can have a new API on WindowState to determine the value of this flag for a window, which if needed walks back in the window list to find a window the value is known for (or stops at what the policy has determined is the top full-screen window, so we stop like we used to at things like the lock screen or the bottom of an application). Change-Id: I829de6d629b5af8bcb422cb85249ee4041c7205e
* | Changed how Face Unlock coordinates are specifiedBrian Colonna2011-12-121-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | Was using View.getLeft() and View.getTop() to specify the upper-left corner of the Face Unlock area. That gives coordinates relative the view, which was fine for the phones. For the tablet it needs coordinates relative to the window (which still works for the phones). Also fixed a 'bug' where h and w were swapped. However, it wasn't causing a problem because it was swapped in two places. Change-Id: I86c1f68439f1dcef826cfe6b8fb56c9a4a6b8dc3
* | Merge "Checking whether screen is on in constructor fixes 5658742"Steven Ross2011-12-091-2/+4
|\ \
| * | Checking whether screen is on in constructor fixes 5658742Steven Ross2011-12-091-2/+4
| | | | | | | | | | | | Change-Id: Ic96c8dd9ee9e86000b0cbe22a7d068a8ee424448
* | | am 03e63427: am 8e0ecbfc: Merge "Shortcut keys should be handled on down, ↵Jeff Brown2011-12-091-11/+31
|\ \ \ | | |/ | |/| | | | | | | | | | | | | not up." into ics-mr1 * commit '03e634270d880407316b51fac2278e604fc82703': Shortcut keys should be handled on down, not up.
| * | Merge "Shortcut keys should be handled on down, not up." into ics-mr1Jeff Brown2011-12-071-11/+31
| |\ \
| | * | Shortcut keys should be handled on down, not up.Jeff Brown2011-12-071-11/+31
| | | | | | | | | | | | | | | | | | | | Bug: 5720360 Change-Id: I3afc278e576ea992c76f024c8b6bad14b214239c
* | | | am 944c985b: am e0e9fd98: Merge "Fix system hotkey handling." into ics-mr1Jeff Brown2011-12-093-78/+102
|\ \ \ \ | |/ / / | | | / | |_|/ |/| | * commit '944c985b4199e6e029568ea87004c9727e469cc0': Fix system hotkey handling.
| * | Merge "Fix system hotkey handling." into ics-mr1Jeff Brown2011-12-073-78/+102
| |\ \ | | |/
| | * Fix system hotkey handling.Jeff Brown2011-12-073-78/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed a problem where the key up for the ALT or META key was not delivered to the task switcher dialog because it was deemed to be inconsistent with the window's observed state. Consequently the dialog would not be dismissed when the key was released. Moved global hotkey handling for META+* shortcuts and ALT/META-TAB into the window manager policy's interceptKeyBeforeDispatching method. This change prevents applications from hijacking these keys. The original idea was that these shortcuts would be handled only if the application did not handle them itself. That way certain applications, such as remote desktop tools, could deliberately override some of these less important system shortcuts. Unfortunately, that does make the behavior inconsistent across applications. What's more, bugs in the onKeyDown handler of applications can cause the shortcuts to not work at all, for no good reason. Perhaps we can add an opt-in feature later to enable specific applications to repurpose these keys when it makes sense. Bug: 5720358 Change-Id: I22bf17606d12dbea6549c60d20763e6608576cf7
* | | am 7377e593: am 0e385ee4: am b32785c6: Merge "More fixing for issue ↵Dianne Hackborn2011-12-071-0/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | #5366535: Lockscreen has wrong layout..." into ics-mr0 * commit '7377e59314885b8ef65bd19d04984998cb2e5ff4': More fixing for issue #5366535: Lockscreen has wrong layout...
| * | am b32785c6: Merge "More fixing for issue #5366535: Lockscreen has wrong ↵Dianne Hackborn2011-12-071-0/+3
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | layout..." into ics-mr0 * commit 'b32785c6e893743956e28b285b8e6f6fc7aa8edb': More fixing for issue #5366535: Lockscreen has wrong layout...
| | * | More fixing for issue #5366535: Lockscreen has wrong layout...Dianne Hackborn2011-12-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...but corrects itself Change upgrade window to not allow the device to rotate while it is shown. Change-Id: I75b126ab8806b84a0351e2706ebea10570bde575
* | | | am 675a5ba8: am 3b5555fc: Merge "Make new ringer toggles on power menu ↵Amith Yamasani2011-12-071-2/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | accessible and navigable with keyboard." into ics-mr1 * commit '675a5ba82f886d8a5f954219b6544a97acb17e29': Make new ringer toggles on power menu accessible and navigable with keyboard.
| * | | Merge "Make new ringer toggles on power menu accessible and navigable with ↵Amith Yamasani2011-12-071-2/+1
| |\ \ \ | | | | | | | | | | | | | | | keyboard." into ics-mr1
| | * | | Make new ringer toggles on power menu accessible and navigable with keyboard.Amith Yamasani2011-12-071-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 5721663 Added content descriptions and made the listview allow navigation between nested views. Change-Id: I69d78d65e1bab829f63c2e6025051206e511f00f
* | | | | am 03be4d9c: am ff3b5a82: Merge "Make the dock orientation override the HDMI ↵Jeff Brown2011-12-071-4/+5
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | orientation." into ics-mr1 * commit '03be4d9cf456b7ad82e6fbbdea2b4902cb0e4abb': Make the dock orientation override the HDMI orientation.
| * | | | Merge "Make the dock orientation override the HDMI orientation." into ics-mr1Jeff Brown2011-12-071-4/+5
| |\ \ \ \ | | |/ / / | |/| | / | | | |/ | | |/|
| | * | Make the dock orientation override the HDMI orientation.Jeff Brown2011-12-061-4/+5
| | | | | | | | | | | | | | | | | | | | Bug: 5714422 Change-Id: I5a229f987fb88a25d2e49d0c73184f556ffc1114
* | | | am d49ec62c: am f3364080: Merge "New and improved silent mode on ↵Amith Yamasani2011-12-062-66/+121
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | lockscreen." into ics-mr1 * commit 'd49ec62cfb0469c39f2b5d79cbf2a6f69cceb7d7': New and improved silent mode on lockscreen.
| * | | New and improved silent mode on lockscreen.Amith Yamasani2011-12-062-66/+121
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | 3-state item to toggle between Silent/Vibrate/Ringer in long-press power menu. No volume dialog on lockscreen, unless Power menu is up. Set VIBRATE_IN_SILENT=1 when upgrading device. Change-Id: I097d216f96c4abdbd83420e0c477106951b3607d
* | | Merge "Making Face Unlock fix that wasn't proerly merged in master"Brian Colonna2011-12-061-2/+3
|\ \ \
| * | | Making Face Unlock fix that wasn't proerly merged in masterBrian Colonna2011-12-061-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It appears that https://android-git.corp.google.com/g/#/c/144795/1 was incorrectly merged down into master. This commit is to correctly add the change from that cl into the master branch. Without this change, if you bring up the emergency dialer while Face Unlock is running, you momentarily see the backup lock. Change-Id: I6350150bf46ac52d5c50c9e88119f09397d22902
* | | | am ec42750e: am 0c0120ef: Merge "Fix issue #5714517: App shortcuts can ↵Dianne Hackborn2011-12-051-2/+1
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | result in bad task intents" into ics-mr1 * commit 'ec42750e4d0e695515d078fb1f222c99a705fd93': Fix issue #5714517: App shortcuts can result in bad task intents
| * | Fix issue #5714517: App shortcuts can result in bad task intentsDianne Hackborn2011-12-051-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | New API to let you build an Intent whose base configuration is correct, but has an additional "selector" to pick out the specific app that you would like launched. Change-Id: Ide9db6dc60e2844b7696cfe09b28337fe7dd63db
* | | am f8dad0b3: am afd01086: Merge "Further volume improvements." into ics-mr1Amith Yamasani2011-12-022-39/+55
|\ \ \ | |/ / | | | | | | | | | * commit 'f8dad0b37d9aa2476ef3ab84b9f4a7a9f4c960e4': Further volume improvements.
| * | Merge "Further volume improvements." into ics-mr1Amith Yamasani2011-12-022-39/+55
| |\ \
| | * | Further volume improvements.Amith Yamasani2011-12-012-39/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove silent mode from Power menu - Show volume dialog on lockscreen - Allow beeps when adjusting volume in lockscreen Bug: 5586083 Change-Id: I93052a8ec5004c784f20e04488af9382d495e711
* | | | Refactor InputQueue as InputEventReceiver.Jeff Brown2011-12-011-17/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change simplifies the code associated with receiving input events from input channels and makes it more robust. It also does a better job of ensuring that input events are properly recycled (sometimes we dropped them on the floor). This change also adds a sequence number to all events, which is handy for determining whether we are looking at the same event or a new one, particularly when events are recycled. Change-Id: I4ebd88f73b5f77f3e150778cd550e7f91956aac2
* | | | Ensure input events are processed in-order in the application.Jeff Brown2011-12-011-9/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As it turns out, it used to be possible for there to be multiple input events simultaneously in flight in an application. Although it worked, it made it hard to reason about what was going on. The problem was somewhat exacerbated by the introduction of a queue of "InputEventMessage" objects as part of an earlier latency optimization. This change restores order from chaos and greatly simplifies the invariants related to input event dispatch within the application. Change-Id: I6de5fe61c1fe2ac3dd33edf770d949044df8a019
* | | | am 52976f04: am e9b0608c: Merge "No clicking on volume icon in volume ↵Amith Yamasani2011-12-011-2/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | dialog." into ics-mr1 * commit '52976f04d8bebf44398a94cf5796f6a998c8935d': No clicking on volume icon in volume dialog.
| * | | Merge "No clicking on volume icon in volume dialog." into ics-mr1Amith Yamasani2011-12-011-2/+2
| |\ \ \ | | |/ / | |/| |
| | * | No clicking on volume icon in volume dialog.Amith Yamasani2011-11-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't disable volume slider when it hits zero. Show correct icon for Silent mode in Power menu. Bug: 5586083 Change-Id: Iaa957fc08e314e0de1c007dfc967a1d960080aab
| * | | Merge "Put screensavers back in the icebox for now. DO NOT MERGE." into ics-mr1Daniel Sandler2011-12-011-142/+0
| |\ \ \
| | * | | Put screensavers back in the icebox for now. DO NOT MERGE.Daniel Sandler2011-11-301-142/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 5689684 Change-Id: I3a5291c3520bb43e35d55714f1522e4ae7f6e63c
* | | | | am f5fd08d6: am a1240184: Merge "Fix issue #5433192 and maybe #5433192" into ↵Dianne Hackborn2011-11-301-2/+5
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | ics-mr1 * commit 'f5fd08d64959f23ba87f4da4771ca511b05a6be0': Fix issue #5433192 and maybe #5433192
| * | | | Fix issue #5433192 and maybe #5433192Dianne Hackborn2011-11-301-2/+5
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5433192: Factory reset device: compatibility screen is the first... ...screen before setup wizard Don't show compat mode dialog if compat mode is unknown (which happens early in boot before an activity is shown for example). Also make sure to update status any time the current focus app token changes, so we correctly update every time switching apps. 5651152 [Stingray] change zoom/strech setting icon won't go away This is probably also fixed by updating when the app token changes. Change-Id: Ibe9bd6277166230d5d96689741b78325ea099d57
* | | | Display max retry lockout message on backup lock fixes 5462647Steven Ross2011-11-293-8/+17
| | | | | | | | | | | | | | | | Change-Id: I75e51f45f821542ae380e4ec4e3232b3fbe660f4
* | | | am c339fe30: am be6ab576: Merge "Fix application launch shortcuts." into ics-mr1Jeff Brown2011-11-291-1/+42
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit 'c339fe302bc5083f0a110569eec06676be511088': Fix application launch shortcuts.
| * | | Merge "Fix application launch shortcuts." into ics-mr1Jeff Brown2011-11-291-1/+42
| |\ \ \
| | * | | Fix application launch shortcuts.Jeff Brown2011-11-291-1/+42
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improved quick launch bookmarks to support category-based shortcuts instead of hardcoding package and class names for all apps. Added a set of Intent categories for typical applications on the platform. Added support for some of the HID application launch usages to reduce reliance on quick launch for special purpose keys. Some keyboard vendors have hardcoded launch keys that synthesize "Search + X" type key combos. The goal is to encourage them to stop doing this by implementing more of HID. Bug: 5674723 Change-Id: I79f1147c65a208efc3f67228c9f0fa5cd050c593
* | | | am 3788ce9e: am 50b20425: Merge "Another attempt at getting OOM reports to ↵Dianne Hackborn2011-11-291-1/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | batch." into ics-mr1 * commit '3788ce9ed9b896c2f1d5500910e949a6eba308e2': Another attempt at getting OOM reports to batch.
| * | | Merge "Another attempt at getting OOM reports to batch." into ics-mr1Dianne Hackborn2011-11-291-1/+2
| |\ \ \
| | * | | Another attempt at getting OOM reports to batch.Dianne Hackborn2011-11-291-1/+2
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now generate a stack-trace looking thing at the top of the report. Also fix a bug I hit where the phone window manager was sending a broadcast before the boot had completed. Change-Id: I0cee16180e4d05c9bd3fe715212a28f504ec91ac
* | | | am 834c2870: am fed7a99a: Merge "Quick fix for bug 5646217 blocking ↵Daniel Sandler2011-11-291-0/+9
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | automation tests" into ics-mr1 * commit '834c2870fa422098b3728ae26099b3030994f86f': Quick fix for bug 5646217 blocking automation tests
| * | | Quick fix for bug 5646217 blocking automation testsDaniel Sandler2011-11-231-0/+9
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The screen saver knows to avoid running when applications are holding wake locks via window flags, but other wake locks are invisible to the window manager and therefore to the screen saver activation code. The correct thing to do is move the screen saver to the power manager to give it access to all wakelock information. In the meantime, this fix checks for the user's STAY_ON_WHILE_PLUGGED_IN setting and disables the screen saver in this case. Bug: 5646217 Change-Id: Ia2286a8c3745267871901f7a0b7df94ec344a456
* | | am 70f1279e: am 63188574: Merge "Dismiss system windows when screen savers ↵Daniel Sandler2011-11-221-0/+5
|\ \ \ | |/ / | | | | | | | | | | | | | | | start." into ics-mr1 * commit '70f1279e65eaa138f297a8f590f8383f2c76f7b4': Dismiss system windows when screen savers start.
| * | Dismiss system windows when screen savers start.Daniel Sandler2011-11-181-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also add a couple more flags to the intent: - NO_HISTORY (finish activity on suspend) - FLAG_FROM_BACKGROUND Bug: 5578434 Change-Id: I97b965175a27760b819dc29ddb57865c5f4754d6
* | | am 25a43ada: am 9b5d7a59: Merge "Dreams (now Screen Candy) development." ↵Daniel Sandler2011-11-191-9/+15
|\ \ \ | |/ / | | | | | | | | | | | | | | | into ics-mr1 * commit '25a43adabb70aa769a097c6cb09d71b031431677': Dreams (now Screen Candy) development.