summaryrefslogtreecommitdiffstats
path: root/policy
Commit message (Collapse)AuthorAgeFilesLines
* am 4b8c9b74: am 7fff2d19: am 1de4a2ca: am 62619392: Merge "Fix leak when ↵Dianne Hackborn2011-03-021-1/+14
|\ | | | | | | | | | | | | keylock is recreated." * commit '4b8c9b740528301d3ca60fe3b4b861fcd85ceb0a': Fix leak when keylock is recreated.
| * am 7fff2d19: am 1de4a2ca: am 62619392: Merge "Fix leak when keylock is ↵Dianne Hackborn2011-03-011-1/+14
| |\ | | | | | | | | | | | | | | | | | | recreated." * commit '7fff2d19a24f9f9b669676864dc5652ab179d2fc': Fix leak when keylock is recreated.
| | * am 62619392: Merge "Fix leak when keylock is recreated."Dianne Hackborn2011-02-281-1/+14
| | |\ | | | | | | | | | | | | | | | | * commit '626193926df0b3c7236e5c244f30d797d9192e0d': Fix leak when keylock is recreated.
| | | * Fix leak when keylock is recreated.Kenneth Andersson2011-02-281-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DigitalClock could sometimes leak when the keylock was recreated. This happened because onDetachedFromWindow() was called BEFORE onAttachedFromWindow(). This is the flow that causes the memory leak: 1) The LockPatternKeyGuardView is created and added. This will start a loop dispatching onAttachedToWindow() to all views involved. 2) PatternUnlockScreen.onAttachedToWindow() is called 3) If the configuration has changed since creation, recreateMe() in LockPatternKeyguardView.java is called. 4) recreateScreens() is called 5) PatternUnlockScreen is removed (to be re-added later) in LockPatternKeyguardView.recreateUnlockScreen() 6) Since DigitalClock is a part of PatternUnlockScreen, its onDetachedFromWindow() will be called. 7) The loop started in 1) will continue to dispatch onAttachedToWindow() - and will eventually call DigitalClock.onAttachedToWindow() 8) DigitalClock.onAttachedToWindow() registers a receiver that is normally unregistered in onDetachedFromWindow(). But since onDetachedFromWindow was already called in 6), it will not be called again. 9) The receiver has leaked, and it has a reference to DigitalClock, so that will leak as well, together with its parents e.g. PatternUnlockScreen and LockPatternKeyguardView The fix is to wait with the recreation of the screens (in 4) until the loop (in 1) is finished. This is done by posting this as an event instead of calling recreateScreens() immediately. It is possible that this a fix for the root cause mentioned in "Fix 3106227: use WeakReferences for receivers in DigitalClock class" 8b886fab5496b0b1f5193f21855220176deddc37 by Jim Miller <jaggies@google.com>. Change-Id: I6a5f6f49a565d459bf4e285f34f053cc1022286f
| | | * 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: I03ff59c7f4ff711a06b05de7cca94fa928cf67ef
| | * | Merge "Fix 3391330: Use BATTERY_STATUS_FULL as "Charged" state [DO NOT ↵Jim Miller2011-01-273-17/+31
| | |\ \ | | | | | | | | | | | | | | | MERGE]" into gingerbread
| | | * | Fix 3391330: Use BATTERY_STATUS_FULL as "Charged" state [DO NOT MERGE]Jim Miller2011-01-273-17/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some devices that use LiPo batteries do not charge them to 100% as a safety margin and to preserve battery longevity. This change allows KeyguardUpdateMonitor to determine when the battery state should be reported as "Charged", provided the device sets BATTERY_STATUS_FULL in that case. Change-Id: Iac6cb78e24f9a696017459cc773c38ef7fe7779f
| | * | | Fix SENSOR_LANDSCAPE and SENSOR_PORTRAIT (DO NOT MERGE)Jeff Brown2011-01-241-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. Bug: 3381359 Change-Id: I19bd2519e7f69a24835840fbf542aa7349981029
| * | | DO NOT MERGE: KeyguardManager: Add isKeyguardLocked() and isKeyguardSecure()Mike Lockwood2011-02-261-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG: 3402847 Change-Id: I7cb199763e8d5386914b4c2173c9e1579b08674c Signed-off-by: Mike Lockwood <lockwood@android.com>
| * | | Mass merge from gingerbread - do not mergeThe Android Open Source Project2011-01-305-11/+22
| |\ \ \ | | | | | | | | | | | | | | | Change-Id: I45dc3596bf4211d8f91c64f2d1d00588878df629
| | * \ \ resolved conflicts for merge of 6687ecb4 to honeycomb-mergeJeff Hamilton2011-01-275-11/+22
| | |\ \ \ | | | |/ / | | | | | | | | | | Change-Id: Id9677d2ef1c03191cf73a7d90e80b57ea686afec
* | | | | Merge "Fix issue #3387676 com.android.browser: ↵Dianne Hackborn2011-03-011-42/+59
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | java.lang.NullPointerException..."
| * | | | | Fix issue #3387676 com.android.browser: java.lang.NullPointerException...Dianne Hackborn2011-03-011-42/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unable to destroy activity {com.android.browser/com.android.browser.BrowserActivity}: java.lang.NullPointerException at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:2809) Add a bunch of guards to not call on to the window callback after the window is destroyed. Change-Id: I66ca0705f421bafdfe953d03654c8f78d9e68249
* | | | | | Merge "Fix 3463772: Bring back alarm icon on LockScreen"Jim Miller2011-03-011-1/+1
|\ \ \ \ \ \
| * | | | | | Fix 3463772: Bring back alarm icon on LockScreenJim Miller2011-03-011-1/+1
| |/ / / / / | | | | | | | | | | | | | | | | | | Change-Id: Icdf948c774d280e22da84e9241b345244a56befd
* | | | | | Fix bug 3497307 - Fix issues with FEATURE_ACTION_MODE_OVERLAYAdam Powell2011-02-281-2/+17
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Properly close down overlay windows when decor is detached. Delay opening popup overlays to prevent issues when restoring instance state. Change-Id: I7ff44ce65e78c0172a12a9ddfe11460c885593ca
* | | | | Add support for mouse hover and scroll wheel.Jeff Brown2011-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dispatch ACTION_HOVER_MOVE and ACTION_SCROLL through the View hierarchy as onGenericTouchEvent. Pointer events dispatched this way are delivered to the view under the pointer. Non-pointer events continue to be delivered to the focused view. Added scroll wheel support to AbsListView, ScrollView, HorizontalScrollView and WebView. Shift+VSCROLL is translated to HSCROLL as appropriate. Added logging of new pointer events in PointerLocationView. Fixed a problem in EventHub when a USB device is removed that resulted in a long stream of ENODEV errors being logged until INotify noticed the device was gone. Note that the new events are not supported by wallpapers at this time because the wallpaper engine only delivers touch events. Make all mouse buttons behave identically. (Effectively we only support one button.) Change-Id: I9ab445ffb63c813fcb07db6693987b02475f3756
* | | | | Fix 3272590: Long-press on home & menu should be same as clickPatrick Dubroy2011-02-242-31/+18
| | | | | | | | | | | | | | | | | | | | Change-Id: I151571900f4bb63910ccfb77fc64c8be9676a224
* | | | | Merge "Rotation lock fix for sensor{Landscape,Portrait} activities."Daniel Sandler2011-02-231-0/+20
|\ \ \ \ \
| * | | | | Rotation lock fix for sensor{Landscape,Portrait} activities.Daniel Sandler2011-02-221-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | E.g. if an app is sensorLandscape and the device rotation is locked to landscape, the activity should not be allowed to flip to seascape even if the device is inverted. If the rotation is locked 90° from the activity's supported orientations, we must override the lock as before, but we now suppress the sensor input (confining the activity to one of its two orientations). This best preserves the spirit of the rotation lock while still allowing the activity to run in a supported configuration. Bug: 3453407 Change-Id: I8ee255e0250ba7e4534f4622ac37b82d31cf9936
* | | | | | Merge "Be more precise about tracking fallback keys."Jeff Brown2011-02-221-1/+7
|\ \ \ \ \ \
| * | | | | | Be more precise about tracking fallback keys.Jeff Brown2011-02-221-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only initiate fallback key handling if the first key down was not handled and there is no other fallback key already in progress. This prevents spurious fallbacks from being generated when applications handle the initial down but not repeated downs or the up. Change-Id: I8a513896cf96b16dc502cd72291926d5532aa2ab
* | | | | | | Merge "KeyguardManager: Add isKeyguardLocked() and isKeyguardSecure()"Mike Lockwood2011-02-221-0/+11
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | |
| * | | | | | KeyguardManager: Add isKeyguardLocked() and isKeyguardSecure()Mike Lockwood2011-02-181-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG: 3402847 Change-Id: I725838c9d96617dd4497f9c80417cd623eceb846 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | | | | Fix the flipping orientation lock.Daniel Sandler2011-02-221-6/+15
| |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were setting ACCELEROMETER_ROTATION to 0 before putting in the proper USER_ROTATION value, and PhoneWindowManager's content observer would eagerly rotate the screen to the last locked orientation before re-rotating to the updated locked rotation. Now we set USER_ROTATION first. Additionally, the content observer is now the only place we set mUserRotation{,Mode} (previously we would race with it in setUserRotationMode()). Bug: 3425657 Change-Id: I04ba1a3631c6d985c2e406c4d148c39fb5c36216
* | | | | | Add new hover move action and scroll wheel plumbing.Jeff Brown2011-02-191-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added support for tracking the mouse position even when the mouse button is not pressed. To avoid confusing existing applications, mouse movements are reported using the new ACTION_HOVER_MOVE action when the mouse button is not pressed. Added some more plumbing for the scroll wheel axes. The values are reported to Views but they are not yet handled by the framework. Change-Id: I1706be850d25cf34e5adf880bbed5cc3265cf4b1
* | | | | | Add new axes for joysticks and mouse wheels.Jeff Brown2011-02-191-1/+12
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added API on InputDevice to query the set of axes available. Added API on KeyEvent and MotionEvent to convert keycodes and axes to symbolic name strings for diagnostic purposes. Added API on KeyEvent to query if a given key code is a gamepad button. Added a new "axis" element to key layout files to specify the mapping between raw absolute axis values and motion axis ids. Expanded the axis bitfield to 64bits to allow for future growth. Modified the Makefile for keyboard prebuilts to run the keymap validation tool during the build. Added layouts for two game controllers. Added default actions for game pad button keys. Added more tests. Fixed a bunch of bugs. Change-Id: I73f9166c3b3c5bcf4970845b58088ad467525525
* | | | | Start window manager refactoring.Dianne Hackborn2011-02-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move all of the pieces into a new com.android.server.wm package. Change-Id: I942b7bcfb84ee0f843f47d58e55ffc5a93c0da94
* | | | | Fix 3391330: Use BATTERY_STATUS_FULL as "Charged" stateJim Miller2011-02-152-16/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some devices that use LiPo batteries do not charge them to 100% as a safety margin and to preserve battery longevity. This change allows KeyguardUpdateMonitor to determine when the battery state should be reported as "Charged", provided the device sets BATTERY_STATUS_FULL in that case. Manual merge of Change-Id: Iac6cb78e24f9a696017459cc773c38ef7fe7779f Change-Id: I15c316a17108c064bf2c7e657ca908f8767be936
* | | | | Fix 3409550: Fix crash caused when max pattern attempts met.Jim Miller2011-02-141-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug introduced by a recent change in GB that fixed a memory leak and subsequent OOM crash. The code in cleanUp() is now more aggressive about releasing unused references because the view is expected to go away afterwards. However, due to the immediate callback from reportFailedUnlockAttempt(), the member variables are cleared before we reach the end of the handler. The fix is to postpone reporting the failed attempt until after the rest of the logic has completed. Change-Id: Ic35eaf17e9921213c8793d00f9008d957a290b88
* | | | | Fix bug 2955651 - can open normal menu during action modesAdam Powell2011-02-101-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prevent the usual menu pipeline from trying to open the action bar overflow menu when the action bar is not visible. Change-Id: I0708d142ad271368baa79351b97aad1533636fe7
* | | | | am 2e4b9985: am 6354dd0b: Merge "Fix 3403858: Remove lock icons from status1 ↵Jim Miller2011-01-281-4/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | area." into honeycomb * commit '2e4b9985dba629eac5662c32a6684fb7b880aeff': Fix 3403858: Remove lock icons from status1 area.
| * \ \ \ \ am 6354dd0b: Merge "Fix 3403858: Remove lock icons from status1 area." into ↵Jim Miller2011-01-281-4/+4
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | honeycomb * commit '6354dd0b3e507b2afebc5ba41cd57866ade5ba94': Fix 3403858: Remove lock icons from status1 area.
| | * | | | Fix 3403858: Remove lock icons from status1 area.Jim Miller2011-01-281-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ib311f7a9dd4c46965263b3cf72994aab5d2dfb0d
* | | | | | am d6874a10: am cfd0bafd: Merge changes Iaa7bc042,Icc312fc9,I50ba06ed into ↵Joe Onorato2011-01-281-0/+7
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | honeycomb * commit 'd6874a105ee584b1dc60aae2f2af7c78ee875114': Make keyguard also ask to turn the back button off, now that it is controlled separately. Allow independent control of the back and the other navigation buttons. Allow the status bar disable flags to be used as View's system ui visibility fields.
| * | | | | am cfd0bafd: Merge changes Iaa7bc042,Icc312fc9,I50ba06ed into honeycombJoe Onorato2011-01-281-0/+7
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'cfd0bafdebf1fccd3f5a0baed5cad8a539546e9b': Make keyguard also ask to turn the back button off, now that it is controlled separately. Allow independent control of the back and the other navigation buttons. Allow the status bar disable flags to be used as View's system ui visibility fields.
| | * | | | Make keyguard also ask to turn the back button off, now that it is ↵Joe Onorato2011-01-271-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | controlled separately. Bug: 3363046 Change-Id: Iaa7bc0428ae4a8f0c133fd699b762e6c4f167d63
* | | | | | am 9d925d2d: am da910fd5: Merge "Handle ActivityNotFoundException in the WM ↵Jeff Brown2011-01-261-1/+8
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | policy." into honeycomb * commit '9d925d2dfdb2a0bd89ff081c1693129f3bf85e77': Handle ActivityNotFoundException in the WM policy.
| * | | | | am da910fd5: Merge "Handle ActivityNotFoundException in the WM policy." into ↵Jeff Brown2011-01-261-1/+8
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | honeycomb * commit 'da910fd5ea024f214f806d880d86d77bf94497b5': Handle ActivityNotFoundException in the WM policy.
| | * | | | Merge "Handle ActivityNotFoundException in the WM policy." into honeycombJeff Brown2011-01-261-1/+8
| | |\ \ \ \
| | | * | | | Handle ActivityNotFoundException in the WM policy.Jeff Brown2011-01-261-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When invoking a registered shortcut for which the activity was not found, the startActivity throws ActivityNotFoundException. If this exception is not caught and handled, then the shortcut key is dispatched to the application instead of being suppressed as it should have been. Found while fixing Bug: 3396233 Change-Id: I0e8e9e3ba09dd403a901d5eae12839734be467ed
* | | | | | | am 7c77bd0e: am e193c468: Merge "Fix 3388705: Explicitly check for low ↵Joe Onorato2011-01-262-3/+6
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | battery level" into honeycomb * commit '7c77bd0e3dda93242e7dbcfb4754817894483653': Fix 3388705: Explicitly check for low battery level
| * | | | | | am e193c468: Merge "Fix 3388705: Explicitly check for low battery level" ↵Joe Onorato2011-01-262-3/+6
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into honeycomb * commit 'e193c4688f9062e1d4dba97413788b6ffa122a55': Fix 3388705: Explicitly check for low battery level
| | * | | | | Merge "Fix 3388705: Explicitly check for low battery level" into honeycombJoe Onorato2011-01-262-3/+6
| | |\ \ \ \ \ | | | |/ / / / | | |/| | | |
| | | * | | | Fix 3388705: Explicitly check for low battery levelJim Miller2011-01-262-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug in StatusView believed to be caused by seeing "invalid charger" update from BatteryService. The code normally relies on "interesting events", as determined by KeyguardUpdateMonitor. I believe something else is triggering an update (perhaps a SimStateChanged event) that updates the status without also updating StatusView.mShowingBatteryInfo and mPluggedIn. The safer way to do this is to explicitly check the battery level before telling the user the device needs to be charged. Change-Id: Ic39ed86c78a157dc9fbdef4d76a9c3db39ccafca
* | | | | | | am f35d43f9: am 2dc9c784: Merge "Fix issue #3382992: IME close animation ↵Dianne Hackborn2011-01-261-0/+16
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stutters from URL bar" into honeycomb * commit 'f35d43f90b9e4553343a59b217430aaba91b0d1f': Fix issue #3382992: IME close animation stutters from URL bar
| * | | | | | am 2dc9c784: Merge "Fix issue #3382992: IME close animation stutters from ↵Dianne Hackborn2011-01-261-0/+16
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | URL bar" into honeycomb * commit '2dc9c784b2fab67a8233318f559e65f444bf0c97': Fix issue #3382992: IME close animation stutters from URL bar
| | * | | | | Merge "Fix issue #3382992: IME close animation stutters from URL bar" into ↵Dianne Hackborn2011-01-261-0/+16
| | |\ \ \ \ \ | | | |/ / / / | | |/| | | | | | | | | | | honeycomb
| | | * | | | Fix issue #3382992: IME close animation stutters from URL barDianne Hackborn2011-01-261-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Gross hack is grosser. Change-Id: I0a34bf1d7c16c547402318f24776a5f7e8b7552b
* | | | | | | am a4a5ec5e: am 1aadb210: Merge changes I48392c75,Id09437a4,I4a0aa878 into ↵Joe Onorato2011-01-261-8/+4
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | honeycomb * commit 'a4a5ec5e748f99c40301c9c422b3d36cb44c6081': Expose the window flags for lights out mode. Make TabletStatusBar call into StatusBarManagerService when it goes out of lights out mode on its own. Make FLAG_FULLSCREEN not go into lights out mode anymore.