22073 Commits

Author SHA1 Message Date
Dan Sandler
e79c73d626 DO NOT MERGE: Use GregorianCalendar.add() when searching for next alarm.
Never attribute to malice that which is adequately explained
by a bug, particularly one involving date math.

Bug: 26326394
Change-Id: I3483ac102c678a8852565c8ea94c06e19b3f26d8
(cherry picked from commit 8d9aea8a1870ad83d9eccba1068a1685da5e96d0)
2016-02-12 20:21:23 +00:00
Selim Cinek
4f0e1e1d09 Merge changes If981a380,I48a8f882,I4b248b2f,Id9e6ce2a,Ib5239325, ... into nyc-dev
* changes:
  Fixed a bug where custom notifications were invisible
  Fixed a transformation error when fading in views
  Fixed animation jank in notification groups
  Fixed a bug where the single line view would be invisible
  Fixed a bug where huns could be invisible
  Fixed a crash with notification children
2016-02-12 18:56:46 +00:00
Adrian Roos
3aec638a7b Add setting for allowing remote input from keyguard
Bug: 26440855
Change-Id: I539b1c7ee6a874283df1104fe0743ef0495f9510
2016-02-12 18:54:58 +00:00
Julia Reynolds
fec58c263c Show topic settings inline if user has configured topics.
Change-Id: Icf51faad61b3ae4261991691a1d679b190ea712a
2016-02-12 11:42:02 -05:00
Tomasz Mikolajewski
48599c0668 Do not show directory change animation on screen rotation.
When more than one level deep directory is opened.

Bug: 27090439
Change-Id: I73e789a820af3b710f0981ac12f5ea43cc389cf6
(cherry picked from commit f908640fd07b4734b8ef235ed2849ea20c55acab)
2016-02-12 04:24:58 +00:00
Jorim Jaggi
ec1d075e5f Fix NullPointerException
Change-Id: Ifce7af5ac6aacc04fb621f3afd707164f36ba980
2016-02-11 19:22:43 -08:00
Jorim Jaggi
e26334ba1a Merge "Handle light status bar for split-screen" into nyc-dev 2016-02-12 03:12:18 +00:00
Daichi Hirono
0abde68519 Merge "Add error message for locked device." into nyc-dev 2016-02-12 02:51:17 +00:00
Daichi Hirono
2965776ba4 Add error message for locked device.
If the remote MTP device is a smartphone, it does not provide files
until a user unlocks the device. The CL adds specific error message for
the situation.

BUG=26318917

Change-Id: Ic4c34609c55ec9c99b7b8a9143d6dae3835784e3
2016-02-11 18:45:30 -08:00
Daichi Hirono
46d537716e Merge "Open the connected device in Files app when tapping notification." into nyc-dev 2016-02-12 02:38:29 +00:00
Selim Cinek
f64044c6a4 Fixed a bug where custom notifications were invisible
Change-Id: If981a380ed7e3ef7000e245aefaf36d039e15cfa
2016-02-11 18:33:26 -08:00
Selim Cinek
6f4fcdc4e6 Fixed a transformation error when fading in views
Views could still be stuck in a old translation and
therefore the whole view looked weird.

Change-Id: I48a8f8824d8e5bdb0913a24783967a36c34797a8
2016-02-11 18:10:21 -08:00
Selim Cinek
a40915077f Fixed animation jank in notification groups
When group children are animating from single line to expanded,
the animation was jarring.

Change-Id: I4b248b2f59a842befaa0f5d5440c55f140584da2
2016-02-11 17:53:12 -08:00
Daichi Hirono
90b345138f Merge "Show specific error message for busy device." into nyc-dev 2016-02-12 01:02:53 +00:00
Daichi Hirono
f4fe20ad71 Merge "Returns "application/octet-stream" for unknown types of MTP files." into nyc-dev 2016-02-12 00:51:29 +00:00
Selim Cinek
de33a4ad56 Fixed a bug where the single line view would be invisible
When updating a child notification, the single line view was
removed leading to invisible group children.

Bug: 27137268
Change-Id: Id9e6ce2ae081ec746118f4367644ea8843d51f10
2016-02-11 16:43:41 -08:00
Felipe Leme
e2dd62ea5a Merge "Split bugreport identifier into id and pid." into nyc-dev 2016-02-12 00:40:40 +00:00
Daichi Hirono
1e3744441a Open the connected device in Files app when tapping notification.
Previously when tapping the MTP devce notification, MtpDocumentsProvider
opens home direcotry in Files app. The CL adds data URI of connected
device to the intent so that MtpDocumentsProvider can open the connected
device's root in Files app.

BUG=26611224
Change-Id: I97ecd6669852cd2fc875294cbcbf5660fbfaa0da
2016-02-11 16:36:49 -08:00
Winson Chung
34f5c494df Merge changes If90955f4,I9fa48c06,Ib4681a43 into nyc-dev
* changes:
  Adding view debug annotations to simplifying debugging state.
  Disallow launching third party apps in safe mode.
  Drawing thumbnail background color for empty space in view.
2016-02-12 00:29:43 +00:00
Selim Cinek
3362c1306e Fixed a bug where huns could be invisible
When an unpinned fullscreen notification was in the shade
all successive normal huns would be invisible.
Also removed the sorted entries as it could lead to stale
data and crashes.

Bug: 27136766
Change-Id: Ib5239325e452a2b949cb4a4b8478d231189c4722
2016-02-11 15:43:03 -08:00
Selim Cinek
322ec7e279 Fixed a crash with notification children
When moving children between parents, Sysui could crash
because it wasn't removed yet properly from the old parent.
We are now doing this sequencially, i.e first removing the
children and then adding the new ones.

Bug: 27137301
Change-Id: I1925662a9d7f224f133827d524d080994753ba25
2016-02-11 14:47:06 -08:00
Ben Kwa
c345079b74 Handle spacebar events.
Space/Shift-space scrolls the files list up/down.

BUG=25195555

This is a re-land of ag/864217.

Change-Id: I496d43d8a0c0833493ec2d5b36ecb7cbeb619853
2016-02-11 13:39:33 -08:00
Ben Kwa
d3107e8894 Merge "Revert "Handle spacebar events."" into nyc-dev 2016-02-11 21:20:08 +00:00
Ben Kwa
be660049bb Revert "Handle spacebar events."
This reverts commit ef8eb5c9dd45cc94219d6e889d026f53ecc5c7e9.

Change-Id: I6c473d09eae8289da1deb86a8f043aa88de4c6f0
2016-02-11 21:19:54 +00:00
Ben Kwa
d7211c85d6 Make left- and right- arrow jump rows in grid mode.
Like ChromeOS.  Pressing left at the beginning of a row of files in grid
mode, will move focus up to the end of the preceding row.  Analogous
behaviour for right-arrow at the end of a row.

BUG=27127282

Change-Id: I3b36c1da6559aaf01558807913502f8ab87a9e6e
(cherry picked from commit f55e5b714d4adc9f343ab7e691a6846ffa6cd7b1)
2016-02-11 21:11:45 +00:00
Ben Kwa
4a993b240d Merge "Allow multiple range selections using the shift key." into nyc-dev 2016-02-11 21:08:53 +00:00
Ben Kwa
844674f99f Merge "Handle shift-enter key events." into nyc-dev 2016-02-11 21:07:12 +00:00
Ben Kwa
83df50f997 Allow multiple range selections using the shift key.
- Introduce an API on MultiSelectManager for starting/ending range
  selections.

- Navigation with the shift key pressed extends the current range
  selection (or starts a new one, if one isn't in progress).

- Navigation without the shift key pressed will end the current range
  selection.

BUG=27124371

Change-Id: Ieddf3ee816812bf5210463536fe63179ef1809ad
(cherry picked from commit 09792ef1506f4cbd944e16651508be435d92c5be)
2016-02-11 21:01:04 +00:00
Ben Kwa
09eb77be9a Handle shift-enter key events.
Shift-enter toggles selection on the focused item.

BUG=25196158

Change-Id: I261c249cdf1856d134910a4767b0daf8963d5b68
(cherry picked from commit e0e36df29484bf6b0b34fb958701ed7ddd96a40a)
2016-02-11 20:56:09 +00:00
Ben Kwa
ef8eb5c9dd Handle spacebar events.
Space/Shift-space scrolls the files list up/down.

BUG=25195555

Change-Id: Ib6351831db77a930920610106cc1da2b710532c6
(cherry picked from commit 870fea3b03d94335b9c7234103bde8fbf813743f)
2016-02-11 20:55:29 +00:00
Daichi Hirono
c18f8076eb Show specific error message for busy device.
When MTP device is busy (e.g. used by other application),
MtpDocumentsProvider cannot open the device. The CL introduces specific
error message for the case.

BUG=26694828

Change-Id: Iffee2e1c554e4089601186469ff0eac2fd04decd
2016-02-11 12:45:55 -08:00
Daichi Hirono
ef2feefab7 Returns "application/octet-stream" for unknown types of MTP files.
According to DocumentsContract mime type field is required.
MtpDocumentsProvider should returns mime type for unknown types of MTP
files as well.

BUG=27148801

Change-Id: I7e4b832f6c00f438cf90190c074f204fdedceef5
2016-02-11 12:41:39 -08:00
Jorim Jaggi
8690558241 Handle light status bar for split-screen
In split-screen the light status bar flag for one side of the
status bar can be different from the other side.
SYSTEM_UI_FLAG_LIGHT_STATUS_BAR is now reported for both
the fullscreen stack and docked stack, but not anymore in the
"default" SysUI visibility field when reporting a visibility
change to SystemUI. The change also reports the docked stack
and the fullscreen stack bounds, so SystemUI can guard tinting
the icons on whether the icon is one of the areas.

When calculating the light status bar flag in PWM, we keep track
of the top fullscreen opaque window state for the docked and
fullscreen stack separately.

Bug: 24365214
Change-Id: Id2240a86d75bf96e0138ec7652a4793859f56e3c
2016-02-11 12:18:40 -08:00
Winson
231bc9c54a Adding view debug annotations to simplifying debugging state.
Change-Id: If90955f44be55ff09208998214bc1bb47f93a872
2016-02-11 12:01:50 -08:00
Winson
8be1634a54 Disallow launching third party apps in safe mode.
- Also desaturates out the disabled task

Bug: 25785926
Change-Id: I9fa48c062cfaf6d9cb60a9e49291ca6e15c6b343
2016-02-11 11:58:56 -08:00
Winson Chung
1af8eda6ea Drawing thumbnail background color for empty space in view.
Change-Id: I2e8dfbe9c11a61876956658eff0674adb26d855d

Signed-off-by: Winson <winsonc@google.com>
2016-02-11 11:48:33 -08:00
Jason Monk
c8bac80390 Merge "Guard against monkey crash" into nyc-dev 2016-02-11 16:41:25 +00:00
Jason Monk
da63ceb785 Guard against monkey crash
Bug: 27099281
Change-Id: I58951ee7ff5f14f5c2d60e450ed3b0fa7bf31e8e
2016-02-11 11:37:24 -05:00
Ben Kwa
2036dad877 Introduce ChromeOS-style keyboard navigation.
- Turn the DirectoryFragment (DF) and the RootsFragment (RF) into
  top-level views, and allow switching between them via the tab key.

- Disallow arrow-key navigation from switching the user between the
  DF and RF.

- When nothing is explicitly focused, make navigation keys focus the
  DF.  This makes it so that if a user opens DocumentsUI and just starts
  pressing arrow keys, they'll navigate in the directory listing.

- When restoring focus on the DF and RF, remember the last thing that
  was focused, and restore focus on that thing.

BUG=25195767
BUG=25121367

Change-Id: I00e20cbdbe9edfe269fb356440a93ef5d67c5298
(cherry picked from commit 1c9f9222e56482682461013b703590c5c9471018)
2016-02-11 14:16:04 +00:00
Michal Karpinski
ed5c8f0216 Log strength of auth method used into security log
As approved by Android Security team, added logging of
strength of auth method as well as logging of fingerprint
keyguard actions.

Bug: 26841997
Change-Id: Ic8e3f125f775a7585fe56003f4c6442390edea61
2016-02-11 10:36:56 +00:00
Selim Cinek
738a2b67f1 Merge "Notifications now support runtime density changes" into nyc-dev 2016-02-11 04:45:49 +00:00
Selim Cinek
01af334b70 Notifications now support runtime density changes
We reinflate notifications whenever the density or the
font size changes.

Bug: 25613008
Change-Id: I61d48e477b1865e2124d055e537a592aceb667f2
2016-02-10 19:57:27 -08:00
Selim Cinek
8a7f35e4ef Merge "Improved the heads up logic to launch fullscreen intents less" into nyc-dev 2016-02-11 03:41:38 +00:00
Jason Monk
ee4ce4233c Merge changes I8a56254b,I618e363c into nyc-dev
* changes:
  Fix QS input handling
  Extract QS animations to QSContainer
2016-02-10 21:56:17 +00:00
Jason Monk
16ac3774e3 Fix QS input handling
Remove the observable scroll view and put the qs container in its
place.  Also update the NotificationStackScrollerLayout to be aware
of the container and not eat up its touches as scroll events.

Change-Id: I8a56254bf8e76a7cdd63bd637a974c1f3aa49482
2016-02-10 16:54:16 -05:00
Jason Monk
26a3f15a2c Merge "Move editing from long press to edit button" into nyc-dev 2016-02-10 21:47:55 +00:00
Jason Monk
2142843ea5 Move editing from long press to edit button
Change-Id: I2bd0e2febbde4babe05545c79d585280a7b2fb14
2016-02-10 16:44:51 -05:00
Jason Monk
e1be342615 Extract QS animations to QSContainer
Move some of the logic for QS animations into QSContainer with a
stable interface for NotificationPanelView to call.

This also moves the QSPanel out of the scroll container and up
to live in with the header (QSContainer is the parent of both
the header and the QSPanel now).

Change-Id: I618e363ccca2be9197a4a75256e0b7841ca2c61c
2016-02-10 15:42:39 -05:00
Ritesh Reddy
f61a847881 Merge "Enabled Network Policy Backup/Restore." into mm-wireless-dev
am: d9c4bc0c4d

* commit 'd9c4bc0c4db7a8b16d8ea0f58ed0615efc167f47':
  Enabled Network Policy Backup/Restore.
2016-02-10 19:46:20 +00:00
Aga Wronska
405da7c59b Merge "Improve document rename experience - Initially select the name of the file without extension - Trigger renaming action when software keyboard Done button pressed - Trigger creating new directory when software kayboard Done button pressed" into nyc-dev 2016-02-10 18:19:50 +00:00