1868 Commits

Author SHA1 Message Date
John Spurlock
cf69c56b83 "Fix camera widget scale-up regression." -> frameworks/base
lockhotness change-id: I69ccfa3a873943ab2e159d15937d5fb13f7acabd

Bug:7439300
Change-Id: I9e9eeae16b4e76d85a8145f3b198c22ad2e923e9
2012-10-30 09:21:16 -04:00
Adam Cohen
8a7785c7aa Cleaning up the way in which the challenge influences widget size on first measure pass
-> This change ensures that on first draw, the widget is the appropriate size if the
       security challenge is covering it.
    -> This change is in preparation for some new policy surrounding widget sizing --
       with this new policy, a given widget may need to be small even if the page is
       not being covered by the challenge. Hence, we propogate this small size to
       all the pages, whether or not they are covered. The pages will eventually
       use this.
    -> Ensure that paging hints are shown correctly (with the new sticky widget
       logic the page can be switched, and we weren't always seeing the appropriate
       hints).
    -> Also ensuring that the page is set correctly on first draw -- generally
       this change should make it so everything is right on the first draw.

Change-Id: I7e03be9b027aed0ebb0fada05652b4226fd23897
2012-10-29 22:52:15 -07:00
Danielle Millett
1108a2cb41 Added a makeInvisible call to Face Unlock
This makes it so that the view is hidden immediately when
a call to stop is made.  This also changes the call in onPause to
only stop and not go to the backup because we still want Face Unlock
to show as the view is being dragged down.

Change-Id: I66d8fc24e82dc3a0155f7d59d8ced932cb584660
2012-10-29 23:40:12 -04:00
Adam Powell
cfc3086b18 Keyguard polishing
Integrate from proto app

* New assets

* Layout changes

* Dragging behavior change for sliding challenge

* Realign camera for new padding

Change-Id: Ia177c60f59f1fc74000d95fc39b048321acf1246
2012-10-29 18:32:37 -07:00
Winson Chung
7bf93cf50f Merge "Deferring zoom out animation until after snapToPage and animateDragViewToOriginalPosition." into jb-mr1-lockscreen-dev 2012-10-29 17:53:28 -07:00
Winson Chung
9dc9923085 Deferring zoom out animation until after snapToPage and animateDragViewToOriginalPosition.
- Fixing issue where you can long press a widget to reorder while the challenge is up

Change-Id: I6ef2fa050a5ebc35d1c3e373bb27519580ebe03d
2012-10-29 17:43:51 -07:00
John Spurlock
4b976ea1af "Implement grace period for camera widget." -> frame/base
Change-Id: If3159fa43d9de6188b262f3db76575c6436e138a
2012-10-29 18:48:15 -04:00
Chris Wren
32c557cea2 post user activity on widget pager moves
Change-Id: I3aa760090cb2036045045fc01d933cf35a9bbff9
Proto-Id: I9b98788dc108333657239b07ff36ce69892a3f96
2012-10-29 11:40:05 -04:00
Jim Miller
0b728244dc Update status area and emergency call logic to match new spec
Change-Id: Ic43d9d58168166aacf2b145663dc9412b099f9c2
2012-10-28 20:04:57 -07:00
Adam Cohen
e3643138c8 Implementing new slider / widget interaction where frame goes around the widget
-> Frame resizes dynamically as the security slides
-> Widget shrinks immediately as the handle begins being brought up
-> Widget grows only upon security settling in the down position
-> Cleaned up a lot of state interaction between the security slider
   and the widget pager / pages
-> Loosened long press slop (was using Euclidean distance by accident
   instead of x crossed or y crossed logic)

Change-Id: Ic52b62e577c539327b0a65c9277300fc626cf190
2012-10-28 18:44:54 -07:00
John Spurlock
b2f21c53cf Merge "Use settings to persist sticky widget." into jb-mr1-lockscreen-dev 2012-10-28 06:39:15 -07:00
Daniel Sandler
bc676a0a1d Merge "Improved handle touch interaction." into jb-mr1-lockscreen-dev 2012-10-27 21:44:07 -07:00
Daniel Sandler
c606bf1af9 Improved handle touch interaction.
- the handle size is now entirely independent of asset size
- the handle doesn't have to have a handle graphic
- the handle top/bottom sizing can each change based on
  whether the challenge is visible
- now, the handle becomes very small when the challenge is
  visible, and does not intrude into the challenge rect
  itself (so you really need to drag downward through the
  top edge of the challenge to activate the handle and close
  the challenge)
- when the challenge is closed, the handle may be clicked to
  open

Bug: 7428215
Change-Id: I4ca7b4d5d475337295a6a7492a831abbba288ac5
Proto-Id: Ibc8997ece27ca1e0fa4deb651bb11860f95d7b23
2012-10-28 00:12:21 -04:00
Adam Cohen
47c6cfaa37 Ensuring layers are enabled on screen on and that pages are correctly transformed
Change-Id: Ifeeb9baeb3cde58d034d9988565bc2ce07c3c23a
2012-10-27 18:40:38 -07:00
Adam Cohen
f9048cd09b Polish to 3d carousel and standard pager
-> updated assets
-> Always showing outlines as per new mock
-> Enabling layers on content during fades (still need to sort out layers for frames)
-> Added carousel overscroll as per discussion with danship
-> Fading side pages in carousel
-> other small polish

Change-Id: If88686768c621a65b175a74c07cb55a69321fd97
2012-10-27 16:36:44 -07:00
John Spurlock
5f050e5c2c Use settings to persist sticky widget.
Addressing some comments:
 - Sticky widget is now saved in a user-scoped setting.
 - Removed multi-user widget from computation (obsolete).
 - Removed status widget from computation (just use right-most).
 - Removed duplicate isMusicPlaying logic.

(frameworks/base)

Change-Id: I8ef8f826677d78ac24da52adf2d99d47c8d965ac
2012-10-27 10:55:09 -04:00
Adam Powell
0a27c4865e Fix measurement bug in keyguard/MultiPaneChallengeLayout
Change-Id: Ifbcd32281f06e6c53e573998e7085d7d0542acac
2012-10-26 17:13:19 -07:00
Adam Powell
b0ed8bdb41 Merge "Keyguard - prevent slider intercept when we don't want it" into jb-mr1-lockscreen-dev 2012-10-26 16:26:20 -07:00
Winson Chung
113ca64a22 Merge "Making the PagedView full screen on tablets." into jb-mr1-lockscreen-dev 2012-10-26 16:24:02 -07:00
Adam Powell
995270f011 Keyguard - prevent slider intercept when we don't want it
Integrate from proto app

When calling code deliberately hides the slider, block drags of the
slider that may begin shortly after. This prevents the case where edge
dragging a widget can accidentally catch the slider instead.

Change-Id: I7e8e1ad4afbea0abeeb08161ddeb938c858fc4a5
2012-10-26 16:13:22 -07:00
Adam Cohen
9ec871def3 3D carousel initial stab -- paging outlines / alpha effects pending design
Change-Id: I2d9851472472a0affa9b46b2508fc7a1cb8c9779
2012-10-26 16:10:51 -07:00
Winson Chung
efc49255ad Making the PagedView full screen on tablets.
- Fixing issue where last page would not be reorderable on devices that have no camera.

Change-Id: If810d9fc95d180a54f8cec793099ccaa59b2ff15
2012-10-26 15:41:45 -07:00
Adam Powell
942a60d8a4 Merge "Fix lockscreen slider bugs" into jb-mr1-lockscreen-dev 2012-10-26 15:25:24 -07:00
Adam Powell
67625e2920 Fix lockscreen slider bugs
Integrate from proto app

* Positioning at the lower end

* Transparency animations

* Show security frame when dragging until it fully settles

Change-Id: Ic5e5b0bbaa50a123c3492b63c15df3ffba37832d
2012-10-26 15:13:00 -07:00
John Spurlock
358148e386 Implement "sticky" widget logic.
(frameworks/base)
Used after screen-off, and after launching camera.

Bug: 7418847
Change-Id: I5179e6af13be4494fde77fde2cdb5610ab888dac
2012-10-26 15:58:13 -04:00
Daniel Sandler
61426f3d83 Merge "Remove the handle headroom if the challenge is open." into jb-mr1-lockscreen-dev 2012-10-26 10:57:58 -07:00
Daniel Sandler
b42b842ee8 Remove the handle headroom if the challenge is open.
This change also moves to an absolute-distance model of
tracking the panel instead of a delta model; this allows us
to make the decision about the handle size in only one place
(when first detecting the gesture) instead of requiring us
to mix it into the arithmetic everywhere.

Also fixes the drag-too-slowly-and-the-panel-doesn't-move
problem.

Change-Id: I9bdbadd968134ad5ad67eaef9539536fb5cfe1a1
Proto-Id: I0c2f484da89f063995384c263aa9f5f03339ed7c
2012-10-26 12:50:27 -04:00
Daniel Sandler
c9a7d98999 Merge "Expand top of touchable area of challenge drag handle." into jb-mr1-lockscreen-dev 2012-10-26 08:55:17 -07:00
Daniel Sandler
1bfcc82184 Expand top of touchable area of challenge drag handle.
Change-Id: I8d471041205cd929e899903daae61d5ac948597c
Proto-Id: I5f44a135451c1cd86bbe4fb8ebd1af7609715ce3
2012-10-26 11:25:49 -04:00
Chris Wren
f0fd172a7d lock out clicks while switching.
Bug: 7416992
Change-Id: Ic0fcf809c4d9bb3515dd1168d427f8b22d5f76b6
Proto-Id: I0ea871fb012feb2e17249e37a9253861f2ef5011
2012-10-26 10:08:16 -04:00
John Spurlock
47cde77bc7 Fix camera bugs found overnight.
- Fix crash in CameraWidgetFrame after rotating to landscape
 - Fix pages drift to the left bug
 - Address Jim's comments on c/245706
 - Disable camera widget if landscape

Bug: 7419070
Bug: 7417798
Bug: 7418781
Change-Id: I5c730c7c1baf3c1872367b6392e6786578765298
2012-10-26 08:25:51 -04:00
Adam Powell
6f35209e72 Integrate assets from UX; drag/bouncer animation behavior in slider
Integrated changes from prototype app

Change-Id: I5f017431531b6d12aca89a674d865402c60c2104
2012-10-25 21:28:27 -07:00
Jim Miller
9b1db682c3 Fix issue where security view sometimes doesn't show.
Since the code is now very careful about loading layouts, we
sometimes get into a situation where the security view isn't shown.

This CL ensures the security method is shown at least once
when the view is inflated.

Change-Id: If80a46adb868d92194610eccaf9d8d6c2a2c5b3d
2012-10-25 19:39:58 -07:00
Jim Miller
a71984f3da Cleanup keyguard signals
- remove redundant signals that were causing keyguard to be rebuilt unnecessarily.
- add a check to ensure we only handle configuration changes if the view is actually showing
- only reconstruct view if screen is turning off or if the configuration changes.

Change-Id: Ia9c7830e370feed6af36cc139d4cd3c5ca0be4fd
2012-10-25 18:16:30 -07:00
Michael Jurka
1254f2f42f Persist reordering/deleting widgets on keyguard
Also, clean up warnings from unused imports

Change-Id: Id0ef12a584ffdaa8a4fb64ffe93d0dda0af398ec
2012-10-25 16:43:10 -07:00
Jim Miller
f90716c9cc Merge "Route signals from SlidingChalleng to SecurityView" into jb-mr1-lockscreen-dev 2012-10-25 14:35:20 -07:00
John Spurlock
7de482babc am 5c87f533: Merge "Revert part of fix for b/7377776 to fix b/7411356." into jb-mr1-dev
* commit '5c87f5334a7414f32e32bcfb0d6c56b07048d058':
  Revert part of fix for b/7377776 to fix b/7411356.
2012-10-25 14:17:22 -07:00
Jim Miller
bbba68a14a Route signals from SlidingChalleng to SecurityView
This maps activity on the SlidingChallenge to the security
challenge view.  Currently it calls onPause() on the SecurityView
if the view is on the move or is hidden.

Change-Id: Ide5f2200e45d8996fa91af06ac2059c3d125ea6f
2012-10-25 14:12:52 -07:00
Adam Powell
0b1b552268 Keyguard bouncer notifications; focus moving and the bouncer; slops
Integrate changes from prototype app

* Add callbacks for bouncer state changes

* Dismiss the bouncer if focus leaves the challenge area

* Increase edge swipe region, treat this as a slop for
  SlidingChallengeLayout's drag handle. (This allows edge swipes in
  the drag handle area to still page widgets instead.)

Change-Id: I732de1a8d999a34c7cc8aa8ed99e24b597f3444c
2012-10-25 13:57:19 -07:00
John Spurlock
3e98b9afe6 Revert part of fix for b/7377776 to fix b/7411356.
This means the visual glitch is possible again, but reduced since
the layout transitions are disabled.

It's more important to bring back nav buttons for incoming calls
(for the secure, screen off case).

Bug: 7411356
Change-Id: I83005a77930ec7f70a613b3396f85ab1a5fdd96c
2012-10-25 16:15:30 -04:00
John Spurlock
dcc9681b0d Manual frameworks/base merge from lockhotness (camera).
Change-Id: I8649ef77b706120a2297ddccd9bbb4d7ddf026a9
Proto-Id: Ia60ed9ee263b6053b9ca00d71fbd3ffc64a96278
2012-10-25 14:35:19 -04:00
Daniel Sandler
7bc8af3abc Haptics for PIN enter key
Change-Id: Ie9d026847a6231b89cba55baf74e795f30ac857d
2012-10-25 11:13:18 -04:00
Daniel Sandler
acb60fb577 Haptics for PIN keys.
Change-Id: I65b12a614f344faef140334658ec1e627094e05e
2012-10-25 10:46:37 -04:00
Daniel Sandler
d5692742c1 PIN pad cosmetics.
Also pull the Klondike telephone exchange letter strings out
into arrays.xml so we can override it for specific locales.

Change-Id: Idf79ff8bfd53e5a8277271cc85ac7a1784ae3b64
2012-10-25 03:30:28 -04:00
Daniel Sandler
2c1ce0564f Cleaning up password input.
Starting to try to show the IME at the right times.

Change-Id: Idc681304c309022666a03c26885a5c94ab4ec2a2
2012-10-25 01:30:00 -04:00
Jim Miller
df99b1d5d3 Merge "Fix new password view in keyguard" into jb-mr1-lockscreen-dev 2012-10-24 20:18:00 -07:00
Jim Miller
86f9637d7b Fix new password view in keyguard
The IME wasn't coming up in password mode because the base class always
returned 'false' for needsInput().

Change-Id: Ia5bf508b3e08fa6980e83103322711857af74680
2012-10-24 20:14:47 -07:00
Michael Jurka
147dfc8642 Merge "Adding ability to add multiple widgets to keyguard" into jb-mr1-lockscreen-dev 2012-10-24 18:28:21 -07:00
Michael Jurka
aa2859ae61 Adding ability to add multiple widgets to keyguard
Bug: 7381803
2012-10-24 17:41:34 -07:00
Adam Powell
eee209313d Beginnings of bouncer support; add scrims and state tracking
Integrating from prototype app

Change-Id: Ib142cf371c5997f547266d8af7e25129fb4e1343
2012-10-24 16:33:44 -07:00