1934 Commits

Author SHA1 Message Date
Michael Jurka
76017cad4f Removing sticky widgets in lockscreen
Also adding mechanism to show a widget after
adding it

Change-Id: Ic4d49e6ef1343c38fa731b0ed2a327c55b678abf
2012-11-06 18:56:41 -08:00
Jim Miller
0928e019ce Fix emergency call area updates.
This fixes a bug where the emergency call button doesn't reflect the current
state.

Fixes bug 7482869

Change-Id: I7de2100f10a078943cb92c13d638c72e99c7a643
2012-11-06 18:43:22 -08:00
Svetoslav Ganov
ad9f594e1c am 5fff5f01: Merge "Make partially visible widget pages not important for accessibility." into jb-mr1-dev
* commit '5fff5f01f8af05164d5d7be72bdadee46360ba92':
  Make partially visible widget pages not important for accessibility.
2012-11-06 17:49:02 -08:00
Svetoslav Ganov
5fff5f01f8 Merge "Make partially visible widget pages not important for accessibility." into jb-mr1-dev 2012-11-06 17:46:44 -08:00
Sascha Prueter
bc69698c8f am 872965bb: Merge "Use a consistent policy for filtering wake keys." into jb-mr1-dev
* commit '872965bb22ba74a06b755547883c5d0de62bb956':
  Use a consistent policy for filtering wake keys.
2012-11-06 17:14:35 -08:00
Sascha Prueter
872965bb22 Merge "Use a consistent policy for filtering wake keys." into jb-mr1-dev 2012-11-06 17:11:26 -08:00
Jim Miller
51117262c8 Handle DevicePolicyManagement and safe mode when inflating widgets
Bug 7459120
Bug 7444159
Bug 7444016

Change-Id: I7966ec510da8113ac571b5a4b9dc48dd291396e8
Conflicts:
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetPager.java
2012-11-06 17:04:26 -08:00
Jeff Brown
1c2e4948a1 Use a consistent policy for filtering wake keys.
Previously wake keys were filtered differently depending on whether
a keyguard was showing.  If the user disables the keyguard then
no filtering was applied, which means that the volume key may
wake your device while in your pocket.

This change ensures that we use the same policy consistently
regardless of whether keyguard is showing.  The behavior is
otherwise the same.

Removed the "Locked" suffix on a method that was actually
being called without a lock held and which in fact does not
require it.

Bug: 7481025
Change-Id: I704c71ca009bc5437f349f858b9de7c77ea73e4b
2012-11-06 16:48:15 -08:00
Adam Powell
7136544c06 Merge "Keyguard - MultiPaneChallengeLayout measurement/layout changes" into jb-mr1-lockscreen-dev 2012-11-06 15:50:12 -08:00
Adam Powell
9d34f9db81 Keyguard - MultiPaneChallengeLayout measurement/layout changes
Have the widget view and the user switcher stay fixed when IME insets
are applied. This keeps more stability in the layouts as the IME comes
and goes.

Change-Id: I5ac62c3da6ec618280f89e87993837b3e4941ec9
2012-11-06 15:38:28 -08:00
Svetoslav Ganov
a90a18db91 Make partially visible widget pages not important for accessibility.
1. If the lockscreen has more than one widet, the left and right widget
   pages are partially on the screen and visible. Therefore they may
   take accessibility focus so the user will hear a prompt that he is
   on the partially visible widget page but will not be able to interact
   with it - confusing. This change makes partially shown windget frames
   not important for accessibility.

bug:7454355

Change-Id: I475b21e215474a4421acaec485cde64dc4e2aee5
2012-11-06 15:22:16 -08:00
Chris Wren
5fcca70d28 Merge "animating challenge closed should close the challenge." into jb-mr1-lockscreen-dev 2012-11-06 15:08:41 -08:00
Winson Chung
6cf53bb3a9 Using screen dimensions to calculate the expanded PagedView dimensions.
- Disallowing taps/interaction outside of the viewport (Bug 7459448)
- Fixing regression in incorrect pivot for Camera page
- Fixing issue where the bouncer was both scaling and shrinking widget pages.

Change-Id: Iefee62061962625b622ff2cf9a307d9429c2ad54
2012-11-06 15:07:14 -08:00
Chris Wren
da8f622b90 animating challenge closed should close the challenge.
Bug: 7486591
Change-Id: Ie19a3765c63b885539a621467c2fdc81041578a7
Proto:Id: Iedf69f2f4e97f313af0228954a75f5a494b33c88
2012-11-06 18:02:57 -05:00
Danielle Millett
2d9fae2bcf Merge "Removing callbacks in onDetachedFromWindow, fixes b/7465673" into jb-mr1-lockscreen-dev 2012-11-06 13:47:02 -08:00
Adam Cohen
7741e6209a Merge "Making sure the sticky widget logic works with music" into jb-mr1-lockscreen-dev 2012-11-06 13:40:30 -08:00
Adam Cohen
d6f8960b68 Making sure the sticky widget logic works with music
-> Also, ensure that subsequent calls to showAppropriateWidget
   don't blow away your current page.

Change-Id: I7195e35f306526c371b9546ab48bc408868eff51
2012-11-06 13:20:40 -08:00
Amith Yamasani
5eac4d852b am f763b717: Merge "Authenticate correct user\'s account when pattern fails multiple times." into jb-mr1-dev
* commit 'f763b71756d4d810e78e368fbcd56ff8a844f62c':
  Authenticate correct user's account when pattern fails multiple times.
2012-11-06 12:58:35 -08:00
Chris Wren
9f79d0db09 Merge "make challengeShowing sticky across bounce." into jb-mr1-lockscreen-dev 2012-11-06 12:56:57 -08:00
Amith Yamasani
f763b71756 Merge "Authenticate correct user's account when pattern fails multiple times." into jb-mr1-dev 2012-11-06 12:56:17 -08:00
Chris Wren
f7e47a003a Merge "specify start value: Drawables don't have getAlpha(). also, some clean up." into jb-mr1-lockscreen-dev 2012-11-06 12:39:48 -08:00
Chris Wren
03ad0c0950 make challengeShowing sticky across bounce.
Bug: 7482335
Change-Id: I94811c778c66c78655988f7ff6e4c6d59dac831d
Proto-Id: I3e10968c2a627ac392f39ffc3a6ae5fb33f78117
2012-11-06 15:17:13 -05:00
Chris Wren
50bf545842 specify start value: Drawables don't have getAlpha().
also, some clean up.

Bug: 7477513
Change-Id: Iaf05c1ae78ed4e7ba9d4cd3c713b5862a04b61f6
Proto-Id: I28d0569b88a978e1fff2acad1869bc10751dc37f
2012-11-06 15:17:12 -05:00
Danielle Millett
cade0049a7 Removing callbacks in onDetachedFromWindow, fixes b/7465673
In certain cases when lockscreen is constructed in landscape and then
switches to portrait on the phone, it inflates new views for
KeyguardHostView.  The old views never call onPause() in KeyguardFaceUnlockView
so it was still getting callbacks and starting Face Unlock multiple
times.  By removing the callbacks in onDetachedFromWindow() there won't be
multiple instances of KeyguardFaceUnlockView receiving callbacks and
starting face unlock.

Change-Id: I00d770283e83be2f4b76e00340123789a8075091
2012-11-06 14:18:59 -05:00
John Spurlock
65cbcbea8a Remove add widget transition jank (insecure).
Refactor to use common activity launcher.

Still work to do on secure.

Bug:7482560
Change-Id: I2f8869afe8172850e1cb019a051aaeb49bb8c5bc
2012-11-06 11:41:29 -05:00
John Spurlock
ae73c6908f Fix regression in camera transition.
Caused by: Ic18188a2a3caa9dfde8785611242b1c9925f7b87
  "Adding bouncer animation on PagedView."

Bug:7483566
Change-Id: Ie0b4e7cf3d4dc717cac02c7cf8a1ec24b9b860a6
2012-11-06 09:48:03 -05:00
Michael Jurka
08924d007f Merge "Supporting EXTRA_APPWIDGET_OPTIONS correctly" into jb-mr1-lockscreen-dev 2012-11-05 23:06:40 -08:00
Jim Miller
87d0366d9e Fix NPE caused by applications that try to hide keyguard while it's not showing
Fixes bug 7466360

Change-Id: Idec4c60c2ca2477e49e0f4526ae2357353d4a1e3
2012-11-05 20:28:09 -08:00
Michael Jurka
0a75b94872 Supporting EXTRA_APPWIDGET_OPTIONS correctly 2012-11-05 18:57:10 -08:00
Amith Yamasani
2c7bc26a74 Authenticate correct user's account when pattern fails multiple times.
Bug: 7473142

Provide hidden methods in AccountManager for querying accounts and
authenticating for a specific user. Lockscreen is running in the
system process. Allow only system process to access accounts across
users.

Also make sure to launch the lock settings screen on the just reset
user using startActivityAsUser()

Change-Id: Ifefc0039ba2b51396b8bd0268f36d5271a3d8676
2012-11-05 18:17:40 -08:00
Winson Chung
48275d2de9 Adding bouncer animation on PagedView. (Bug 7459660)
- Adding Remove text for translations.

Change-Id: Ic18188a2a3caa9dfde8785611242b1c9925f7b87
2012-11-05 16:15:34 -08:00
Adam Powell
9ff6d4f8db Merge "Keyguard sanity checks for when layout is not yet complete" into jb-mr1-lockscreen-dev 2012-11-05 15:52:43 -08:00
Adam Powell
5a2c5f0efa Keyguard sanity checks for when layout is not yet complete
Bug 7470163

Change-Id: I1e5f860ab39633f6c5e2046f6f18424227842406
2012-11-05 15:44:29 -08:00
Adam Cohen
6f72b1c917 Fix small widgets not showing up on tablet (issue 7471516)
Change-Id: Ie217268ef9c96512942f64b8ffd7e1d54a0ea850
2012-11-05 15:20:42 -08:00
Adam Powell
5da6430fff Optimize keyguard/IME interactions
Change the keyguard window to LAYOUT_IN_SCREEN | LAYOUT_INSET_DECOR
and make the ViewManagerHost fitSystemWindows. This eliminates the
need to resize the actual window and associated surfaces when the IME
comes and goes.

Force the widget pager to measure at the fullscreen size of the
keyguard, even if the IME is showing. This causes the widgets to clip
instead of resize, removing a few more moving parts that can be
distracting/affect performance.

Partially improves bug 7427586

Change-Id: I0d86d0ca8045f737fa97ca5d1e7f6a49f746b999
2012-11-05 14:26:33 -08:00
Chris Wren
b3f87c24ee Merge "bouncer: hide more text and frame less." into jb-mr1-lockscreen-dev 2012-11-05 12:24:11 -08:00
Steven Ross
025fb93e3e Clearing connected message in stop fixes 7401152
We can stop before the service connected message is processed, in which case
we should clear the message.  Otherwise it can cause us to start up the UI
before the camera is open, causing a crash.

I was unable to reproduce this issue, but it theoretically will happen, and
the bug report shows all the symptoms of this series of events.

Change-Id: I60d295883b08ac58ccf0f3fc6d152b8b75fe9b18
2012-11-05 13:49:31 -05:00
Chris Wren
c0ae9e67eb bouncer: hide more text and frame less.
Bug: 7464865
Change-Id: Ic8dac2582c014922143919f142fd36eb720dd3a9
Proto-Id: Id80601c9ffbdc34669b485e943b42cee237898f3
2012-11-05 13:30:26 -05:00
Amith Yamasani
d812e7a10e am fca8d258: Merge "Remove power menu user switcher" into jb-mr1-dev
* commit 'fca8d258c5699ad2703d46181c492e78e1dc87a8':
  Remove power menu user switcher
2012-11-05 09:33:57 -08:00
Amith Yamasani
fca8d258c5 Merge "Remove power menu user switcher" into jb-mr1-dev 2012-11-05 09:31:48 -08:00
John Spurlock
57f928fc4a Recover from badly behaving 3rd party secure cameras.
Bug:7473953
Change-Id: I8daf18c85d951e03fa1c98dda5f255327f96f0ba
2012-11-05 10:40:23 -05:00
Jim Miller
08898375fb Show bouncer mode for Slide mode in keyguard if widget isn't expanded
Change-Id: If225198b0c6b122fef854ddd91e49c1071b74d50
2012-11-04 19:08:40 -08:00
Adam Cohen
8caabadd02 Making challenge come back if within the same gesture you return to the original page (issue 7422999)
Change-Id: I8ada54ca39ebebc15295f93a2d9029f3b7915acb
2012-11-04 17:25:12 -08:00
Adam Cohen
7f6bb6e460 Ensure edge swiping is enforced immediately upon showing keyguard (issue 7453156)
Change-Id: I197a5304bbea904b58494a9dcb7ff95ff3c4a52b
2012-11-04 14:01:40 -08:00
Adam Cohen
25228801ba Fix issue 7468224, make sure to size pages if page changes
Change-Id: I8b3d7573eda7ed8e6a9aa479e61737fb12e26b92
2012-11-04 13:20:26 -08:00
John Spurlock
6275b3f1f3 Use better signal for camera launch.
Keyguard set-hidden instead of window lost focus.

Tested with face unlock.

Bug:7464536
Change-Id: I6171c96699d1b1ccfebd7a14179d90963fb8aa54
2012-11-04 13:48:42 -05:00
John Spurlock
37d84ae605 Render camera widget on a background thread.
Bug:7470978
Change-Id: Ieace005ac42d39ac4c146673910e6681f38e8f56
2012-11-04 11:11:47 -05:00
John Spurlock
f70239a431 Fully block user interactions when transitioning to camera.
Bug:7464265
Change-Id: I654b3d7c455f782495946988bb2e5198ff4252ec
2012-11-04 09:42:42 -05:00
Dianne Hackborn
47eb0c103a am 2ea9bae7: Fix issue #7457380: IME leaves a mark after user switching
* commit '2ea9bae7121f1df5461437d7d08fa550cdf6e0b0':
  Fix issue #7457380: IME leaves a mark after user switching
2012-11-03 23:37:36 -07:00
Adam Cohen
934d0835c8 Fixing up overscroll / hints on tablet
Change-Id: I8b0ce30b02b2d13d71826d6765d154f5ab89072b
2012-11-03 20:03:27 -07:00