Commit Graph

20732 Commits

Author SHA1 Message Date
Adrian Roos
54d5195236 am b74c9043: am 5e5c78a6: Merge "Additional check to determine insets for recents animation" into lmp-dev
* commit 'b74c904364339f61eeee1a6b903e2cffa39dc715':
  Additional check to determine insets for recents animation
2014-09-18 21:52:40 +00:00
Craig Mautner
bf11570614 am d28e4019: am 43ce5500: Merge "Remove activity icon bitmaps from system process." into lmp-dev
* commit 'd28e40196d3bd5b697be4ed937978ce55f775772':
  Remove activity icon bitmaps from system process.
2014-09-18 21:52:30 +00:00
Adrian Roos
8f2152c021 Merge "Additional check to determine insets for recents animation" into lmp-dev 2014-09-18 21:30:00 +00:00
Craig Mautner
bc3126f859 Merge "Remove activity icon bitmaps from system process." into lmp-dev 2014-09-18 21:25:24 +00:00
Christopher Tate
31a1ae4a2e am 6b2b0b58: am 6330e891: Merge "Log alarm delivery only when localLOGV" into lmp-dev
* commit '6b2b0b583c77c4ba2a9dbbf2d469592abb9ddf57':
  Log alarm delivery only when localLOGV
2014-09-18 21:23:54 +00:00
Craig Mautner
648f69b95c Remove activity icon bitmaps from system process.
When a TaskDescription is sent up to the system process, the Bitmap
contained in the mIcon member is immediately flushed to disk and the
name of the file replaces it in the TaskDescription. Thereby saving
mucho RAM for better uses.

Fixes bug 17527308.

Change-Id: Ifac63ea5d12ed091d1eb03e178b8b847a827f940
2014-09-18 14:16:26 -07:00
Christopher Tate
547f97ac93 Merge "Log alarm delivery only when localLOGV" into lmp-dev 2014-09-18 20:56:25 +00:00
Christopher Tate
2ff5a73c3c Log alarm delivery only when localLOGV
Logspam is spam.

Change-Id: I3bb63f3026fc6222eb8e1496b3a5db4cdf3c7f57
2014-09-18 13:47:57 -07:00
Craig Mautner
30200eefe6 am 10dc3725: am 64d2ee09: Merge "Don\'t remove active stacks from window manager" into lmp-dev
* commit '10dc372558fddc44d221ecc25272033a5de1f9ce':
  Don't remove active stacks from window manager
2014-09-18 17:45:34 +00:00
Craig Mautner
103b143ecd Merge "Don't remove active stacks from window manager" into lmp-dev 2014-09-18 17:20:51 +00:00
Winson Chung
397157ce9c Additional check to determine insets for recents animation
Bug: 17555722

Change-Id: I1474de7960dfebbdd32f159ace6677019a6b87a5
2014-09-18 12:51:48 +00:00
Svetoslav
e911f1dfb9 am c1bb553a: am 94cc958d: Some accessibility events wrongly filtered out (regression).
* commit 'c1bb553ad35eb797621ee1cdace458b39fb83af2':
  Some accessibility events wrongly filtered out (regression).
2014-09-18 04:46:24 +00:00
Craig Mautner
90aa4d4d09 am 457c4e20: am b5bbc477: Merge "Protect from null Intent" into lmp-dev
* commit '457c4e20e28471669eddd80a81ef303ab58976d4':
  Protect from null Intent
2014-09-18 04:46:17 +00:00
Tsuwei Chen
d304396f8d am 2426fd37: am 3de1584d: Merge "Allow carrier specific requirement on GPS features to be specified through a dedicated configuration key. Currently, carrier requirement is specified through CAPABILITIES key, whose original purpose is to indicate the capability of the
* commit '2426fd37faa699ae069a7a869c79904101b9dec8':
  Allow carrier specific requirement on GPS features to be specified through a dedicated configuration key. Currently, carrier requirement is specified through CAPABILITIES key, whose original purpose is to indicate the capability of the hardware, not to enable/disable features in GPS HW. With this fix, carrier requirement on GPS features can be specified properly without messing up with the real capability. This will satisfy VzW, Sprint and USC's requirement on SUPL mode, without sacrificing the capability of HW geofence.
2014-09-18 04:45:54 +00:00
Svetoslav
4c6a4ce03b Some accessibility events wrongly filtered out (regression).
We added new APIs to allow accessibility services to query all
windows a user can touch. Sometimes the window state change
event arrives before the window manager sent over the new window
state which leads to a case that the app gets the event and
asks for the window and the window is not there. To address this
if we do not have the window, we hold on to the event and
fire it as soon as the window arrives. This logic is correct
except we were wrongly expecting that the window should have
input focus.

bug:17464645

Change-Id: I1ef50ebddeb4416a6c0776b096bb16aee703700c
2014-09-18 01:40:27 +00:00
Craig Mautner
0cf001db60 Merge "Protect from null Intent" into lmp-dev 2014-09-18 01:36:09 +00:00
Tsuwei Chen
b610b18a8a Merge "Allow carrier specific requirement on GPS features to be specified through a dedicated configuration key. Currently, carrier requirement is specified through CAPABILITIES key, whose original purpose is to indicate the capability of the hardware, not to enable/disable features in GPS HW. With this fix, carrier requirement on GPS features can be specified properly without messing up with the real capability. This will satisfy VzW, Sprint and USC's requirement on SUPL mode, without sacrificing the capability of HW geofence." into lmp-dev 2014-09-18 01:00:50 +00:00
Robert Greenwalt
9231ff23e4 am dbbe65ee: am 50d23752: Merge "Use unified Tethering Permission Check" into lmp-dev
* commit 'dbbe65ee66eca553054cbdf967808963c9486dfe':
  Use unified Tethering Permission Check
2014-09-18 00:24:24 +00:00
Craig Mautner
47b20ba8f6 Protect from null Intent
No bad intentions.

Fixes bug 17482657.

Change-Id: I0234787eb5e39cbdb548fb219341635cddd8b5d9
2014-09-17 17:23:44 -07:00
Robert Greenwalt
f3b47e95b1 Merge "Use unified Tethering Permission Check" into lmp-dev 2014-09-18 00:02:16 +00:00
Dianne Hackborn
7fe89f2e39 am 5cd5db72: am f4fe13eb: Merge "Fix issue #17536024: The am start\'s wait option doesn\'t..." into lmp-dev
* commit '5cd5db72a31093f556dcf9fc89c0e4e9b03877ca':
  Fix issue #17536024: The am start's wait option doesn't...
2014-09-17 23:27:37 +00:00
Robert Greenwalt
edb47668f0 Use unified Tethering Permission Check
The BT and Wifi mechanisms for enabling Tethering did their own
permission checks.  This set of changes unifies the check into
a ConnectivityManager function so they can be kept in sync.

bug:17435527
Change-Id: I8c157a5acf56ffbddd349cb6a45160ae7be8541b
2014-09-17 16:18:12 -07:00
Dianne Hackborn
88924b62fc Merge "Fix issue #17536024: The am start's wait option doesn't..." into lmp-dev 2014-09-17 23:07:17 +00:00
Tsuwei Chen
462bcd8194 Allow carrier specific requirement on GPS features to be specified through a dedicated configuration key.
Currently, carrier requirement is specified through CAPABILITIES key, whose original purpose is to indicate
the capability of the hardware, not to enable/disable features in GPS HW. With this fix, carrier requirement
on GPS features can be specified properly without messing up with the real capability. This will satisfy
VzW, Sprint and USC's requirement on SUPL mode, without sacrificing the capability of HW geofence.

Bug: 17423585
Bug: 17288144

Change-Id: I71173722d4b12bfc17562f7b5444d22b01ff4590
2014-09-17 16:04:28 -07:00
Craig Mautner
6025770e6b Don't remove active stacks from window manager
Background:

In ag/406771 we stopped deleting empty stacks in activity manager
and window manager. This fixed a problem where dormant tasks were
being added back to stacks later.

In ag/476888 we introduced a callback to inform the ActivityView
holder that the embedded task was complete. This callback was made
from the new method ActivityContainer.onTaskListEmpty().

In ag/483035 onTaskListEmpty() was expanded to detach the stack of the
ActivityView and also removed the stack from window manager. There
was a mistake in that CL that causes it to remove any non-home stacks,
not just ones in ActivityViews.

That mistake left us with an empty stack in activity manager and no
corresponding stack in window manager. As a result, when trying to
bring back a task that used to be in this stack window manager threw
up an exception.

This fix limits the stacks detached by onTaskListEmpty() to those
on VirtualDisplays.

Fixes bug 17469145.

Change-Id: I85a4452e8e85625e657d88e4cb9f366fd4026441
2014-09-17 15:53:28 -07:00
Dianne Hackborn
cc4cee07d7 am bb28bea4: am d04770e1: Merge "Work on issue #17506095: Add ability to lock IME for specified apps" into lmp-dev
* commit 'bb28bea4efeaacfc319be3d6c6bf0142ec3ef7ae':
  Work on issue #17506095: Add ability to lock IME for specified apps
2014-09-17 22:31:52 +00:00
Dianne Hackborn
dd63245097 Merge "Work on issue #17506095: Add ability to lock IME for specified apps" into lmp-dev 2014-09-17 22:09:32 +00:00
Sandeep Siddhartha
67032ce76a am 9364b830: am e80c6f17: Merge "Fix issues with multiple languages and multi-users" into lmp-dev
* commit '9364b830a4d78a3c76cc7eacc71c9b7808fd414b':
  Fix issues with multiple languages and multi-users
2014-09-17 20:33:17 +00:00
Dianne Hackborn
bb8aa5a1e9 Work on issue #17506095: Add ability to lock IME for specified apps
Add a new configuration to speciify apps that partcipate in the
feature.

Change-Id: I8f5139b5ea09e758bff4472b2294df8becc74614
2014-09-17 13:20:38 -07:00
Sandeep Siddhartha
80ea66b102 Merge "Fix issues with multiple languages and multi-users" into lmp-dev 2014-09-17 20:06:43 +00:00
Dianne Hackborn
6cfbb71890 Fix issue #17536024: The am start's wait option doesn't...
...give time in some cases

This switch to multiple stacks broke the check to determine if it
should actually wait for a new activity to be shown.  The new check
now also requires that the top activity be resumed, which means
we may get some false positives where we decide to wait and shouldn't,
but that is better than consistently not deciding to wait in some
cases when we should.  (And we will always finish waiting then next
time something becomes visible).

Also add another time, which is how long it took from the startActivity
call to return with the result.  And fix when we decide to report that
we are done so that, in the case where we are bringing an existing
activity to the foreground, we don't wait until its animation is complete.

Change-Id: Id38ca0070f04e7bf8c73e131fb055808553a0e2f
2014-09-17 12:47:35 -07:00
Craig Mautner
9a0ae4dbae am c5e37f83: am d14816b6: Merge "Eliminate misleading warning." into lmp-dev
* commit 'c5e37f83e27b2c42bac9ba047a2d6818cc11c70a':
  Eliminate misleading warning.
2014-09-17 18:45:49 +00:00
Craig Mautner
a6c7883bba am 3b13820d: am 951df81d: Merge "Add optimizations to keep TaskPersister queue small." into lmp-dev
* commit '3b13820d6f5602bec44b8a131bfad39e35e79d79':
  Add optimizations to keep TaskPersister queue small.
2014-09-17 18:45:44 +00:00
Craig Mautner
36e793c73b Merge "Eliminate misleading warning." into lmp-dev 2014-09-17 18:02:44 +00:00
Craig Mautner
fabab90d1e Eliminate misleading warning.
Remove token from deferred list of tokens to be removed once token
is removed. Leaving it in the list leads to logging messages like
"WindowManager: removeAppFromTaskLocked: token=AppWindowToken{...
} not found" when an attempt to remove it a second time fails.

Discovered in logs from b/17512377.

Change-Id: Ic83d81841b9b74ae5c4c433d1086d3bbda8e1d64
2014-09-17 09:34:30 -07:00
Craig Mautner
63f10904a1 Add optimizations to keep TaskPersister queue small.
CTS tests cause the TaskPersister queue to fill faster than it can
drain. Since it contains screenshots this can consume massive
memory. Monkey may also cause the queue to back up.

Several optimizations are added to drain the queue when it gets
large:
- High water mark to recognize when queue gets too deep. Queue is
completely drained at this point so that obsolete files can be
removed from storage.
- Use Thread.yield() to give the TaskPersister write thread some cpu
cycles.
- Remove images from write queue when TaskRecord is removed from
recents.

May fix bug 17177273.
May fix bug 17381033.

Change-Id: If21c03c8f380e5f6816cf4701a40fcfe34ace3f1
2014-09-16 23:57:21 -07:00
Jungshik Jang
6a38cd816a am 85467640: am f88be2c7: Merge "Adjust volume bar visibility in HDMI-CEC system audio mode" into lmp-dev
* commit '85467640c8c8d5a9e19663c6c863af5894447128':
  Adjust volume bar visibility in HDMI-CEC system audio mode
2014-09-17 02:00:39 +00:00
Yuncheol Heo
6fefb49f26 am ccfbc040: am 41f887c4: Merge "Remove MHL related code." into lmp-dev
* commit 'ccfbc0404e5c1677eee7d2d4cec0bae4fba66d4d':
  Remove MHL related code.
2014-09-17 02:00:34 +00:00
Jungshik Jang
c1e1550bf4 Merge "Adjust volume bar visibility in HDMI-CEC system audio mode" into lmp-dev 2014-09-17 01:29:54 +00:00
Jungshik Jang
1a6be6ed39 Adjust volume bar visibility in HDMI-CEC system audio mode
When HDMI-CEC system audio mode is activated.
1. Hide volume bar when volume button is pressed in TV
2. Show volume bar when TV receives volume notification from
   Audio Receiver.

Otherwise, (system audio mode off) follows normal TV's behavior.

Bug: 17347499

Change-Id: I1f5bc14285d60d8626a8fbbef9e1959cae7d193b
2014-09-17 10:28:40 +09:00
Yuncheol Heo
da6e9f10d0 Remove MHL related code.
Bug: 17479050
Change-Id: Id4a76ccf7325c78817d1b3c3460e5dc40e23831b
2014-09-17 10:15:40 +09:00
Dianne Hackborn
f13f4735ca am 8ee35cd4: am 3061d2b9: Merge "Fix issue #17507017: took ~3 seconds to move an app to the foreground" into lmp-dev
* commit '8ee35cd4cd4242e30f6b989dd4746166fbe58dcc':
  Fix issue #17507017: took ~3 seconds to move an app to the foreground
2014-09-17 00:37:31 +00:00
Dianne Hackborn
877f2b86cf am af9e070e: am 1a7cb969: Merge "Fix issue #16662560: SingleTop activity is getting instantiated multiple time" into lmp-dev
* commit 'af9e070e0b0940de568fe19d65fe19b3a22cfb1e':
  Fix issue #16662560: SingleTop activity is getting instantiated multiple time
2014-09-17 00:37:26 +00:00
Robert Greenwalt
a70efa5036 am 8fcbaddd: am d0675e37: Merge "Add NetworkAgent event for ExplicitlySelected" into lmp-dev
* commit '8fcbaddd331b2b87698bc61c3bef0cdf439c31da':
  Add NetworkAgent event for ExplicitlySelected
2014-09-17 00:23:08 +00:00
Dianne Hackborn
6035379865 Merge "Fix issue #17507017: took ~3 seconds to move an app to the foreground" into lmp-dev 2014-09-17 00:14:44 +00:00
Dianne Hackborn
1a526f582b Merge "Fix issue #16662560: SingleTop activity is getting instantiated multiple time" into lmp-dev 2014-09-17 00:13:38 +00:00
Robert Greenwalt
e73cc4646b Add NetworkAgent event for ExplicitlySelected
Lets Wifi tell us when the user selected this AP vs auto-connected.

bug:17396168
Change-Id: I6e067ab62ed49040629aa31fe07ff880d3d542f0
2014-09-16 17:03:59 -07:00
Dianne Hackborn
7922882189 Fix issue #16662560: SingleTop activity is getting instantiated multiple time
Introduce a concept of a "root affinity" to a task -- this is the
affinity of the initial activity in the task.  Use this instead of
the current affinity in findTaskLocked(), where we look for an
existing task to use for a NEW_TASK intent.

This changes the semantics of the new "relinquish task identity" mode
so that it doesn't relinquish the root affinity of the task.  This
means when we are in the old style application-based recents matching
of findTaskLocked(), we will never count these tasks as the same as
the application's tasks only because they have relinquished their
identity to that application.  This is probably okay, it is basically
putting a different line between new document-centric recents and
old application-centric recents when they are mixed together.

Change-Id: I73a22ead9bd08e98bf67ad035a017f828c6a6715
2014-09-16 16:22:55 -07:00
Robert Greenwalt
390a961720 am ee48c9ef: am c8f6ad36: Merge "Report Network status to NetworkAgent." into lmp-dev
* commit 'ee48c9ef54a884cd7f2162163252c1bf156a0a2d':
  Report Network status to NetworkAgent.
2014-09-16 23:14:50 +00:00
Robert Greenwalt
b4f601cb84 Merge "Report Network status to NetworkAgent." into lmp-dev 2014-09-16 22:59:33 +00:00