summaryrefslogtreecommitdiffstats
path: root/policy
Commit message (Collapse)AuthorAgeFilesLines
* Merge "visibility ("lights out") API." into honeycombJoe Onorato2011-01-231-2/+41
|\
| * visibility ("lights out") API.Joe Onorato2011-01-231-2/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Views may setSystemUiVisibility() to recommend that the system chrome (status bar or other UI) show or hide itself. (This functionality was previously available only via the FLAG_FULLSCREEN window flag for some SystemUI implementations.) 2. Views may register a OnSystemUiVisibilityChangedListener on a view, and find out when the system UI actually appears or disappears, allowing apps to coordinate the appearance of their own UI if desired. Bug: 3241144 Change-Id: Ia1758d94099182d49a1e3688ea2738ae4995b829
* | Merge "Fix bug 3299208 - Some apps' dialogs aren't show()ing successfully" ↵Adam Powell2011-01-231-9/+4
|\ \ | | | | | | | | | into honeycomb
| * | Fix bug 3299208 - Some apps' dialogs aren't show()ing successfullyAdam Powell2011-01-231-9/+4
| |/ | | | | | | | | | | Fix legacy submenus in options menus. Change-Id: I3d115c72d99dadd5b23f9459fd27277a39de332b
* | Fix SENSOR_LANDSCAPE and SENSOR_PORTRAITJeff Brown2011-01-231-2/+4
|/ | | | | | | | Fixed a bug in the handling of SENSOR_LANDSCAPE and SENSOR_PORTAIT on devices that have a natural landscape orientation. The old code was disabling 180 degree orientation detection when it shouldn't have. Change-Id: I484a0aa44b3b8267a7d3b74bdf39c296faa7c6e3
* Merge "Fix 3339257: Update lockscreen keyboard to fit Holo theme" into honeycombJim Miller2011-01-191-9/+16
|\
| * Fix 3339257: Update lockscreen keyboard to fit Holo themeJim Miller2011-01-191-9/+16
| | | | | | | | | | | | | | | | | | This updates the lockscreen keyboard to be like the latin-1 IME keyboard and updates it to fit the holo theme. Fixed some minor issues addressed in review. Change-Id: I3c6dd8f91be753510e6eadfa9ad913f77038947b
* | Merge "Okay, new plan for dialogs." into honeycombDianne Hackborn2011-01-181-6/+4
|\ \
| * | Okay, new plan for dialogs.Dianne Hackborn2011-01-181-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't dismiss by default when tapping outside, even for AlertDialog. If AlertDialog doesn't have any buttons, tapping outside will dismiss it. Applications can make their own dialogs (or activities looking like dialogs) can use the existing and new APIs to control this behavior themselves so that it does the right thing. Change-Id: I02bfb9161e169de0033200211b3a7ec80080bd83
* | | Merge "Fix bug 3365208 - Contextual Action Bar is not displayed when the ↵Adam Powell2011-01-181-0/+1
|\ \ \ | |/ / |/| | | | | context item is changing" into honeycomb
| * | Fix bug 3365208 - Contextual Action Bar is not displayed when the context ↵Adam Powell2011-01-181-0/+1
| |/ | | | | | | | | | | item is changing Change-Id: I9e7ec4ab14c6008397d26c499ccf478f8875f918
* | Merge "Fix issue #3362484: Can't dismiss activity picker by tapping outside ↵Dianne Hackborn2011-01-181-0/+18
|\ \ | |/ |/| | | dialog" into honeycomb
| * Fix issue #3362484: Can't dismiss activity picker by tapping outside dialogDianne Hackborn2011-01-181-0/+18
| | | | | | | | Change-Id: Idc2fe5a86c61e8f94fe9d902a0087a05f6f7918e
* | Fix issue #3362666 Activities launched from ongoing notifications don't animateDianne Hackborn2011-01-181-16/+22
|/ | | | | | | The phone-oriented code for turning off animations when the screen is entirely covered by the status bar was not appropriate for the tablet. Change-Id: Ica3e0db989f16b9187eacd6ecf4ac3d17661dd6d
* Merge "Fix 3329600: Always enable screen rotation in lockscreen." into honeycombJim Miller2011-01-171-8/+6
|\
| * Fix 3329600: Always enable screen rotation in lockscreen.Jim Miller2011-01-171-8/+6
| | | | | | | | | | | | | | | | | | Sometimes we get the wrong value for the sensor resource we use to configure lockscreen orientation. However, the current UI design has LockScreen always respond to orientation (when enabled in settings) so we don't need to rely on this for the time-being. Change-Id: If37314befd25a7b3306500643155523ad4fe6657
* | Merge "Fix 3210299: Extend lock screen wake timeout to 10s" into honeycombJim Miller2011-01-171-1/+1
|\ \
| * | Fix 3210299: Extend lock screen wake timeout to 10sJim Miller2011-01-171-1/+1
| |/ | | | | | | Change-Id: I9e4f8761a80271b97ff6411a41664642273baaef
* | Merge "Fix bug 3360882 - Allow FEATURE_CUSTOM_TITLE and ↵Adam Powell2011-01-161-1/+2
|\ \ | | | | | | | | | FEATURE_ACTION_MODE_OVERLAY to coexist." into honeycomb
| * | Fix bug 3360882 - Allow FEATURE_CUSTOM_TITLE andAdam Powell2011-01-161-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | FEATURE_ACTION_MODE_OVERLAY to coexist. Fix "custom title" dialog window decor for holo. Change-Id: Ia732caeb89e12d8d754be31c3bd2faf13a8c95d6
* | | Fix 3005526: Properly update StatusView from Password/PIN unlockJim Miller2011-01-162-11/+16
| |/ |/| | | | | | | | | | | This uses the newly added setHelpMessage() to properly show PIN and password help in StatusView. Change-Id: I8662e179e989c6e72f657c81f23b1b2fa7982727
* | Merge "Fix 3342063: Correctly update StatusView when battery changes." into ↵Jim Miller2011-01-163-15/+32
|\ \ | |/ |/| | | honeycomb
| * Fix 3342063: Correctly update StatusView when battery changes.Jim Miller2011-01-163-15/+32
| | | | | | | | | | | | | | | | | | LockScreen wasn't correctly updating StatusView when the battery status changed. In addition, the messages aren't supposed to "pop" when changed, so changed visibility state from GONE to INVISIBLE when not in use. Change-Id: Icacbf7e2275c77a28e7e0a9d1247abdbebadcd4f
* | Fix 3355957: Don't hide the keyboard for PIN/PasswordJim Miller2011-01-161-6/+5
|/ | | | | | | | | BT or USB keyboards currently cause the on-screen keyboard to be hidden. This will probably need to be refactored in the future but the change is too complicated for the current release. Change-Id: Ieb655b85622f7c174ed4a5d1c3766d130a9d32f1
* Fix keyboard hidden states.Jeff Brown2011-01-161-27/+30
| | | | | Bug: 3355957 Change-Id: I7ff8f83421ebd89bacd3ba472e23eeba99732cb1
* Merge "Disable soft keyboard when keyboard attached." into honeycombJeff Brown2011-01-142-37/+47
|\
| * Disable soft keyboard when keyboard attached.Jeff Brown2011-01-142-37/+47
| | | | | | | | | | | | | | | | | | Also hide menu shortcuts everywhere until we can get around to redesigning the menu UI to be more consistent. Bug: 3306545 Bug: 3330748 Change-Id: I4d4e19525cdfc93d9aae0dcaa1e6266fb552c5bc
* | Merge "Add volume down as a safe mode key for Stingray." into honeycombJeff Brown2011-01-141-1/+3
|\ \
| * | Add volume down as a safe mode key for Stingray.Jeff Brown2011-01-131-1/+3
| |/ | | | | | | | | | | | | | | | | | | | | | | Fixed a race condition during startup. We need to wait for the input devices to actually be ready before trying to detect safe mode. Fixed a problem during safe mode activation where we would try to add the overlay window but the display was not initialized. Now we do it after the system is ready. Bug: 3134825 Change-Id: I4c043c142ae6bf0d865c79d266d36154eaf00709
* | DO NOT MERGE Make the Phone options dialog use current languageAnders Hammar12011-01-141-2/+2
|/ | | | | | | | | The title of the Phone options dialog is displayed using wrong translation if the user changes the current language setting. Moving the setTitle call to prepareDialog to ensure that the title gets updated before the dialog is shown. Change-Id: I6f8f460789effd22de5be8339cc46667269e78c0
* Fix issue #3153930: orphan window left on screenDianne Hackborn2011-01-131-0/+68
| | | | | | | | | | | | | | | | The problem is that if a window containing children is removed before the children are, the children may be lost. This change (amongst the huge amount of new debugging code) now ensures at this point that all children windows are removed when the parent is. Note that this results in a bunch of error messages now as the client app tries to continue to do things with that child window. This is correct, it shouldn't be doing that, and needs to be fixed to stop it. But at least it now can't cause the window manager to leak surfaces. Change-Id: I7b80dd89ff9de7cb5af1dc759cfa4b31ac29cddc
* Merge "Fix 3201849: Use custom Drawable for bg in lockscreen" into honeycombJim Miller2011-01-121-0/+27
|\
| * Fix 3201849: Use custom Drawable for bg in lockscreenJim Miller2011-01-111-0/+27
| | | | | | | | | | | | | | | | This uses a custom drawable to improve the performance of rendering a transparent background in LockScreen on devices without hardware acceleration. Change-Id: I7aae13070d475c3ac19d91ba5c6cb7d2a83a18ce
* | Add "min size" facility to the Window class.Dianne Hackborn2011-01-121-1/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows us to have a new dialog theme that behaves like an alert dialog for both Dialog and Activity versions. Very useful with so many more things being displayed as dialogs on our nice large screen. Note I didn't change the existing dialog themes to have this behavior, since it will probably break things. Instead there is a new variation. And the DialogWhenLarge variations now use this for their dialog form, to fix many of the real new dialogs we have that need this behavior. Removed the public definition of the one alert dialog theme. None of the others have ever been public, this one shouldn't be. Added new .Panel versions of the Holo themes, like we already had for the original themes. Changed the alert dialog layout to no longer use WeightedLinearLayout, since the window now takes care of that. This allowed for the removal of the xlarge version of those layouts. Change-Id: I0c8372bde25eb9af47404a719b3f07230baf73bf
* | Merge "The status bar half of making the status bar resize when hdmi is ↵Joe Onorato2011-01-111-0/+33
|\ \ | | | | | | | | | plugged in." into honeycomb
| * | The status bar half of making the status bar resize when hdmi is plugged in.Joe Onorato2011-01-111-0/+33
| |/ | | | | | | Change-Id: Ia349413774ba709fb3242780671c7b459850f4a4
* | Fix bug 3338079 - Dialog styled activity decorAdam Powell2011-01-111-3/+12
|/ | | | | | | | | Fixed a bug in FastScroller that could cause a crash on an empty list in always-show mode. Fix holo light button text color Change-Id: I7b50043d715b9b870eb34808017d743ba64d2e08
* Fix bug 3333015 - Overflow menu item submenus do not openAdam Powell2011-01-101-6/+26
| | | | | | Submenus of action bar menus will open as new menus. Change-Id: I924b87bbea91b0df5e3608ec894530302c0e1d8d
* Add ActivityManager#isRunningInTestHarness() public API.Brett Chabot2011-01-091-2/+3
| | | | | | | | | Replaces use of ro.monkey system property. This new API is controlled by ro.test_harness. Bug 3329873 Change-Id: Idb5bbbd9ca691976ef842eec681be34c29915976
* Fix 3330653: Update lockscreen layouts to match latest mocks [DO NOT MERGE]Jim Miller2011-01-093-146/+61
| | | | | | | | | | | | | | | | | | | | | | | | This change list: - simplifies the UI design to reduce the number of on-screen items by combining Alarm status with the date line. - updates many of the layout files to match closer to the final design. - Simplifies the logic for showing Status1 info. It's now more predictable and robust. - updates the layout for tablets - contains a modified alpha to work well with different backgrounds (Tested: white, gray, and dark backgrounds) - updates the tablet icons to something closer to the final size. Manual merge from Change-Id: Ifb349dfa778e9c91b0649c8d95229607be5af8e5 Change-Id: Ia2a9a2d285102d0208b3a7fcead58d6454d116ae
* Implement issue # 3255887 could CursorLoader offer...Dianne Hackborn2011-01-081-9/+3
| | | | | | | | | | | | | | | | | | ...to throttle contentobserver-based requeries Why yes, I guess it could. This also reworks AsyncTaskLoader to not generate multiple concurrent tasks if it is getting change notifications before the last background task is complete. And removes some of the old APIs that had been deprecated but need to be gone for final release. And fixes a few little problems with applying the wrong theme in system code. Change-Id: Ic7a665b666d0fb9d348e5f23595532191065884f
* Fix bug 3330683 - Do not show the legacy menu panel for HC apps onAdam Powell2011-01-081-2/+15
| | | | | | xlarge devices. Change-Id: Ic268684570a429d8da499c142b23bb20b3fe2b82
* Fix bug 3200615 - "MenuPopupHelper cannot be used without an anchor"Adam Powell2011-01-071-4/+5
| | | | | | | Add protection against views disappearing before previously posted Runnables attempt to show a menu anchored to them. Change-Id: Ia2a322e76665e61feb5bdb92377d5066cb6d5b04
* WM part of #3293405: Screen needs to be redrawn when HDMI is plugged inDianne Hackborn2011-01-071-4/+32
| | | | Change-Id: If5ceb28073c6abf14165871bd99cb481b31a863b
* Add dispatch key shortcut window callback.Jeff Brown2011-01-051-0/+16
| | | | | | | | Enables Activities and Dialogs to implement key shortcut behavior. Useful for global key shortcuts that are not bound to the focused view or to a menu. Change-Id: If377d20b227ee1c5cac84c47c9630b2d77f67e2c
* Add initial support for cursor-based pointing devices.Jeff Brown2010-12-291-0/+5
| | | | | | | Some parts stubbed out but you can plug in a mouse and move a green cursor around to interact with the UI. Change-Id: I80d597a7f11d3bd92041890f74b3c77326975e6e
* Fix issue #3194697: default orientation for portrait-mode apps on stingray ↵Dianne Hackborn2010-12-221-4/+16
| | | | | | is backward? Change-Id: Ia01963d1dcdda12ef1b4c56af2bd389e5dadbce1
* Update shortcuts.Jeff Brown2010-12-131-18/+20
| | | | | | | | | | Also modified the shortcut key handling so that it drops chorded Search+X keys when even if no shortcut was found. Without this change, pressing an unhandled shortcut causes the Search widget to pop up and the character to be typed. Bug: 3022227 Change-Id: Ic0921428bd1270604ca28caf1f8493727127f4ed
* resolved conflicts for merge of 78e9f4cb to masterDianne Hackborn2010-12-131-1/+0
|\ | | | | | | Change-Id: I1135361e6d66f524c3f349e2bf1f31bd4191c634
| * Fix issue #3154576: battery stats checkin should include UID -> packages+ mapDianne Hackborn2010-12-131-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Includes some other small fixes to battery collection and a few other things. Output of package info looks like this: 5,0,i,uid,1000,com.android.settings 5,0,i,uid,1000,com.android.providers.subscribedfeeds 5,0,i,uid,1000,com.android.providers.settings 5,0,i,uid,1000,com.android.server.vpn 5,0,i,uid,1000,android 5,0,i,uid,1000,com.android.systemui 5,0,i,uid,1000,com.google.android.backup 5,0,i,uid,1001,com.android.phone 5,0,i,uid,1001,com.android.providers.telephony 5,0,i,uid,1022,com.android.nfc 5,0,i,uid,10021,com.google.android.location 5,0,i,uid,10021,com.google.android.syncadapters.calendar 5,0,i,uid,10021,com.google.android.gsf 5,0,i,uid,10021,com.google.android.syncadapters.contacts 5,0,i,uid,10026,com.android.providers.downloads.ui 5,0,i,uid,10026,com.android.providers.media 5,0,i,uid,10026,com.android.providers.drm 5,0,i,uid,10026,com.android.providers.downloads 5,0,i,uid,10032,com.android.launcher 5,0,i,uid,10039,com.google.android.gm 5,0,i,uid,10041,com.google.android.gallery3d 5,0,i,uid,10049,com.android.providers.calendar Change-Id: I9e38f254eef146339113ad270f5c6e8b60fb7a1d