9587 Commits

Author SHA1 Message Date
Geoff Mendal
b300d6930a Import translations. DO NOT MERGE
Change-Id: Ib81a9725011568bacb0250dac5a59b50450209fc
Auto-generated-cl: translation import
2015-04-16 05:54:43 -07:00
John Spurlock
dd5b1f5f2f Mark sysui string reference as untranslatable.
Bug: 19260237
Change-Id: I4a2267462ece1d21ced0156cb1e99be913ea2ada
2015-04-16 06:04:00 -04:00
Adrian Roos
f253eeb9d3 Fix lockscreen bugs with SHOW_WHEN_LOCKED
When unlocking to a SHOW_WHEN_LOCKED activity by clicking
a notification, we don't get a the startKeyguardExitAnimation
because Keyguard is not actually going away. Instead, we start
it ourselves.

Also fixes the bug where restarting Keyguard while it's occluded
lead to an inconsistent state where the user got stuck on the
lockscreen.

Bug: 16481924
Change-Id: Iebc5bdd1287bbb81415ae01c7428850acc16c53f
2015-04-16 01:49:25 +00:00
Selim Cinek
dc3e29c390 Merge changes from topic 'headsup'
* changes:
  Finishing up heads up changes
  Added the heads up scrim back
  Fixed a bug where a notification could not be collapsed
  Made ranking consistent with heads Up manager
  Fixed a bug where the intrinsic height was not updated
  Fixed more heads up bugs
  More Heads Up bug fixes
  Adapted the interpolator of the heads up appear motion
  Treating headsUpViews now as real notification citizen
  Handling a few more border cases with HUNs
  Integrate Heads-up notifications into the shade
  Fixed a bug with notification clipping
2015-04-15 21:44:03 +00:00
Selim Cinek
d853586993 Finishing up heads up changes
Fixed a bug where the QS could be expanded when collapsed.
More refactorings, removed todos

Change-Id: I6dea262456c529d7f4a8a4a6a4fdc0e46597bafe
2015-04-15 13:14:34 -07:00
Selim Cinek
aac932591d Added the heads up scrim back
Also fixed a bug where the notification panel would
keep a hardware layer.
Also improved the interal structure of the HeadsUpManager

Change-Id: I635e4a89b0a32573c26515cc3e65e142d77593ec
2015-04-15 13:14:27 -07:00
Selim Cinek
e53e6bbb82 Fixed a bug where a notification could not be collapsed
Also fixed a bug where the content height was wrongly
calculated when the dismissview was invisible.
Finally refined the appearance when more then 2 huns
are present.
Change-Id: If66243beef2383f2cb36961deffcb0a42bbcd177
2015-04-15 13:11:14 -07:00
Selim Cinek
fbe9a44a15 Made ranking consistent with heads Up manager
Change-Id: I8e83c2e7e5a5635c1c0fb83cf2b4614965336786
2015-04-15 13:07:36 -07:00
Selim Cinek
c80fdb11f5 Fixed a bug where the intrinsic height was not updated
Change-Id: I2c171aff6eb30418121f0ca77e71045b0b61c9b2
2015-04-15 12:58:40 -07:00
Selim Cinek
1f3f544f21 Fixed more heads up bugs
Change-Id: Ibfb6656deb3bc588fc9292a672a5e4d4d1de4d23
2015-04-15 12:58:39 -07:00
Selim Cinek
d2281151ee More Heads Up bug fixes
Heads-up now has the correct height while expanding
and collapsing the shade.
Fading out while collapsing the shade was restored.
Fixed a bug where translation was not correctly replaced
with paddingOffset.

Change-Id: I9f1b28856b3ca52543460e7ddde84a1a7eb79cf2
2015-04-15 12:58:39 -07:00
Selim Cinek
a7840af09d Adapted the interpolator of the heads up appear motion
Change-Id: Ic67f481c7a14a4aa4c965f4739f7574f8f4f05a7
2015-04-15 12:58:38 -07:00
Selim Cinek
8d490d427c Treating headsUpViews now as real notification citizen
Previously headsUpViews simply were replacing the content
views, now they have their seperate space.

Change-Id: I6b094975cdfdf5e082d546dd7a0bf633335f4ef8
2015-04-15 12:58:29 -07:00
Selim Cinek
a59ecc3401 Handling a few more border cases with HUNs
Also does sorting correctly now.
The status bar now allows touches below when a
heads-up is on.
Also fixes a few flashes when a heads up was
dismissed or appeared.

Change-Id: I4d90a07333ad2e5ea2a13704cdc9d9184716681a
2015-04-15 12:50:12 -07:00
Selim Cinek
b8f09cf553 Integrate Heads-up notifications into the shade
Change-Id: I4ca0fb4e76e7c974490538c168da0564fe97e0ae
2015-04-15 12:32:00 -07:00
Selim Cinek
ba67acff25 Fixed a bug with notification clipping
When rotating / layouting the clipping was not
updated which lead to a bug.

Change-Id: I614ad3948ae38a184276d0fa1d38b3888948fc61
2015-04-15 11:11:58 -07:00
Geoff Mendal
366c18b74d Import translations. DO NOT MERGE
Change-Id: I44ddb37b2a54af8c7b9861f362a5a2af2ded02e7
Auto-generated-cl: translation import
2015-04-15 05:54:00 -07:00
Lorenzo Colitti
e9a88a3844 Merge changes from topic 'no_internet'
* changes:
  Add a noInternetAccessExpected boolean to WifiConfiguration.
  Prompt if a network without an Internet connection is selected
  Give SystemUI the OVERRIDE_WIFI_CONFIG permission.
  Add an UNKNOWN_UID constant to WifiConfiguration.
2015-04-15 11:48:22 +00:00
Jim Miller
485a3cb2bc Merge "Several fixes to Fingerprint code after large merge - route fingerprint enrollment auth token - replace "processed" event with "authenticated" - fix type-o in strings.xml" 2015-04-15 05:25:24 +00:00
Jeff Sharkey
d95d3bfb2b Persist nickname and flags for volumes.
StorageManager now offers to persist a nickname and user flags for
active volumes.  This metadata is kept around and spliced into
any future VolumeInfo when the same UUID is present.  Current user
flags indicate "initialized" and "snoozed" states to control how
notifications are shown.

Notify listeners when metadata changes, and kick public notification
after a volume is initialized.  Make unique PendingIntents when
multiple volumes are active.

Beginnings of plumbing to ask for missing volumes.

Offer explicit accessors for VolumeInfo and DiskInfo to give better
path to documentation and deprecation.

Bug: 19993667
Change-Id: I3d8b68be83f43ba992d21d51cad5b775776d681c
2015-04-14 21:39:47 -07:00
Jim Miller
fe6439f02d Several fixes to Fingerprint code after large merge
- route fingerprint enrollment auth token
- replace "processed" event with "authenticated"
- fix type-o in strings.xml

Change-Id: If06b4438c94fd7fca07a8b7b1b5fa16dd94b3831
2015-04-14 20:47:55 -07:00
Lorenzo Colitti
e14627e4f3 Give SystemUI the OVERRIDE_WIFI_CONFIG permission.
Settings already has this permission, and SystemUI needs it as
well so that the changes made by Wi-Fi Quick Settings are
recognized to be made by the system and not just by any app.

Bug: 20081183
Change-Id: Ie1760fc24f5f74839718fff9763f38c80cdda3ff
2015-04-15 12:33:13 +09:00
Jeff Sharkey
56bd312913 Checkpoint of storage notifications.
Rewrite of storage notifications to support multiple disks/volumes,
handling the state of each independently.  Update strings to match
spec.  Include actions to jump into wizard when adoptable, otherwise
browse or eject.

Move browse intent creation to common place on VolumeInfo.  Also add
well-formed extra names.  VolumeInfo now carries the parent disk ID
along with it to avoid races when unmounting.

Bug: 19993667
Change-Id: I236ddc7f8112490355f438b828bec8d40c331fdd
2015-04-14 16:46:27 -07:00
John Spurlock
1740c625c6 Merge "Zen: Enter alarms only on volume down from vibrate." 2015-04-14 20:00:42 +00:00
John Spurlock
691ae9dc25 Merge "Zen: Add new user introduction msg for "Priority only"." 2015-04-14 20:00:22 +00:00
Fyodor Kupolov
a08c444d1d Merge "Display a notification for a new guest" 2015-04-14 17:43:45 +00:00
Fyodor Kupolov
f4d6ad2663 Display a notification for a new guest
Display a notification for a new guest, which includes information that they
are using the device as a guest and how to remove guest.

Bug: 16956833
Change-Id: I21711949d3a80eaca47251faa6ee0cf04b5bf3e6
2015-04-14 10:36:53 -07:00
Kenny Guy
4fc266bbef Merge "Display toast when screen is unlocked to a work app." 2015-04-14 14:20:45 +00:00
John Spurlock
f55b7f2fb6 Zen: Add new user introduction msg for "Priority only".
Bug: 19260237
Change-Id: I3b5785befc05685c7f676e918710fb7500221172
2015-04-14 10:18:34 -04:00
John Spurlock
b02c744f05 Zen: Enter alarms only on volume down from vibrate.
And vice versa (when dialog is showing).

Also make alarms only the default mode when DND is switched on
via the switch.

Bug: 19260237
Change-Id: I16e4a27944bc8245bb2beed84c0421d493b0b876
2015-04-14 09:36:28 -04:00
Kenny Guy
de77be6311 Merge "Show a status bar icon for managed profile activities." 2015-04-14 11:53:00 +00:00
Adam Powell
2442841819 Implement ChooserTargetService querying for ChooserActivity
First cut at querying services provided by apps that offer
ChooserTargetServices. This first implementation provides no ranking.

Bind to a limit of 5 ChooserTargetServices and offer the
ChooserTargets they provide as options in the system
ChooserActivity. The chooser now presents targets as a grid and
displays the activity icon from the referrer activity.

Change-Id: I45db829f184fc78d4f18d42b2a60b25bc301eba8
2015-04-13 16:51:16 -07:00
Kenny Guy
3094d4a1c0 Show a status bar icon for managed profile activities.
Show a work icon in the status bar when the foreground
activity is from an app in the managed profile.

Bug: 19532434
Change-Id: Ie96935c089d26f44bc5b1b8fcf60c83a32283a0f
2015-04-13 20:58:44 +00:00
Kenny Guy
dae30d5dd3 Display toast when screen is unlocked to a work app.
Display a toast when the screen is unlocked and an
app from a managed profile is in the foreground.

Bug: 19539451
Bug: 19532135

Change-Id: Ic57e235b05ac4f47d2c944175461294dff083724
2015-04-13 16:49:55 +01:00
Geoff Mendal
9c240f37e8 Import translations. DO NOT MERGE
Change-Id: Ib5334deb0b529ee02756b9e31e4ff89b59ed1718
Auto-generated-cl: translation import
2015-04-13 05:58:15 -07:00
Jim Miller
ce7eb6daf0 Clean up FingerprintManager API and make it public.
Change-Id: I6a99dccd485c053cb47dbd0ec08b41a2dc5b17c8
2015-04-11 12:34:56 -07:00
Geoff Mendal
b85f308da0 Import translations. DO NOT MERGE
Change-Id: I5b2374a7fbcf6354c1a5a20a30ecf1d3c5f70ae1
Auto-generated-cl: translation import
2015-04-10 23:25:52 -07:00
Jorim Jaggi
e144bb15d0 Merge "Keyguard FP UX update" 2015-04-10 21:46:06 +00:00
Jorim Jaggi
3c84e2f2a1 Merge "Enable incremental SysUI builds on -eng targets" 2015-04-10 21:44:12 +00:00
Jorim Jaggi
27c9b74350 Keyguard FP UX update
- Add scanning and error states to UI.
- Do not delay dismissing the panel when authenticating via
fingerprint.

Change-Id: I82e71c554c56e53ddf0677dca3e6909f7cedd59d
2015-04-10 14:43:08 -07:00
Jorim Jaggi
3557e0ebee Enable incremental SysUI builds on -eng targets
Ideally, we would also do incremental builds on userdebug targets,
but this introduces a risk that userdebug builds would be different
to user builds. So we only do it on eng builds for now.

Change-Id: I2778d270052cf26e6c767f1847991a425d8bbd12
2015-04-10 14:41:17 -07:00
Andrew Flynn
82862573bc Consolidate SystemUI SharedPreferences.
Makes it easier to use from any place and gets us type-safety.

Change-Id: I472e340e8332d9a173335b6f337525d58d801881
2015-04-10 09:54:17 -04:00
John Spurlock
11145938bb Merge "Volume: Update media bluetooth icons." 2015-04-10 02:07:52 +00:00
John Spurlock
f15ef112e7 Volume: Update media bluetooth icons.
Note + bt logo.

Bug: 19260237
Change-Id: I32cb497505f7dea94d761637064f8f8e585ffa94
2015-04-09 22:06:10 -04:00
John Spurlock
b2278d6571 An update on Downtime.
The update is that Downtime is obsolete.  Replaced by the
ability to define multiple named schedule calendars.

 - Make changes to ZenModeConfig to properly model manual
   and automatic rules.
 - Refactor the zen mode helper (and supporting classes) to
   properly handle / report multiple claims on zen mode.
   The "manual" rule (specified by the user in the UI) vs
   one or more automatic rules.
 - Automatic rules are still backed by condition providers,
   but the layering is now cleaner.  ConditionProviders is now
   completely generic, has no ties to zen mode.
 - Specifically, the new layering for zen mode (below noman) is:
   ZenModeHelper: Source of truth for zen state
     ZenModeFiltering: Subhelper dedicated to filtering rules.
     ZenModeConditions: Subhelper dedicated to managing automatic rules.
       ConditionProviders:  Underlying engine for reporting named boolean state.
 - Migration story for users with existing downtime config, migrated
   to a single new calendar named downtime.
 - For users with no existing downtime, two default calendars are created
   for weeknights + weekends (icu4j for all locales will be done in a followup).
 - Remove obsolete DowntimeConditionProvider/NextAlarmConditionProvider and tracking.
 - Clean up obsolete resources.
 - Add common zen summary description string computation.
 - Add proper noman wrappers for the new model.
 - Change the semantics of the global zen setting.  It is now read-only.  Setters
   must call noman, added a "reason" to all calls for better attribution.
 - Update zenmodepanel + volumedialog to the new model.
 - Display the one or more automatic rules in the new zen footer summary.
 - "Snooze" the automatic rules when the user explicitly turns zen off.

Bug: 20064962
Change-Id: Idd9deb865a6035ad0cfae660198dccb517e6d7cc
2015-04-09 21:45:08 -04:00
Jorim Jaggi
f3bf1ee431 Fix some jank when expanding quick settings
Change-Id: Iba0ceb8b6085bec9fdee588eead073527a44540d
2015-04-08 14:41:43 -07:00
Geoff Mendal
ec232e3621 Import translations. DO NOT MERGE
Change-Id: I2e860f32f21ae0449ca98dda3519e4733d2d614e
Auto-generated-cl: translation import
2015-04-08 06:13:49 -07:00
Jim Miller
c68b9d6acc am 5dd10bd1: am e2e945a8: am 40c4021a: Merge "third part apps can disable the secret lockscreen"
* commit '5dd10bd11a524e224a88615444bf8b52b1ec11d6':
  third part apps can disable the secret lockscreen
2015-04-07 23:18:57 +00:00
Jim Miller
e2e945a887 am 40c4021a: Merge "third part apps can disable the secret lockscreen"
* commit '40c4021a70c56bcc4d6f6569d795dff52ab4e369':
  third part apps can disable the secret lockscreen
2015-04-07 22:58:53 +00:00
Jim Miller
40c4021a70 Merge "third part apps can disable the secret lockscreen" 2015-04-07 22:41:19 +00:00