22137 Commits

Author SHA1 Message Date
Akshay Thakker
b9f686968c Merge "Fix missing observer reply callbacks" into mnc-dr-dev am: d1811e07d5 am: a3798d7a92
am: d6de840957

* commit 'd6de84095735a32e160f5ae9ce93489b0b19eeed':
  Fix missing observer reply callbacks
2016-02-14 22:48:31 +00:00
Akshay Thakker
d6de840957 Merge "Fix missing observer reply callbacks" into mnc-dr-dev am: d1811e07d5
am: a3798d7a92

* commit 'a3798d7a92ecefe1117b99a2e0f5edce1644f1d0':
  Fix missing observer reply callbacks
2016-02-14 22:37:55 +00:00
Akshay Thakker
a3798d7a92 Merge "Fix missing observer reply callbacks" into mnc-dr-dev
am: d1811e07d5

* commit 'd1811e07d5ee751cbdc37a3ff84e2e010ead7adf':
  Fix missing observer reply callbacks
2016-02-14 22:30:47 +00:00
Dan Sandler
4baa901205 DO NOT MERGE: Use GregorianCalendar.add() when searching for next alarm.
am: e79c73d626

* commit 'e79c73d6267681dbbc8bd4eccf9a79e3017f6fe9':
  DO NOT MERGE: Use GregorianCalendar.add() when searching for next alarm.
2016-02-14 22:25:09 +00:00
Akshay Thakker
d1811e07d5 Merge "Fix missing observer reply callbacks" into mnc-dr-dev 2016-02-14 22:23:54 +00:00
Adam Lesinski
4c44359d91 Fix up some small resource issues
- the "save" string is a duplicate, and is overriden by the next definition below it.
  Due to the way AAPT handles overlays, this was accepted.
- the style attribute should not start with '@'.
- the 'raw' type is reserved for file references. Values should not be 'raw'.

Change-Id: Id611d5915207ce624d7a743b5d79bbb1258d3d51
2016-02-12 23:51:28 -08:00
Amith Yamasani
dbb75248b1 Fix missing observer reply callbacks
This was causing upto 2 seconds in user switching delay.

Bug: 25813588
Change-Id: Icf23b021f134a8ccfa2dae470af02b2da7454acc
2016-02-12 18:13:00 -08:00
Winson
680888123d Minor tweaks
- Initializing to focused state when going into Recents
- Dimming the front-most tasks to highlight the focused task
- Fixing wrong call to resize in the LruCache

Change-Id: I41833a9dc59a9bdf4a94b698e4800c1019bceb01
2016-02-12 17:07:14 -08:00
Winson
14e15b2ca1 Adjusting the tuner flags to allow disabling fast toggle.
Change-Id: I0da29479c075a41ddb49e9852eb912604efa9aa8
2016-02-12 17:07:14 -08:00
Winson
1bcf3c4742 Moving dim calculation into the stack layout.
- This simplifies code and also prepares the code for dimming certain
  tasks when focused.
- Ensuring that cancelling transitions will completely remove all 
  listeners in a given animation.

Change-Id: I77050d94097f9af404250c287522d83c146cfb25
2016-02-12 17:07:14 -08:00
Xiaohui Chen
9528f43e48 sysui: refactor in notification panel view
Bug: 27100861

Change-Id: If143c4508defeeb54dbed805b998aa6bc3b3709c
2016-02-13 00:58:07 +00:00
Aga Wronska
c4524a97c4 Merge "Fix Rename Document tests" into nyc-dev 2016-02-13 00:57:24 +00:00
Aga Wronska
5784996fdc Fix Rename Document tests
Bug:27109148
Change-Id: I489b2bd25f92ebc2b9b84d9cefe1f785a89c89ff
2016-02-12 16:53:52 -08:00
Julia Reynolds
597c6d8c5d Merge "Show topic settings inline if user has configured topics." into nyc-dev 2016-02-12 20:31:55 +00:00
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