763 Commits

Author SHA1 Message Date
Baligh Uddin
0699cadcb4 Merge "Import translations. DO NOT MERGE" into lmp-dev 2014-08-25 16:16:06 +00:00
Jorim Jaggi
20060091e2 Merge "Fix password unlock method" into lmp-dev 2014-08-25 16:09:23 +00:00
Jorim Jaggi
e60982f536 Merge "Fix invisible security method" into lmp-dev 2014-08-25 16:09:12 +00:00
Jorim Jaggi
e070018b3e Fix password unlock method
- Update layouts/assets to material
- Fix that the virtual keyboard didn't always come up
- Fix window layout of status bar window, so it's above the IME when
  on Keyguard

Bug: 16957208
Change-Id: I1785af9ac73103abe6cd9968ed27582fbfc9a1d9
2014-08-25 17:21:05 +02:00
Jorim Jaggi
fb28c0e129 Fix invisible security method
Also fixes a bug where notification guts couldn't be launched from
Keyguard.

Bug: 17162095
Change-Id: I50395065e568ca01e837b0540d5edfd8bbd5797a
2014-08-25 17:20:43 +02:00
Baligh Uddin
e77eec8867 Import translations. DO NOT MERGE
Change-Id: Ie520695726af475fa6c263df03943c9435e599b6
Auto-generated-cl: translation import
2014-08-24 09:27:39 -07:00
Jim Miller
d4efaac5d5 Update TrustAgentService API after review.
Also documents timebase on related DevicePolicyManager API.

Fixes bugs 16401527 and 17046034

Change-Id: I8ee6d0055ab6f52ec71630344d3232f7875d9c1d
2014-08-22 22:43:30 +00:00
Selim Cinek
e32010ac61 Fixed focusing order for the notification panel and QS
Also fixed multiple bugs regarding focusability, where
some elements were focusable even though invisible.
The buttons, QS-tiles, QS-detail buttons, QS Header
icons and other elements now have the correct focusability
state.
The rect indicating accessibility focus is now also
correct for dual label tiles, instead of just the whole
button.
Also fixes an ordering issue where notifications were above
the camera circle when launching.
In addition the focus order of the notifications now work
correctly.

Bug: 15569922
Bug: 15682123
Bug: 17159249
Bug: 15690386
Change-Id: Ie9f7ae73397b41ce2e9a4060699301fdef3a0d01
2014-08-22 17:13:36 +02:00
Jorim Jaggi
321583d540 Content description for next alarm
Also fixes a bug where "status" was read out with TalkBack for no
good reason.

Bug: 15694080
Change-Id: Id295eb70af880d93ff928ebc337b09a8d679120d
2014-08-22 01:33:33 +02:00
Adrian Roos
4a4101714d Only show face unlock indication if it applies
When trust is not managed or the indication is set for
a different than the current user, don't show it on the
lock screen.

Bug: 17034124
Change-Id: Ia470520d6bd05db8417b3b0bb1f55894f791554e
2014-08-20 19:54:21 +00:00
Adrian Roos
49e057d7ee Play "device trusted" sound when onTrustInitiatedByUser fires
Bug: 16840500
Change-Id: I73fbe5c2cff665ccb637abb9039d57f377d9df53
2014-08-18 16:53:27 +00:00
Baligh Uddin
bc9f0bdb47 Import translations. DO NOT MERGE
Change-Id: I7f283fa34aa5503bb34e7a085268abb4743032dd
Auto-generated-cl: translation import
2014-08-15 20:21:53 -07:00
Jorim Jaggi
d7c1fae12e Don't scale notifications on Keyguard for devices < xxhdpi
Bug: 16824061
Change-Id: Iccccebcd17357764aef325df0cd220508fcf7403
2014-08-14 19:16:33 +00:00
Jorim Jaggi
e210cc8e94 Make clock larger on tablets
Also fixes "Large text" option on lockscreen and fixes Keyguard
layout on smaller devies. In addition, make sure that landscape
layout for phones isn't terrible broken (it's not pretty but
it works).

Bug: 14994495
Bug: 15589636
Bug: 16799035
Change-Id: I9ab76af41cbecd1a727d019e422765efbbd3276d
2014-08-14 12:30:14 +00:00
Jose Lima
235510e672 Made AlarmClockInfo a nested class in AlarmManager
Bug: 16959028
Change-Id: I150eaaff765d1e214c3621c1bf50162ec0dac8ec
2014-08-14 02:10:41 +00:00
Adrian Roos
2bb8bfd1e8 Dismiss bouncer when onTrustInitiatedByUser fires
Also modifies the SampleTrustAgent to allow testing of the feature
and adds the initiatedByUser flag to the dumpsys output.

Bug: 16840500
Change-Id: I4c08ddcdcbd0ab02c694a1873f73cb9a250f98d7
2014-08-13 17:24:36 +00:00
Jorim Jaggi
8de4311c51 Lockscreen launch animations
- Get rid of ActivityManager.dismissKeyguardOnNextActivity, which was
  used for two different things: Dismiss keyguard from somewhere else
  (not really necessary anymore), wait to actually dismiss keyguard
  after the window behind is drawn. Instead, introduce
  keyguardWaitingForActivityDrawn(), and change the semantics where
  necessary.
- Make wallpaper_close_enter consistent with task_open_enter and the
  Keyguard launch animation.
- Close the panel even on lockscreen when launching a notification.
- Block notification shade updates during the collapsing motion so
  notification don't play the disappear animation immediately after
  having launched a notification.

Bug: 15991916

Change-Id: I133c177b84e926c87c1a404ba93d633593fec3ab
2014-08-12 22:47:52 +00:00
Jorim Jaggi
76a1623afc Preparations for lockscreen launch animations
- Update unlock animations to new spec to make the consistent with
  lockscreen launch animations.
- Introduce disappearing motion for security views which runs before
  we actually dismiss Keyguard.
- If a window is running the un-force-hide animation, treat as it
  would have the wallpaper flag set so the wallpaper stays until
  the animation is completely done.
- Run an animation on the wallpaper if the wallpaper is going away.

Bug: 15991916
Bug: 16234603
Bug: 15326120
Change-Id: I063aa4f269ddcf75b9a705e90f0c3056b541b642
2014-08-12 20:52:26 +00:00
Jorim Jaggi
98f8530af3 Animations for Keyguard user switcher.
Bug: 15757197
Change-Id: Ia3fcc0f771cea37fc2d57181d859373c423954a7
2014-08-07 21:57:34 +00:00
Adrian Roos
3c9a350165 Pass initiatedByUser to TrustListeners
Bug: 16840500
Change-Id: I8d9bd8fe9a305066f33ac5c888d8a41ce219a6f1
2014-08-07 15:13:09 +02:00
Esteban Talavera
00f201e41b Merge "Wipe only managed profile when max number of incorrect passwords exceeded" into lmp-dev 2014-08-05 00:35:13 +00:00
Esteban Talavera
fe0f24cc92 Wipe only managed profile when max number of incorrect passwords exceeded
When the maximum number of retries that has been exceeded is not for the primary profile of the user, wipe only the profile that set that policy (e.g. the managed profile) rather than the entire user. At the moment the whole device is wiped if the max number of incorrect passwords for a managed profile is reached, as the password is shared with the USER_OWNER.

Bug: 14453697
Change-Id: I5746de104133c0ea0a51d75b9c92e1516d365d8c
2014-08-06 18:10:16 +01:00
Jorim Jaggi
e7b1252e24 Implement face unlock running indicator on Keyguard.
Icon is still dummy.

Bug: 16502879
Change-Id: Ibea1e594f322e919049a42a26ff858d2169415e7
2014-08-06 16:41:21 +02:00
Jorim Jaggi
f479792e05 New swipe-up assist animation for L.
Bug: 16307470
Bug: 14623152
Change-Id: Ib7e0381d118bda177981cc56ec9a8fb418dfb0e3
2014-08-05 15:24:26 +02:00
Adrian Roos
7861c663fd Add setManagingTrust and expose it on lockscreen
Adds a facility for trust agents to indicate if they
are ready to manage trust. Also adds an indication to
the lock icon on the lockscreen to show whether trust is
being managed.

Bug: 15518469
Bug: 16123013

Change-Id: Ie17f588aebeafe66c81dea4a69c733b0d2c72fd4
2014-07-30 12:33:33 +00:00
Jim Miller
604e7558ef Add new DevicePolicyManager API to allow fine-grained TrustAgent management
This adds a new feature that allows a device admin to specify a
whitelist of features that are allowed for the given admin.

Change-Id: I83f853318efbcf72308532d0a997374f73fa9c10
2014-07-28 21:32:01 -07:00
Adrian Roos
e32dac8ff1 Update KeyguardStatusView on user and alarm changes
Refreshes both owner info and the next alarm when
the current user changes. Also updates the next
alarm when it changes.

Bug: 16531212
Change-Id: Ibc9de5d28b2cafd6946fc56602f12769d3526728
2014-07-28 17:02:59 +02:00
Jorim Jaggi
c7dea6ee9b Implement next alarm info in expanded QS.
Also make the representation of alarm on lockscreen consistent with
QS. In addition, fix a bug where pending app transition was overriden
to make the alarm click interaction look nice.

Bug: 15392951
Bug: 15856205
Change-Id: Iacdf6a38c5c1a7484b4b328c9a3fa4d25e071c64
2014-07-28 15:34:59 +02:00
ztenghui
29e2dd95fd am 5b942f14: am 6038139c: am ed2a502c: Merge "API REVIEW: VectorDrawable" into lmp-dev
* commit '5b942f1430bc5bf6ee35455919b7985d8fdefdc2':
  API REVIEW: VectorDrawable
2014-07-25 23:42:46 +00:00
ztenghui
97f3ebf4b4 am ed2a502c: Merge "API REVIEW: VectorDrawable" into lmp-dev
* commit 'ed2a502c3fae8b4faae3a4e83b4b5e111319905f':
  API REVIEW: VectorDrawable
2014-07-25 23:32:59 +00:00
ztenghui
a95c8abb36 API REVIEW: VectorDrawable
- Merge <size> and <viewport> attributes all in to top-level <vector> tag
- Indent attributes under <group> in java doc.
- Updata android:stroke to be android:strokeColor, likewise android:fill
- Instead of android:clipToPath, make this a different clip-path tag.
- Document units of the various attributes
- Add example code for defining a VectorDrawable resource

More than that:
= Refactor the code to better support clipPath as a sub-class.
= Update all the xml files to use the new attributes and clip-path tag.

TODO:
-- Remove clipToPath, since that should happen on build break Friday.

bug:16488254

Change-Id: I6db5680ef83cb26c8f064a60fc7d6e7142974b0f
2014-07-25 23:26:41 +00:00
Adrian Roos
17a313cd53 am 6468d5c2: Merge "Restart trust agents when updated or when they are dead" into lmp-dev
* commit '6468d5c216e45b33830e00b754258e910154393e':
  Restart trust agents when updated or when they are dead
2014-07-25 13:10:45 +00:00
Adrian Roos
b42fe576f6 am 5de758d3: am f8a01f5f: am 6468d5c2: Merge "Restart trust agents when updated or when they are dead" into lmp-dev
* commit '5de758d3868b036f5067ad9f86ee7b02331e4818':
  Restart trust agents when updated or when they are dead
2014-07-25 13:22:38 +00:00
Adrian Roos
c5f95cea26 Restart trust agents when updated or when they are dead
ActivityManager restarts the trust agent service for us
when it gets killed automatically. This does not apply
when its process crashes too often or when its package
gets updated however.
To catch the update case, the trust agent connection
is removed as soon as the package disappears, and then
readded when the new package appears.
To catch the repeated crashing case, the connection is
reset if it hasn't successfully connected for several minutes.

Also adds a button to SampleTrustAgent to simulate a crash.

Bug: 16137258
Change-Id: I1b18fc7a3025e23e25ca1623b6af658d5430a94b
2014-07-24 21:44:02 +02:00
Baligh Uddin
1046f5fb05 Import translations. DO NOT MERGE
Change-Id: Ibab6e14da05435706aba41675ff5d35fed45ba5a
Auto-generated-cl: translation import
2014-07-23 19:27:05 -07:00
Adrian Roos
c41eebb723 am a727db86: Update LockPatternUtils to new alarm API
* commit 'a727db864c3e555c073d908a85d4c6ebc6eb2303':
  Update LockPatternUtils to new alarm API
2014-07-21 12:32:47 +00:00
Adrian Roos
edad7b24c1 Update LockPatternUtils to new alarm API
Change-Id: Idc6c2865b86e467e1e254452326f327f145177b0
2014-07-21 12:07:52 +00:00
Baligh Uddin
ded9fdc608 am 4aa0295b: Merge "Remove deprecated locales - DO NOT MERGE" into lmp-dev
* commit '4aa0295b355ce17e2da195907ea5dc0322837351':
  Remove deprecated locales - DO NOT MERGE
2014-07-20 02:31:48 +00:00
Jim Miller
c61c067042 am 0f6db1e8: Merge "Add DevicePolicyManager flag for fingerprint." into lmp-dev
* commit '0f6db1e823a96d14ea831ec2bccc435dd321da28':
  Add DevicePolicyManager flag for fingerprint.
2014-07-18 21:34:07 +00:00
Jim Miller
06e345089a Add DevicePolicyManager flag for fingerprint.
Change-Id: Icb3e4b98d97487179acefabc7a3b747d3d0fa23a
2014-07-18 20:48:34 +00:00
Baligh Uddin
09533e2f8d Import translations. DO NOT MERGE
Change-Id: I3a4b999f1cb648dbb980193bfe0c1a55c87b3b48
Auto-generated-cl: translation import
2014-07-22 16:40:09 +00:00
Baligh Uddin
50af6d7ae6 Remove deprecated locales - DO NOT MERGE
Change-Id: Iac5489639edae2373ed0ce92f7d0fe22629a249a
2014-07-19 13:05:12 -07:00
Baligh Uddin
16c14533cd Import translations. DO NOT MERGE
Change-Id: I18d8bb62a43325d925743f8ef6e5ce7562485cf2
Auto-generated-cl: translation import
2014-07-16 17:39:00 -07:00
John Spurlock
1e6eb17a22 QS: Introduce cast control panel.
Make cast controller more granular, at the route level, and
bind a common detail item panel to the available routes.

Fix tile icon, add connecting label.

Remove dialog presentation, no longer needed.

Add the new empty state, and add controller state to dump.

Found a bug in keyguard when in presentation mode, added
a workaround - don't crash when no owner info in keyguard
status view.

Bug:15833210
Change-Id: I19afec390eac2260bccf4a7064065b666b7bceca
2014-07-13 12:06:21 -04:00
Jim Miller
85516d028b Add new "pin complex" type to supported keyguard PINs
This adds a feature to allow DevicePolicyAdmins to prevent using
simple PINs, which are defined as those containing more than 3
repeated values. Examples include '1234', '2468', '1111', '9876', etc.

Bug 12081139

Change-Id: I4ebe1c76a48087dcd7c878e9bd79a4e3ee2a27fe
2014-07-10 01:54:49 +00:00
Santos Cordon
0bae09fdde Move showCallScreen & isInAPhoneCall to PhoneManager.
Change-Id: I852da78ae80eba120932fb7acb1e5c3db2a8f18a
2014-07-09 18:53:41 +00:00
John Spurlock
ae641c9ccd Implement new volume UI design.
- Add segmented zen-mode picker to the rocker UI.
- Add a new "no interruptions" value to the zen setting.
- Implement expandable condition subpanel on the rocker UI.
- Remove the old circle&slash icons.
- Suppress alarm sounds if in "no interruptions" mode.
- Add warning re: alarms to the condition UI.
- Allow rocker UI to display over the keyguard.
- Remove Notifications QS tile.
- Realign volume rocker to the top of the screen.
- Add support for new "days" sleepMode.
- New icon policy rules for "volume" slot.
- New important icon (star).

Associated Settings change:
  I6ed56791784968adfbd684f490dbbebed285a2dd

Bug:15831713
Change-Id: I35afe38646f04d2ba0dbac11c2c6356120a33694
2014-07-07 18:48:25 -04:00
Baligh Uddin
232c3ea990 Import translations. DO NOT MERGE
Change-Id: I03ad3342f0bcc9c07e2fe7cd7a09e816d2fe951f
Auto-generated-cl: translation import
2014-07-05 09:56:26 -07:00
Jorim Jaggi
b690f0d502 Clean up user activity handling
- Only call userActivity in down touch event
- Use normal timeout when QS is open
- Clean up old code regarding user activity in Keyguard

Change-Id: I968eeed33fef44def37b68eb1ddc63f1a531ab35
2014-07-04 03:00:29 +02:00
Selim Cinek
103a6c41c0 Fix build
Change-Id: I1ddfa0a36b05d0af9e742e083b41b23883f59c00
2014-06-30 21:34:57 +02:00