OSDN Git Service

android-x86/frameworks-base.git
11 years agoMerge "LocalSocket: Add support for SOCK_DGRAM and SOCK_SEQPACKET"
Mike Lockwood [Fri, 19 Jul 2013 17:38:17 +0000 (17:38 +0000)]
Merge "LocalSocket: Add support for SOCK_DGRAM and SOCK_SEQPACKET"

11 years agoMerge "Import translations. DO NOT MERGE"
Baligh Uddin [Fri, 19 Jul 2013 17:16:41 +0000 (17:16 +0000)]
Merge "Import translations. DO NOT MERGE"

11 years agoMerge "checkMobileProvisioning is not using sendNotification."
Wink Saville [Fri, 19 Jul 2013 17:12:39 +0000 (17:12 +0000)]
Merge "checkMobileProvisioning is not using sendNotification."

11 years agoMerge "Import translations. DO NOT MERGE"
Baligh Uddin [Fri, 19 Jul 2013 17:12:17 +0000 (17:12 +0000)]
Merge "Import translations. DO NOT MERGE"

11 years agocheckMobileProvisioning is not using sendNotification.
Wink Saville [Fri, 19 Jul 2013 16:27:56 +0000 (09:27 -0700)]
checkMobileProvisioning is not using sendNotification.

Change-Id: Ie5b98b462b29fe9339fcb8207d2d33e3028a155c

11 years agoAdd WebView.evaluateJavaScript(String, ValueCallback) API.
Ben Murdoch [Wed, 17 Jul 2013 15:25:07 +0000 (16:25 +0100)]
Add WebView.evaluateJavaScript(String, ValueCallback) API.

This API is intended to replace the "WebView.loadUrl("javascript:...")
pattern that is the current mechanism for executing JavaScript in the
context of the current page displayed in the WebView.

The new API is more convenient - it doesn't trigger the normal URL
loading path - and so does not have side effects such as hiding
the keyboard - and allows the caller to specify a callback that will
be invoked once the script execution is complete.

BUG=9814043

Change-Id: I3f27e8ff5371077d9265430090d61381a3a86e76

11 years agoMerge "Fix an issue on hardcoded alarm settings intent"
Satoshi Kataoka [Fri, 19 Jul 2013 03:26:52 +0000 (03:26 +0000)]
Merge "Fix an issue on hardcoded alarm settings intent"

11 years agoMerge "KeySets: better rejection for badly-formed manifest"
Kenny Root [Fri, 19 Jul 2013 01:43:39 +0000 (01:43 +0000)]
Merge "KeySets: better rejection for badly-formed manifest"

11 years agoFix build & preserve DHCP scheduling as-is
Christopher Tate [Fri, 19 Jul 2013 01:23:57 +0000 (18:23 -0700)]
Fix build & preserve DHCP scheduling as-is

Change-Id: I4063b18532c476280f343658bf3641495e526ed4

11 years agoMerge "Twilight alarms are now non-wakeup but exact"
Christopher Tate [Fri, 19 Jul 2013 00:54:37 +0000 (00:54 +0000)]
Merge "Twilight alarms are now non-wakeup but exact"

11 years agoTwilight alarms are now non-wakeup but exact
Christopher Tate [Fri, 19 Jul 2013 00:52:44 +0000 (17:52 -0700)]
Twilight alarms are now non-wakeup but exact

Change-Id: Iccb15065d7a0483f0bc2aff0238b94e946b8cbf1

11 years agoMerge "Fix issue #9925269: Naver app crashes on launch"
Dianne Hackborn [Fri, 19 Jul 2013 00:46:40 +0000 (00:46 +0000)]
Merge "Fix issue #9925269: Naver app crashes on launch"

11 years agoMerge "Make more calendar alarms exact"
Christopher Tate [Fri, 19 Jul 2013 00:42:38 +0000 (00:42 +0000)]
Merge "Make more calendar alarms exact"

11 years agoMake more calendar alarms exact
Christopher Tate [Fri, 19 Jul 2013 00:41:32 +0000 (17:41 -0700)]
Make more calendar alarms exact

Change-Id: I5ef72268b0605ba5a635b70d2b521533d3bd3ef0

11 years agoMerge "Use virtual screen size to determine lowmemorykiller tuning"
Colin Cross [Fri, 19 Jul 2013 00:35:05 +0000 (00:35 +0000)]
Merge "Use virtual screen size to determine lowmemorykiller tuning"

11 years agoMerge "Add properties to override size and density"
Colin Cross [Fri, 19 Jul 2013 00:35:01 +0000 (00:35 +0000)]
Merge "Add properties to override size and density"

11 years agoFix issue #9925269: Naver app crashes on launch
Dianne Hackborn [Fri, 19 Jul 2013 00:31:13 +0000 (17:31 -0700)]
Fix issue #9925269: Naver app crashes on launch

No comment.

Change-Id: I084cbbf21cacdce179c11528b7217fdc6006dceb

11 years agoMerge "Batch alarms to reduce device wakeups"
Christopher Tate [Fri, 19 Jul 2013 00:22:59 +0000 (00:22 +0000)]
Merge "Batch alarms to reduce device wakeups"

11 years agoUse virtual screen size to determine lowmemorykiller tuning
Colin Cross [Fri, 19 Jul 2013 00:15:15 +0000 (17:15 -0700)]
Use virtual screen size to determine lowmemorykiller tuning

Use the virtual screen resolution returned by getBaseDisplaySize
instead of the physical screen resolution returned by
getInitialDisplaySize.  The memory required by apps will scale
with graphics buffer size, which are generally relative to the
virtual screen resolution.

Change-Id: I0476e4afad99eca2f4f56042a8dbef5b3c7889db

11 years agoAdd properties to override size and density
Colin Cross [Fri, 19 Jul 2013 00:09:56 +0000 (17:09 -0700)]
Add properties to override size and density

Add properties ro.config.density_override and ro.config.size_override
to provide build-time virtual screen sizes.  A device with no
override set with "wm size" will use the size specified by the property.
"wm size reset" will go back to the physical size.

Change-Id: I07a585eb2e0f91365fac2b64c53de3af138a2a85

11 years agoMerge "Fix crash."
Dianne Hackborn [Thu, 18 Jul 2013 23:53:33 +0000 (23:53 +0000)]
Merge "Fix crash."

11 years agoFix crash.
Dianne Hackborn [Thu, 18 Jul 2013 23:51:04 +0000 (16:51 -0700)]
Fix crash.

Change-Id: I0b5d846d5a9e6b1c7c3756b653833c263634270b

11 years agoMerge "Fix build."
Jeff Brown [Thu, 18 Jul 2013 23:38:40 +0000 (23:38 +0000)]
Merge "Fix build."

11 years agoFix build.
Jeff Brown [Thu, 18 Jul 2013 23:37:44 +0000 (16:37 -0700)]
Fix build.

Change-Id: Ie83f51ab4b8fddceda8d4f0ac24c532eab7458b8

11 years agoMerge "Update camera metedata"
Zhijun He [Thu, 18 Jul 2013 23:20:47 +0000 (23:20 +0000)]
Merge "Update camera metedata"

11 years agoMerge "Fix issue #9913990: Background processes are being added to..."
Dianne Hackborn [Thu, 18 Jul 2013 22:56:04 +0000 (22:56 +0000)]
Merge "Fix issue #9913990: Background processes are being added to..."

11 years agoMerge "Add reconfigure method to Bitmap"
Chris Craik [Thu, 18 Jul 2013 22:55:44 +0000 (22:55 +0000)]
Merge "Add reconfigure method to Bitmap"

11 years agoFix issue #9913990: Background processes are being added to...
Dianne Hackborn [Thu, 18 Jul 2013 22:39:51 +0000 (15:39 -0700)]
Fix issue #9913990: Background processes are being added to...

...the *end* of the process LRU listB

Change-Id: I75c9477b81e10c4e517fd836304467fb3f7ed85e

11 years agoUpdate camera metedata
Zhijun He [Wed, 17 Jul 2013 19:08:24 +0000 (12:08 -0700)]
Update camera metedata

Change-Id: Ib33da76659c7aa5364ec2c3abc3613cf23eb7c36

11 years agoMerge "Split framework jar."
Jeff Brown [Thu, 18 Jul 2013 22:13:26 +0000 (22:13 +0000)]
Merge "Split framework jar."

11 years agoMerge "Set transient state for focus container in ListView"
Alan Viverette [Thu, 18 Jul 2013 22:06:21 +0000 (22:06 +0000)]
Merge "Set transient state for focus container in ListView"

11 years agoMerge "Camera: Remove camera gid from apps with camera permission."
Eino-Ville Talvala [Thu, 18 Jul 2013 18:51:33 +0000 (18:51 +0000)]
Merge "Camera: Remove camera gid from apps with camera permission."

11 years agoImport translations. DO NOT MERGE
Baligh Uddin [Thu, 18 Jul 2013 18:45:05 +0000 (11:45 -0700)]
Import translations. DO NOT MERGE

Change-Id: I9a868474b1fa886a461c5f5d81126aabc8d98bef
Auto-generated-cl: translation import

11 years agoImport translations. DO NOT MERGE
Baligh Uddin [Thu, 18 Jul 2013 18:30:15 +0000 (11:30 -0700)]
Import translations. DO NOT MERGE

Change-Id: I93223b932aad3c6331d2da2acf27c5085af00028
Auto-generated-cl: translation import

11 years agoMerge "Add FX_KEYPRESS_INVALID constant to AudioManager."
Justin Koh [Thu, 18 Jul 2013 18:27:50 +0000 (18:27 +0000)]
Merge "Add FX_KEYPRESS_INVALID constant to AudioManager."

11 years agoMerge "Switch Bundle's implementation over to ArrayMap."
Dianne Hackborn [Thu, 18 Jul 2013 18:23:09 +0000 (18:23 +0000)]
Merge "Switch Bundle's implementation over to ArrayMap."

11 years agoMerge "Mmmmmmm... lovely, lovely ArrayMap."
Dianne Hackborn [Thu, 18 Jul 2013 18:22:40 +0000 (18:22 +0000)]
Merge "Mmmmmmm...  lovely, lovely ArrayMap."

11 years agoMmmmmmm... lovely, lovely ArrayMap.
Dianne Hackborn [Thu, 18 Jul 2013 01:43:12 +0000 (18:43 -0700)]
Mmmmmmm...  lovely, lovely ArrayMap.

And ArraySet, too.

Change-Id: I72ea28cbb2286b01b6e1be082f8e7ec17e99074e

11 years agoMerge "Make it safe to use start/stop app ops outside of system proc"
Dianne Hackborn [Thu, 18 Jul 2013 18:12:50 +0000 (18:12 +0000)]
Merge "Make it safe to use start/stop app ops outside of system proc"

11 years agoSwitch Bundle's implementation over to ArrayMap.
Dianne Hackborn [Thu, 18 Jul 2013 02:06:22 +0000 (19:06 -0700)]
Switch Bundle's implementation over to ArrayMap.

That was...  um...  easier than I thought it was going to be.

Change-Id: Id8f2211c1d5f8145e0bb009dca0f62a590f2b860

11 years agoMerge "Ignore list item clicks if PreferenceActivity is paused."
Amith Yamasani [Thu, 18 Jul 2013 18:00:53 +0000 (18:00 +0000)]
Merge "Ignore list item clicks if PreferenceActivity is paused."

11 years agoAdd FX_KEYPRESS_INVALID constant to AudioManager.
Justin Koh [Fri, 12 Jul 2013 00:16:53 +0000 (17:16 -0700)]
Add FX_KEYPRESS_INVALID constant to AudioManager.

Add FX_KEYPRESS_INVALID constant to AudioManager. This is a sound which should
play if the user tries to click or press on an element which is disabled.

Change-Id: Idd8953abeddd1afb51f7f190f9fb612ef672defa

11 years agoam e9643874: am 0bad5370: Merge "Handle missing and invalid numeric values in XmlUtils."
Elliott Hughes [Thu, 18 Jul 2013 17:45:38 +0000 (10:45 -0700)]
am e9643874: am 0bad5370: Merge "Handle missing and invalid numeric values in XmlUtils."

* commit 'e964387466e380f17e28ab3dd75139509d043ffd':
  Handle missing and invalid numeric values in XmlUtils.

11 years agoam 0bad5370: Merge "Handle missing and invalid numeric values in XmlUtils."
Elliott Hughes [Thu, 18 Jul 2013 17:41:41 +0000 (10:41 -0700)]
am 0bad5370: Merge "Handle missing and invalid numeric values in XmlUtils."

* commit '0bad537093ed5b493e4c2af778cf802a2cf2c15f':
  Handle missing and invalid numeric values in XmlUtils.

11 years agoMerge "Handle missing and invalid numeric values in XmlUtils."
Elliott Hughes [Thu, 18 Jul 2013 17:38:57 +0000 (17:38 +0000)]
Merge "Handle missing and invalid numeric values in XmlUtils."

11 years agoSet transient state for focus container in ListView
Alan Viverette [Thu, 18 Jul 2013 17:37:15 +0000 (10:37 -0700)]
Set transient state for focus container in ListView

BUG: 9860185
Change-Id: I0c7035e5992c56110a0cc5c94aa778bbb999deea

11 years agoIgnore list item clicks if PreferenceActivity is paused.
Amith Yamasani [Wed, 17 Jul 2013 22:52:45 +0000 (15:52 -0700)]
Ignore list item clicks if PreferenceActivity is paused.

Since list item clicks are delivered asynchronously, it's possible to
get click callbacks after the activity has already paused.

This should actually be blocked further up the event chain, ideally,
so that the list selection state is not out of sync with the application.

Bug: 9752185
Change-Id: I1058d64cba98e9093b462e2e581bdbccdace1420

11 years agoam 03a152d7: am 15cb526e: Merge "Fix import after okhttp update."
Elliott Hughes [Thu, 18 Jul 2013 16:43:04 +0000 (09:43 -0700)]
am 03a152d7: am 15cb526e: Merge "Fix import after okhttp update."

* commit '03a152d7e72f05456a463f2709ce787119e86f03':
  Fix import after okhttp update.

11 years agoam 15cb526e: Merge "Fix import after okhttp update."
Elliott Hughes [Thu, 18 Jul 2013 16:36:48 +0000 (09:36 -0700)]
am 15cb526e: Merge "Fix import after okhttp update."

* commit '15cb526ece1420b1ae2061e20fd0982d82b41aae':
  Fix import after okhttp update.

11 years agoMerge "Fix import after okhttp update."
Elliott Hughes [Thu, 18 Jul 2013 16:33:40 +0000 (16:33 +0000)]
Merge "Fix import after okhttp update."

11 years agoMerge "Fix media server restart detection mechanism"
Eric Laurent [Thu, 18 Jul 2013 16:12:59 +0000 (16:12 +0000)]
Merge "Fix media server restart detection mechanism"

11 years agoFix media server restart detection mechanism
Eric Laurent [Thu, 18 Jul 2013 00:26:41 +0000 (17:26 -0700)]
Fix media server restart detection mechanism

There is a flaw in the mechanism used by AudioService
to detect the fact that mediaserver process did crash and restart.
It relies on polling AudioFlinger service until a successful
connection triggers a callback into AudioSystem JNI and then into AudioService.
But if another thread in system_server process, not attached to the
JNI environment, reconnects before AudioService, the callback is called in
a detached context and dropped.

The fix consists in attaching the thread executing the callback
and detaching it if needed.

Bug: 9693068.
Change-Id: I184308b12a3f87653bf818abf0159e0e45a66ef0

11 years agoFix import after okhttp update.
Narayan Kamath [Thu, 18 Jul 2013 12:42:50 +0000 (13:42 +0100)]
Fix import after okhttp update.

OkResponseCache moved packages in change
62321.

Change-Id: I2c08c4586405e767d1931ebc5f185c7916850fa1

11 years agoSplit framework jar.
Jeff Brown [Thu, 18 Jul 2013 03:44:57 +0000 (20:44 -0700)]
Split framework jar.

Change-Id: Ia4bcae15c029fd0efe01dd4527fa3d5b5367b6c8

11 years agoMerge "Move markSocketAsUser to the top of IConnectivityManager.aidl"
Geremy Condra [Thu, 18 Jul 2013 02:16:35 +0000 (02:16 +0000)]
Merge "Move markSocketAsUser to the top of IConnectivityManager.aidl"

11 years agoMake it safe to use start/stop app ops outside of system proc
Dianne Hackborn [Thu, 18 Jul 2013 00:23:25 +0000 (17:23 -0700)]
Make it safe to use start/stop app ops outside of system proc

We now keep track of all of the active start operations per
non-system process, so they can be cleaned up if the process
goes away.

Change-Id: I9d05f1e0281c47dbe1213de014f0491f1359685c

11 years agoMerge "Tweak the print APIs."
Svetoslav [Wed, 17 Jul 2013 22:05:21 +0000 (22:05 +0000)]
Merge "Tweak the print APIs."

11 years agoCamera: Remove camera gid from apps with camera permission.
Eino-Ville Talvala [Wed, 17 Jul 2013 19:37:42 +0000 (12:37 -0700)]
Camera: Remove camera gid from apps with camera permission.

This gid is not needed by camera-using apps, since all camera access
is mediated by the camera service, which does not depend on gid for
permission checks.

Bug: 9904186
Change-Id: I859e6cabc905af9d98e2b09f5bbad086b5eb2b26

11 years agoTweak the print APIs.
Svetoslav [Wed, 17 Jul 2013 21:52:35 +0000 (14:52 -0700)]
Tweak the print APIs.

1. Adding bundle with metadata to PrintDocumentAdapter#onLayout
   with one key for now to specify whether this is for a preview.

2. Cleaned up docs.

Change-Id: I89380781bf3ae41aa89f8a0347d74516a210394c

11 years agoMerge "Changed name of recent hasLayout() method to isLaidOut()"
Chet Haase [Wed, 17 Jul 2013 21:50:27 +0000 (21:50 +0000)]
Merge "Changed name of recent hasLayout() method to isLaidOut()"

11 years agoBatch alarms to reduce device wakeups
Christopher Tate [Thu, 11 Jul 2013 21:43:13 +0000 (14:43 -0700)]
Batch alarms to reduce device wakeups

The default Alarm Manager behavior for KLP+ apps will be to aggressively
coalesce alarms, trading exact timeliness of delivery for minimizing the
number of alarm-delivery points, especially wakeup points.

There is new API in AlarmManager, setExact() and setExactRepeating(),
for use by apps that absolutely *must* get their alarms at a specific
point in time.

Bug 9532215

Change-Id: I40b4eea90220211cc958172d2629664b921ff051

11 years agoAdd reconfigure method to Bitmap
Chris Craik [Sat, 13 Jul 2013 02:35:52 +0000 (19:35 -0700)]
Add reconfigure method to Bitmap

bug:9797004

Grants a means to reuse a bitmap's allocation for different
width/height/Config without going through
BitmapFactoryOptions.inBitmap

Change-Id: Ib62319f3bd96c451fc1636288adf06a8275b4e3d

11 years agoChanged name of recent hasLayout() method to isLaidOut()
Chet Haase [Wed, 17 Jul 2013 17:22:53 +0000 (10:22 -0700)]
Changed name of recent hasLayout() method to isLaidOut()

This new method on view reflects whether the view has been laid out
at least once since it was attached. hasLayout() seems too vague for that
meaning; every View that has a parent has a layout (since we use container,
parent, and layout interchangeably). The new version of the method
is closer to the actual meaning.

Change-Id: I519745739b6a6317faeb077aa61f994025cf81f3

11 years agoRemove trailing whitespace from system ui.
John Spurlock [Wed, 17 Jul 2013 16:23:27 +0000 (12:23 -0400)]
Remove trailing whitespace from system ui.

Baseline existing .java files, no excuses going forward.

Change-Id: I4bd0f25bbda6f2ec832e34ef5c70d4830bf07f99

11 years agoMerge "Make ArrayMap public! :)"
Dianne Hackborn [Wed, 17 Jul 2013 00:53:32 +0000 (00:53 +0000)]
Merge "Make ArrayMap public! :)"

11 years agoLocalSocket: Add support for SOCK_DGRAM and SOCK_SEQPACKET
Mike Lockwood [Tue, 16 Jul 2013 18:36:22 +0000 (11:36 -0700)]
LocalSocket: Add support for SOCK_DGRAM and SOCK_SEQPACKET

Also replaced some JNI code with libcore IO support

Change-Id: I091e2b6b8dd1fec554936c1ffab29e50f0979e4a

11 years agoMerge "Fix View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION."
John Spurlock [Wed, 17 Jul 2013 00:20:35 +0000 (00:20 +0000)]
Merge "Fix View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION."

11 years agoam 42658ed5: am 30ad7203: Merge "Consider mScrollX when drawing the checkMarkDrawable"
Adam Powell [Wed, 17 Jul 2013 00:12:49 +0000 (17:12 -0700)]
am 42658ed5: am 30ad7203: Merge "Consider mScrollX when drawing the checkMarkDrawable"

* commit '42658ed5182a75b82dd2b970a1f97fc30407d1e3':
  Consider mScrollX when drawing the checkMarkDrawable

11 years agoMake ArrayMap public! :)
Dianne Hackborn [Tue, 16 Jul 2013 20:23:55 +0000 (13:23 -0700)]
Make ArrayMap public! :)

Also do some tweaking of the various container classes
to synchronize them with the support lib and make it
easier to copy code between the two.

And update activity/fragment to use ArrayMap.

Change-Id: I3cfe82392a17119dfc72c3d9961f64e1914f42be

11 years agoam 30ad7203: Merge "Consider mScrollX when drawing the checkMarkDrawable"
Adam Powell [Wed, 17 Jul 2013 00:06:36 +0000 (17:06 -0700)]
am 30ad7203: Merge "Consider mScrollX when drawing the checkMarkDrawable"

* commit '30ad720304790b07112b87f973a7e6ed5e1e6ee5':
  Consider mScrollX when drawing the checkMarkDrawable

11 years agoMerge "Consider mScrollX when drawing the checkMarkDrawable"
Adam Powell [Wed, 17 Jul 2013 00:04:28 +0000 (00:04 +0000)]
Merge "Consider mScrollX when drawing the checkMarkDrawable"

11 years agoFix View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION.
John Spurlock [Tue, 16 Jul 2013 21:38:54 +0000 (17:38 -0400)]
Fix View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION.

If a window's task stack has no sibling, restore old behavior
of allowing frame to go below the nav bar.

Bug:9884905
Change-Id: Ifc38901a6633cf431dba8740a65258d0618c0fd0

11 years agoMerge "Skip unnecessary measurements when possible"
Romain Guy [Tue, 16 Jul 2013 23:37:28 +0000 (23:37 +0000)]
Merge "Skip unnecessary measurements when possible"

11 years agoSkip unnecessary measurements when possible
Romain Guy [Tue, 16 Jul 2013 22:10:04 +0000 (15:10 -0700)]
Skip unnecessary measurements when possible

This change introduces a new measure cache to View, to remember
the measured dimensions for previous pairs of measure specs. The
measure cache is cleared whenever a View requests layout.

Unfortunately some Views rely on measure being always called when
layout is invoked. To work around this problem, we need to remember
when we hit the measure cache to force a call to measure just prior
to calling onLayout(). This does not completely removes all measure
calls but enough to optimize a number of layouts.

Change-Id: Ie085fbcf186e9d7505e1127e0786a12968ebc344

11 years agoMerge "Support stencil-based clipping for functors"
Chris Craik [Tue, 16 Jul 2013 22:43:01 +0000 (22:43 +0000)]
Merge "Support stencil-based clipping for functors"

11 years agoMerge "Fix missing lock in power manager."
Jeff Brown [Tue, 16 Jul 2013 22:28:22 +0000 (22:28 +0000)]
Merge "Fix missing lock in power manager."

11 years agoMerge "Fix crashes in setMatrix() and concat()"
Romain Guy [Tue, 16 Jul 2013 22:26:59 +0000 (22:26 +0000)]
Merge "Fix crashes in setMatrix() and concat()"

11 years agoFix missing lock in power manager.
Jeff Brown [Tue, 16 Jul 2013 22:18:19 +0000 (15:18 -0700)]
Fix missing lock in power manager.

The display wake lock and other internal state could become
out of sync if we happened to execute the power manager's update
function concurrently due to the missing lock.

This bug can be trigged due to display state changes or proximity
sensor updated.  Although it would be extremely rare, we have
some evidence of this happening on at least a few devices resulting
in rapid power drain with the screen off or a crash.

Bug: 9880044
Change-Id: I3c674ce429621a50cbb36c3a01883d5f388205b2

11 years agoMerge "Fix issues with delayed transitions"
Chet Haase [Tue, 16 Jul 2013 22:17:44 +0000 (22:17 +0000)]
Merge "Fix issues with delayed transitions"

11 years agoFix issues with delayed transitions
Chet Haase [Tue, 16 Jul 2013 21:40:11 +0000 (14:40 -0700)]
Fix issues with delayed transitions

Previously, there were two distinct problems with how delayed
transitions were being run:
- there would be a delay between the transition being put into
a preDrawListener (to be kicked off when that listener fired) and
being removed from the pending list. This allowed another delayed
transition to be run in parallel, which would cause conflicting/
clobbering issues with transition values on the same objects.
- there would be an extra frame delay in some cases due to how/when the
delayed transition would be started. Specfically, we would postOnAnimation()
to call a method that would then add the onPreDraw listener. This two-step
forwarding caused issues noted above.

The fix is to simply add the transition to the preDrawListener immediately, removing
the two-step problem, and also ensuring that the transition is only removed
from the pending list when it is actually started, which prevents other transitions
from starting in the meantime.

Also, added more debug logging to help chase future issues with transitions.

Change-Id: Ie2ff8e73d29f342512842e9641bd8d605e74544c

11 years agoFix crashes in setMatrix() and concat()
Romain Guy [Tue, 16 Jul 2013 20:47:01 +0000 (13:47 -0700)]
Fix crashes in setMatrix() and concat()

setMatrix() was crashing in native code, only with hw acceleration on.
concat() would throw a NullPointerException. It now ignores null matrices.

Change-Id: Iebd8b410a957d2ba501570c6fbb3f680ff4a1a23

11 years agoMerge "Remove iterators."
Craig Mautner [Tue, 16 Jul 2013 21:45:32 +0000 (21:45 +0000)]
Merge "Remove iterators."

11 years agoClean up of the print APIs.
Svetoslav [Tue, 25 Jun 2013 01:29:33 +0000 (18:29 -0700)]
Clean up of the print APIs.

1. Fixed a case in which the onPrintCompleted callback may not be invoked.

2. Added string resulrces for the different error messages for failed
   printing in OnPrintCompletedCallback

3. Fixed the string comments for the MediaSize constants.

4. Added APIs to create certain print attributes by passing in a
   string label instead of resource and package name since in some cases
   a print service may be getting already internationalized lables
   or it may not know all possible values.

5. Fixed a crash in PrintJobConfigActivity if there is no input or
   output tray.

Change-Id: Ie877b7dc669051606394aa290e6d2b979a42db4c

11 years agoMerge "Camera2: Remove/@hide non-public keys."
Eino-Ville Talvala [Tue, 16 Jul 2013 21:10:43 +0000 (21:10 +0000)]
Merge "Camera2: Remove/@hide non-public keys."

11 years agoAdd a clean spec rule due to renamed *.aidl
Svetoslav [Tue, 16 Jul 2013 20:49:44 +0000 (13:49 -0700)]
Add a clean spec rule due to renamed *.aidl

Change-Id: I87bfd02b8c4f3ceb43594a91ac8f501a867ccfe6

11 years agoRemove iterators.
Craig Mautner [Tue, 16 Jul 2013 16:10:55 +0000 (09:10 -0700)]
Remove iterators.

Remove DisplayContentsIterator and AllWindowsIterator. These were cute
but they take up valuable resources. Iterate over ArrayList members
in their place.

Change-Id: I1d8a3b040175cb88b98f6a7e97cab06d17d5706b

11 years agoFix the build - missed a renaming
Svetoslav [Tue, 16 Jul 2013 20:43:41 +0000 (13:43 -0700)]
Fix the build - missed a renaming

Change-Id: I0e85723647c0e5a6f6374e119f0fbd43db477ee0

11 years agoSupport stencil-based clipping for functors
Chris Craik [Tue, 16 Jul 2013 20:27:18 +0000 (13:27 -0700)]
Support stencil-based clipping for functors

bug:9070351
Change-Id: I1c54e1bea1b84b1619cce27b14f189b42cab7062

11 years agoMerge "Disable documents test UI."
Jeff Sharkey [Tue, 16 Jul 2013 20:03:35 +0000 (20:03 +0000)]
Merge "Disable documents test UI."

11 years agoDisable documents test UI.
Jeff Sharkey [Tue, 16 Jul 2013 20:01:57 +0000 (13:01 -0700)]
Disable documents test UI.

Change-Id: Iae8ef3e751a53a3f7df0a7c5bc666ec75e91d9e9

11 years agoMerge "Refactoring of the print sub-system and API clean up."
Svetoslav Ganov [Tue, 16 Jul 2013 20:01:34 +0000 (20:01 +0000)]
Merge "Refactoring of the print sub-system and API clean up."

11 years agoRefactoring of the print sub-system and API clean up.
Svetoslav Ganov [Tue, 25 Jun 2013 21:59:53 +0000 (14:59 -0700)]
Refactoring of the print sub-system and API clean up.

1. Now a user state has ins own spooler since the spooler app is
   running per user. The user state registers an observer for the state
   of the spooler to get information needed to orchestrate unbinding
   from print serivces that have no work and eventually unbinding from
   the spooler when all no service has any work.

2. Abstracted a remote print service from the perspective of the system
   in a class that is transparently managing binding and unbinding to
   the remote instance.

3. Abstracted the remote print spooler to transparently manage binding
   and unbinding to the remote instance when there is work and when
   there is no work, respectively.

4. Cleaned up the print document adapter (ex-PrintAdapter) APIs to
   enable implementing the all callbacks on a thread of choice. If
   the document is really small, using the main thread makes sense.

   Now if an app that does not need the UI state to layout the printed
   content, it can schedule all the work for allocating resources, laying
   out, writing, and releasing resources on a dedicated thread.

5. Added info class for the printed document that is now propagated
   the the print services. A print service gets an instance of a
   new document class that encapsulates the document info and a method
   to access the document's data.

6. Added APIs for describing the type of a document to the new document
   info class. This allows a print service to do smarts based on the
   doc type. For now we have only photo and document types.

7. Renamed the systemReady method for system services that implement
   it with different semantics to systemRunning. Such methods assume
   the the service can run third-party code which is not the same as
   systemReady.

8. Cleaned up the print job configuration activity.

9. Sigh... code clean up here and there. Factoring out classes to
   improve readability.

Change-Id: I637ba28412793166cbf519273fdf022241159a92

11 years agowifi: Add tdls_discover command to tdls enable call
Dmitry Shmidt [Tue, 16 Jul 2013 19:41:22 +0000 (12:41 -0700)]
wifi: Add tdls_discover command to tdls enable call

Bug: 8539031

Change-Id: I29739e74f73b68fbf9ff73cfc19017a01655f9a4
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoMerge "unify variable naming scheme."
Chris Wren [Tue, 16 Jul 2013 18:41:00 +0000 (18:41 +0000)]
Merge "unify variable naming scheme."

11 years agoMerge "Fix collapsible action views."
Adam Powell [Tue, 16 Jul 2013 18:37:35 +0000 (18:37 +0000)]
Merge "Fix collapsible action views."

11 years agoFix collapsible action views.
Adam Powell [Tue, 16 Jul 2013 18:35:17 +0000 (11:35 -0700)]
Fix collapsible action views.

Fix a regression caused by a previous overzealous refactoring. (Oops.)
Watch those conditionals, everyone!

Bug 9866559

Change-Id: Ia88a4ee38edef378e70bdc7151c825375a3d482d

11 years agounify variable naming scheme.
Chris Wren [Mon, 15 Jul 2013 22:48:37 +0000 (18:48 -0400)]
unify variable naming scheme.

inflateViews() and updateNotification() reference the same objects
with different names, and it was confusing.  #cleanup

Bug: 6497005
Change-Id: I0d9a94d7ec156b6bfcf4b85c777f9b58311d07d0

11 years agoMove markSocketAsUser to the top of IConnectivityManager.aidl
Chad Brubaker [Tue, 16 Jul 2013 18:22:32 +0000 (11:22 -0700)]
Move markSocketAsUser to the top of IConnectivityManager.aidl

Move markSocketAsUser to the top of IConnectivityManager.aidl to make
calls from
framework/native/services/connectivitymanager less fragile

Change-Id: Iba92c21dfef175b570521f34e7ee2732e5a0a9c9

11 years agoMerge "Switch proc stats to use new process state constants."
Dianne Hackborn [Tue, 16 Jul 2013 18:15:08 +0000 (18:15 +0000)]
Merge "Switch proc stats to use new process state constants."

11 years agoCamera2: Remove/@hide non-public keys.
Eino-Ville Talvala [Mon, 15 Jul 2013 22:19:22 +0000 (15:19 -0700)]
Camera2: Remove/@hide non-public keys.

Change-Id: I28fc5d6d41a444730061b6d2652f5cb75f97d56b