21193 Commits

Author SHA1 Message Date
Geoff Mendal
81b44d0e51 Merge "Import translations. DO NOT MERGE" 2015-12-28 13:53:52 +00:00
Geoff Mendal
c6aad70022 Merge "Import translations. DO NOT MERGE" 2015-12-28 13:53:30 +00:00
Geoff Mendal
f395bfd9f1 Import translations. DO NOT MERGE
Change-Id: I279881c50e7f1010a52f83b1ecb23477b8a8f44c
Auto-generated-cl: translation import
2015-12-28 05:48:01 -08:00
Geoff Mendal
b0d78d487c Import translations. DO NOT MERGE
Change-Id: I57fcb1091c20531411b67a6ff0fab6ba973b8d3a
Auto-generated-cl: translation import
2015-12-28 05:44:56 -08:00
Geoff Mendal
02dae7f942 Import translations. DO NOT MERGE
Change-Id: Ifca4884000d510796069729dce895e2fadbf6d77
Auto-generated-cl: translation import
2015-12-28 05:14:41 -08:00
Tomasz Mikolajewski
5351e3f4fb Set the default mode to grid view.
Bug: 26329660
Change-Id: I2445e39dde02549e1f3ca4461558129918aa4bb7
2015-12-28 17:57:30 +09:00
Tomasz Mikolajewski
c45dcaa88e Merge "Prevent double recreation of the failure dialog in DocumentsUI." 2015-12-28 00:46:47 +00:00
Tomasz Mikolajewski
aa684454f8 Prevent double recreation of the failure dialog in DocumentsUI.
DialogFragment takes care of recreation on configuration change, so no
need to recreate it manually.

Bug: 26322214
Change-Id: I7c50a1c5bb1ba9fab34f6e8d31ed1e23e7edfbb7
2015-12-25 18:22:52 +09:00
Daichi Hirono
b596175d80 Merge "Stop to remove device rows at MtpDocumentsProvider." 2015-12-25 07:09:38 +00:00
Daichi Hirono
8e3b9db544 Stop to remove device rows at MtpDocumentsProvider.
Previously MtpDocumentsProvider used to remove device info in the
database when the device is closed. It loses a chance that RootScanner
handles the removal of roots. As a result, notifications for root cursor
does not issued.

The CL stops removing device info at MtpDocumentsProvider, and let
RootScanner remove it.

BUG=26321346

Change-Id: I6aec0cf843a1e5c93e7f67a718cabd26841d9799
2015-12-25 15:59:47 +09:00
Daichi Hirono
3a682e8377 Merge "Fix flakiness MtpManagerTest test." 2015-12-24 04:07:27 +00:00
Daichi Hirono
4c4061210e Fix flakiness MtpManagerTest test.
The test for readEvent cancelling was flakiness because it can
successfully receives an event before the test tries to cancel it.

Change-Id: Ie7625dff53e07b8bc9888da03e78155e683a6d46
2015-12-24 12:45:03 +09:00
Tomasz Mikolajewski
7335d43007 Merge "Wire thumbnails in archives in ExternalStorageProvider." 2015-12-24 02:21:48 +00:00
Daichi Hirono
cc9a7d78d5 Implement FUSE operations in AppFuse JNI.
The CL adds the following operations.

 * FUSE_LOOKUP
 * FUSE_OPEN
 * FUSE_READ
 * FUSE_RELEASE
 * FUSE_FLUSH

BUG=25756145

Change-Id: Ib57d7d0ade3343a604a1c40e4b2c2a2d089f3715
2015-12-24 11:11:27 +09:00
Geoff Mendal
cfb48ec8ba Merge "Import translations. DO NOT MERGE" 2015-12-23 13:54:59 +00:00
Geoff Mendal
de3c184a50 Merge "Import translations. DO NOT MERGE" 2015-12-23 13:54:39 +00:00
Geoff Mendal
bc97f81d7a Import translations. DO NOT MERGE
Change-Id: I3f6a2f37d640e10ad8ed5d0db0e7a81d4a5e8ef3
Auto-generated-cl: translation import
2015-12-23 05:53:57 -08:00
Geoff Mendal
0bf658d631 Import translations. DO NOT MERGE
Change-Id: I0e46010642ad4edb9bd12eb256518627d9d29107
Auto-generated-cl: translation import
2015-12-23 05:52:22 -08:00
Geoff Mendal
527b290674 Merge "Import translations. DO NOT MERGE" 2015-12-23 13:44:37 +00:00
Geoff Mendal
7da42323ca Import translations. DO NOT MERGE
Change-Id: I7cf42c018cfec707dc5fc1e55716de2ed7f1cacf
Auto-generated-cl: translation import
2015-12-23 05:40:31 -08:00
Geoff Mendal
4efe6956b7 Merge "Import translations. DO NOT MERGE" 2015-12-23 13:38:43 +00:00
Geoff Mendal
de557669b2 Import translations. DO NOT MERGE
Change-Id: I26b3d71c972ae0f9757845441999564e504f9183
Auto-generated-cl: translation import
2015-12-23 05:37:14 -08:00
Geoff Mendal
8dd3dbae67 Import translations. DO NOT MERGE
Change-Id: Ib6ebdd5bbdb5d5186533ca875ed0d2f69e31f7c1
Auto-generated-cl: translation import
2015-12-23 05:18:27 -08:00
Philip P. Moltmann
f25c403337 Show indeterminate progress bar when job is queued or started and the progress is not known.
Bug: 24135025
Change-Id: Id8d365e41573a3ea7018cadeb8d6e857f0dbe1cf
2015-12-22 20:42:57 -08:00
Philip P. Moltmann
98963260dc Prefer printers that have been used physically close to the current
location of the user.

Commonly the users prints on a printer that this near the user current
location. Hence if possible we want to show the user printers that he
used before and that are close to him.

Hence store the location of the previous uses of a printer and prefer
printer that are close to the user.

Unfortunately getLastLocation might not report a usable location and it
will take at least 5 seconds until the first usable location arrives. At
this time the user might have already opened the destionation spinner.
It would be unexpected for the printers to suddenly change under the
users finger. Hence it might be that we did first show the printer
without any location information and then once the location is known we
cannot update thedestination spinner anymore.

The select printer activity does not have this issue, hence in the worst
case the user has to enter this activity to select a printer and by then
the location is usually determined.

This is not ideal but better than before.

Bug: 24133609
Change-Id: Ie7d20cf3d9dd163e57903f8f6ecc0b3fd4f4374e
2015-12-22 19:00:39 -08:00
Philip P. Moltmann
4c95567b5f Merge "Clean up print subsystem" 2015-12-23 02:11:01 +00:00
Philip P. Moltmann
30172e2561 Merge "Close closeguard of PageContentRepository." 2015-12-23 01:28:07 +00:00
Philip P. Moltmann
c43639c306 Clean up print subsystem
- Stop using deprecated APIs
- Fix all public and some internal javadoc
- Add @Decorations to public APIs
- Some minor cleanup, e.g. don't use variables with overlapping names in same scope
- remove unnecessary properties from manifest (they are set by the build
  system)

Change-Id: I0ce8849a516414763fe9de76c3a18ce17d896816
2015-12-22 17:27:27 -08:00
Ben Kwa
ff491d6b36 Merge "Adjust grid margins to match mocks." 2015-12-23 01:13:03 +00:00
Ben Kwa
2f6553f0f0 Merge "Fix various band select instabilities." 2015-12-23 01:11:33 +00:00
Ben Kwa
a108e7e426 Merge "Update grid items to look more like the mocks." 2015-12-23 01:11:12 +00:00
Ben Kwa
cd41fb837d Adjust grid margins to match mocks.
BUG=25560424

Change-Id: I11edfd9585299acb22ca14b518274ae2538a7d01
2015-12-22 17:09:24 -08:00
Ben Kwa
20887030e8 Fix various band select instabilities.
- Guard against OutOfBoundsExceptions by checking for
  RecyclerView.NO_POSITION before attempting to retrieve model IDs in
  various places.

- Fix a spot where the default return value of
  SparseIntArray.get (i.e. 0) was causing item 0 to incorrectly get
  selected.

BUGS=26249027,26309874

Change-Id: I08d2e8c90bdd40a4738bdcf357de31e8fe6ddecf
2015-12-22 15:27:14 -08:00
Ben Kwa
f8a51f6fcb Update grid items to look more like the mocks.
- Create a new layout for directory items, which have a different
  layout (no thumbnail, size or mod_date).

- Add drop shadows.

Also refactor a few things in the DocumentHolder and child classes to
make things more efficient and cleaner.

BUG=24326989,26229570

Change-Id: I05df52b071667190d4c4c671f50d25498383cdaa
2015-12-22 14:40:21 -08:00
Aga Wronska
43551a2a2f Merge "Pressing back button clears search" 2015-12-22 22:08:08 +00:00
Philip P. Moltmann
4f71bcec22 Merge "Allow a print service to specify per printer icons, description and info-activities" 2015-12-22 21:49:30 +00:00
Aga Wronska
43f20493d0 Pressing back button clears search
Bug:26143308
Change-Id: Iaa02d39a6ee1fd1a0c7d4d07453a481af97c7664
2015-12-22 13:24:52 -08:00
David Riley
1b3b8b74ae Merge "SystemUI: implement bluetooth scan timeout" 2015-12-22 18:45:06 +00:00
Filip Gruszczynski
9a6fb02f59 Merge "Add a permission to shell for running multi window tests." 2015-12-22 17:29:39 +00:00
Filip Gruszczynski
1ca4e549d9 Add a permission to shell for running multi window tests.
Bug: 19225708
Change-Id: Ia2de679b133acee992ccdab3bfddbdd9d78f5025
2015-12-22 09:22:34 -08:00
Jason Monk
6923bc806f QS: Fix header layout when alarm set
Change-Id: I9f16ccb545abaea85ecaca29a221599c767003b8
2015-12-22 11:34:36 -05:00
Jorim Jaggi
79b39f0873 Update visual of docked divider to spec
Change-Id: I85daf672cedb8009509886fc6ae2d700d39274cf
2015-12-22 13:01:40 +00:00
Daichi Hirono
e442872eaa Merge "Unmount appfuse when the device FD is closed." 2015-12-22 05:31:57 +00:00
Daichi Hirono
91e3b50636 Unmount appfuse when the device FD is closed.
The CL lets MountService to observe device FD, and request unmount to
vold when the device FD was closed, or remote application providing
appfuse is crashed.

BUG=25756420

Change-Id: I7990694d32affa7f89e3f40badb25098d74d744d
2015-12-22 13:41:33 +09:00
Daichi Hirono
bdb5a45f8d Merge "Break while loop when the thread interuppted." 2015-12-22 04:03:27 +00:00
Tomasz Mikolajewski
7e326a867c Wire thumbnails in archives in ExternalStorageProvider.
Bug: 20176812
Change-Id: Ibf421df1c26583b4b7c3a8516eac79ea0ef31ec3
2015-12-22 13:00:04 +09:00
Daichi Hirono
2bdb388d8f Break while loop when the thread interuppted.
Previously the while loop condition refers to Thread.interrupted()
wrongly. The Thread.interrupted() flag is cleared when the
InterupptedException is thrown.

BUG=26297698

Change-Id: I113d5c88389d54a4a6e29af2cf9515b1693b59dc
2015-12-22 12:57:47 +09:00
Ben Kwa
c1f9e7c487 Merge "Refactor DocumentHolder." 2015-12-21 23:35:39 +00:00
Ben Kwa
d839149843 Refactor DocumentHolder.
Primary goals of this refactor are to reduce DirectoryFragment bloat,
and to simplify the code (especially the binding code) for the different
layouts.

- Decouple DocumentHolder from DirectoryFragment.
- Move it into its own file.
- Move binding code from DirectoryFragment into DocumentHolder.
- Split DocumentHolder implementation into three separate subclasses,
  for grid items, list items, and dividers.

BUG=24326989

Change-Id: I217bf4e5b8e1b33173b8b0275591a8c5d8e9161c
2015-12-21 15:31:15 -08:00
Dmitry Torokhov
365bf06a72 SystemUI: implement bluetooth scan timeout
When we dock with Pixel C keyboard we normally expect to find it, and so
we perform a low latency scan (which uses highest duty cycle). But if
keyboard is not charged or if tablet mode trigger misfires (because
there was a magnetic object in proximity?) we may not find the keyboard
and will continue scanning indefinitely, impacting WiFi performance and
draining battery. To avoid this scenario let's stop scan if we do not
find "our" device in 30 seconds.

Also remove STATE_WAITING_FOR_STATE_PAIRED as it was unused.

Change-Id: I4bf1a9a163d3165eaa5e8f1cc2d2938465d454af
(cherry picked from commit 6c12c3a6538591b5fa6e11cb4f583aa494e0ce5c)
Signed-off-by: David Riley <davidriley@google.com>
2015-12-21 12:37:17 -08:00