20703 Commits

Author SHA1 Message Date
Sandeep Siddhartha
b1a7ddfe54 am 2ee987c0: am fd719cfd: am aea51189: am e80c6f17: Merge "Fix issues with multiple languages and multi-users" into lmp-dev
* commit '2ee987c02239e6ebe1232505e3b9f9bd72d39a8a':
  Fix issues with multiple languages and multi-users
2014-09-17 20:51:01 +00:00
Sandeep Siddhartha
80ea66b102 Merge "Fix issues with multiple languages and multi-users" into lmp-dev 2014-09-17 20:06:43 +00:00
Craig Mautner
cf63170076 am 10053611: am 4f1f8ec4: am 40a640a0: am d14816b6: Merge "Eliminate misleading warning." into lmp-dev
* commit '10053611de4ab99f10fe2403e2e7ed601ec73209':
  Eliminate misleading warning.
2014-09-17 19:01:05 +00:00
Craig Mautner
db5f9a36d4 am c667a13e: am 72f65aed: am f3ea780b: am 951df81d: Merge "Add optimizations to keep TaskPersister queue small." into lmp-dev
* commit 'c667a13e8115cd53d611de5170c430bb484f74d3':
  Add optimizations to keep TaskPersister queue small.
2014-09-17 19:01:01 +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
Jungshik Jang
69671bc4be am 446b04f5: am 0b8db057: am f7d23fc5: am f88be2c7: Merge "Adjust volume bar visibility in HDMI-CEC system audio mode" into lmp-dev
* commit '446b04f55022bdfd56d3f39dd5877a0daeaf7395':
  Adjust volume bar visibility in HDMI-CEC system audio mode
2014-09-17 14:15:27 +00:00
Yuncheol Heo
b8a89a74b9 am 762fa885: am 18e7347c: am 3d75058e: am 41f887c4: Merge "Remove MHL related code." into lmp-dev
* commit '762fa885798721a6c2b8ccb5ea564f1751fed944':
  Remove MHL related code.
2014-09-17 14:15:23 +00:00
Dianne Hackborn
c581561fc0 am e2de4ac1: am ff6eebd6: am b68528cd: am 3061d2b9: Merge "Fix issue #17507017: took ~3 seconds to move an app to the foreground" into lmp-dev
* commit 'e2de4ac106719ace45b16e822e1eff1bc289ed75':
  Fix issue #17507017: took ~3 seconds to move an app to the foreground
2014-09-17 14:14:59 +00:00
Dianne Hackborn
c73c2fd55f am 3ca3e107: am 596d38f8: am 1e4d9476: am 1a7cb969: Merge "Fix issue #16662560: SingleTop activity is getting instantiated multiple time" into lmp-dev
* commit '3ca3e107acec9967c3d8b6ea819835f4f9b14b87':
  Fix issue #16662560: SingleTop activity is getting instantiated multiple time
2014-09-17 14:14:53 +00:00
Robert Greenwalt
dde45a4cf3 am e6068c9b: am 82c8eb07: am 061ac1be: am d0675e37: Merge "Add NetworkAgent event for ExplicitlySelected" into lmp-dev
* commit 'e6068c9bf5675d02cc2aefff011c06542362fe74':
  Add NetworkAgent event for ExplicitlySelected
2014-09-17 14:14:49 +00:00
Robert Greenwalt
1fd891b8b6 am 4b975101: am 46d6a418: am 3a68c1e8: am c8f6ad36: Merge "Report Network status to NetworkAgent." into lmp-dev
* commit '4b9751019ff25b61b84e2a8c6955f38d727efb73':
  Report Network status to NetworkAgent.
2014-09-17 14:13:31 +00: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
Ji-Hwan Lee
4621120a25 am fc98fb99: am a632834c: am 3b2f7353: am 444a0f2d: TIF: Re-connect the session on package update.
* commit 'fc98fb9900dd12311e04555f771a1d37209a60eb':
  TIF: Re-connect the session on package update.
2014-09-17 05:15:09 +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
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
b4f601cb84 Merge "Report Network status to NetworkAgent." into lmp-dev 2014-09-16 22:59:33 +00:00
Adrian Roos
3650909cb2 am 88fbb05b: am d386ca71: am 0a559fa6: am 90c9f382: Merge "Properly redispatch systemUiVisibility flags" into lmp-dev
* commit '88fbb05b9c1b3e7accddcb995bf4e8b39213a86d':
  Properly redispatch systemUiVisibility flags
2014-09-16 21:09:34 +00:00
Yuncheol Heo
7555b452bf am ac7f0959: am aff23266: am ba9e5222: am 5c0d3862: Merge "Make the playback device pass CEC CTS." into lmp-dev
* commit 'ac7f0959af64ae89a23c17ce5affe282ec658a3d':
  Make the playback device pass CEC CTS.
2014-09-16 21:09:03 +00:00
Tsuwei Chen
0d7c24dc32 am a86dcd88: am 5740c183: am 82864541: am 86f1d252: Merge "Set user agent for XTRA download according to carrier specification. Bug: 17056380 Change-Id: Iacb90d4780f35fa6875702889d4a5f02610768b7" into lmp-dev
* commit 'a86dcd88b80274f0cb1ceb9f7641b5659c035349':
  Set user agent for XTRA download according to carrier specification. Bug: 17056380 Change-Id: Iacb90d4780f35fa6875702889d4a5f02610768b7
2014-09-16 21:08:55 +00:00
Dianne Hackborn
3469671e4a am f2b72117: am 71265274: am 40ce4e60: am 9f568025: Merge "Quick fix issue #17514851: dumpsys package <package-name> includes..." into lmp-dev
* commit 'f2b721171a08502c38e50fe3c151adeaeadf30c3':
  Quick fix issue #17514851: dumpsys package <package-name> includes...
2014-09-16 21:08:37 +00:00
Michael Wright
300b2d7c64 am 7a49a1f0: am 5a3760e8: am 92638ae9: am b46fd00a: Merge "Add config option for permanent dpad presence." into lmp-dev
* commit '7a49a1f08aa7b54fbf87c43fb74dc5b1fadd84d7':
  Add config option for permanent dpad presence.
2014-09-16 21:07:17 +00:00
Matthew Williams
c7bb0384e7 am 60ea7498: am 0ce79585: am 194d434c: am 807511d5: Merge "Remove a minimum wake-up time for a job" into lmp-dev
* commit '60ea7498a41f29568b49fd28aa09850fb36deeb0':
  Remove a minimum wake-up time for a job
2014-09-16 21:03:48 +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
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
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
Sandeep Siddhartha
8cf8f71644 Fix issues with multiple languages and multi-users
For multi-user the issue was looking into the user ID of the current
process instead of the active user. The current process was the system
process and the call to UserManager was returning a user handle that
wasn't of any use while trying to map sound models to a user.

For language, the issue was that we were incorrectly just looking up the
model based on the keyphrase id, however we should have also taken the
enrolled model's locale into account.

Explicitly document that for model management the string representation of locales
is a BCP47 language tag.

Remove debug logging.

Bug: 16798166
Bug: 17462570
Bug: 17463511
Change-Id: Ieffb3e218de63f6e7f40af9705dced481a35b0ad
2014-09-15 19:59:09 -07: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
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