21898 Commits

Author SHA1 Message Date
Steve McKay
aa15dae22d Automatically open roots pane if default dir is empty.
Move drawer fiddling out of DirectoryFragment into respective
    FragmentTuner instance.

Bug: 27084308
Change-Id: Ia13fc2be1442e1a7164c2d67ea6ce4bcfda68bcc
2016-02-09 16:25:44 -08:00
Tomasz Mikolajewski
eb33c0a53f Cleanup sliding animation between directories.
The shadow is restored + redundant fade removed.

Bug: 26986946
Change-Id: I31dde7d03f60be470e1c5e06dcdce828d3e4eaa0
(cherry picked from commit 3134ddf99d4215041ed749f3b4e682a1910d208e)
2016-02-09 09:20:53 +00:00
Tomasz Mikolajewski
3d911ea095 Fix animation for the empty cabinet, also make other animations less jarring.
Setting android:animateLayoutChanges=true was causing flickering and problems
with sliding the cabinet while a fragment transition was already in progress.

Bug: 27060052
Bug: 26952361
Change-Id: I17e5f8b57d63cd9a586fc70ae43e030c4f232e8d
(cherry picked from commit ed82fd784301c645cb665517edc3006888d6f237)
2016-02-09 09:16:53 +00:00
Tomasz Mikolajewski
df3abce378 Remove temporary test fixes.
The tests should fail, as the features are broken.

Change-Id: Ib760ba5469164b8ca0d08c57f24273268ae2436f
(cherry picked from commit 94eca73fec7aa1857f5847df355877d523d0c8a6)
2016-02-09 09:14:49 +00:00
Tomasz Mikolajewski
c7b832202a Migrate all tests to ActivityTest.
ActivityInstrumentationTestCase2 takes care of starting and closing
the activity, which prevents flakyness.

Change-Id: I2d3908f6605a67a3c2d11e18a9c4799443828df9
(cherry picked from commit e366886c7d91b62fe1478a057fc4c0a104d12b02)
2016-02-09 01:42:50 +00:00
Felipe Leme
000b84451d Merge "Add pid on main bugreport notifications." into nyc-dev 2016-02-08 23:25:39 +00:00
Jorim Jaggi
e161f08e98 Multi-window optimizations #3
- Make sure divider is pushing frames only if necessary
- When starting recents while docking, make sure no unnecessary
animations are played to reduce system load.

Change-Id: I536f009aef7282ed85dde79b853aeae62644f3e3
2016-02-08 21:21:24 +00:00
Philip P. Moltmann
199cb4dfe5 Merge "Clarify synchronization between PrintActivity and RemotePrintDocument" into nyc-dev 2016-02-08 18:41:55 +00:00
Felipe Leme
ed330c7f7d Merge "Replaced 'touch' by 'tap'." into nyc-dev 2016-02-08 18:10:18 +00:00
Geoff Mendal
83f7ae9628 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-02-08 18:09:21 +00:00
Geoff Mendal
773a356e97 Import translations. DO NOT MERGE
Change-Id: I5c2b346ce87737f9e8077f014d52e0e908a43418
Auto-generated-cl: translation import
2016-02-08 23:24:37 +05:30
Geoff Mendal
0d005fee78 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-02-08 17:49:22 +00:00
Felipe Leme
8067aed5c7 Replaced 'touch' by 'tap'.
BUG: 26884266
Change-Id: Ic3d7be8a10b768101b161644e46c92cd872621db
2016-02-08 09:42:52 -08:00
Felipe Leme
e86b63bd17 Add pid on main bugreport notifications.
Showing the pid is useful in many cases, like when one bug report is finished
and another one is in progress.

BUG: 26906985
Change-Id: Ib8ae462c85246b99234f8dac63edb608d1eafeb0
2016-02-08 09:40:56 -08:00
Philip P. Moltmann
cc3fa0d295 Clarify synchronization between PrintActivity and RemotePrintDocument
The general theme of these changes is to always delay any action until
the printDocument finishes a command. This is done:
- Before callinng for into a different activity to select a name for the
  PDF
- Before finishing

The second theme is to fix the canceling behavior of
RemotePrintDocument.AsyncCommand.

There are four bugs fixed in this review:

(1)
When the RemotePrintDocument.AsyncCommand is canceled it goes into the
"canceling" state. When it is canceled again it should stay in this
state. Before it went to "canceled" but the command was still running.
(see AsyncCommand#cancel()).

(2)
When finishing the PrintActivity in PrintActivity.doFinish() we cancel
the RemotePrintDocument. If there is a command still in progress (i.e.
isUpdating()) and it finished as canceled we used to call doFinish()
again and then try to double-clean up which lead to exceptions.

The new behavior is that is the PrintActivity is calling doFinish()
while a command is still in progress (i.e. isUpdating()) we delay the
cleanup until the command finishes. The command might finish as
canceled, completed or failed. Hence we have to call doFinish() in the
callbacks for all three cases.

(3)
When canceling there might have still been a nextCommand ready, hence
canceling does not stop execution of the RemotePrintDocument which could
lead to running commands while finshing.

(4)
When getting the location to store the PDF at a command might still be
in progress. This lead to half executed commands and caused issues once
we try to continue after the select-location-activity returns

Bug: 24713704
Bug: 24973884
Change-Id: Ied90fe8dc9bd6ea7f8b3e4ce4f922e477015568d
2016-02-08 17:29:26 +00:00
Geoff Mendal
b727d99a5e Import translations. DO NOT MERGE
Change-Id: Ic6f472559385699038b2d8f5e63d2ed0d5752c4d
Auto-generated-cl: translation import
2016-02-08 22:52:34 +05:30
Geoff Mendal
f872232b45 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-02-08 16:46:58 +00:00
Geoff Mendal
5f346b6123 Import translations. DO NOT MERGE
Change-Id: I2fd0cda2b14b49646e59253e874cef28e84a5c2f
Auto-generated-cl: translation import
2016-02-08 22:16:31 +05:30
Geoff Mendal
1e2c97f9bc Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-02-08 16:37:32 +00:00
Geoff Mendal
52e62e55a8 Import translations. DO NOT MERGE
Change-Id: I4bf4fefbe2f02647922208fafaa23f70c2fe965a
Auto-generated-cl: translation import
2016-02-08 17:32:25 +01:00
Geoff Mendal
839aa9db82 Import translations. DO NOT MERGE
Change-Id: I70b1edaa1374eb469b691b3dc599f92d94762638
Auto-generated-cl: translation import
2016-02-08 21:58:20 +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