151135 Commits

Author SHA1 Message Date
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
Andrew Solovay
67267dcf90 am 6c6664c9: am a209406f: Merge "Docs: Updated to include new Subscriptions functionality." into klp-modular-docs
* commit '6c6664c95d7935398909e798e0aad451a2a83b1b':
  Docs: Updated to include new Subscriptions functionality.
2014-09-17 06:12:12 +00:00
Andrew Solovay
6c6664c95d am a209406f: Merge "Docs: Updated to include new Subscriptions functionality." into klp-modular-docs
* commit 'a209406faa1f2b0f1dd7b6e3c5a468729f1c562f':
  Docs: Updated to include new Subscriptions functionality.
2014-09-17 06:01:09 +00:00
Sailesh Nepal
7f46657454 Include code when converting unknown causes to string
Bug: 17535687
Bug: 17241433
Change-Id: I12f0c3b4334dfcb5ac0cd2439ecab9dc77546680
2014-09-17 04:27:36 +00:00
Yorke Lee
58bacc513c Add playDtmfTone, stopDtmfTone and setAudioState to RemoteConference
Bug: 17512380
Change-Id: Ie26bef643bdec97f64247b5f8099f2676ae6c63e
2014-09-16 20:44:09 -07:00
Yorke Lee
1c4eb10cc1 Merge "Add missing methods to Conference object" into lmp-dev 2014-09-17 03:29:12 +00:00
Nancy Chen
ebc69cd19e Merge "Remove ability to enable/disable phoneaccounts (1/6)" into lmp-dev 2014-09-17 03:23:04 +00:00
Andrew Solovay
a209406faa Merge "Docs: Updated to include new Subscriptions functionality." into klp-modular-docs 2014-09-17 02:21:10 +00:00
Andrew Lee
009348e837 Merge "Fix disconnect log printf in ConnectionService." into lmp-dev 2014-09-17 01:52:54 +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
afd6f342ad Merge "Remove MHL related code." into lmp-dev 2014-09-17 01:28:26 +00:00
Yigit Boyar
2bbad0cddc Handle action mode changes properly for actionbar tabs
Bug: 17513613
Change-Id: I4ebcadc618558153b72bf577232adc3e616adb6b
2014-09-16 18:28:03 -07:00
mike dooley
9891bbeae2 Merge "Fix a small printf format bug." into lmp-dev 2014-09-17 01:25:14 +00:00
Andrew Lee
2678639f9e Fix disconnect log printf in ConnectionService.
Bug: 17534940
Change-Id: I41499701d1f7a3ab0816624d27094c6c86fb5b01
2014-09-16 18:17:44 -07:00
Yuncheol Heo
da6e9f10d0 Remove MHL related code.
Bug: 17479050
Change-Id: Id4a76ccf7325c78817d1b3c3460e5dc40e23831b
2014-09-17 10:15:40 +09:00
mike dooley
f34519b4dd Fix a small printf format bug.
Bug: 17534940
Change-Id: Idc3c1105c72714f138b07012d0ad9e0bf0ba17f1
2014-09-16 18:14:14 -07: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
e7b26be378 Merge "Add NetworkAgent event for ExplicitlySelected" into lmp-dev 2014-09-17 00:06:03 +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
Michael Wright
b1e3b70aeb Remove Rhodi keylayout
Looks like Broadcom re-used the Rhodi PID since we never shipped.
Remove the keylayout so we don't accidentally use it for other
devices.

Bug: 17504946
Change-Id: Ia11ad40f8ba7d49f82e7f68d881cf7c9bfafcb37
2014-09-16 16:48:58 -07:00
Adrian Roos
543f21da46 Merge "Fix broken dispatch of onApplyWindowInsets" into lmp-dev 2014-09-16 23:42:40 +00:00
Brian Attwell
5665c0f265 Merge "Pass different dy into dispatchNestedSCroll" into lmp-dev 2014-09-16 23:33:24 +00:00
Alan Viverette
af8e823d99 Merge "Preserve NPE behavior of removed TextView.getTextColors() API" into lmp-dev 2014-09-16 23:25:07 +00:00
Alan Viverette
4813482324 Merge "Fix TimePicker.setCurrentHour() when argument is 0" into lmp-dev 2014-09-16 23:23:23 +00: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
Alan Viverette
96f26b8039 Merge "Ensure we always have valid colors in CaptionStyle" into lmp-dev 2014-09-16 23:20:28 +00:00
ztenghui
f74879fb4d Merge "Update the progress bar to square instead of round lineCap" into lmp-dev 2014-09-16 23:18:37 +00:00
Robert Greenwalt
b4f601cb84 Merge "Report Network status to NetworkAgent." into lmp-dev 2014-09-16 22:59:33 +00:00
Craig Mautner
fb1bf84165 Merge "Restore changes that were needed." into lmp-dev 2014-09-16 22:53:34 +00:00
Alan Viverette
f1820064d9 Ensure we always have valid colors in CaptionStyle
BUG: 17521623
Change-Id: I861aa189970fc14dd3e4426e5487a14f373d3a2e
2014-09-16 15:53:33 -07:00
Alan Viverette
dc7df6497a Merge "Increase clock and calendar haptic feedback durations" into lmp-dev 2014-09-16 22:50:45 +00:00
Craig Mautner
a67d9095b7 Restore changes that were needed.
Reverting the changes in ag/548487 also reverted alanv's changes
in ag/547793. This restores alanv's changes.

Fixes build.

Change-Id: Ifa2aa928a3ad29fe49e52dbec4e4833538dfe7e9
2014-09-16 15:50:32 -07:00
Brian Attwell
e0e4217330 Pass different dy into dispatchNestedSCroll
Bug: 16462679
Bug: 17529919
Change-Id: I328457a27507253cc7bfeab0e2daa4d4563aab17
2014-09-16 22:48:27 +00:00
ztenghui
77a12e897e Update the progress bar to square instead of round lineCap
b/17206751

Change-Id: I4125a1e677d2888ad1c3580dc44d5983e623cda7
2014-09-16 15:41:42 -07:00
Alan Viverette
fe16787bd4 Preserve NPE behavior of removed TextView.getTextColors() API
BUG: 17511449
Change-Id: Iea7e9aed69c21b230e3c474d4c1378a8663cfcb1
2014-09-16 15:41:27 -07:00
Craig Mautner
704991224d Merge "Revert "Fix various bugs in DatePickerCalendarDelegate"" into lmp-dev 2014-09-16 22:16:29 +00:00
Craig Mautner
706b3547f8 Revert "Fix various bugs in DatePickerCalendarDelegate"
alanv@ fixed this yesterday.

This reverts commit 82537efa4c5f4aad12b9aa249fb27eda21647f39.

Change-Id: If2b91ee36f8b24f695200ac1a87a306246ee5e44
2014-09-16 22:13:39 +00:00
Alan Viverette
82ed5df115 Increase clock and calendar haptic feedback durations
Some devices don't handle sub-15ms vibration durations very well.

BUG: 17511995
Change-Id: I2212ed9f37f3446e6f4ac5985906294121d39a9d
2014-09-16 15:08:10 -07:00
John Spurlock
386831dc3c Merge "Zen: Fix recent regression in mode selection after reboot." into lmp-dev 2014-09-16 21:54:02 +00:00
Andrew Lee
6663d4f973 Merge "Add new DisconnectCause class to telecomm." into lmp-dev 2014-09-16 21:43:17 +00:00
Craig Mautner
f6b4254bef Merge "Fix various bugs in DatePickerCalendarDelegate" into lmp-dev 2014-09-16 21:30:29 +00:00
Adrian Roos
39381948b9 Fix broken dispatch of onApplyWindowInsets
Fixes an issue where window insets were not further dispatched
if all happen to be zero. To prevent further dispatch, the
insets must now be consumed explicitly.

Bug: 17522145
Change-Id: Ia8f6c10c8369b58db7a7cf49f8bcc2cab8e304f1
2014-09-16 23:09:33 +02:00
John Spurlock
4291fb79c7 Zen: Fix recent regression in mode selection after reboot.
Bug:17509473
Change-Id: I761cd90384c490c7ab07fb633133535846701ce6
2014-09-16 17:02:23 -04:00
Craig Mautner
9c26b54d3c Fix various bugs in DatePickerCalendarDelegate
These bugs were exposed by cts DatePickerTest.

Fixes one item in 17459129.

Change-Id: Ifab52c6e6e760b75633aa4fe8ccf2d724f587e09
2014-09-16 13:57:59 -07:00
Svetoslav
e9f275d309 Merge "Print preview disappearing on screen off/on." into lmp-dev 2014-09-16 20:48:16 +00:00
Amit Mahajan
915a666c21 Merge "Use Op package name when creating toasts" into lmp-dev 2014-09-16 20:47:24 +00:00
Jeff Sharkey
47e3124da0 Merge "Always force list divider in DocumentsUI." into lmp-dev 2014-09-16 19:44:16 +00:00
Andrew Lee
7f3d41fd12 Add new DisconnectCause class to telecomm.
+ Add a hidden "UNKNOWN" default type to ToneGenerator.
- Hide the Telephony DisconnectCause from the public API.
+ Add a Telecomm DisconnectCause. This is parcelable, and contains
information (code, user facing message, non-user facing reason,
and tone) to help describe the disconnect state and what behaviors
an application can implement for the user experience. This reduces
the causes for a disconnect to a more generic set.
+ Lots of work to pipe this through. DisconnectCause replaces the
code and message which were formerly passed around.

Bug: 17241433
Bug: 17329632
Change-Id: I9d337e478a8784bcc0ade02267c2df52cac9bf17
2014-09-16 12:07:41 -07:00