21878 Commits

Author SHA1 Message Date
Geoff Mendal
773a356e97 Import translations. DO NOT MERGE
Change-Id: I5c2b346ce87737f9e8077f014d52e0e908a43418
Auto-generated-cl: translation import
2016-02-08 23:24:37 +05:30
Julia Reynolds
d560729ce3 Update DND visual interruption choices.
Change-Id: I7050264839c566dcef1dd01d155dda694a8d1ec0
2016-02-08 15:20:02 +00:00
Jason Monk
c3f42c1024 Add support for auto-adding tiles
hotspot, color inversion, data saver, and work profiles should add
themselves when they first become applicable.

Also refactor the availability flow a little bit.

Change-Id: Iaed89059540a98fefd4d26ce69edc0dde987b992
2016-02-08 15:17:11 +00:00
Jason Monk
cafda1f90e Settings drawer work
- Final visuals
 - Show under status bar
 - Fix activity flow surrounding drawer use

Change-Id: I161702219c26cabc6b2d1adbaa6fbfb1d9fd5b07
2016-02-08 15:12:25 +00:00
Jan Nordqvist
6913d30f1c Merge "Hotspot 2.0 release 2 client app." 2016-02-06 01:40:13 +00:00
Jan Nordqvist
ee699a61a5 Hotspot 2.0 release 2 client app.
Change-Id: Ic8f93a3c9fede3f25c03b0153826ac5c49771b60
2016-02-05 17:35:09 -08:00
Jeff Sharkey
ba9a4b397f Use the right ClassLoader when restoring.
If we're restoring after a background process death, the Parcelable
creator cache is cold, and since we're handing in a null ClassLoader
the best the platform can do is try the default ClassLoader which
knows nothing about the running app.

That's why ClassLoaderCreator exists, so use it to snag the relevant
ClassLoader and pass it along.

Bug: 26075620
Change-Id: I6fd977d6178dd0f5f9c465597f5806a08097ac7c
2016-02-05 17:13:21 -07:00
Jason Monk
2cd860eccf Merge "Fix some battery icon issues" 2016-02-05 21:07:15 +00:00
Jason Monk
5c404c8dc6 Fix some battery icon issues
Bug: 26818515
Change-Id: I93f3fb19f82ba8c169b2d0c8d43f1c28b2e71ae9
2016-02-05 15:54:10 -05:00
Jason Monk
73ebd130eb Merge "Update QS defaults list" 2016-02-05 20:03:07 +00:00
Jason Monk
6da39af35d Merge "Have nav bar handle density changes" 2016-02-05 20:01:37 +00:00
Jason Monk
093b3f1ba0 Merge "Fix external status bar icon sizes" 2016-02-05 19:59:43 +00:00
Jason Monk
e24194f079 Update QS defaults list
Also allow custom tiles to be in the default list.

Bug: 26425051
Change-Id: I88af8b251dda333f1392e9959c8505e85f4cbafa
2016-02-05 14:55:05 -05:00
Jason Monk
6d6672ffd1 Fix external status bar icon sizes
Bug: 26850030
Change-Id: I6de129aa1b6c73b0c1ad5373e59c2ad398b2dc7a
2016-02-05 14:35:34 -05:00
Jason Monk
67a1cce286 Have nav bar handle density changes
Bug: 26038240
Change-Id: I05a9a9ca52b0c9ccba37835d38cca69465b3745e
2016-02-05 13:31:03 -05:00
Jeremy Klein
391df1ac2e Merge "Remove several TetherUtil functions which are no longer needed." 2016-02-05 18:15:30 +00:00
Steve McKay
f873769fba Move create folder and sort to overflow menu, cleanup back behavior.
Improved drawer management in reponse to back button presses:
- if drawer is open (and we didn't just open it), close it.
- if at top of root (and we didn't close root) open it.
- there's a timeout on this behavior such that pressing back
  a second time within a 1.5 second perior will NOT initiate
  the behaviors described above.

Change-Id: I5990848cd3047d9dc985ec10e57ab3a0f99ce79c
2016-02-05 08:46:10 -08:00
Ben Kwa
a65d61a889 Merge "Update apostophes to material spec." 2016-02-05 16:19:13 +00:00
Ben Kwa
fd53fdeed3 Update apostophes to material spec.
TLDR: use \u2019 instead of ' for apostrophes.

See
https://spec.googleplex.com/quantum/style/writing.html#writing-capitalization-punctuation.

Change-Id: Idc3bee55dc65a1ebd5bf12483fced85d36c1614f
2016-02-05 08:02:21 -08:00
Ben Kwa
a4761f0b8b Fix an NPE in RestoreStackTask.
BUG=27007822

Change-Id: I166dc89bfe94f2a07a1fe3769cbce763b7472ec0
2016-02-05 06:44:15 -08:00
Andrei Stingaceanu
2b909e975f Keyboard Shortcuts - cleanup
Clean up the code, introduce and use a separator, fix the
existing end-of-groups separator.

Bug: 26848253
Change-Id: I2b7723ebf257e7176f08551766c59d86d01cf6a6
2016-02-05 11:19:02 +00:00
Daichi Hirono
bf1c501306 Merge "Fix NullPointerException around getObjectInfo." 2016-02-05 09:14:37 +00:00
Daichi Hirono
6213cefbc0 Fetch mime type from file name when format code does not help.
MTP spec defines format code as a file type of object, but we don't have
format code for some file types like PDF. This CL adds fallback that
tries to obtain mime type from file name in such case.

BUG=27004957

Change-Id: Id61352bf4726f4e044e57edadcefbf179fe3f882
2016-02-05 17:21:13 +09:00
Daichi Hirono
cfaab20c24 Fix NullPointerException around getObjectInfo.
BUG=27000341

Change-Id: I8888b627c62e9baaf91c19194dc89d95c65b8225
2016-02-05 16:04:19 +09:00
Jaewan Kim
b8c337b935 Merge "Support KEYCODE_APP_SWITCH key for TV" 2016-02-05 04:26:28 +00:00
Steve McKay
8ac5bfddd2 Merge "Simplify State initialization w/ better semantics + improved Task security." 2016-02-05 04:16:37 +00:00
Tomasz Mikolajewski
8c7007085e Merge "Remove DirectoryContainerView class from DocumentsUI." 2016-02-05 03:22:51 +00:00
Ben Kwa
1c3966a389 Merge "Tweak the query error message per UX." 2016-02-05 03:09:44 +00:00
Jeremy Klein
aaa20ad134 Remove several TetherUtil functions which are no longer needed.
Slowly chipping away at TetherUtil to clean up this code.
This CL also adds an admin check to
ConnectivityService.isTetheringSupported to get parity with the
TetherUtil function before removing it.

Change-Id: Ibe7c5c9fb420d57e5458f77dad30e8a1e751a3e2
2016-02-04 19:06:59 -08:00
Ben Kwa
c9b3bde667 Tweak the query error message per UX.
BUG=24949214

Change-Id: I207b55ebfff47cc561a536dc1827431545bf0030
2016-02-04 19:06:56 -08:00
Winson Chung
f5b32be5bf Merge "Revert "Drawing thumbnail background color for empty space in view."" 2016-02-05 02:43:05 +00:00
Winson Chung
781c77b381 Revert "Drawing thumbnail background color for empty space in view."
This reverts commit 3e85f9e48c0b30c8a7e5cd4512b091d00dcac4fa.

Change-Id: I3d86dc8ce34ff246f5b8a74d1346bed8492b05fc
2016-02-05 02:42:50 +00:00
Winson Chung
893b74078f Merge changes If0dfada2,Ice6a508b,Icf082399,I4db9cd1b,I88bd0f79
* changes:
  Fixing issue with history icons getting clobbered.
  Fallback 1 for Recents timeout behaviour
  Drawing thumbnail background color for empty space in view.
  Fixing issue with task animating from 0,0.
  Minor tweak to enter/exit animation for the home activity.
2016-02-05 02:42:02 +00:00
Steve McKay
95cd85ad38 Simplify State initialization w/ better semantics + improved Task security.
Also, reveal the illusion that we're restoring state in Files and Downloads.
Also, define a "PairedTask" class that guards calls to task methods
    with checks against isDestroyed. This also let us make all of the tasks
    static, so we get much narrower scope and tasks can even be moved to
    their own files.

Change-Id: I6a9e8706e1ab1d1f43301e73dd9858a115a6baaf
2016-02-04 18:30:29 -08:00
Ben Kwa
13bbcdda48 Merge "Add vector art for empty and error screens." 2016-02-05 02:16:24 +00:00
Winson
3e85f9e48c Drawing thumbnail background color for empty space in view.
- When showing landscape thumbnails in portrait, the thumbnails are
  aspect scaled to fit the width of the view, this change will draw
  a solid color to fill the other part so that we don't see the
  current edge-clamp texture effect.

Change-Id: Icf08239942f9179c66ba0f8d8ddd00f7d2a09d3c
2016-02-04 17:33:26 -08:00
Winson
d7eb1ef7f4 Fixing issue with history icons getting clobbered.
- If the view holder is rebound before the other task is recycled, there
  could be multiple callbacks attached to different tasks for the same
  view holder, which can cause the wrong icon (which is loaded in the 
  bg, to be loaded into the wrong view holder).  Now, we unbind the 
  callback from the old task when the new task’s callbacks are bound.

Change-Id: If0dfada24985944daf4302c4db0616a00a770f06
2016-02-04 17:33:26 -08:00
Winson
9bbd2861ad Fixing issue with task animating from 0,0.
- When we get all the initial task transforms when swiping to dismiss, 
  the tasks that are not visible at the original scroll position but are
  in the final position are not initialized correctly.  Instead when
  getting the current transforms for all tasks, always calculate their 
  transforms regardless of whether they are currently visible or not.
- This revealed another issue where on snap-back, a task that was 
  visible at the new scroll and not at the old scroll was not getting 
  removed until the next update (which would cause a task view to linger
  if you press home for example).

Bug: 26964326
Change-Id: I4db9cd1b072d3841351c2e84b219ca224a3045f9
2016-02-04 17:33:26 -08:00
Winson
b61e654b9a Fallback 1 for Recents timeout behaviour
- Removing initial timeout
- Adding double tap to switch tasks

Change-Id: Ice6a508b842377809bf0dcea0997522164d0ccdf
2016-02-04 17:33:26 -08:00
Winson
40a2273377 Minor tweak to enter/exit animation for the home activity.
- Fixing issue where the animation props was not applied to the progress
  and callback animations correctly
- Ensuring that all tasks animate the same distance on enter/exit, and 
  not just to the edge of the screen
- Removing unused styles and animation resources

Change-Id: I88bd0f79f386304373fe63b49e92f02eeb882e55
2016-02-04 17:33:26 -08:00
Tomasz Mikolajewski
5bfdf2b39a Remove DirectoryContainerView class from DocumentsUI.
Removed and it works as before, I guess it was some workaround for a bug
in the past.

Change-Id: I859c995940ad04ac028aea1727a81358ca7fda1b
2016-02-05 09:50:02 +09:00
Ben Kwa
0e9aae4549 Add vector art for empty and error screens.
BUG=24949214,26143312

Change-Id: I24abe9743763d868ab6d1247aec594abec267c29
2016-02-04 16:35:27 -08:00
Jorim Jaggi
8f2a44f934 Hide swipe-up gesture behind tuner flag
(;゚︵゚;)

Bug: 26317834
Change-Id: If489d2bac21e376f2b24a3ce0537a2a8a29651ab
2016-02-04 14:39:46 -08:00
Jorim Jaggi
ea4a19f1aa When long pressing recents and already docked, undock
Bug: 26771328
Change-Id: I1fe12181cd80fd948e4184be6a8790c77bfe9e45
2016-02-04 14:39:22 -08:00
Jorim Jaggi
067e817585 Only treat "null" bounds as fullscreen
When long pressing on the recents button, we made it one pixel smaller
than fullscreen so we don't dismiss the stack immediately again.
However, this is a huge hack, and lead to problems with navigation bar
background because there we actually rely on the fact whether
the window is fullscreen or not to determine whether to draw the
navigation bar background, which lead to flickering.

Bug: 26777526
Change-Id: Ifdfcf3ad4138bc88c5164177cd20f1ff1635085f
2016-02-04 14:37:07 -08:00
Jorim Jaggi
9511b0f1e9 Fix bug where surface was not clipped off during resizing
When dragging the divider in a way such the task size goes through
the following transition

- Half size
- Full screen
- Half size

the surface wasn't clipped off anymore. This was because in full
screen configuration, computeDragResizing() == false thus when
going full screen -> half size, we reset the draw state to
DRAW_PENDING to get notified when it has finished drawn. However,
this also broke clipping.

In order to fix this, we always put the window into a resizing mode
no matter whether the bounds are fullscreen or not.

However, this introduces an ugly flickering on the navigation bar,
when going into docked mode, because the app doesn't draw navigation
bar background in resize mode.

To fix that, we calculate the presence of navigation bar whether the
window is fullscreen, and not just whether it's resizing. For that,
we need to calculate the presence in BackdropFrameRenderer, by using
the insets just sent by window manager.

Change-Id: Idf56df4ae7fefe67d068bc2eeda8dc4d83bbefb7
2016-02-04 14:36:46 -08:00
Jorim Jaggi
defd9225e6 Fix crash in SysUI when configuration changes
Bug: 26913675
Change-Id: Ib36e5fcdd22197317f1b99a3aec8a46896a8cc36
2016-02-04 14:36:35 -08:00
Sudheer Shanka
57218cbbf7 Merge "Made changes to fix some policy transparency options." 2016-02-04 19:14:14 +00:00
Selim Cinek
b5e6af5f55 Merge "Collapse all groups now when the shade is collapsed" 2016-02-04 18:28:45 +00:00
Selim Cinek
7fce1206fa Merge "Fixed a crash when transforming" 2016-02-04 18:28:27 +00:00