43795 Commits

Author SHA1 Message Date
Mindy Pereira
646e0ac093 am d1e01cb4: Merge "Update checkbox assets" into klp-dev
* commit 'd1e01cb46c251f8416361efc75888ed708788a25':
  Update checkbox assets
2013-10-01 14:51:27 -07:00
Mindy Pereira
d1e01cb46c Merge "Update checkbox assets" into klp-dev 2013-10-01 21:48:23 +00:00
Svetoslav Ganov
fddc4bfed5 am b1cd745f: Merge "Fail print jobs targeted to unavailable services." into klp-dev
* commit 'b1cd745fd23cd0514a338bb07abcd031db10db7c':
  Fail print jobs targeted to unavailable services.
2013-10-01 14:35:12 -07:00
Svetoslav Ganov
b1cd745fd2 Merge "Fail print jobs targeted to unavailable services." into klp-dev 2013-10-01 21:30:53 +00:00
Christopher Tate
e40b303342 am 5088fc85: Merge "Specialized prompting when \'home\' has become ambiguous" into klp-dev
* commit '5088fc858c5a7f234310b51c0fa87a9a617eef7d':
  Specialized prompting when 'home' has become ambiguous
2013-10-01 13:40:56 -07:00
Christopher Tate
5088fc858c Merge "Specialized prompting when 'home' has become ambiguous" into klp-dev 2013-10-01 20:39:05 +00:00
Christopher Tate
b72b363c97 Specialized prompting when 'home' has become ambiguous
Bug 9958444

Change-Id: I050ae425e570cfc8ffd473587fb2a6127c36eeec
2013-10-01 13:32:13 -07:00
Alan Viverette
6320305a60 am f079a6d0: Merge "Set live region property on AccessibilityNodeInfo" into klp-dev
* commit 'f079a6d07f64045526a094077a1e9f4ceb40da76':
  Set live region property on AccessibilityNodeInfo
2013-10-01 11:35:36 -07:00
Alan Viverette
c379752a32 am 3320ef95: Merge "Add findFocus API for AccessibilityNodeProvider" into klp-dev
* commit '3320ef95de1775cfdb2bdc0c31cf6ba54d8e8900':
  Add findFocus API for AccessibilityNodeProvider
2013-10-01 11:35:32 -07:00
Alan Viverette
f079a6d07f Merge "Set live region property on AccessibilityNodeInfo" into klp-dev 2013-10-01 18:33:12 +00:00
Alan Viverette
3320ef95de Merge "Add findFocus API for AccessibilityNodeProvider" into klp-dev 2013-10-01 18:32:48 +00:00
Jeff Sharkey
666b998b67 am 364fc14f: Merge "Detect wedged ContentProviders, treat as ANR." into klp-dev
* commit '364fc14f544712a2d32cc0f32e84dfe4127376a6':
  Detect wedged ContentProviders, treat as ANR.
2013-10-01 10:31:47 -07:00
Jeff Sharkey
7aa7601c09 Detect wedged ContentProviders, treat as ANR.
All ContentProvider calls are currently blocking, making it hard for
an app to recover when a remote provider is wedged.  This change adds
hidden support to ContentProviderClient to timeout remote calls,
treating them as ANRs.  This behavior is disabled by default.

Update DocumentsUI to use a 20 second timeout whenever interacting
with a storage provider.

Bug: 10993301, 10819461, 10852518
Change-Id: I10fa3c425c6a7225fff9cb7a0a07659028230cd3
2013-10-01 09:50:41 -07:00
Svetoslav Ganov
db85ad56ad Fail print jobs targeted to unavailable services.
It is possible that a print job is scheduled for handling, i.e. it is
queued, after the target print service is uninstalled or disabled.
In case like this we fail the print job with an appropriate error
message. Now the user can cancel the job when he/she sees the notification
or the status in the print settings. Trying to restart such a job will
end up failing it again with the same error message. So the user will
just have to canel the print job.

This apporach quarantees that the user is informed for the failure and
also is much simpler than trying to update the UI when print job's
target serivce is uninstalled. For example, the settings UI has to
be updated as well as the notifications. Also due to the async nature
of the system this we cannot completely avoid having a restart option
for a print job whose target service is gone. This scenario is very
unlikely but still we have to handle it.

bug:11012251

Change-Id: Id8c8c3cff75e0b6325552676b130ff1406edc069
2013-10-01 07:49:06 -07:00
Baligh Uddin
bf83288b5a Merge "Import translations. DO NOT MERGE" into klp-dev 2013-10-01 02:42:38 +00:00
Igor Murashkin
1b1cb30d8e Merge "camera2: Fix CameraMetadata#getKeys" into klp-dev 2013-10-01 02:10:17 +00:00
Igor Murashkin
03fdb14ba8 camera2: Fix CameraMetadata#getKeys
Bug: 11007040
Change-Id: I08755bf45ae60ff00736af3672a9f6091f460496
2013-09-30 17:38:54 -07:00
Svetoslav
95b1bbfe6c Merge "Fix the build" into klp-dev 2013-10-01 00:36:56 +00:00
Svetoslav
f43e851f96 Fix the build
Change-Id: I2d701199808b1a0d482b9593c8b0730a408c3e8e
2013-09-30 17:33:05 -07:00
Jeff Brown
5e65adaf41 Merge "Reset insets when inset computer is removed." into klp-dev 2013-10-01 00:15:25 +00:00
Alan Viverette
f877ed96b7 Set live region property on AccessibilityNodeInfo
BUG: 11012854
Change-Id: I2c88468be597eb3694fe3d0eb2f2d86981ea9829
2013-09-30 17:11:46 -07:00
Dianne Hackborn
b9edb3a22b Merge "Fix issue #10971287: Make ACCESS_BATTERY_STATS permission system or signature." into klp-dev 2013-09-30 23:38:19 +00:00
Jeff Brown
2e05ec3235 Reset insets when inset computer is removed.
When an inset computer is registered with the view tree observer,
we report content insets to the window manager.  When an inset computer
is subsequently unregistered, we must take care to clear these insets.

This patch remembers whether the previously computed insets were
non-empty so that it can force insets to be reset when needed.

Bug: 10840662
Change-Id: I4cce5ba64cc5234b98363b025ac4bb42e64349f1
2013-09-30 15:57:43 -07:00
Alan Viverette
6f07cc8424 Merge "Rebind transient state views when available" into klp-dev 2013-09-30 21:33:22 +00:00
Robert Greenwalt
bad5d694c7 Merge "Use a build-specific wifi country code" into klp-dev 2013-09-30 21:13:24 +00:00
Alan Viverette
2e1e081146 Add findFocus API for AccessibilityNodeProvider
BUG: 9372171
Change-Id: Iea46ce5a4bf25baaabe5c07cd7d0c58bb31f23d9
2013-09-30 13:45:55 -07:00
Adam Powell
81517c86a1 Merge "Make toast frames a little more opaque" into klp-dev 2013-09-30 20:24:17 +00:00
Alan Viverette
f9736d3b9a Rebind transient state views when available
If a view is obtained, it is guaranteed to represent the same data.

BUG: 10901462
Change-Id: Ice2b3508ae8cf444f006c084e6b7a3e79373723b
2013-09-30 12:44:54 -07:00
Matthew Xie
0e772b2268 Merge "Unhide setPin, setPin, setPairingConfirmation, and relevant intent fields" into klp-dev 2013-09-30 18:56:39 +00:00
Adam Powell
40c4a6d427 Make toast frames a little more opaque
Bug 10994053

Change-Id: I719c8e4a44621b8c838b0897e6c486884e735357
2013-09-30 11:23:50 -07:00
Dianne Hackborn
3714141d28 Fix issue #10971287: Make ACCESS_BATTERY_STATS permission system or signature.
Change-Id: I432a2ddbd2fe1d095bb3895c5c122acf465d0c9b
2013-09-30 10:16:10 -07:00
Baligh Uddin
f1facac803 Import translations. DO NOT MERGE
Change-Id: Ia72602b06a1df0f7d19e4b3aaf201b5a95f88944
Auto-generated-cl: translation import
2013-09-30 09:45:00 -07:00
Dianne Hackborn
57d96f0e92 Merge "Fix issue #10948509: Crash in procstats when there is no data" into klp-dev 2013-09-30 00:21:48 +00:00
Dianne Hackborn
cb4285537b Fix issue #10948509: Crash in procstats when there is no data
Not dealing with the case where there is a null list.

Also fixed some bugs I found while looking at this:

- When resetting the stats, we would use a newly computed time stamp
  for the total durations rather than the one we used to reset the
  proc/service entries.  This would result in them being able to be
  slightly > 100%.
- There was a bug in how we split a single process state into its
  per-package representation, where we would but the cloned process
  state into the new package's entry (instead of properly for its
  own package entry), to be immediately overwritten by the new
  process state we make for that package.  This could result in
  bad data for processes that have multiple packages.
- There was a bug in resetting service stats, where we wouldn't
  update the overall run timestamp, allowing that time to sometimes
  be > 100%.
- There was a bug in computing pss data for processes with multiple
  packages, where the pss data was not distributed across all of the
  activity per-package process states.
- There was a bug in computing the zram information that would cause
  it to compute the wrong value, and then never be displayed.

Finally a little code refactoring so that ProcessState and ServiceState
can now share a common implementation for the table of duration values.

Change-Id: I5e0f4e9107829b81f395dad9419c33257b4f8902
2013-09-29 17:14:15 -07:00
Mindy Pereira
1fbc1a2b69 Update checkbox assets
Fixes b/10894001 Pressed checkbox asset slightly offset from normal version

Change-Id: I73c1b58675405adf3550b7d498cf6535e4b1cee0
2013-09-29 16:51:56 -07:00
Robert Greenwalt
c33cd23c17 Use a build-specific wifi country code
This ignores any previous setting and instead uses
a value set at build time.  This does not preclude
us from using some other signal to determine country
for wifi channel limits.

bug:10513734
Change-Id: Ib82c07285af70fbd82eb0466b7391979ebc8be10
2013-09-29 15:45:47 -07:00
Matthew Xie
091fc2ba7a Unhide setPin, setPin, setPairingConfirmation, and relevant intent fields
bug 9987787

Change-Id: Id1c149964137e35703310e2f2893c8830aacddea
2013-09-29 13:17:56 -07:00
Svetoslav Ganov
cfab2457f2 Printers in the list of printers change position.
While the logic was correct the array map that holds the list of pritners
does not keep the position of the items constant. Switched to linked hash
map which gives this guarantee.

bug:10955751

Change-Id: Idbbe14d753e6a1ad1002f2289b10cb62d7f9f040
2013-09-28 12:09:29 -07:00
Svetoslav
d8dbc13b47 Ignore historical printer records for installed services
When loading historical records for previously used printers we
now ignore the ones whose target print service is not installed.

bug:10955652

Change-Id: Ib295e7d88ed3c308ef6d8a11bdc1792ebbb6d526
2013-09-27 18:46:24 -07:00
Jim Miller
fb2e3c8d47 Merge "Fix permissions on WindowManagerService.showAssistant()" into klp-dev 2013-09-28 01:18:17 +00:00
Svetoslav Ganov
b415525a16 Merge "Print job files and print job records not always cleaned up." into klp-dev 2013-09-28 01:06:51 +00:00
Jeff Sharkey
cc637d9ae5 Merge "New roots UX, async, performance, docs." into klp-dev 2013-09-28 00:27:29 +00:00
Svetoslav Ganov
dd68da2741 Print job files and print job records not always cleaned up.
1. We want the files for a print job to be removed as early as possible
   typically because the print job was cancelled, completed, the app
   or the spooler crashed during print job construction. We were keeping
   around in the spooler and hence to disc infos for jobs that are in
   final state since the app that created them may hold a reference to
   a local print job objec whose info it can access to get the latest
   print job state potentially after the job reached final state. The
   issue was that we were persisting to disc created print jobs which
   were during construction which requires careful handling for the
   various cases above. This is tricky and error prone.

   We used to tell the spooler to forget the print jobs infos when the
   app that created them died. The implementation to forget a print
   job was not careful and was nuking currently running print jobs in
   addition to the ones in a terminal state. Further, if the app dies
   before a print job is completed we were left with a stale print
   job in the spooler since we missed the signal to forget it (assuming
   we forget only inactive jobs). These issues suggest that the approach
   is problematic.

   Now we have a cache of print job infos for the jobs an app created.
   This cache is updated when the state of a print jobs changes using
   the new print job state observation code. When the app dies we
   remove the cached jobs for that app. Now if the app calls to get
   the print jobs it gets the cached ones, i.e. the print jobs it
   created during its lifetime, plus the print jobs that are still
   active fetched from the spooler. Note that transient state cannot
   be kept in the spooler since we unbind from it if there is no
   work and it may get killed.

2. Improved the print sub-system logging code to show the cached
   print job infos for apps and also dump the print job PDF file
   names.

bug:10958357

Change-Id: I6f7c1968b6b7ba5be182a10df044ff7ea1fc3a61
2013-09-27 17:26:44 -07:00
Michael Wright
edb444b444 Merge "Add missing constructor parameter to KeyEvent" into klp-dev 2013-09-28 00:26:30 +00:00
Jeff Sharkey
6efba22ce5 New roots UX, async, performance, docs.
Yet another iteration from UX on how roots should be ordered.  Since
we no longer categorize by type, remove from public API.  Updated
asset drop with new dividers.

Update public API docs to be explicit about required columns.  Hide
flags and columns that aren't required for third-party apps.

Move remainder of potentially blocking work to AsyncTasks, including
creating directories, picked root resolution, and creation of new
documents once picked.

Improve performance of layouts by removing baseline alignment and
reduce hierarchy depth.  Set alpha on ImageViews directly to avoid
offscreen rendering hit.

Limit returned recents to 45 days.  Show load in recents when still
waiting for backends.  Show empty message when no recents stacks to
create from.  Use unique key when saving recent stacks.

Bug: 10941423, 10819454, 10964412, 10960718
Change-Id: I08cf589dcda7e203acf67928f4d30322ae36ee94
2013-09-27 17:13:13 -07:00
Zhijun He
9552f9b8c2 Merge "Camera2: remove CameraDevice#getProperties" into klp-dev 2013-09-27 23:58:27 +00:00
Jim Miller
6c9df5054a Fix permissions on WindowManagerService.showAssistant()
Since binder call permissions are not transitive by design,
the proper way to fix this is to have the call talk directly
to keyguard from the navigation bar.

Fixes bug 9409008

Change-Id: Ibd90a79bb638c969b514455a2ad93c6ff668222d
2013-09-27 16:29:36 -07:00
Lajos Molnar
974a6e1231 Merge "Make SubtitleController thread safe" into klp-dev 2013-09-27 22:57:22 +00:00
Lajos Molnar
29f5183794 Make SubtitleController thread safe
Add the concept of an anchor looper.
Allow show/hide/selectTrack/selectDefaultTrack to be called from thread
other than anchor looper.

Change-Id: Iaf2f3d3c46d1b00a0a24156745ec16b301c80c04
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 10919206
2013-09-27 14:55:36 -07:00
Zhijun He
599be6182e Camera2: remove CameraDevice#getProperties
Also cleanup some unnecessary imports.

Bug: 10360518
Change-Id: Id54aa4c9e3dff2bd354e3ebb83687b000842ea3f
2013-09-27 14:31:41 -07:00