summaryrefslogtreecommitdiffstats
path: root/policy
Commit message (Collapse)AuthorAgeFilesLines
* Remove the deprecated things from Config.java. These haven't been working ↵Joe Onorato2011-04-073-9/+6
| | | | | | since before 1.0. Change-Id: Ic2e8fa68797ea9d486f4117f3d82c98233cdab1e
* Merge "Minor Alt-TAB / Recent Apps Dialog improvements."Jeff Brown2011-04-062-26/+61
|\
| * Minor Alt-TAB / Recent Apps Dialog improvements.Jeff Brown2011-04-062-26/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Alt-TAB should have different semantics from the APP_SWITCH key or long-press on HOME. Accordingly, remove the fallback action for Alt-TAB and initiate the task switching behavior directly in the policy. Modified RecentApplicationsDialog to be more precise about the initial modifiers that it considers to be holding the dialog. The dialog is now dismissed by a second press on the APP_SWITCH key or by a second long press on HOME. Change-Id: Idf4d803f51103819057cb655ff3b770b7729e4be
* | Move around the HDMI switch detection so we don't try to get the status if ↵Joe Onorato2011-04-061-30/+32
|/ | | | | | we can't listen to it. Change-Id: I46f4e92923ba010f68109b6d043c817e25dfe650
* Support primitive ALT-TAB style navigation using Recent Apps.Jeff Brown2011-03-292-26/+92
| | | | Change-Id: I6dc774326c971826d160c82126fb39acb5b9124b
* Support chorded fallback keys.Jeff Brown2011-03-291-6/+11
| | | | | | | | | | | | | | | | Also be more careful about canceling fallback keys during focus transitions, when the application handles the key, or when the policy decides to do something different. Fixed a crash due to JNI CallObjectMethod returning an undefined value (not null) when an exception is thrown. Fixed a crash due to the policy trying to create a Dialog for recent apps on the dispatcher thread. It should happen on the policy's Looper instead. Bug: 4187302 Change-Id: I659a3fd1bd2325ed36d965f9beb75dacb89790c9
* Fix bug 4136005 - Extended menus do not workAdam Powell2011-03-181-1/+1
| | | | | | Fix for extended panel menus on small-screen devices. Change-Id: I7788563019648867872d88ac974bfacdce8af385
* Fix 3201849: Enable hardware acceleration in LockScreen WaveViewJim Miller2011-03-092-1/+5
| | | | Change-Id: Id64e82fe2e09ac231736d7867cd47b504d79b81b
* Remove guard preventing onDetachedFromWindow() from being calledPatrick Dubroy2011-03-071-1/+1
| | | | | | This was the cause of 3510699: Launcher has leaked IntentReceiver. Change-Id: I7d0e4662314d657f6ac06a9a9d37861f8d8ee975
* Wake screen from external HID peripherals.Jeff Brown2011-03-024-2/+45
| | | | | | | | | | | | | | | | | | Added some plumbing to enable the policy to intercept motion events when the screen is off to handle wakeup if needed. Added a basic concept of an external device to limit the scope of the wakeup policy to external devices only. The wakeup policy for internal devices should be based on explicit rules such as policy flags in key layout files. Moved isTouchEvent to native. Ensure the dispatcher sends the right event type to userActivity for non-touch pointer events like HOVER_MOVE and SCROLL. Bug: 3193114 Change-Id: I15dbd48a16810dfaf226ff7ad117d46908ca4f86
* 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
| | |\ \ \ \