summaryrefslogtreecommitdiffstats
path: root/policy
Commit message (Collapse)AuthorAgeFilesLines
* Add power menu action to take a bug reportDianne Hackborn2012-08-071-2/+44
| | | | Change-Id: I5f58d99e9a27a1fc496fa54e0c0ee333087155da
* Merge "Do not use last app rotation as default." into jb-mr1-devCraig Mautner2012-08-031-1/+11
|\
| * Do not use last app rotation as default.Craig Mautner2012-08-031-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | If the rotation sensor has been disabled we were substituting the last app rotation for the sensor value. This fix uses the last sensor value delivered before the sensor was disabled. Only use the last app rotation if we never have received a valid sensor value. Fixes bug 6387946. Change-Id: I50743c30ee2b4455e9848d3a619809be97eec3c8
* | We can now (kind-of) change screen density on the fly.Dianne Hackborn2012-08-031-11/+4
|/ | | | | | | | | | | | | | | | | | | | | Preloaded drawables now have a density associated with them, so we can load the correct drawable if we are using a different density. Window manager now formally keeps track of the density for each screen, allowing it to be overridden like you can already do with size, and relies on this density to drive itself internally and the configurations it reports. There are a new set of Bitmap constructors where you provide a DisplayMetrics so they can be constructed with the correct density. (This will be for when you can have different windows in the same app running at different densities.) ActivityThread now watches for density changes, and pushes them to the DENSITY_DEVICE and Bitmap global density values for that process. A new am command allows you to change the density.
* Re-enable dreams: frameworks/baseJohn Spurlock2012-08-031-2/+4
| | | | | | | | | | | | | Enable feature in config. Expose Dream in public api for unbundled apps. Unhide package. Add isDreaming() method to service. Re-arrange the Dream api a bit. (use onStart as hook for subclasses). Coordinate properly with power manager. Replace old dock mode (don't fire old intent). Change-Id: I1318d20cc1613e5d862f2913f2fcdc9719302cf7 Bug: 6921930
* Start moving away from DisplayMetrics.DENSITY_DEVICE.Dianne Hackborn2012-08-011-1/+3
| | | | | | | | | | | | This puts in most of the infrastructure needed to allow us to switch between different densities at run time. The main remaining uses of the global are to initialize the Bitmap object (not sure what to do about that since it doesn't have anything passed in the constructor to get this information from), and being able to load drawables if we need a different density than what was preloaded by zygote. Change-Id: Ifdbfd6b7a5c59e6aa22e63b95b78d96af3d96848
* am fc92eb94: am 2ffb1acb: Merge " Fix preload classname for phone policy."Adam Powell2012-07-301-1/+1
|\ | | | | | | | | * commit 'fc92eb94c413ebae1016d10460ee62e92f0c1a64': Fix preload classname for phone policy.
| * am 2ffb1acb: Merge " Fix preload classname for phone policy."Adam Powell2012-07-301-1/+1
| |\ | | | | | | | | | | | | * commit '2ffb1acbb704fa9d87fe496d5b7f3053e02799df': Fix preload classname for phone policy.
| | * Merge " Fix preload classname for phone policy."Adam Powell2012-07-301-1/+1
| | |\
| | | * Fix preload classname for phone policy.SangWook Han2012-06-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PhoneWindow$ContextMenuCallback is renamed to PhoneWindow$DialogMenuCallback from commit 4267534d1c42af847ed0cefd1c88c99f66b36571 "Action Bar now supports submenus as popups." Change-Id: Ie9165d9458358dabe03b499862fcced690845e6f
| | | * Lid switch state is incorrectMasanori Ogino2012-05-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | InputManager#getSwitchState() returns AKEY_STATE_UP(0=OPEN) and AKEY_STATE_DOWN(1=CLOSE). mLidOpen is opposite from a real lid status. Change-Id: I40aa4e0defb95d82b6144ff6b7514f721bf9030f
| | * | Create telephony-common and mms-common - DO NOT MERGEWink Saville2012-07-177-85/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These have been created to reduce the size and complexity of frameworks/base. mms-common was created by moving all of frameworks/base/core/java/com/google/android/mms to: frameworks/opt/mms telephony-common was created by moving some of frameworks/base/telephony to: frameworks/opt/telephony Change-Id: If6cb3c6ff952767fc10210f923dc0e4b343cd4ad
* | | | Move and rename user activity event type constants.Jeff Brown2012-07-271-3/+3
| | | | | | | | | | | | | | | | Change-Id: Ie565808796773b6896e71ddfac6aaaf8031de846
* | | | Remove dead code.Jeff Brown2012-07-251-9/+0
| | | | | | | | | | | | | | | | Change-Id: I33afe3a1c364d5cdb9fa08867ad1580c0fd04e0e
* | | | am 5f8d4832: am 8d6ff012: Merge "Fix 5608959: Make keyguard follow user ↵Shawn Pearce2012-07-241-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | setting for orientation" into jb-dev * commit '5f8d48324e891fa9953ffa3056ea9d8f03075d96': Fix 5608959: Make keyguard follow user setting for orientation
| * | | am 8d6ff012: Merge "Fix 5608959: Make keyguard follow user setting for ↵Shawn Pearce2012-07-241-1/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | orientation" into jb-dev * commit '8d6ff012ed14fb2e0ddad059deea3b1fe74aac3c': Fix 5608959: Make keyguard follow user setting for orientation
| | * | | Fix 5608959: Make keyguard follow user setting for orientationJim Miller2012-07-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug where keyguard would always change orientation when enabled from config_enableLockScreenRotation. Now it follows the user preference. Change-Id: I0437d11e1984d22cdadddc57deb47d800fb86aa1
* | | | | Clean up info and callback architecture in KeyguardUpdateMonitor.Jim Miller2012-07-236-510/+467
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - We now pass a more robust battery status object to methods that handle battery updates. - Consolidated battery decision code into BatteryStatus object (e.g. charging, low, charged) so it can be shared. - Consolidated SIMStateCallback into common KeyguardUpdateMonitorCallback object to reduce complexity. - Consolidated user changes into common callback using KeyguardUpdateMonitorCallback. - Fixed a race condition caused by launching LockSettingsService after WindowManagerService. Change-Id: I6b2a328f8581f35593e41348693b92ab66d02429
* | | | | Merge "remove code to resize status bar when on HDMI"Erik Gilling2012-07-161-15/+0
|\ \ \ \ \
| * | | | | remove code to resize status bar when on HDMIErik Gilling2012-07-161-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I413eff8fe664033e5187ac54247ec0140175b7ba
* | | | | | Merge "Remove dithering support."Jeff Brown2012-07-161-2/+1
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Remove dithering support.Jeff Brown2012-07-161-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The dithering flag is no longer implemented in Surface Flinger so this is all dead code. Change-Id: I74c0e452923207e5b7cfe0eeca9457e5cb990947
* | | | | | Switch to split status/nav bars on all device sizes.Daniel Sandler2012-07-161-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie76aa4bdfd76e4a0ffb3949424ab28ef86ec54a1
* | | | | | am 4094fb3c: am 8d170421: Merge "Fix wrong condition."Romain Guy2012-07-161-1/+1
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | * commit '4094fb3c5b95c88d689238cbf0a9e2c169a5e557': Fix wrong condition.
| * | | | | am 8d170421: Merge "Fix wrong condition."Romain Guy2012-07-161-1/+1
| |\ \ \ \ \ | | | |_|/ / | | |/| | | | | | | | | | | | | | | * commit '8d1704215e80ebec61f6d77c503d83b32d881096': Fix wrong condition.
| | * | | | Fix wrong condition.SeongJae Park2012-07-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Should check width and height, not width and width. Change-Id: Ie84d3605b2a7a0f4776adb876608ea92f56817c4
* | | | | | Fix regression in SIM state handlingJim Miller2012-07-131-1/+0
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug introduced by If6cb3c6ff952767fc10210f923dc0e4b343cd4ad that accidentally reverted I019d1d8c65c55cbf4d10d4928e1d2b2b242162a6 Change-Id: Ia006bf31387162a520374f3bc9acb6e69197b106
* | | | | Merge "Make PhoneWindow aware of layout direction"Fabrice Di Meglio2012-07-121-0/+3
|\ \ \ \ \
| * | | | | Make PhoneWindow aware of layout directionFabrice Di Meglio2012-06-261-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi) Change-Id: I94508d4ed5d9f9e348c3c19c5e12355f5723659d
* | | | | | Merge commit '1b003ef0' into mitWink Saville2012-07-117-85/+79
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1b003ef0': Create telephony-common and mms-common Change-Id: Ie8876541dbe7f4c933cf7d69910dd204538bc975
| * | | | | Create telephony-common and mms-commonWink Saville2012-07-117-85/+79
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These have been created to reduce the size and complexity of frameworks/base. mms-common was created by moving all of frameworks/base/core/java/com/google/android/mms to: frameworks/opt/mms telephony-common was created by moving some of frameworks/base/telephony to: frameworks/opt/telephony Change-Id: If6cb3c6ff952767fc10210f923dc0e4b343cd4ad
* | | | | Fix sound effect attenuation calculationJean-Michel Trivi2012-07-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The sound effect volume attenuation calculation is wrong: the division by 20 was always returning 1 or 0. In AudioService, rename the sound effect attenuation value to follow the naming conventions for static variables. Change-Id: I3c36d50f4470ff09ca98cb944aefb5ad0f968782
* | | | | Merge CL 202423/3 App launching has random pauses.Craig Mautner2012-07-031-9/+10
| | | | | | | | | | | | | | | | | | | | Change-Id: Iba5616182c02e51f4d9063d0a01b30b9f558549a
* | | | | Use two fingers to work some magic...Dianne Hackborn2012-06-251-2/+12
| | | | | | | | | | | | | | | | | | | | Change-Id: Ibcb3dbd3d158c22da8277e544d81fb47eadccd49
* | | | | am e53fd84a: am 9e608c12: Merge "Fix issue #6381224: Initial emulator boot ↵Dianne Hackborn2012-06-251-18/+45
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | fails and shows a blank black screen." into jb-dev * commit 'e53fd84a28584692d9c99712a3d36100643ba000': Fix issue #6381224: Initial emulator boot fails and shows a blank black screen.
| * | | | am 9e608c12: Merge "Fix issue #6381224: Initial emulator boot fails and ↵Dianne Hackborn2012-06-251-18/+45
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | shows a blank black screen." into jb-dev * commit '9e608c12186d308fb1711e8824901fdf931a3a96': Fix issue #6381224: Initial emulator boot fails and shows a blank black screen.
| | * | | Merge "Fix issue #6381224: Initial emulator boot fails and shows a blank ↵Dianne Hackborn2012-06-251-18/+45
| | |\ \ \ | | | | | | | | | | | | | | | | | | black screen." into jb-dev
| | | * | | Fix issue #6381224: Initial emulator boot fails and shows a blank black screen.Dianne Hackborn2012-06-251-18/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure that all cases where we remove an activity from the history stack, we call resumeTopActivityLocked() to cause the home activity to be launched if the stack is now empty. Also fixed a problem where some timeouts would not be removed when destroying an activity, and a race condition in boot that would cause the PhoneWindowManager to initially start out with the home key not working. Bug: 6381224 Change-Id: If046bb01aed624b0d9ee3bbaaba68ed6b98fd1d0
| * | | | | am fca66cd8: Merge "DO NOT MERGE Fix issue #6697105: App launching sometimes ↵Dianne Hackborn2012-06-251-9/+10
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | has random pauses" into jb-dev * commit 'fca66cd828e214fe7494e46c7daa2879dfc3210d': DO NOT MERGE Fix issue #6697105: App launching sometimes has random pauses
| | * | | | DO NOT MERGE Fix issue #6697105: App launching sometimes has random pausesDianne Hackborn2012-06-221-9/+10
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the course of the window manager refactoring into a separate layout state, we introduced a bad interaction between the two sides of the world. This resulting in multiple hops needed between the two sides after an application has said it is finished drawing its window, until the window/app transition is actually started. Especially since these hops require going through the anim side which is vsynced (so will delay its operation until the next frame), this could introduce a notable delay until the window is first shown. Fix this by re-arranging the code to make one straight path from when a window reports it is shown to us starting the app transition that is waiting for it. This change also includes various improvements to debugging code that was done while working on it. Change-Id: I7883674052da1a58df89cd1d9b8d754843cdd3db
* | | | | am 42a6516d: am 89c6bec3: Merge "Make sure onScreenTurnedOn is called at ↵Craig Mautner2012-06-212-1/+7
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | power on." into jb-dev * commit '42a6516de996b547ecbfc53fd7e101f2b8b6c490': Make sure onScreenTurnedOn is called at power on.
| * | | | am 89c6bec3: Merge "Make sure onScreenTurnedOn is called at power on." into ↵Craig Mautner2012-06-212-1/+7
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | jb-dev * commit '89c6bec3218d2f3f6d9fbe04fe2936021440ea80': Make sure onScreenTurnedOn is called at power on.
| | * | | Make sure onScreenTurnedOn is called at power on.Craig Mautner2012-06-212-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | KeyguardViewMediator.onScreenTurnedOn is not called if the device is booted into the power-on state. In this case mScreenOn remains false and the lockscreen will always appear after outgoing calls. This fix ensures that onScreenTurnedOn is called when the device is powered up in the on state. Fixes bug 6709173. Change-Id: I7557d8f002307b9125bc53b13bc3cb4c5c9b2758
* | | | | am b0222bb1: am 0fa4d30b: Merge "Fix issue #6686339: 2 taps required to ↵Dianne Hackborn2012-06-201-5/+6
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | launch notification..." into jb-dev * commit 'b0222bb19e8d850ccbd74c4f0832d73ae552df8d': Fix issue #6686339: 2 taps required to launch notification...
| * | | | am 0fa4d30b: Merge "Fix issue #6686339: 2 taps required to launch ↵Dianne Hackborn2012-06-201-5/+6
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | notification..." into jb-dev * commit '0fa4d30b03c4307ca5d461aa4450b672b6850ea1': Fix issue #6686339: 2 taps required to launch notification...
| | * | | Merge "Fix issue #6686339: 2 taps required to launch notification..." into ↵Dianne Hackborn2012-06-201-5/+6
| | |\ \ \ | | | | | | | | | | | | | | | | | | jb-dev
| | | * | | Fix issue #6686339: 2 taps required to launch notification...Dianne Hackborn2012-06-191-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...or settings from lock screen When a window is drawn, the code to determine whether it should now be shown was calling WindowState.isReadyForDisplay(). Part of the condition of this function is that it is not ready if a policy is forcing the window to be hidden -- which is the case when the lock screen is shown. As a result, we wouldn't show the window at that point, so wouldn't tell the activity manager that the token's windows are visibible, and wouldn't tell the lock screen to go away. This adds a new variation WindowState.isReadyForDisplayIgnoringKeyguard(), which is the same as the original method but ignores the policy visibility for app windows. This allows windows to be go through the complete path of handling when the window is finally drawn and telling the activity manager about it, even if behind the lock screen. By making it a separate function, we don't impact any other code that is calling the old function and may be relying on its behavior. Also cleaned up a little of the dumpsys output. Most important, the new ANR section is now moved to the top, since we want "adb shell dumpsys window" to still give a nice summary of what we normally care about -- the window stack and important global state. Change-Id: Ica3ea85ce46f3f5f5cd2cc30fbd9de13d3885a57
* | | | | | am 2b7df368: am cab997b2: Merge "Fix 6667238: allow market apps to support ↵Jim Miller2012-06-192-53/+27
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ACTION_ASSIST" into jb-dev * commit '2b7df3686f24a5a653a6609556dd98210324f7bd': Fix 6667238: allow market apps to support ACTION_ASSIST
| * | | | | am cab997b2: Merge "Fix 6667238: allow market apps to support ACTION_ASSIST" ↵Jim Miller2012-06-192-53/+27
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into jb-dev * commit 'cab997b2020ddb67158397dccadd28d91a7710d0': Fix 6667238: allow market apps to support ACTION_ASSIST
| | * | | | Fix 6667238: allow market apps to support ACTION_ASSISTJim Miller2012-06-192-53/+27
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change allows market apps and 3rd parties to supply an activity that responds to ACTION_ASSIST (e.g. market apps). It also adds a test app to respond to the ASSIST intent and force the intent disambiguation dialog to appear. Change-Id: I5a78863c6a9546d18c66275187d178f6a1c9ee17