13070 Commits

Author SHA1 Message Date
Christopher Tate
c93af316e8 am a8eb5071: am 525322ec: am f9f740da: Merge "Support different watchdog timeouts for different entities" into klp-dev
* commit 'a8eb5071d20b8b9aac924753c997f28c7e9dcbb0':
  Support different watchdog timeouts for different entities
2013-10-24 14:00:45 -07:00
Christopher Tate
a8eb5071d2 am 525322ec: am f9f740da: Merge "Support different watchdog timeouts for different entities" into klp-dev
* commit '525322ecbab1502586d378e7065edc402abc63bf':
  Support different watchdog timeouts for different entities
2013-10-24 13:58:07 -07:00
Christopher Tate
f9f740dae1 Merge "Support different watchdog timeouts for different entities" into klp-dev 2013-10-24 20:52:23 +00:00
Craig Mautner
641089b69b am 1a529dda: am bcd68186: am d0d23f6a: Merge "Disable time consuming debugging code." into klp-dev
* commit '1a529ddaa71a3dfa50586a145ebfa502bea85e1d':
  Disable time consuming debugging code.
2013-10-24 12:32:48 -07:00
Craig Mautner
1a529ddaa7 am bcd68186: am d0d23f6a: Merge "Disable time consuming debugging code." into klp-dev
* commit 'bcd681862d819cf31d6de4abe36379e70d1077f5':
  Disable time consuming debugging code.
2013-10-24 12:15:40 -07:00
Adam Lesinski
f8f2f8b03f am 1a8b416b: am 9137b65c: am bb8aae5b: Merge "Improve Jank for translucent activities" into klp-dev
* commit '1a8b416b7b93f3602c3666bfc1f9cb67359f4c0e':
  Improve Jank for translucent activities
2013-10-24 11:42:30 -07:00
Craig Mautner
d0d23f6ae1 Merge "Disable time consuming debugging code." into klp-dev 2013-10-24 17:57:24 +00:00
Adam Lesinski
1a8b416b7b am 9137b65c: am bb8aae5b: Merge "Improve Jank for translucent activities" into klp-dev
* commit '9137b65cf7b0bdbaa4d9fc97ffc752c0a636100f':
  Improve Jank for translucent activities
2013-10-24 10:50:10 -07:00
Christopher Tate
e6f81cf1f6 Support different watchdog timeouts for different entities
We need to be able to perform very lengthy operations on some threads
(e.g. the I/O thread responsible for installing multi-gigabyte APKs) but
still have long-run deadlock/hang detection applied to those threads.
Previously the watchdog mechanism applied the same policy to all
monitored threads: unresponsive after 60 seconds => restart the system.

Now, each monitored entity can have its own independent timeout after
which the watchdog declares deadlock and restarts the runtime.  The
halfway-finished intermediate thread stacks are dumped based on the
specific entity's declared timeout, not the global 30 second checking
interval.

With that new mechanism in place, the Package Manager's lengthy-I/O
thread watchdog timeout is raised to 10 minutes.

Bug 11278188

Change-Id: I512599260009c31416b2385f778681e5b9597f05
2013-10-24 10:46:28 -07:00
Adam Lesinski
bb8aae5b19 Merge "Improve Jank for translucent activities" into klp-dev 2013-10-24 17:44:58 +00:00
Craig Mautner
4697bea3fd Disable time consuming debugging code.
Scanning bitmaps for monochromicity takes time. Lots of time. Don't do
it.

Fixes bug 11366278.

Change-Id: I7a8ad42751311fc39efc27fb4c51522fc1ba0523
2013-10-24 09:13:14 -07:00
Adam Lesinski
76afd1f129 Improve Jank for translucent activities
The previous jank improvement only worked when closing
an app, not when bringing one forward (hitting home button).
This should cover the specific case that is being missed: Having the
Home task being brought to front over a translucent window, with
a wallpaper behind both tasks.

bug:11253262
Change-Id: I200ef6fe2dda8d9ab4e1f82059b4f888c59007f4
2013-10-23 17:54:25 -07:00
Craig Mautner
19a2ee5d70 am 3deb2baa: am b4683e3d: am 4d4dd1e1: Merge "Search further than one task for fullscreen." into klp-dev
* commit '3deb2baada0650dc9a8420f894261db87ac3261e':
  Search further than one task for fullscreen.
2013-10-23 15:42:31 -07:00
Craig Mautner
3deb2baada am b4683e3d: am 4d4dd1e1: Merge "Search further than one task for fullscreen." into klp-dev
* commit 'b4683e3d9805bb48eda1d9c03c5d4a1877220a85':
  Search further than one task for fullscreen.
2013-10-23 15:41:06 -07:00
Craig Mautner
4d4dd1e173 Merge "Search further than one task for fullscreen." into klp-dev 2013-10-23 22:35:25 +00:00
Craig Mautner
39e1c5a75e Search further than one task for fullscreen.
When a non-fullscreen task over home launches another non-fullscreen
task then the home task might not be displayed. Looking all the way
down the task stacks until reaching a visible, fullscreen activity or
home provides the right information.

Fixes bug 11273803.

Change-Id: I8dab0956c1cda06ddb7850ea3ffac7f6a223c6ad
2013-10-23 15:14:22 -07:00
John Spurlock
93028e4c18 am 6b32736f: am c4f5868a: am c72b18b7: Merge "Decouple IME_ACTIVE and IME_VISIBLE for hardware keyboards." into klp-dev
* commit '6b32736f6dcf017a12f11950c05c1f309e3aa859':
  Decouple IME_ACTIVE and IME_VISIBLE for hardware keyboards.
2013-10-23 14:26:52 -07:00
John Spurlock
6b32736f6d am c4f5868a: am c72b18b7: Merge "Decouple IME_ACTIVE and IME_VISIBLE for hardware keyboards." into klp-dev
* commit 'c4f5868a418076db18f4b526c00cd8691d46acdb':
  Decouple IME_ACTIVE and IME_VISIBLE for hardware keyboards.
2013-10-23 14:25:09 -07:00
John Spurlock
36439b4312 Decouple IME_ACTIVE and IME_VISIBLE for hardware keyboards.
Reserve IME_VISIBLE for when software keyboards are actually
showing.

Bug:11186297
Change-Id: I4e09a7de353e564bd1a97dadd603d3104254fa56
2013-10-23 17:02:53 -04:00
Satoshi Kataoka
b5c2092c4c Merge "Notify commitText event to InputMethodManagerService" 2013-10-23 18:36:14 +00:00
Dianne Hackborn
7c6d71f352 am 15009a08: am adfb4dee: am 910c2857: Merge "Fix issue #11278906: Some wm commands fail on shell users" into klp-dev
* commit '15009a080b4346c598dae12d9af840aba6a353da':
  Fix issue #11278906: Some wm commands fail on shell users
2013-10-23 10:53:00 -07:00
Dianne Hackborn
f4bcc592bf am b3332447: am e6a8ccb3: am 2d76a1a0: Merge "Fix issue #11323037: Android apk incorrectly marked as running in app processes" into klp-dev
* commit 'b3332447964dfe19299f6ba0365ee706daa4494b':
  Fix issue #11323037: Android apk incorrectly marked as running in app processes
2013-10-23 10:52:56 -07:00
Dianne Hackborn
15009a080b am adfb4dee: am 910c2857: Merge "Fix issue #11278906: Some wm commands fail on shell users" into klp-dev
* commit 'adfb4dee746dafc5cc2f2d1b8bcf0dc62cf82b24':
  Fix issue #11278906: Some wm commands fail on shell users
2013-10-23 10:49:55 -07:00
Dianne Hackborn
b333244796 am e6a8ccb3: am 2d76a1a0: Merge "Fix issue #11323037: Android apk incorrectly marked as running in app processes" into klp-dev
* commit 'e6a8ccb3d11a3af2a2d9f0077965d05754abcff3':
  Fix issue #11323037: Android apk incorrectly marked as running in app processes
2013-10-23 10:49:52 -07:00
Dianne Hackborn
910c285793 Merge "Fix issue #11278906: Some wm commands fail on shell users" into klp-dev 2013-10-23 17:44:21 +00:00
Dianne Hackborn
2d76a1a068 Merge "Fix issue #11323037: Android apk incorrectly marked as running in app processes" into klp-dev 2013-10-23 17:44:11 +00:00
Dianne Hackborn
0cca3db9ad Fix issue #11278906: Some wm commands fail on shell users
Binder.clearCallingIdentity makes everything better.

Change-Id: I31cd9478c857553b3cf1ea54d5b4987571788796
2013-10-23 10:23:39 -07:00
Dianne Hackborn
237cefbcee Fix issue #11323037: Android apk incorrectly marked as running in app processes
The android package is now a special case, not being added to the package list
when creating a multi-process component.  There is no need, since this package
is actually the framework itself which must be loaded in every process.

Also cleaned up some of the procstats dump output to help see what is going
on here.

Change-Id: If65d35ecd562f3154bdebfded69c454af6ce8c96
2013-10-22 19:15:49 -07:00
Todd Poynor
0edc5b50ab BatteryService: use new batteryproperties service name
Change-Id: Ib065a1099ec17d799f9caa6bb48390b478c28ed7
2013-10-22 17:53:13 -07:00
Todd Poynor
50ae385894 BatteryService: remove dumpsys-only info duplicated by systemhealth
Change-Id: I7fa605304b5f62ea19bcf3851d11abe7bf6c83f5
2013-10-23 00:15:08 +00:00
Christopher Tate
4c795f6990 am 037fa248: am d34e1155: am 5f474fcb: Merge "Edge case: overriden system package moved & became privileged in OTA" into klp-dev
* commit '037fa2489ff4d8646e4df67950fc93a80345d879':
  Edge case: overriden system package moved & became privileged in OTA
2013-10-22 16:50:35 -07:00
Christopher Tate
037fa2489f am d34e1155: am 5f474fcb: Merge "Edge case: overriden system package moved & became privileged in OTA" into klp-dev
* commit 'd34e1155226e8885d51c05209c7c87503528a2db':
  Edge case: overriden system package moved & became privileged in OTA
2013-10-22 16:45:51 -07:00
Christopher Tate
5f474fcb6d Merge "Edge case: overriden system package moved & became privileged in OTA" into klp-dev 2013-10-22 23:38:02 +00:00
Christopher Tate
9f08820025 Edge case: overriden system package moved & became privileged in OTA
Because properly continuing permission grants post-OTA has changed
policy to include privilege considerations based on install location,
make sure that we re-evaluate when we determine that the apk has
moved from its pre-OTA location.

Bug 11271490

Change-Id: I6c09986e2851a67504268b289932588457c05dfc
2013-10-22 15:36:01 -07:00
Craig Mautner
94fb73beaa am 004aa071: am deba7bb0: am 798adeff: Don\'t use transient states for wallpaper animation.
* commit '004aa0714a1dbad33ee11c210edf7371e424b26b':
  Don't use transient states for wallpaper animation.
2013-10-22 15:02:00 -07:00
Craig Mautner
004aa0714a am deba7bb0: am 798adeff: Don\'t use transient states for wallpaper animation.
* commit 'deba7bb0ca821d219a384c3d611e8a25da32e07d':
  Don't use transient states for wallpaper animation.
2013-10-22 14:59:38 -07:00
Craig Mautner
798adeffb0 Don't use transient states for wallpaper animation.
The WindowManagerService member mLowerWallpaperTarget is not stable
throughout an app transition. Relying on it to be stable causes the
intra-wallpaper animation to start out right but after the windows
have been relayed out there is no longer a lower wallpaper target.
This causes the wallpaper to start tracking the animation of the
current wallpaper target rather than remain stable.

Switching to a new variable that saves the state of wallpaper
animation at the start of the animation fixes bug 11240590.

Change-Id: I336a59c47665fcf61019f567b8663956ff0e4940
2013-10-22 14:50:52 -07:00
Craig Mautner
dd2399a0d9 am 74897f07: am d37d1859: am 40006309: Merge "Check for home activity when switching focus." into klp-dev
* commit '74897f07491078e14282b30174cf14c9815d8dc0':
  Check for home activity when switching focus.
2013-10-22 13:09:22 -07:00
Craig Mautner
74897f0749 am d37d1859: am 40006309: Merge "Check for home activity when switching focus." into klp-dev
* commit 'd37d1859794e72ea6f9b98f83bf004a4364b4b2d':
  Check for home activity when switching focus.
2013-10-22 13:07:00 -07:00
Craig Mautner
4000630999 Merge "Check for home activity when switching focus." into klp-dev 2013-10-22 20:01:12 +00:00
Craig Mautner
04f0b70c13 Check for home activity when switching focus.
When finishing or stopping an activity the code was automatically
refocusing to the next activity on the same stack independent of the
task's onTopOfHome flag. When the activity eventually finished or
stopped it would then honor the onTopOfHome flag.

This fix examines the onTopOfHome flag and arranges the focus
correctly if home is the next activity to run.

Fixes bug 11318263.

Change-Id: I73a8f5e82de04b01acaffe366b085f9e475e1451
2013-10-22 12:31:01 -07:00
Satoshi Kataoka
d7443c83ce Notify commitText event to InputMethodManagerService
for the intelligent subtype switching

Bug: 7043015
Change-Id: I11ed9a767588f8080753cd9bce011dac7db579ad
2013-10-23 04:14:43 +09:00
Craig Mautner
d8796d44d5 am 39308006: am e609a677: am 74082349: Merge "Make sure mFocusedStack is never the home stack." into klp-dev
* commit '39308006d6868fa7be892276e31ff90943f8d99b':
  Make sure mFocusedStack is never the home stack.
2013-10-22 10:45:02 -07:00
Craig Mautner
39308006d6 am e609a677: am 74082349: Merge "Make sure mFocusedStack is never the home stack." into klp-dev
* commit 'e609a677f8ff02aa163d6136370b9fee0dec9096':
  Make sure mFocusedStack is never the home stack.
2013-10-22 10:42:48 -07:00
Craig Mautner
7408234985 Merge "Make sure mFocusedStack is never the home stack." into klp-dev 2013-10-22 17:36:57 +00:00
Craig Mautner
d1bbdb462a Make sure mFocusedStack is never the home stack.
There were circumstances where mFocusedStack could be assigned the
home stack. If this were ever to occur then all subsequent tasks would
be put on the home stack. This fix ensures that there is no way that
mFocusedStack will ever be assigned to the home task.

Fixes bug 11271189.

Change-Id: I7ddd9b6bcbf2787cbe2f44b461ad057ae2241f00
2013-10-22 09:53:20 -07:00
Craig Mautner
8e867f3810 am e0bebd29: am 0857e3b9: am 24ba3234: Merge "Do not delete stacks that are not empty." into klp-dev
* commit 'e0bebd294e7d2b998cc71e77e99f311c6321a6a1':
  Do not delete stacks that are not empty.
2013-10-21 21:41:47 -07:00
Craig Mautner
e0bebd294e am 0857e3b9: am 24ba3234: Merge "Do not delete stacks that are not empty." into klp-dev
* commit '0857e3b97a12bbd9f4d333b620bd7dfbd275c812':
  Do not delete stacks that are not empty.
2013-10-21 21:38:12 -07:00
Craig Mautner
24ba3234ca Merge "Do not delete stacks that are not empty." into klp-dev 2013-10-22 04:31:12 +00:00
Craig Mautner
19d9bd54d3 Do not delete stacks that are not empty.
The possibility existed that an activity was set to a task that it was
already being set to. If that were to happen, and it was the only
activity in the only task of the stack the stack would be deleted.
This fixes that situation and logs it as well to confirm that it does
fix bug 11272935. Logging to be deleted upon successful monkey run
exhibiting the log.

Change-Id: I436fdcc9a3734adad81d3ef90f29b93b3ac4dfcd
2013-10-21 20:05:26 -07:00