6064 Commits

Author SHA1 Message Date
Christopher Tate
d16d57b45e Merge "Fix restore-agent timeouts" 2011-09-07 12:05:44 -07:00
Christopher Tate
da7caf0a3c Merge "Fix backup-agent timeouts" 2011-09-07 12:05:24 -07:00
Irfan Sheriff
7edc3d676e am 7a1204ac: Merge "Rename WpsConfiguration to Wps"
* commit '7a1204ac2c9c0aabadcd6a7eac8f1fd7772c9ce9':
  Rename WpsConfiguration to Wps
2011-09-07 10:55:57 -07:00
Irfan Sheriff
7a1204ac2c Merge "Rename WpsConfiguration to Wps" 2011-09-07 10:53:49 -07:00
Irfan Sheriff
489a9d81fd Rename WpsConfiguration to Wps
For the purpose of exposing the class as a storage for Wps
info with p2p, it is better to just call it Wps

Bug: 5247957
Change-Id: Iaebef958dd8f08fdbeb4b9d7fa5ad5527400710d
2011-09-06 22:32:58 -07:00
Christopher Tate
2982d06b7c Fix restore-agent timeouts
This patch parallels the previous one that fixed backup timeouts.
It establishes the same sort of state-machine process for walking
through the restore steps solely as events posted to the backup
manager's HandlerThread.

Fixes the rest of bug 5074923

Change-Id: I122a021cb1e9bb1342de0b71e5d4bc84cc630c58
2011-09-06 20:35:24 -07:00
Ben Komalo
e25b4f9779 am 8e147b29: Merge "Expose getting encryptstate through IMountService"
* commit '8e147b29377cab139515d17fba6ef00c868e87b6':
  Expose getting encryptstate through IMountService
2011-09-06 17:16:51 -07:00
Ben Komalo
8e147b2937 Merge "Expose getting encryptstate through IMountService" 2011-09-06 17:14:52 -07:00
Svetoslav Ganov
bc3e50055d am 1b2d5eda: Merge "Tuning the TouchExplorer"
* commit '1b2d5edac8eecae2f2bb7a029ba3a796a7092a52':
  Tuning the TouchExplorer
2011-09-06 14:17:35 -07:00
Svetoslav Ganov
1b2d5edac8 Merge "Tuning the TouchExplorer" 2011-09-06 14:16:17 -07:00
Ben Komalo
444eca2329 Expose getting encryptstate through IMountService
- this really just calls cryptfs cryptocomplete
- needed so that UI logic can present a factory reset option if
encryption screwed up

Bug: 3384231
Change-Id: I553de87f0d03a65851030c9c5266e85866d30fa6
2011-09-06 12:48:53 -07:00
satok
0e9a49b0d6 am 38aac047: Do not show the label for auto subtypes
* commit '38aac047431ea370509f956ad16224b39a71e586':
  Do not show the label for auto subtypes
2011-09-05 23:52:17 -07:00
satok
38aac04743 Do not show the label for auto subtypes
Change-Id: Ie62d0b83f2fcb2c93d3935bcaa5121d2adc56b7d
2011-09-06 14:41:33 +09:00
Ken Wakasa
fecb144973 am 05dbb65d: Two line item for the IME switcher dialog.
* commit '05dbb65dfa3b81a4b70069ca6aa0a343b56565f9':
  Two line item for the IME switcher dialog.
2011-09-05 08:29:18 -07:00
Ken Wakasa
05dbb65dfa Two line item for the IME switcher dialog.
bug: 5098770
Change-Id: I2b955973e7f223d8c98d8dac6aaa657a7a31b555
2011-09-06 00:07:03 +09:00
Svetoslav Ganov
12a024ca68 Tuning the TouchExplorer
1. Tuned the max angle between two moving fingers in touch
   exploration mode for a gesture to be considered a drag.
   The previous value was too aggressive and it was fairly
   easy for the user to get out of dragging state if she
   ingreases the distance between her fingers.

bug:5223787

2. Before clicking the explorer was sending hover enter and
   exit resulting in firing the corresponding accessibility
   events which leads to announcement of the content under
   the tap that triggered the click. However, the click is
   actually performed on the last touch explored location
   (if in the distance slop of course) instead of the actual
   tapping pointer location. Before fixing that the user was
   confused since he was hearing announcement of one content
   but actually was clicking on something else.

bug:5225721

Change-Id: I79fec704878f98c95f181bf8a9647e0bb1bd10ef
2011-09-03 20:03:35 -07:00
Adam Cohen
c68fda4575 am fead8f97: Merge "Ensure appwidgets are loaded before usage."
* commit 'fead8f976700906101714b3265e64e30c0a80180':
  Ensure appwidgets are loaded before usage.
2011-09-02 17:36:16 -07:00
Adam Cohen
fead8f9767 Merge "Ensure appwidgets are loaded before usage." 2011-09-02 17:35:00 -07:00
Christopher Tate
8e294d4557 Fix backup-agent timeouts
Away in the misty span of very-long-ago, it was suggested that spinning
a separate thread to run the backup process was wasteful, and that it
could just run it inline on the dedicated HandlerThread that the
backup manager uses for its own operations.  That was indeed true,
except that the timeout management was also using delayed messages
to that handler.  You see where this is going: timeouts were never
actually being processed, with the effect that a badly-behaving
app's backup agent could lock up the entire backup / restore system
until the device was rebooted.

This is bad.

Backup operations are now driven as an asynchronous state machine:
each step (init, call one agent to obtain data, send resulting
data to the transport, finalize the backup) is handled as a formal
state transition on-looper.  No synchronous wait-for-completion
or -timeout is performed on any thread.

As an additional effect this greatly tightens up the serialization
and locking semantics.  We no longer have to worry about an in-
flight operation involving a standalone thread spinning off on
its own; everything is on the HandlerThread and can be coherently
manipulated from that perspective.

Along the way, this CL tightens up the per-agent error handling
logic.  Previously a single failed agent would abort the entire
backup process, tantamount to a transport-level failure.  This could
mean that the aforesaid badly-behaving app's agent could in effect
starve out other apps whose agents were routinely showing up later
in the queue.  There's some nondeterminism involved, but in practice
it could and did happen.  Furthermore, the failure case would
reschedule *immediately* in this case, because the transport itself
would see that all is well and sure, why not run a backup soon?
This, as you might imagine, causes battery-life issues.

Now we note that the single agent has failed, mark it for a future
repeat attempt, and process the rest of the queue normally, pretending
success at the transport level even though we didn't actually send
any data for that app.  This means that (a) we now finish running
backups for everything in the queue, (b) reschedule backups only for
those apps whose agents individually failed during this run, and
(c) perform the retry after the normal interval [typically on the
order of an hour] rather than immediately.

NOTE: this CL does not retool the restore code path, just backup.
Restore is similarly vulnerable to misbehaving apps, though, so a
future CL will address that bug vector.

Addresses bug 5074923

Change-Id: I67e3f8d06f322607881eaa4093de6d675b85ff2c
2011-09-02 17:21:09 -07:00
Dianne Hackborn
59a12eb2cc am 6b0c11da: Merge "Fix issue #5150899: Call activity takes 15MB we never get back."
* commit '6b0c11da5a7a7ea236fd9dc409d1ce7a33bff9c2':
  Fix issue #5150899: Call activity takes 15MB we never get back.
2011-09-02 17:20:44 -07:00
Dianne Hackborn
6b0c11da5a Merge "Fix issue #5150899: Call activity takes 15MB we never get back." 2011-09-02 17:18:32 -07:00
Dianne Hackborn
5d927c2d8e Fix issue #5150899: Call activity takes 15MB we never get back.
Persistent process can no longer use hardware acclerated drawing
when running on a low-memory device.

Change-Id: I3110335617af1c98fcede9bf41f4a1d0c20d0e87
2011-09-02 12:22:18 -07:00
Mike Lockwood
189a6db36b am c4589608: Merge "Fix logic for power button overridding the "wait for prox negative state" after a call"
* commit 'c458960886322a4403a1deb89ffbe3a24f9ee470':
  Fix logic for power button overridding the "wait for prox negative state" after a call
2011-09-02 10:06:15 -07:00
Mike Lockwood
db97f60054 Fix logic for power button overridding the "wait for prox negative state" after a call
When in a phone call, we keep the screen off while the prox sensor returns positive
and the device is oriented in a vertical position.
If the call is terminated on the other end, we keep the screen off
until the proximity sensor returns negative.
We do this to avoid having the screen turn on as soon as the other end
hangs up while the phone is still next to your head.

However, we allow the power button to wake the screen while waiting for the proximity
sensor to go negative as a precaution in case there is a problem with the proximity sensor.
But unfortunately that logic broke due to a change in the call path used to turn the screen
on from the power button (it previously called userActivity, now it uses a wake lock).
This change adds code to handle the new code path so the power button will wake the screen
while we are waiting for the proximity sensor to go negative after a call.

Bug: 5184524

Change-Id: I7d1e0f0d1f78680c552a05d68a392647823250ab
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-09-02 11:59:08 -04:00
satok
735e67bf57 am bffb83e9: Merge "Add an option for the implicitly selected subtype"
* commit 'bffb83e96c2f3d01bf42490737201ab4de79c91b':
  Add an option for the implicitly selected subtype
2011-09-02 04:48:08 -07:00
satok
bffb83e96c Merge "Add an option for the implicitly selected subtype" 2011-09-02 04:44:41 -07:00
satok
a86f5e448c Add an option for the implicitly selected subtype
Bug: 5057886
Change-Id: Iddde4724891501b4f18cade6a3d2c64b6124e58a
2011-09-02 20:27:38 +09:00
satok
4ef47c22ec am ee5e77ca: Make setAdditionalInputMethodSubtypes async
* commit 'ee5e77cafec2eae70890abdcc1646ed39b06eddd':
  Make setAdditionalInputMethodSubtypes async
2011-09-02 03:32:26 -07:00
satok
ee5e77cafe Make setAdditionalInputMethodSubtypes async
Bug: 5120261
Change-Id: Ic7869cfaa5361531e08d58d7dfa5ba0feab0613e
2011-09-02 19:22:50 +09:00
Jeff Sharkey
15d161f61b Ensure appwidgets are loaded before usage.
Before accessing appwidget details, always ensure that configuration
is loaded from disk.

Change-Id: Ic71dd62fcdb1d1e5f7bae397efa8dce787434ba5
2011-09-01 22:35:19 -07:00
Jeff Sharkey
5472ac3c70 am 9b69a04e: Merge "Sample network statistics for sanity check."
* commit '9b69a04e24e70a8e82e1820c877c8f4df0c7a980':
  Sample network statistics for sanity check.
2011-09-01 21:32:42 -07:00
Jeff Sharkey
ece369ad5e am c7f159e2: Merge "Selectively add stats based on iface active state."
* commit 'c7f159e29f1522a8c362145f8d454c21fc1e920e':
  Selectively add stats based on iface active state.
2011-09-01 21:32:39 -07:00
Jeff Sharkey
9b69a04e24 Merge "Sample network statistics for sanity check." 2011-09-01 21:31:21 -07:00
Jeff Sharkey
c7f159e29f Merge "Selectively add stats based on iface active state." 2011-09-01 21:31:15 -07:00
Dianne Hackborn
0d772c766f am 7de6578f: Merge "Fix issue #4974633: Block the HOME button using TYPE_KEYGUARD"
* commit '7de6578f1c4bf97c9f856f819d4985d25163012a':
  Fix issue #4974633: Block the HOME button using TYPE_KEYGUARD
2011-09-01 16:54:31 -07:00
Dianne Hackborn
7cbbb8b1a3 am 69666e07: Merge "Fix issue #5229575: Youtube link shared through messaging is not..."
* commit '69666e078152362b19d02d9ee79bbd5fc69e09c3':
  Fix issue #5229575: Youtube link shared through messaging is not...
2011-09-01 16:54:23 -07:00
Dianne Hackborn
7de6578f1c Merge "Fix issue #4974633: Block the HOME button using TYPE_KEYGUARD" 2011-09-01 15:56:36 -07:00
Dianne Hackborn
69666e0781 Merge "Fix issue #5229575: Youtube link shared through messaging is not..." 2011-09-01 15:54:43 -07:00
Jeff Sharkey
0fea823673 Selectively add stats based on iface active state.
Only combine /proc/net/dev and xt_qtaguid stats when iface is marked
as active.  When inactive, only return xt_qtaguid stats.  When iface
is unknown to xt_qtaguid, always pass through /proc/net/dev stats.

Bug: 5242730
Change-Id: I469fc6abe45309f794afebca814cbb39e4f13af5
2011-09-01 15:23:38 -07:00
Jeff Sharkey
07b0dd9a09 Sample network statistics for sanity check.
After detailed poll events, sample high-level network statistics to
sanity check iface totals against UID totals.

Bug: 5248382
Change-Id: I1c1fbb7c094c9ff0c9dde416467c563dda68f478
2011-09-01 15:07:19 -07:00
Dianne Hackborn
ba24e4d8bb Fix issue #5229575: Youtube link shared through messaging is not...
...opening after selecting option "Youtube" as a luncher.

Also:

* Tweak window animations so that the wallpaper exist animations do not
stop too early (causing the wallpaper to suddenly disappear).
* Make sure no input is being processed while booting, to avoid
accidentally doing things especially in the upgrade dialog.
* Some other small cleanup.

Change-Id: I40a6b53731991d4e31ac4502e3d85f0e47507481
2011-09-01 12:39:17 -07:00
Dianne Hackborn
0e60db221c Fix issue #4974633: Block the HOME button using TYPE_KEYGUARD
Applications shouldn't be able to change their window type after
the window is added to the window manager.

Change-Id: Iac63da65f96fb30683f68f8d89c3fd29199a750c
2011-09-01 11:17:57 -07:00
Robert Greenwalt
81f2a36a53 am 2d012c12: Merge "Create new isNetworkSupported API"
* commit '2d012c128fda793be3bf443f0b8596fbe23ca323':
  Create new isNetworkSupported API
2011-08-31 17:46:41 -07:00
Robert Greenwalt
2d012c128f Merge "Create new isNetworkSupported API" 2011-08-31 17:44:50 -07:00
Robert Greenwalt
9b2886e243 Create new isNetworkSupported API
Useful for checking if on a wifi-only device.
Similar to asking for NetworkInfo for a network type and checking for
null, though here the intent is explicit.

bug:5087537
Change-Id: Ia3ddd09b6b735b8b3ceb7a347891e015fd96b218
2011-08-31 16:53:12 -07:00
Dianne Hackborn
8aab8b5759 am 1434ab98: Merge "Use floating point window positions."
* commit '1434ab98e690cbcfcdcd2296b491a44bff14cc55':
  Use floating point window positions.
2011-08-31 14:22:37 -07:00
Dianne Hackborn
d040edbae9 Use floating point window positions.
Gets rid of gapps between windows during animations.

Change-Id: I17d2ef0af214008f0eabd7eb19268f145fe83b39
2011-08-31 14:18:32 -07:00
Romain Guy
e5fd23f885 am dcc882ed: Merge "Make ViewServer more quiet Bug #5231539"
* commit 'dcc882edfe530e1bbd61e776a7d2c8b874768e1d':
  Make ViewServer more quiet Bug #5231539
2011-08-31 14:14:34 -07:00
Romain Guy
dcc882edfe Merge "Make ViewServer more quiet Bug #5231539" 2011-08-31 14:12:18 -07:00
Romain Guy
cbe67d5b33 Make ViewServer more quiet
Bug #5231539

Change-Id: Ib1f3e0d7592b4af802efe4e9630a220c23450521
2011-08-31 14:11:07 -07:00