5388 Commits

Author SHA1 Message Date
Christopher Tate
d0688beb68 Merge "Sanity check users before committing new Android ID" into klp-dev 2013-09-04 00:48:06 +00:00
Jeff Sharkey
954be02326 Show loading, error, and info messages as footers.
A provider can include extras in their Cursors to indicate that
loading is ongoing, or include an error or informational message,
which are now shown in footer views.

Fix registration to always get change notifications.

Test provider that verifies common provider behavior of holding
a reference to "cloud" resources that are released by GC when the
remote Cursor is closed.  Also used to validate Recents behavior
for slow providers.

Bug: 10599268
Change-Id: I331c31058dbb80261e7d279b851197c65ac87e32
2013-09-03 17:02:47 -07:00
Christopher Tate
38e7a60fd7 Sanity check users before committing new Android ID
In creation/deletion cycling we can wind up racing and attempting
to establish the Android ID on first access *after* the user has
already been deleted.  Cope gracefully with this outcome.

Bug 10608503

Change-Id: I169d5052e5a2e354ce0e1f61258e45e31f5ba171
2013-09-03 16:57:34 -07:00
Jeff Sharkey
ded77187ef Updated documents UX around action bar.
Change action bar to match current design; drawer is always available
and navigation dropdown is used to interact with current traversal
path in hierarchy.  On first launch, show recents with drawer
expanded.  On subsequent launches, resume from last location with
drawer closed.  If last location root isn't applicable, then behave
like initial launch.  Move sort order into action bar submenu.

Delete documents using contract.  Use unstable provider when
inflating DocumentInfo from Uri.

Bug: 10330219, 10510851
Change-Id: I6e94637d70ebca156a6c5d50272e878156d0dd62
2013-09-03 14:17:10 -07:00
John Spurlock
bab55129bb am 5fd39883: am cbd067e8: Merge "Dim status icons / battery / clock on opaque bars." into klp-dev
* commit '5fd3988342f5c680a6480e5294d2d588eb233e03':
  Dim status icons / battery / clock on opaque bars.
2013-09-03 13:38:12 -07:00
John Spurlock
5fd3988342 am cbd067e8: Merge "Dim status icons / battery / clock on opaque bars." into klp-dev
* commit 'cbd067e87537874ce216c02cab2ab46b5980b634':
  Dim status icons / battery / clock on opaque bars.
2013-09-03 13:35:29 -07:00
John Spurlock
cbd067e875 Merge "Dim status icons / battery / clock on opaque bars." into klp-dev 2013-09-03 20:30:48 +00:00
John Spurlock
e6f0a71650 Dim status icons / battery / clock on opaque bars.
Apply consistent alpha to the other status bar elements
now that they are intrinsically brighter than before.

Bug:10602822
Change-Id: I8ca6ddc844f9c58ddf2a1df8d1a5bd7fb71932d1
2013-09-03 16:23:49 -04:00
Michael Wright
18e14c75e3 Fix keymap build dependencies and variable name collisions
Change-Id: I06e67ddc97429ae9c3d04143934c3f8233fcd22f
2013-09-03 12:27:18 -07:00
John Spurlock
25b16ede5a am b893af6d: am bfa29c71: Merge "Don\'t ever disable the status/nav bar." into klp-dev
* commit 'b893af6d06b1f3d12ec34e0bd68e64284ce55b5e':
  Don't ever disable the status/nav bar.
2013-09-03 12:23:02 -07:00
John Spurlock
b893af6d06 am bfa29c71: Merge "Don\'t ever disable the status/nav bar." into klp-dev
* commit 'bfa29c7181d4b811cb39dbd013c45ff653d8a5f4':
  Don't ever disable the status/nav bar.
2013-09-03 12:14:58 -07:00
John Spurlock
bfa29c7181 Merge "Don't ever disable the status/nav bar." into klp-dev 2013-09-03 19:12:55 +00:00
John Spurlock
686820a402 Don't ever disable the status/nav bar.
Revert part of the fix for b/8682123 until we figure out why
the window state does not flip to SHOWING in BarController.

Bug:10488453
Change-Id: Ic5d60a6d945b470fd519dc01de30690e61c62e01
2013-09-03 14:44:16 -04:00
Svetoslav Ganov
ebc10202c5 am 38c5b2b8: am ad0ec16f: Merge "Bug fixes in the printer dialog activity and fused printer loader." into klp-dev
* commit '38c5b2b8793e34c2526ba2607c43aa514fdc0479':
  Bug fixes in the printer dialog activity and fused printer loader.
2013-09-03 11:07:30 -07:00
Svetoslav Ganov
38c5b2b879 am ad0ec16f: Merge "Bug fixes in the printer dialog activity and fused printer loader." into klp-dev
* commit 'ad0ec16fbe27e69e22b90ad9f1b9e322d8c20e8d':
  Bug fixes in the printer dialog activity and fused printer loader.
2013-09-03 11:04:19 -07:00
Svetoslav Ganov
ad0ec16fbe Merge "Bug fixes in the printer dialog activity and fused printer loader." into klp-dev 2013-09-03 18:02:58 +00:00
Baligh Uddin
84753e4010 Import translations. DO NOT MERGE
Change-Id: Ieb610ced7d3f541bc238646988904ed1cb7cee7a
Auto-generated-cl: translation import
2013-09-03 10:20:59 -07:00
Baligh Uddin
f558f2f14f Import translations. DO NOT MERGE
Change-Id: I9ca7bbde9a5f59efa72945278df6b2902893374c
Auto-generated-cl: translation import
2013-09-03 10:19:00 -07:00
Baligh Uddin
d99d648156 Import translations. DO NOT MERGE
Change-Id: Icaf13bfca4c997cd0b1bddc91c96351cb5d5a20e
Auto-generated-cl: translation import
2013-09-03 10:16:06 -07:00
Baligh Uddin
0c02096862 Import translations. DO NOT MERGE
Change-Id: If6461fff76109212bf1e28bf238c6876cb2fa0be
Auto-generated-cl: translation import
2013-09-03 10:10:16 -07:00
Baligh Uddin
ac9be317fe Import translations. DO NOT MERGE
Change-Id: I28c0f0f828b6f3d4e4627c1732929b6ee73056d0
Auto-generated-cl: translation import
2013-09-03 10:08:25 -07:00
Baligh Uddin
8213e34b14 Import translations. DO NOT MERGE
Change-Id: I17ec3c595dbf7291f781fa73ce5772d2a647ae91
Auto-generated-cl: translation import
2013-09-03 10:07:16 -07:00
Baligh Uddin
a48259fa7d Import translations. DO NOT MERGE
Change-Id: I89fb0120fcbcec36959ffcdd75d1bac409afa4c8
Auto-generated-cl: translation import
2013-09-03 09:07:47 -07:00
John Spurlock
1f0c596563 Remove unused status bar icon stat_sys_secure.
It was moved behind an undocumented setting three yrs ago.

Bug:10502089
Change-Id: Icef0e3deaa9b09afab98bbb76520b47a16da2069
2013-09-03 12:04:38 -04:00
Svetoslav Ganov
9186d0cb2b Bug fixes in the printer dialog activity and fused printer loader.
1. Fused printers loader was not using the discovered printers to update the
    historical ones. Now if a historical printer is discovered we update its state
    with the discovered, i.e. most recent, information.

2. Fixed a bug in the destination adapter of the print job config dialog that
    was leading to a crash if all printers item is selected when there are no
    discovered printers.

3.  Updated the add printers asset in the all printers screen.

4. Historical printers were not persisted by the print dialog activity.

5. Reduced the number of printers we send per transation to avoid the binder
   transaction size limit. Added sending of printers in chunks in a place
   this was missing.

Change-Id: I88b54888360bc0e53b06bd260c2b832d0d6454b6
2013-09-03 08:42:17 -07:00
Jeff Sharkey
7e6d74494a am f56ae2b9: am 118cb035: Merge "Filter roots based on incoming request." into klp-dev
* commit 'f56ae2b903a24a891cf349025c97c05134e88e59':
  Filter roots based on incoming request.
2013-09-02 20:58:57 -07:00
Jeff Sharkey
b5bf56ed0a am 92c7406b: am 7c925042: Merge "New recents behavior to match spec." into klp-dev
* commit '92c7406b853f751d45a48306f9bc1899954382eb':
  New recents behavior to match spec.
2013-09-02 20:55:26 -07:00
Jeff Sharkey
f5c2071809 am 32bfd2a3: am c22acf6f: Merge "Instance state, fix sharing, Durable objects." into klp-dev
* commit '32bfd2a398c2b5115a50d867c1ed8ae13ab33760':
  Instance state, fix sharing, Durable objects.
2013-09-02 20:55:19 -07:00
Jeff Sharkey
d0b6460021 am e1dfca29: am db06adec: Merge "Use Cursors directly when binding documents." into klp-dev
* commit 'e1dfca2989ea87b9ac6864b2bd697f59d1c0ab2a':
  Use Cursors directly when binding documents.
2013-09-02 20:55:16 -07:00
Jeff Sharkey
f56ae2b903 am 118cb035: Merge "Filter roots based on incoming request." into klp-dev
* commit '118cb0353f6dabce1a1d6b550f7fc9eb78c7de87':
  Filter roots based on incoming request.
2013-09-02 20:55:12 -07:00
Jeff Sharkey
92c7406b85 am 7c925042: Merge "New recents behavior to match spec." into klp-dev
* commit '7c925042061bf4b80cf80a7e6d94995c62eca7e1':
  New recents behavior to match spec.
2013-09-02 20:51:44 -07:00
Jeff Sharkey
32bfd2a398 am c22acf6f: Merge "Instance state, fix sharing, Durable objects." into klp-dev
* commit 'c22acf6f1fc001ad0f1c23c5261f371d63e4106e':
  Instance state, fix sharing, Durable objects.
2013-09-02 20:51:40 -07:00
Jeff Sharkey
e1dfca2989 am db06adec: Merge "Use Cursors directly when binding documents." into klp-dev
* commit 'db06adec0d25f57d0fff8788b0081f92f6e5383c':
  Use Cursors directly when binding documents.
2013-09-02 20:51:37 -07:00
Jeff Sharkey
118cb0353f Merge "Filter roots based on incoming request." into klp-dev 2013-09-03 03:50:56 +00:00
Jeff Sharkey
7c92504206 Merge "New recents behavior to match spec." into klp-dev 2013-09-03 03:50:27 +00:00
Jeff Sharkey
c22acf6f1f Merge "Instance state, fix sharing, Durable objects." into klp-dev 2013-09-03 03:50:10 +00:00
Jeff Sharkey
db06adec0d Merge "Use Cursors directly when binding documents." into klp-dev 2013-09-03 03:50:00 +00:00
Jeff Sharkey
348ad6866b Filter roots based on incoming request.
When incoming request is for local-only content, or for ACTION_CREATE,
only include roots advertise those features.

Filters roots based on the allowed MIME types and the supported types
advertised by each root.  This supports displaying Images and Audio
roots only when requesting those content types.  Applies the same
filter when deciding which roots to query for recents.

Fixes advanced filtering instead of limiting to just devices. Update
sorting so that Recent always appears first. Add testing support for
LOCAL_ONLY.

Bug: 10597317, 10526535
Change-Id: Ic5ccf475c4fe93fd52b29388d369d7f6915c0c42
2013-09-02 17:43:14 -07:00
Jeff Sharkey
a2a772035f am 8c58b792: am cd6d7dee: Merge "Refactoring of DocumentsContract." into klp-dev
* commit '8c58b79243748eeb98b650c8e660a742ad876452':
  Refactoring of DocumentsContract.
2013-09-02 17:14:37 -07:00
Jeff Sharkey
8c58b79243 am cd6d7dee: Merge "Refactoring of DocumentsContract." into klp-dev
* commit 'cd6d7deec8742e257a670db8e027f628afdf337e':
  Refactoring of DocumentsContract.
2013-09-02 17:09:15 -07:00
Jeff Sharkey
cd6d7deec8 Merge "Refactoring of DocumentsContract." into klp-dev 2013-09-03 00:07:17 +00:00
Jeff Sharkey
251097b378 New recents behavior to match spec.
Updated behavior queries each documents root for recently modified
documents.  It uses a new variant of DirectoryLoader which limits the
maximum number of parallel queries to relieve memory pressure.  When
first started, it waits up to 500ms for everyone to finish, then
publishes whatever results are ready, and then refreshes results as
each straggler finishes.

New RootCursorWrapper that always blends in authority and rootId
columns, which are used for binding root details from blended cursors.

Bug: 10593596, 10329994
Change-Id: Icc0d4a2f1b6166edc72f78a4c88f444eeba6f2f0
2013-09-02 15:33:57 -07:00
Jeff Sharkey
b51331116e Instance state, fix sharing, Durable objects.
Remember instance state across configuration changes, and enable
rotation.  This remembers current modes and in-progress traversals.

Always finish action modes after launching an action.  Fix sharing
by always putting Uris in extras, and always wrap in a chooser.  Find
common MIME types when sharing multiple documents.  Fix downloads
launching by following directory MIME type change.

Introduce "Durable" which is like Parcelable, but can be used for
both byte[] storage and Parcel transport.  Make both DocumentInfo
and DocumentStack durable.

Disable recents until new behavior is implemented.

Bug: 10460236, 10446265, 10533674, 10456344, 10456702
Change-Id: I4eaf2b0b4cde611c69a1e7b5f1586f6b02019b27
2013-09-01 18:59:38 -07:00
Jeff Sharkey
5dfb345df7 Use Cursors directly when binding documents.
Instead of creating a DocumentInfo for every list item, bind the
adapter against Cursor directly.

Create new SortingCursorWrapper which performs sorting at query time
and keeps a O(1) mapping from sorted to unsorted positions in the
underlying Cursor.

Suppress extra loader passes that had been kicked off.  Use unstable
provider when querying to guard against broken providers.

Bug: 10567506, 10510851
Change-Id: I535814da6b17c38de04a1175e0afcc78c6b966ce
2013-08-31 21:33:56 -07:00
Jeff Sharkey
ae9b51bfa3 Refactoring of DocumentsContract.
Combines related columns and constants onto the same class so they
are easier to discover.  Move back to surfacing roots with columns
so they are consistent with documents.

Advanced roots are represented with a flag instead of distinct
types.  Flags to indicate supporting of well-known media types,
instead of arbitrary an MIME filter.  Reintroduce well-formed rootId
to support recents.

Always use the expanded version of "documents" in constants, methods,
and argument names.

Refactor DocumentProvider method names to clearly distinguish if
a single item or multiple could be returned, and of which type.  Add
documentation to clearly define which methods have already been
overridden.

Bug: 10567506, 10567557
Change-Id: I981f26ab82f2b520a19aa1ce66f659de50d7fac0
2013-08-31 16:58:28 -07:00
John Spurlock
bf3a4cb8ae am 982b170e: am 52c10e94: Merge "Status bar icons as expressions of white." into klp-dev
* commit '982b170e199ba3763d6fe210289762c37c46f240':
  Status bar icons as expressions of white.
2013-08-31 08:04:37 -07:00
John Spurlock
982b170e19 am 52c10e94: Merge "Status bar icons as expressions of white." into klp-dev
* commit '52c10e94d98e32d977bfd4021136f4c9fa571bd6':
  Status bar icons as expressions of white.
2013-08-31 08:02:16 -07:00
John Spurlock
bbb97ae7a5 Status bar icons as expressions of white.
Bug:10502089
Change-Id: Id13badd6c729b79492aec5370dbb3dc2479008fd
2013-08-30 21:11:19 -04:00
Jim Miller
c1693cab70 am bd77aa6b: am dd238b56: Merge "Attempt to fix missing clock bug" into klp-dev
* commit 'bd77aa6bfda755a250be36581f95f0da8e7241a7':
  Attempt to fix missing clock bug
2013-08-30 12:59:00 -07:00
Jim Miller
bd77aa6bfd am dd238b56: Merge "Attempt to fix missing clock bug" into klp-dev
* commit 'dd238b5604e14d0da458f9b7589097d365a9dfd1':
  Attempt to fix missing clock bug
2013-08-30 12:56:52 -07:00