Commit Graph

20692 Commits

Author SHA1 Message Date
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
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
Ji-Hwan Lee
63bde36441 am d8fa6d64: am 444a0f2d: TIF: Re-connect the session on package update.
* commit 'd8fa6d64252eabfbc48764331a479278574ffc49':
  TIF: Re-connect the session on package update.
2014-09-16 18:40:20 +00:00
Ji-Hwan Lee
9c6b5b729b TIF: Re-connect the session on package update.
When TIF client tries to connect a session while TV input is being
updated, updateServiceConnectionLocked() may fail to bindServiceAsUser()
and the session state may remain indefinitely until a client tries to
create another session to connect the service.  Reconnect the session by
calling updateServiceConnectionLocked() when package is updated.

Also, remove the session state when client dies before onSessionCreated().
This was causing the stale session in the above scenario (without
reconnection) to be connected to TIS even when client no longer exists.

Bug: 17518751
Change-Id: I5484df0d80c71649d22438521adf182ab59a6ce4
2014-09-16 18:21:03 +00:00
Adrian Roos
96174641f8 am 1f86d47c: am 90c9f382: Merge "Properly redispatch systemUiVisibility flags" into lmp-dev
* commit '1f86d47c2bdeff6603793a9a8d6e50beca2ea014':
  Properly redispatch systemUiVisibility flags
2014-09-16 18:04:19 +00:00
Adrian Roos
ce4a0cf9ce Properly redispatch systemUiVisibility flags
Fixes two bugs introduced by change
I7bd32531130d199c0734ffcb800194e77b7e16c3:

When the system window insets consumed by DecorView
change as a result of changing flags, the insets must
be redispatched to the hierarchy.

Also fixes a bug where, as a result of removing the wrong
implication of the SYSTEM_UI_FLAG_LAYOUT_STABLE flag by
FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS, the status bar was
being forced to black when returning from recents.

Bug: 17489047
Bug: 15046646
Change-Id: I127b0ff3b17c4873a7c28d67020f84298ed09db2
2014-09-16 16:28:45 +02:00
Yuncheol Heo
44ed50977a am ddf679ec: am 5c0d3862: Merge "Make the playback device pass CEC CTS." into lmp-dev
* commit 'ddf679ec762d78b6a487a9d72747d060ab09c505':
  Make the playback device pass CEC CTS.
2014-09-16 09:00:17 +00:00
Tsuwei Chen
108dee2b37 am 85e7eafb: am 86f1d252: Merge "Set user agent for XTRA download according to carrier specification. Bug: 17056380 Change-Id: Iacb90d4780f35fa6875702889d4a5f02610768b7" into lmp-dev
* commit '85e7eafb787bf5e949bebf4f60b4c83042a03002':
  Set user agent for XTRA download according to carrier specification. Bug: 17056380 Change-Id: Iacb90d4780f35fa6875702889d4a5f02610768b7
2014-09-16 09:00:06 +00:00
Dianne Hackborn
7ac65e0498 am 02c038e0: am 9f568025: Merge "Quick fix issue #17514851: dumpsys package <package-name> includes..." into lmp-dev
* commit '02c038e0de47ff7184ad1466a14f77da85eb975b':
  Quick fix issue #17514851: dumpsys package <package-name> includes...
2014-09-16 08:59:45 +00:00
Michael Wright
3068586473 am c9b177e5: am b46fd00a: Merge "Add config option for permanent dpad presence." into lmp-dev
* commit 'c9b177e5e0904409fd171bd33c2555ca9a653c42':
  Add config option for permanent dpad presence.
2014-09-16 08:39:32 +00:00
Yuncheol Heo
41f766394d Merge "Make the playback device pass CEC CTS." into lmp-dev 2014-09-16 07:41:24 +00:00
Yuncheol Heo
89ec14e48f Make the playback device pass CEC CTS.
- Clear the logical address on the hotplug event.
- Don't reset mIsActiveSource flag on the hotplug event.

Bug: 17517438
Change-Id: Id129a9cce30323090ce21bbfc188b955bd32755b
2014-09-16 15:53:59 +09:00
Tsuwei Chen
dc524b714e Merge "Set user agent for XTRA download according to carrier specification. Bug: 17056380 Change-Id: Iacb90d4780f35fa6875702889d4a5f02610768b7" into lmp-dev 2014-09-16 03:50:02 +00:00
Dianne Hackborn
602d17c353 Merge "Quick fix issue #17514851: dumpsys package <package-name> includes..." into lmp-dev 2014-09-16 01:34:24 +00:00
Dianne Hackborn
f1317857cd Quick fix issue #17514851: dumpsys package <package-name> includes...
...irrelevant install state at the end

Quick and dirty impl just doesn't print any of that data when filtering
by package name.  In the future that part of the dump should be smarter
to know how to filter by package name.  (Probably also moved to a place
earlier in the dump, so the key information -- the overall package
data -- is still at the end.)

Change-Id: I094f7c2f25401438a68a6aa00d10b19c19eb7c7d
2014-09-15 16:40:07 -07:00
Dianne Hackborn
95465200b0 Fix issue #17507017: took ~3 seconds to move an app to the foreground
This is because of the 5 second timeout from when the user can bring
home to the foreground until regular third party apps can launch an
activity on top of it.  Activities launched from notifications look
like they are being launched by the app, so get impacted by the timeout.

Fix this be also looking at the actual caller to see if they are
allowed to pop in front regardless of the timeout.

Change-Id: I63fbc2bcabf585e6d2810a2309f0613fdf91fdf5
2014-09-15 16:21:55 -07:00
Tsuwei Chen
f86f0e18c3 Set user agent for XTRA download according to carrier specification.
Bug: 17056380
Change-Id: Iacb90d4780f35fa6875702889d4a5f02610768b7
2014-09-15 22:11:42 +00:00
Matthew Williams
4d0b64d16f am 4d60d421: am 807511d5: Merge "Remove a minimum wake-up time for a job" into lmp-dev
* commit '4d60d421f194c392186fa97fd7ba8ce57eabbf7a':
  Remove a minimum wake-up time for a job
2014-09-15 22:04:20 +00:00
Michael Wright
63d991f28c Merge "Add config option for permanent dpad presence." into lmp-dev 2014-09-15 21:38:40 +00:00
Michael Wright
a59e62341c Add config option for permanent dpad presence.
Since all TV devices are required to have a DPad as a form of
navigation we should suppress any configuration instances where it
claims one doesn't exist just because it isn't currently connected.

This prevents applications from going through a configuration change
and potentially an app restart when a remote disconnects to save
battery.

Bug: 17493314
Change-Id: Ice87b7056984afe02917ccba9196fdbcac9985fc
2014-09-15 14:24:59 -07:00
Matthew Williams
b6eaa86440 Merge "Remove a minimum wake-up time for a job" into lmp-dev 2014-09-15 17:56:51 +00:00
Jungshik Jang
526bcdce53 am 1c217c6a: am 2e33bd88: Merge "Fix cyclic mute" into lmp-dev
* commit '1c217c6a4e081b3baf950afc1e2b6c688a7bd777':
  Fix cyclic mute
2014-09-15 13:06:21 +00:00
Jungshik Jang
720407ad06 Fix cyclic mute
Bug: 17502271
Change-Id: I837315afce8193ac1948fffed66cbb8c755968e2
2014-09-15 18:24:01 +09:00
Jungshik Jang
6cbc5d741f am 4de8368e: am d0d188e5: Merge "Remove unnecessary warning." into lmp-dev
* commit '4de8368e1e9eb9499c82202d95bf19f5d2d14562':
  Remove unnecessary warning.
2014-09-15 02:58:08 +00:00
Jungshik Jang
6b096d349b Remove unnecessary warning.
Bug: 17501260

Change-Id: I5e7edd6d1fc179c00306d745adc99bebdcb65316
2014-09-15 09:54:47 +09:00
Dianne Hackborn
904313a65d am 34b11487: am 7631b257: Merge "A little more work on issue ##16907799." into lmp-dev
* commit '34b11487d16a060ec36599f289bb37235ada75d7':
  A little more work on issue ##16907799.
2014-09-15 00:52:45 +00:00
Dianne Hackborn
95686694f7 Merge "A little more work on issue ##16907799." into lmp-dev 2014-09-15 00:27:00 +00:00
Dianne Hackborn
24c98e8cf8 A little more work on issue ##16907799.
I got distracted in the middle of it, and forget to finish
up with the test to not kill processes if they aren't using
an auto create binding.

Change-Id: Ieecfe97fa3208e50cb91ba94be2a8659d128b0de
2014-09-14 17:25:34 -07:00
Dianne Hackborn
cec6f37a7c am f29a8d99: am 601e63e8: Merge "Fix issue #16907799: Processes containing bound services..." into lmp-dev
* commit 'f29a8d99ce874490935113037fda887a8d3532eb':
  Fix issue #16907799: Processes containing bound services...
2014-09-14 23:20:55 +00:00
RoboErik
8b2cce544b am 92c2439c: am 4be289e8: Merge "Route volume commands whenever media stream is in use" into lmp-dev
* commit '92c2439ccbd3a07b1e9b80d25abf3a551218ad2a':
  Route volume commands whenever media stream is in use
2014-09-14 22:13:20 +00:00
Dianne Hackborn
f075330db4 Merge "Fix issue #16907799: Processes containing bound services..." into lmp-dev 2014-09-14 22:02:36 +00:00
RoboErik
d8c36a7b60 Merge "Route volume commands whenever media stream is in use" into lmp-dev 2014-09-14 21:45:03 +00:00
Dianne Hackborn
465fa39635 Fix issue #16907799: Processes containing bound services...
...are killed over eagerly.

When the current foreground activity is moving to the background,
it was briefly going through the CACHED_ACTIVITY state before the
correct LAST_ACTIVITY state, allowing its bound service processes
to be killed (because they went in to the cached list).  To solve
this, as long as a process has stopping activities, it won't go
lower than LAST_ACTIVITY.

Also fixed a problem where we could put a process in CACHED_EMPTY
instead of CACHED_ACTIVITY_CLIENT.  There were a number of cases
in the binding flow and also the client process state transitions
where we would not correctly updateing the bound client activity
state.

And add some sanity code so that if a process hosting a
service is killed, and a client process of that service is in the
cached state, we kill the client process.  This avoids situations
where we can start thrashing around in the cached list because we
are restarting process for no reason -- since they will just
continue to be cached.

Finally, tune the process LRU list to allow twice as many cached
activity processes (from 8 to 16), so we can make better use of
the RAM we have available these days.

Change-Id: Ib0cdf78c321cbb035259fc9dd6ee27b5ba1f90c5
2014-09-14 14:32:45 -07:00
RoboErik
94c716ea29 Route volume commands whenever media stream is in use
Found a regression in volume handling. Previously we handled
volume commands as long as the media stream was active but we were only
handling them when there was an active session on L. This adds a check to
make sure we handle volume if anything is playing on the media stream.

bug:17498479
Change-Id: Iddd745c8a762cf7ebedb37f1b26fc934db01fba0
2014-09-14 21:16:51 +00:00
John Spurlock
b9e2fe1d4a am 1c1683a3: am 1ddb7a6b: Merge "Saver: PowerManager call to set low power mode." into lmp-dev
* commit '1c1683a35a0267c03729fa36b930c3dc803aff7a':
  Saver: PowerManager call to set low power mode.
2014-09-14 20:09:39 +00:00
Ramanan Rajeswaran
917fd5f6a9 am ec3b810f: am 90756e97: Merge "Fix creation issue of stack trace dump directory" into lmp-dev
* commit 'ec3b810f4d5ca288ff16841693e148a7c6fbcd7c':
  Fix creation issue of stack trace dump directory
2014-09-14 19:43:16 +00:00
John Spurlock
7ca1161e30 Merge "Saver: PowerManager call to set low power mode." into lmp-dev 2014-09-14 19:36:13 +00:00
Ramanan Rajeswaran
e7d6816fd1 Merge "Fix creation issue of stack trace dump directory" into lmp-dev 2014-09-14 19:20:36 +00:00
Michael Wright
d8af6f7102 am 0641005c: am ab567cd1: Merge "Correctly propagate SW_CAMERA_LENS_COVER_BIT" into lmp-dev
* commit '0641005ca21ec162e6fd042ee3cbe1159aed3449':
  Correctly propagate SW_CAMERA_LENS_COVER_BIT
2014-09-14 18:49:18 +00:00
Craig Mautner
4c3793662d am b53a8c2a: am 11cb403d: Merge "Add null checks for quickly disappearing Displays" into lmp-dev
* commit 'b53a8c2a713c10f9948b0353dd53cb67a6b4fe56':
  Add null checks for quickly disappearing Displays
2014-09-14 18:26:16 +00:00
Michael Wright
645df3e3e4 Merge "Correctly propagate SW_CAMERA_LENS_COVER_BIT" into lmp-dev 2014-09-14 18:19:50 +00:00