1775 Commits

Author SHA1 Message Date
Craig Mautner
a61bc658bb Remove starting window when activity is preempted.
Activities launch starting windows before they are resumed. If another
activity is started after a first activity has launched its starting
window then it was possible that the starting window will never be
removed. An earlier fix, ag/368411, solved this by posting a delayed
message that would remove orphaned starting windows after 10 seconds.

This fix immediately removes starting windows that have been orphaned
through the above sequence.

A few code cleanups are also included in this CL.

Fixes bug 11029212.

Change-Id: I7a9befca92888aefe4000b90716c57c2aa572634
2013-10-28 15:43:18 -07:00
Craig Mautner
c847c883af am f65dd213: am 2534c16b: am dfe0d9a0: Merge "Change order of operations so flag is not overwritten" into klp-dev
* commit 'f65dd213900603116c7b064bfdfb57662f7682c3':
  Change order of operations so flag is not overwritten
2013-10-28 10:00:04 -07:00
Craig Mautner
f65dd21390 am 2534c16b: am dfe0d9a0: Merge "Change order of operations so flag is not overwritten" into klp-dev
* commit '2534c16b44922e19e040a999cd99b412674e63a1':
  Change order of operations so flag is not overwritten
2013-10-28 07:44:08 -07:00
Craig Mautner
dfe0d9a040 Merge "Change order of operations so flag is not overwritten" into klp-dev 2013-10-28 14:38:32 +00:00
Dianne Hackborn
b251e0794a am 33c7520b: am 0b1ec016: am 19d79659: Merge "Fix issue #11374840: adb shell am startservice not working any more" into klp-dev
* commit '33c7520b68e015c46ed1bcb277dc4faaa368cc55':
  Fix issue #11374840: adb shell am startservice not working any more
2013-10-25 16:14:19 -07:00
Dianne Hackborn
33c7520b68 am 0b1ec016: am 19d79659: Merge "Fix issue #11374840: adb shell am startservice not working any more" into klp-dev
* commit '0b1ec0165a5dc98bc82670288894af446ff5bcaa':
  Fix issue #11374840: adb shell am startservice not working any more
2013-10-25 15:37:30 -07:00
Dianne Hackborn
19d79659ee Merge "Fix issue #11374840: adb shell am startservice not working any more" into klp-dev 2013-10-25 22:30:35 +00:00
Dianne Hackborn
de0e83bc39 Fix issue #11374840: adb shell am startservice not working any more
The startService() and stopServie() calls had a redundant check for
the incoming user ID being valid, but with its own custom implementation
that doesn't match the normal handleIncomingUser flow.  In fact, for
both of these we are going to do handleIncomingUser anyway when we get
to retrieveServiceLocked(), so there was just no need for this.

Change-Id: I14409a03781a14a5f1a786aceb31dcc77efb062c
2013-10-25 14:34:18 -07:00
Craig Mautner
2788751652 am 1f57b605: am 6f2fb33f: am d4d170de: Merge "Do not take screenshots when launching activities..." into klp-dev
* commit '1f57b6055ea4c80980a03a229e720bb9420cc5f9':
  Do not take screenshots when launching activities...
2013-10-25 13:18:31 -07:00
Craig Mautner
1f57b6055e am 6f2fb33f: am d4d170de: Merge "Do not take screenshots when launching activities..." into klp-dev
* commit '6f2fb33f907b3af246f79a72e79ea7e4192c7478':
  Do not take screenshots when launching activities...
2013-10-25 13:15:13 -07:00
Craig Mautner
b53d97c457 Change order of operations so flag is not overwritten
The effects of the flag, Intent.FLAG_ACTIVITY_TASK_ON_HOME was being
overwritten by the call immediately after it was set. Changing the
order of operations leaves the effect intact.

Fixes bug 11376962.

Change-Id: I27371e0efeb0c08d1e14514a9e3a63157f6d34d8
2013-10-25 11:54:37 -07:00
Craig Mautner
6f6d56fd4d Do not take screenshots when launching activities...
Unless they are in another task.

Fixes bug 11374158.

Change-Id: I961d4ce9520bc84a182806db2ccb072501c8357a
2013-10-24 16:02:07 -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
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
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
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
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
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
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
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
Dianne Hackborn
5d1bf06087 am 86f7f4a6: am 52ae2cd1: am fc69e2b5: Merge "Increase size of broadcast history lists on non-svelte devices." into klp-dev
* commit '86f7f4a68bd2f3da6035c7dabce4161bbe2c4c53':
  Increase size of broadcast history lists on non-svelte devices.
2013-10-17 09:43:21 -07:00
Dianne Hackborn
86f7f4a68b am 52ae2cd1: am fc69e2b5: Merge "Increase size of broadcast history lists on non-svelte devices." into klp-dev
* commit '52ae2cd1b1bc72c0624463e94d94087bd42a1fb8':
  Increase size of broadcast history lists on non-svelte devices.
2013-10-17 09:21:52 -07:00
Dianne Hackborn
fc69e2b5ad Merge "Increase size of broadcast history lists on non-svelte devices." into klp-dev 2013-10-17 16:13:24 +00:00
Dianne Hackborn
4c51de4933 Increase size of broadcast history lists on non-svelte devices.
Change-Id: Ibd25379778dac8eb1aed30d4788e032f290d9b69
2013-10-16 23:34:35 -07:00
Dianne Hackborn
eceecfd224 am 25e7240e: am 519d8895: am 9c446d82: Merge "Fix issue #11217255: Setup Wizard ANR when adding new user profile from settings." into klp-dev
* commit '25e7240e997d9af058f2700f7626b8c9d155ee3a':
  Fix issue #11217255: Setup Wizard ANR when adding new user profile from settings.
2013-10-16 14:08:59 -07:00
Dianne Hackborn
25e7240e99 am 519d8895: am 9c446d82: Merge "Fix issue #11217255: Setup Wizard ANR when adding new user profile from settings." into klp-dev
* commit '519d8895a29dd78f5250ee2ececac4e03a6f5b70':
  Fix issue #11217255: Setup Wizard ANR when adding new user profile from settings.
2013-10-16 14:05:52 -07:00
Dianne Hackborn
2a272d42a3 Fix issue #11217255: Setup Wizard ANR when adding new user profile from settings.
Two problems addressed here:

- If a call to startActivity() comes in on an activity that is finishing, we can
  end up putting the new activity in a stack that isn't actually in use any more
  (if the finishing activity is the last one on that stack).  This is a bad case,
  anyway, so if this happen the treat it as not being called on an existing
  activity and switch to NEW_TASK to find a task for it.

- There was a bug in handling PACKAGE_CHANGE broadcasts that would result in the
  app's processes being killed, even though the cleanup through the activities
  was done.  This could leave the activity stack in a bad state.  Fix this to
  correctly provide an app id for the changing package so that its processes are
  killed.

Change-Id: Iece04e0cf95025c3d30353d68bf3d14fd39d44c3
2013-10-16 13:34:33 -07:00
Craig Mautner
33379fb317 am 67122f46: am 504b6045: am 4270ebc7: Merge "Remove debug logging." into klp-dev
* commit '67122f46be4ab186c1f88780a2043b458797254a':
  Remove debug logging.
2013-10-15 17:37:24 -07:00
Craig Mautner
35cb3efc8a am f7a64d2f: am d68cd8cc: am 41bf03e1: Merge "Restore window manager stack order on user switch." into klp-dev
* commit 'f7a64d2f123897a255adf2e3ea3c60f09b750b2d':
  Restore window manager stack order on user switch.
2013-10-15 17:37:21 -07:00
Craig Mautner
67122f46be am 504b6045: am 4270ebc7: Merge "Remove debug logging." into klp-dev
* commit '504b60453f30b78da3a13e022a1d8a7badf26ae1':
  Remove debug logging.
2013-10-15 17:33:26 -07:00
Craig Mautner
f7a64d2f12 am d68cd8cc: am 41bf03e1: Merge "Restore window manager stack order on user switch." into klp-dev
* commit 'd68cd8cc40226dfd0b63227b6c186de4a4fd9ba0':
  Restore window manager stack order on user switch.
2013-10-15 17:33:23 -07:00
Craig Mautner
4270ebc7db Merge "Remove debug logging." into klp-dev 2013-10-16 00:27:50 +00:00
Craig Mautner
a7f2bd4da7 Remove debug logging.
Change-Id: I5d7c11e8b8525bfc8eb87bb0fff4f71337b4a39d
2013-10-15 16:13:50 -07:00
Craig Mautner
4f1df4faed Restore window manager stack order on user switch.
Only the activity stacks were being restored. Also add needed debug
logs.

Fixes bug 11223831.

Change-Id: Ief42688721c49e8cea14277619c797bf7c25b859
2013-10-15 15:44:14 -07:00
Craig Mautner
6353ea33ad am 209dc77a: am 910deb71: am cf8a6ca9: Merge "Clear displayStartTime whenever starting activity." into klp-dev
* commit '209dc77a6a6bd07f380bb2ee70169fef09ad7fa4':
  Clear displayStartTime whenever starting activity.
2013-10-15 04:03:26 -07:00
Dianne Hackborn
06d6a7548e am 9aded5ab: am 827c5af0: am e49a107a: Merge "Fix issue #11223335: APR: Lots of failures in procstats due to..." into klp-dev
* commit '9aded5abd65a2c69090abece37a7825a52ca3af0':
  Fix issue #11223335: APR: Lots of failures in procstats due to...
2013-10-15 04:03:09 -07:00
Craig Mautner
209dc77a6a am 910deb71: am cf8a6ca9: Merge "Clear displayStartTime whenever starting activity." into klp-dev
* commit '910deb7155352c8d95e6351fc3efd4eac6b463a5':
  Clear displayStartTime whenever starting activity.
2013-10-14 19:02:12 -07:00
Dianne Hackborn
9aded5abd6 am 827c5af0: am e49a107a: Merge "Fix issue #11223335: APR: Lots of failures in procstats due to..." into klp-dev
* commit '827c5af02de29424ea80f1ccfe525e681d0b74f0':
  Fix issue #11223335: APR: Lots of failures in procstats due to...
2013-10-14 19:01:55 -07:00
Craig Mautner
cf8a6ca9aa Merge "Clear displayStartTime whenever starting activity." into klp-dev 2013-10-15 01:28:48 +00:00