5249 Commits

Author SHA1 Message Date
Jeff Sharkey
dd5b9e38bb am f7e2a2e9: Merge "Management actions, invalidate caches." into klp-dev
* commit 'f7e2a2e96321f56c53cad01a69bd71b281900030':
  Management actions, invalidate caches.
2013-08-19 12:58:43 -07:00
Jeff Sharkey
f7e2a2e963 Merge "Management actions, invalidate caches." into klp-dev 2013-08-19 19:55:20 +00:00
Baligh Uddin
7e7f8d48a6 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-08-19 18:38:51 +00:00
Baligh Uddin
541b77c866 Import translations. DO NOT MERGE
Change-Id: I7fcd9d781a4d960b3edf245a4ee19f1a6b6bd35c
Auto-generated-cl: translation import
2013-08-19 08:23:40 -07:00
John Spurlock
8e514f10e0 am f01f1e9b: Merge "Use panel tracking as signal preventing auto-collapse." into klp-dev
* commit 'f01f1e9b9e6b9ced969d79489619947fd5fedcbe':
  Use panel tracking as signal preventing auto-collapse.
2013-08-19 07:39:05 -07:00
John Spurlock
b2c48e876d am 91bab13b: Merge "Transition bars to opaque on user interaction." into klp-dev
* commit '91bab13b00f49a38b4aab18bceb3c8b9877e723c':
  Transition bars to opaque on user interaction.
2013-08-19 07:35:40 -07:00
John Spurlock
f6efa0df45 am 9bf6f5b0: Merge "Lose navigation bar icon alpha in transparent modes." into klp-dev
* commit '9bf6f5b05abc1fa26fe873554de4ee16c8e855ac':
  Lose navigation bar icon alpha in transparent modes.
2013-08-19 07:35:37 -07:00
John Spurlock
f01f1e9b9e Merge "Use panel tracking as signal preventing auto-collapse." into klp-dev 2013-08-19 14:35:20 +00:00
John Spurlock
91bab13b00 Merge "Transition bars to opaque on user interaction." into klp-dev 2013-08-19 14:34:27 +00:00
John Spurlock
9bf6f5b05a Merge "Lose navigation bar icon alpha in transparent modes." into klp-dev 2013-08-19 14:33:52 +00:00
John Spurlock
3b139a9ed0 Transition bars to opaque on user interaction.
When the transient bars are revealed, smoothly transition the
bar style to opaque to blend with the other panel chrome.

Bug:8706719
Change-Id: I65e5b22e2f91a3db0394c0f571127397ba692f46
2013-08-19 10:22:28 -04:00
Lorenzo Colitti
2ee168ea02 Display signal strength on data-only SIMs.
On SIM cards that support data but not voice, we currently
display a null signal strength icon, which is confusing because
data is actually working.

Fix this by displaying signal bars as well as showing the
"emergency calls only" or "no service" text which indicates that
voice service is not available.

Bug: 3339315
Change-Id: I7d888721e8dc5e22fefd1b8fa85ba046d46a8fba
2013-08-19 20:46:15 +09:00
Jeff Sharkey
b448660a22 Request more documents when EXTRA_HAS_MORE.
Implement EXTRA_HAS_MORE and EXTRA_REQUEST_MORE contract with
document providers.  Providers can include EXTRA_HAS_MORE when
additional data is available with additional cost, such as a network
request.

Listen to content changes based on returned cursor instead of
original Uri.  Include a test backend to exercise.  UX still under
development.

Bug: 10350207
Change-Id: Iaa8954df55a1a1c0aa96eb8a4fd288e12c2fbb01
2013-08-18 22:32:02 -07:00
Jeff Sharkey
4eb407a832 Management actions, invalidate caches.
In manage mode, touching launches a VIEW intent for the file.  Also
adds actions for sharing and deleting.

Move roots and thumbnail caches into Application object, and flush
cache when thumbnail size changes.  Listen for package changes and
broadcasts that should invalidate our roots cache.

Pick default grid/list mode based on provider hint.

Bug: 10329983, 10330210, 10378834, 10330069
Change-Id: I75afb1c58ab71bb9d55852b1059da7257a376248
2013-08-18 21:14:02 -07:00
Jeff Sharkey
ae59980c24 am 58514937: Merge "Resized thumbnails; async; extend MatrixCursor." into klp-dev
* commit '58514937628dfcf3b2949e4cbc45d5526ecb8019':
  Resized thumbnails; async; extend MatrixCursor.
2013-08-18 13:55:42 -07:00
Jeff Sharkey
5851493762 Merge "Resized thumbnails; async; extend MatrixCursor." into klp-dev 2013-08-18 20:53:29 +00:00
Jeff Sharkey
9d0843df7e Resized thumbnails; async; extend MatrixCursor.
When requesting thumbnails, check if their dimensions are larger
than requested, and downscale to avoid memory pressure.  Load them
async and with LruCache.

Extend MatrixCursor so that RowBuilder can offer() columns without
requiring they know the projection map.  This makes it easier to
respond to query() calls, where the remote side controls the
projection map.  Use it to handle custom projections in external
storage backend.

Update date/time formatting to match spec.

Bug: 10333418, 10331689
Change-Id: I7e947a8e8068af8a39b55e6766b3241de4f3fc16
2013-08-17 19:05:07 -07:00
John Spurlock
a4b70aff34 Use panel tracking as signal preventing auto-collapse.
Keeping track of pointer down at the window view level is unreliable
since gestures can be stolen.

Bug:10328256
Bug:10226720
Change-Id: I92d72f9eed73f90d2a7c5b30a3f6a4aa6549f799
2013-08-17 14:09:37 -04:00
John Spurlock
89835ddf32 Lose navigation bar icon alpha in transparent modes.
Also decouple visual style from bar mode in preparation for future
changes.

Bug:10344949
Change-Id: I8e5a94b023cd6a6606c3aab485f81b1494295cee
2013-08-16 16:58:45 -04:00
Baligh Uddin
7f2f60debe Merge "Import translations. DO NOT MERGE" into klp-dev 2013-08-16 18:02:17 +00:00
Jeff Sharkey
dc217bd6ba am 3aa2d9f5: Merge "Documents management mode; API adjustment." into klp-dev
* commit '3aa2d9f5530524287dcff84369d8298f12bc3f0d':
  Documents management mode; API adjustment.
2013-08-15 17:13:08 -07:00
Jeff Sharkey
3aa2d9f553 Merge "Documents management mode; API adjustment." into klp-dev 2013-08-16 00:08:05 +00:00
Jeff Sharkey
a5599ef636 Documents management mode; API adjustment.
Create documents manage mode to support Downloads and transient
storage devices.  Locks user into requested backend root, and forces
file sizes on and sorting by last modified.

Separate API constants for Documents versus Roots, and give concrete
MIME types for roots.

Treat null sizes as unknown.  Documents are always enabled in list
so that divider is drawn.  Mark external storage file as writable.

Bug: 10329983, 10332993, 10332952
Change-Id: I05f4fdf5b04041a38e1ba7fb30202a3b0c615bf6
2013-08-15 16:25:30 -07:00
John Spurlock
99df31a254 am 1d5ac159: Merge "Maintain TRANSIENT_*_BAR flags until transient bars hidden." into klp-dev
* commit '1d5ac159745234d54fd6aa63fa43c85741bcaf6d':
  Maintain TRANSIENT_*_BAR flags until transient bars hidden.
2013-08-15 15:18:07 -07:00
John Spurlock
1d5ac15974 Merge "Maintain TRANSIENT_*_BAR flags until transient bars hidden." into klp-dev 2013-08-15 22:13:14 +00:00
Jeff Sharkey
24ccfaf324 am 09400249: Merge "DocumentsUI handles GET_CONTENT; hinting, errors." into klp-dev
* commit '0940024980a9e7a96ab28612c2331d31741f0199':
  DocumentsUI handles GET_CONTENT; hinting, errors.
2013-08-15 15:02:11 -07:00
John Spurlock
27735a4ba5 Maintain TRANSIENT_*_BAR flags until transient bars hidden.
Also factor common bar-management code into a separate helper
class called BarController instead of continuing to pollute
PhoneWindowManager with duplicate logic.

Bug:10345412
Change-Id: I880900e61daa6c2c53b169e4885e68ebc62ecb6c
2013-08-15 17:16:28 -04:00
Jeff Sharkey
54ca29a5b9 DocumentsUI handles GET_CONTENT; hinting, errors.
Document browser now takes over all GET_CONTENT requests that request
openable Uris. It shows both storage backends and includes other apps
that respond to GET_CONTENT. Only grants transient read permissions.

Better guarding against throwing storage backends. Send sort order
and local-only hinting to backends.

Require that OPEN/CREATE_DOC users include openable category.

Bug: 10330112, 10329976, 10340741, 10331689, 10329971
Change-Id: Ieb8768a6d71201816046f4a4c48832061a313c28
2013-08-15 14:14:48 -07:00
John Spurlock
2b5d0264b2 am ac0a1ea0: Merge "Recover tracking pointer going up mid-gesture in shade." into klp-dev
* commit 'ac0a1ea06f4a11550e3ee476bbb89ece2984e826':
  Recover tracking pointer going up mid-gesture in shade.
2013-08-15 09:42:47 -07:00
John Spurlock
ac0a1ea06f Merge "Recover tracking pointer going up mid-gesture in shade." into klp-dev 2013-08-15 16:38:46 +00:00
Daniel Sandler
f9310baf2e am da68124d: Merge "Defend against NPE." into klp-dev
* commit 'da68124da23acadc192ba996d0e64f6d362a9a26':
  Defend against NPE.
2013-08-15 09:11:57 -07:00
Daniel Sandler
da68124da2 Merge "Defend against NPE." into klp-dev 2013-08-15 16:06:49 +00:00
John Spurlock
48fa91a818 Recover tracking pointer going up mid-gesture in shade.
Keep track of the pointer id used in driving the gesture. If
it happens to go up mid-gesture (another pointer is still down),
continue the gesture with another down pointer, instead of
abruptly jumping on next ACTION_MOVE.

Bug:10246050
Change-Id: Ia6e59658635fd696974fe415f37811d27da80519
2013-08-15 09:29:31 -04:00
Baligh Uddin
0046317044 Import translations. DO NOT MERGE
Change-Id: Ibb2df782552963c6a3a39f57c8fd8cce6f2f7654
Auto-generated-cl: translation import
2013-08-14 11:47:49 -07:00
Svetoslav
111566255b am 59703c71: Merge "Partial implementation for the favorite and available printer tracking." into klp-dev
* commit '59703c7186ea49669e7dd326a1e2e704385cbaff':
  Partial implementation for the favorite and available printer tracking.
2013-08-14 07:58:43 -07:00
Svetoslav
59703c7186 Merge "Partial implementation for the favorite and available printer tracking." into klp-dev 2013-08-14 07:09:25 +00:00
Svetoslav
66160bb881 Partial implementation for the favorite and available printer tracking.
1. Added a dedicated class that keeps track of the user's favorite printers
   based on past usage. We keep the last 50 uses and assign a decreasing weight
   to older historical use records. The printer whose records' sum is the
   largest is considered the favorite for the user and so on.

2. Factored out the printer discovery logic from the print job config activity
   into a separate available printers provider class. It encapsulates all the
   logic to communicated with the remote print services to discover printers,
   keep track of added, updated, and removed printers.

3. Preliminary scetch of the printer chooser acitivty that will show all the
   printers.

Change-Id: I5524665f2a9a565f186db85214d5e41a44f4812e
2013-08-14 00:06:53 -07:00
Daniel Sandler
7a4c1afb7a am 3dfa5eb9: Merge "Toward regularizing color & level across battery indicators." into klp-dev
* commit '3dfa5eb9d9eeb12d761194cb06dc1ba63ed61e95':
  Toward regularizing color & level across battery indicators.
2013-08-13 23:33:11 -07:00
Daniel Sandler
3dfa5eb9d9 Merge "Toward regularizing color & level across battery indicators." into klp-dev 2013-08-14 06:29:05 +00:00
Daniel Sandler
dfaf3bdeeb Toward regularizing color & level across battery indicators.
Each of our existing assets is slightly incorrect in some
way: inconsistent pixel jumps from one percent to the next,
inconsistent color change, etc. The only way to get it
perfectly right is to draw it programmatically.

Bug: 8504254 // inconsistent color change threshold
-- previously --
Bug: 3136046 // in Gingerbread
Bug: 3387973 // Honeycomb
Bug: 5070948 // ICS
Change-Id: I6a3e7409ecec55e10328541ecb1e9d54aebdbe96
2013-08-13 23:21:08 -07:00
Daniel Sandler
0a565f3dcf am 0155a90e: Merge "How did that get there?" into klp-dev
* commit '0155a90eb4197a9aa1f8d53c90b02e5b53167183':
  How did that get there?
2013-08-13 22:30:10 -07:00
Daniel Sandler
0155a90eb4 Merge "How did that get there?" into klp-dev 2013-08-14 05:24:34 +00:00
Daniel Sandler
8800e46d84 How did that get there?
Whoever checked this in: Turn in your badge and your gun.

Change-Id: I635dbc3bae6a58bf425241fb4105e26cc03a9869
2013-08-13 22:19:50 -07:00
Daniel Sandler
24e028e0ec Defend against NPE.
During SystemUI startup, populating accessibility for other
views can race with attaching SignalClusterView to its parent.

Bug: 9999664
Change-Id: Iba34a3edba403ae65ff3c37b953d0736068a67b9
2013-08-13 20:18:01 -07:00
Daniel Sandler
7b9173b6f0 am a53d38bc: Merge "Drop simultaneous pointer events when tracking velocity." into klp-dev
* commit 'a53d38bc286ee35ab77843ad5b4c6b2fb9e81ac5':
  Drop simultaneous pointer events when tracking velocity.
2013-08-13 19:41:59 -07:00
Daniel Sandler
a53d38bc28 Merge "Drop simultaneous pointer events when tracking velocity." into klp-dev 2013-08-14 02:35:33 +00:00
Daniel Sandler
69f756fe9b Drop simultaneous pointer events when tracking velocity.
They're not really simultaneous, but within 1ms of one
another, which is too close for getEventTime() to
distinguish; these events were causing the velocity
computation to become (understandably) confused and
resulting in failed panel flings.

Bug: 10246454
Change-Id: I3829192cdf9ad2a222ec8deca031d772d58de0da
2013-08-13 19:24:19 -07:00
David Christie
72e6b98fec am 2163bb09: Merge "Don\'t allow airplane mode to affect location status icon. Gps still operates when airplane mode is on, and consumes just as much power so the icon shouldn\'t be hidden." into klp-dev
* commit '2163bb0924235dd3c3f47cbd8f25734cd8647ae9':
  Don't allow airplane mode to affect location status icon. Gps still operates when airplane mode is on, and consumes just as much power so the icon shouldn't be hidden.
2013-08-13 17:16:19 -07:00
David Christie
ef20fd1ea0 Don't allow airplane mode to affect location status icon.
Gps still operates when airplane mode is on, and consumes
just as much power so the icon shouldn't be hidden.

Change-Id: I10edc8771d3dd1831e94d26c6f61ca82d805cc12
2013-08-13 16:14:10 -07:00
John Spurlock
5d2268ad8d am e932e30e: Distinguish transient + transparent bar styles.
* commit 'e932e30eadb5978591316ffe3d21d60604c0cd91':
  Distinguish transient + transparent bar styles.
2013-08-13 10:34:49 -07:00