OSDN Git Service

android-x86/frameworks-base.git
10 years agoam 7cb1dfe6: Merge "Insufficient ProcessRecord cleanup when persistent process is...
Dianne Hackborn [Tue, 18 Mar 2014 18:31:34 +0000 (11:31 -0700)]
am 7cb1dfe6: Merge "Insufficient ProcessRecord cleanup when persistent process is killed"

* commit '7cb1dfe690b2d700ce212712287dfd59c2c8e43f':
  Insufficient ProcessRecord cleanup when persistent process is killed

10 years agoMerge "Insufficient ProcessRecord cleanup when persistent process is killed"
Dianne Hackborn [Tue, 18 Mar 2014 18:28:16 +0000 (18:28 +0000)]
Merge "Insufficient ProcessRecord cleanup when persistent process is killed"

10 years agoam 7c0dfed5: Merge "Pass int32_t for JNI calls to java Input/Output streams."
Narayan Kamath [Tue, 18 Mar 2014 09:38:24 +0000 (02:38 -0700)]
am 7c0dfed5: Merge "Pass int32_t for JNI calls to java Input/Output streams."

* commit '7c0dfed535bd23ce7cce0f8c498a8d6d3f14ff0f':
  Pass int32_t for JNI calls to java Input/Output streams.

10 years agoMerge "Pass int32_t for JNI calls to java Input/Output streams."
Narayan Kamath [Tue, 18 Mar 2014 09:34:43 +0000 (09:34 +0000)]
Merge "Pass int32_t for JNI calls to java Input/Output streams."

10 years agoInsufficient ProcessRecord cleanup when persistent process is killed
Akira Numata [Thu, 13 Mar 2014 04:36:31 +0000 (13:36 +0900)]
Insufficient ProcessRecord cleanup when persistent process is killed

When persistent process with Service restarts, ActivityManagerService
does not reset ProcessRecord#hasClientActivites to false
(because ProcessRecord of persistent process is continued using
after killing).

It disturbs updating LRU list in ActivityManagerService, and then,
when new process calls ActivityManagerProxy#publishContentProviders,
SecurityException happens because of no entry in the list.

Bug: 13517358

Change-Id: I46b064f71a4f7025ade1bf117801352a7ab22e6a

10 years agoam d88d8174: Merge "Null pointer exception in FileRotator.java"
Jeff Sharkey [Mon, 17 Mar 2014 16:36:03 +0000 (09:36 -0700)]
am d88d8174: Merge "Null pointer exception in FileRotator.java"

* commit 'd88d817498327462f42e50348239eac59147f310':
  Null pointer exception in FileRotator.java

10 years agoMerge "Null pointer exception in FileRotator.java"
Jeff Sharkey [Mon, 17 Mar 2014 16:32:05 +0000 (16:32 +0000)]
Merge "Null pointer exception in FileRotator.java"

10 years agoPass int32_t for JNI calls to java Input/Output streams.
Ashok Bhat [Wed, 5 Mar 2014 12:40:53 +0000 (12:40 +0000)]
Pass int32_t for JNI calls to java Input/Output streams.

Passing size_t is problematic on 64 bit platforms where
it's 8 bytes in size. Conversion to int32_t is safe because
the size argument is always clamped to fCapacity, which is
4 bytes wide.

Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Change-Id: I58558561a4f56451485f1a5fc6cdeda677247071

10 years agoam d93e7b24: Merge "Don\'t attempt to launch disabled activities in smoke test."
Steve Moyer [Sun, 16 Mar 2014 17:29:25 +0000 (10:29 -0700)]
am d93e7b24: Merge "Don\'t attempt to launch disabled activities in smoke test."

* commit 'd93e7b2424b7ab442065b0d9cecb8b72a9c5c8ed':
  Don't attempt to launch disabled activities in smoke test.

10 years agoMerge "Don't attempt to launch disabled activities in smoke test."
Steve Moyer [Sun, 16 Mar 2014 17:26:43 +0000 (17:26 +0000)]
Merge "Don't attempt to launch disabled activities in smoke test."

10 years agoam 47653f2d: Merge "Move options buffers to top scope"
Dave Allison [Fri, 14 Mar 2014 21:18:40 +0000 (14:18 -0700)]
am 47653f2d: Merge "Move options buffers to top scope"

* commit '47653f2d0823bcebefc23cc2441db1f8d9e55b4c':
  Move options buffers to top scope

10 years agoMerge "Move options buffers to top scope"
Dave Allison [Fri, 14 Mar 2014 21:15:25 +0000 (21:15 +0000)]
Merge "Move options buffers to top scope"

10 years agoMove options buffers to top scope
Dave Allison [Fri, 14 Mar 2014 15:54:33 +0000 (08:54 -0700)]
Move options buffers to top scope

It is important that the char buffers for options do
not go out of scope as the mOptions.add() does not copy
the buffer.  This moves all the buffers to the top
level scope of the function to prevent accidental
overwriting when they go out of scope.

Bug: 13448497
Change-Id: I5a97ddd32ff34f237915927906e1e1f833ff036e

10 years agoam 4cde7734: Merge "remove unnecessary switchUser call"
Victoria Lease [Fri, 14 Mar 2014 17:51:45 +0000 (10:51 -0700)]
am 4cde7734: Merge "remove unnecessary switchUser call"

* commit '4cde773435074809672f9de6a47b26de902a83d1':
  remove unnecessary switchUser call

10 years agoMerge "remove unnecessary switchUser call"
Victoria Lease [Fri, 14 Mar 2014 17:48:00 +0000 (17:48 +0000)]
Merge "remove unnecessary switchUser call"

10 years agoam 629daddd: Merge "Fix layoutlib build."
Narayan Kamath [Fri, 14 Mar 2014 14:19:24 +0000 (07:19 -0700)]
am 629daddd: Merge "Fix layoutlib build."

* commit '629daddd03b598616de7c30a13b1f9f9b11b98fe':
  Fix layoutlib build.

10 years agoMerge "Fix layoutlib build."
Narayan Kamath [Fri, 14 Mar 2014 14:12:35 +0000 (14:12 +0000)]
Merge "Fix layoutlib build."

10 years agoFix layoutlib build.
Narayan Kamath [Fri, 14 Mar 2014 14:10:30 +0000 (14:10 +0000)]
Fix layoutlib build.

Was using private data structures from libcore.

Change-Id: I5bd43190081891659e18b5c871686e6078efcc81

10 years agoam f3a2895a: Merge "NsdService does not clean up after exiting clients"
Dave Platt [Thu, 13 Mar 2014 23:38:59 +0000 (16:38 -0700)]
am f3a2895a: Merge "NsdService does not clean up after exiting clients"

* commit 'f3a2895a31069a7c01c69d011b290fcfb3298b3c':
  NsdService does not clean up after exiting clients

10 years agoMerge "NsdService does not clean up after exiting clients"
Dave Platt [Thu, 13 Mar 2014 23:35:15 +0000 (23:35 +0000)]
Merge "NsdService does not clean up after exiting clients"

10 years agoNsdService does not clean up after exiting clients
Dave Platt [Fri, 7 Mar 2014 22:48:22 +0000 (14:48 -0800)]
NsdService does not clean up after exiting clients

When a client of the NsdService exits, NsdService should
clean up the requests it has sent to the mDNS daemon:
cancel any pending resource-discovery and resource-resolution
queries, and remove any services registered by this client.

If this isn't done, several bad things happen. The daemon will
continue to run unnecessarily, will report service discoveries
that can't be forwarded on to the client, and will continue to
advertise service ports for an application which is no longer
running until the device is rebooted (mDNS pollution).

Bug: 9801184
Change-Id: I0aa7311480322aefcff16f902fbbf34f50985d38

10 years agoNull pointer exception in FileRotator.java
Mikael Gullstrand [Fri, 13 Dec 2013 09:44:50 +0000 (10:44 +0100)]
Null pointer exception in FileRotator.java

Sometimes a null pointer exception is thrown when examining files
managed by the file rotator.

The logs from the test show that the Wifi state is changed a large
number of times. On every state change, a write operation is
initiated on the file system. This will eventually result in out
of memory and the call to mBasePath.list() in the maybeRotate(...)
method in FileRotator.java will return null so the iteration will
throw a NullPointerException.

Change-Id: I5d5980d9593bc9ec75281169ca27ee591809903f

10 years agoremove unnecessary switchUser call
Jianzheng Zhou [Thu, 10 Oct 2013 06:02:09 +0000 (14:02 +0800)]
remove unnecessary switchUser call

If userId doesn't change, no need to do switchuser.or it will
introduce some tweak for gps modules in quick off/on because
they need cost time in off/on.

Change-Id: Ie5e408dc8be69c8a63a18bcb2cfe478cef4d70e6
Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
10 years agoam 792f38dd: Merge "Fix the delegate method signatures in LayoutLib"
Deepanshu Gupta [Tue, 11 Mar 2014 23:16:18 +0000 (16:16 -0700)]
am 792f38dd: Merge "Fix the delegate method signatures in LayoutLib"

* commit '792f38ddd9e8d25b2c8bf0d67363dbfa56550636':
  Fix the delegate method signatures in LayoutLib

10 years agoMerge "Fix the delegate method signatures in LayoutLib"
Deepanshu Gupta [Tue, 11 Mar 2014 21:22:39 +0000 (21:22 +0000)]
Merge "Fix the delegate method signatures in LayoutLib"

10 years agoam a79af364: Merge "Remove java.io.tmpdir assignment in AndroidRuntime (again)."
Narayan Kamath [Tue, 11 Mar 2014 15:14:26 +0000 (08:14 -0700)]
am a79af364: Merge "Remove java.io.tmpdir assignment in AndroidRuntime (again)."

* commit 'a79af3647f7f93825b84cc25187527b5aac60a69':
  Remove java.io.tmpdir assignment in AndroidRuntime (again).

10 years agoMerge "Remove java.io.tmpdir assignment in AndroidRuntime (again)."
Narayan Kamath [Tue, 11 Mar 2014 15:09:44 +0000 (15:09 +0000)]
Merge "Remove java.io.tmpdir assignment in AndroidRuntime (again)."

10 years agoRemove java.io.tmpdir assignment in AndroidRuntime (again).
Narayan Kamath [Tue, 11 Mar 2014 15:02:10 +0000 (15:02 +0000)]
Remove java.io.tmpdir assignment in AndroidRuntime (again).

This was brought back by a bad merge conflict resolution
in change 0efbd9a463c848118c7685f4bfc8765a82caa761.

Change-Id: I0c7cbe8ee396293619eabf4d0a3c2f06c76bdd6e

10 years agoam 0f3fd6c6: Merge "Remove stray logging statement."
Narayan Kamath [Tue, 11 Mar 2014 12:03:36 +0000 (05:03 -0700)]
am 0f3fd6c6: Merge "Remove stray logging statement."

* commit '0f3fd6c66e8376e62ed61dd2b92ea4807571b3de':
  Remove stray logging statement.

10 years agoMerge "Remove stray logging statement."
Narayan Kamath [Tue, 11 Mar 2014 12:00:54 +0000 (12:00 +0000)]
Merge "Remove stray logging statement."

10 years agoRemove stray logging statement.
Narayan Kamath [Tue, 11 Mar 2014 11:08:41 +0000 (11:08 +0000)]
Remove stray logging statement.

bug: https://code.google.com/p/android/issues/detail?id=66974
Change-Id: Ie34c102de143cf6aeb16c78778dda3ef5e928380

10 years agoam 6d71e165: Merge "Round off when calculate next step in Seekbar"
Jeff Brown [Tue, 11 Mar 2014 00:11:57 +0000 (17:11 -0700)]
am 6d71e165: Merge "Round off when calculate next step in Seekbar"

* commit '6d71e165ba961251f0705b75aafed74eba1bc570':
  Round off when calculate next step in Seekbar

10 years agoam a41ddccd: Merge "Fixed typo errors in documentation"
Jeff Brown [Tue, 11 Mar 2014 00:08:27 +0000 (17:08 -0700)]
am a41ddccd: Merge "Fixed typo errors in documentation"

* commit 'a41ddccdc67ace7c9363efebbf6e51710928ce12':
  Fixed typo errors in documentation

10 years agoam c3f5d694: Merge "Hang off call by power button while screen is on"
Jeff Brown [Tue, 11 Mar 2014 00:08:24 +0000 (17:08 -0700)]
am c3f5d694: Merge "Hang off call by power button while screen is on"

* commit 'c3f5d694324fbe2831405ce60bc43bd0d0183d07':
  Hang off call by power button while screen is on

10 years agoam 35c8ebab: Merge "take account of RotationVector\'s new extra parameter"
Jeff Brown [Tue, 11 Mar 2014 00:08:21 +0000 (17:08 -0700)]
am 35c8ebab: Merge "take account of RotationVector\'s new extra parameter"

* commit '35c8ebab0ac66bf2c12b6986f90a07be402e0076':
  take account of RotationVector's new extra parameter

10 years agoMerge "Round off when calculate next step in Seekbar"
Jeff Brown [Tue, 11 Mar 2014 00:06:40 +0000 (00:06 +0000)]
Merge "Round off when calculate next step in Seekbar"

10 years agoMerge "Fixed typo errors in documentation"
Jeff Brown [Tue, 11 Mar 2014 00:06:24 +0000 (00:06 +0000)]
Merge "Fixed typo errors in documentation"

10 years agoMerge "Hang off call by power button while screen is on"
Jeff Brown [Tue, 11 Mar 2014 00:06:01 +0000 (00:06 +0000)]
Merge "Hang off call by power button while screen is on"

10 years agoMerge "take account of RotationVector's new extra parameter"
Jeff Brown [Tue, 11 Mar 2014 00:04:49 +0000 (00:04 +0000)]
Merge "take account of RotationVector's new extra parameter"

10 years agoam ab97d617: Merge "Only pass -Xprofile-* options to ART"
Brian Carlstrom [Mon, 10 Mar 2014 17:47:26 +0000 (10:47 -0700)]
am ab97d617: Merge "Only pass -Xprofile-* options to ART"

* commit 'ab97d617e8043f7396dc6031c4ddeb2ae632230f':
  Only pass -Xprofile-* options to ART

10 years agoMerge "Only pass -Xprofile-* options to ART"
Brian Carlstrom [Mon, 10 Mar 2014 17:44:30 +0000 (17:44 +0000)]
Merge "Only pass -Xprofile-* options to ART"

10 years agoOnly pass -Xprofile-* options to ART
Brian Carlstrom [Mon, 10 Mar 2014 17:20:01 +0000 (10:20 -0700)]
Only pass -Xprofile-* options to ART

Bug: 13391896
Change-Id: I5d6a3b900c9b20f02e1d4ccb73f712e9260c7dfd

10 years agoam 6e2fb587: Merge "LP64: Make 9 patches architecture agnostic."
Narayan Kamath [Mon, 10 Mar 2014 10:46:07 +0000 (03:46 -0700)]
am 6e2fb587: Merge "LP64: Make 9 patches architecture agnostic."

* commit '6e2fb587d71631bd29fdb844a6451d68e2144337':
  LP64: Make 9 patches architecture agnostic.

10 years agoMerge "LP64: Make 9 patches architecture agnostic."
Narayan Kamath [Mon, 10 Mar 2014 10:43:57 +0000 (10:43 +0000)]
Merge "LP64: Make 9 patches architecture agnostic."

10 years agoLP64: Make 9 patches architecture agnostic.
Narayan Kamath [Mon, 3 Mar 2014 17:12:03 +0000 (17:12 +0000)]
LP64: Make 9 patches architecture agnostic.

The Res_png_9patch struct had several pointer members
whose size differed between 32 and 64 bit platforms.

These members have been replaced by uint32_t offsets
to serialized data. The serialized form for 9patches
places a Res_png_9patch object at the beginning of
serialized data, followed by int32_t arrays of xDivs,
yDivs and colors.

Note that these offsets are not strictly required,
since they can be computed from the values of numXDivs,
numYDivs & numColors, however they are called in tight
loops so having them computed once is a beneficial.

This change also removed the unused patch_equals function
from aapt's Image.cpp.

Change-Id: I3b9ac8ae5c05510d41377cae4dff1c69b40c2531

10 years agoam 3fc3b9fd: Merge "ART profiler usage."
Dave Allison [Fri, 7 Mar 2014 23:38:26 +0000 (15:38 -0800)]
am 3fc3b9fd: Merge "ART profiler usage."

* commit '3fc3b9fd1bf71351bf1ff2d49d6e10b6acabf068':
  ART profiler usage.

10 years agoMerge "ART profiler usage."
Dave Allison [Fri, 7 Mar 2014 22:25:42 +0000 (22:25 +0000)]
Merge "ART profiler usage."

10 years agoART profiler usage.
Dave Allison [Thu, 30 Jan 2014 22:19:51 +0000 (14:19 -0800)]
ART profiler usage.

This is a change to add args to some of the profiler related
functions, including installd commands.

Also read properties and set command line options for the runtime
profiling parameters.

Changed calls to isDexOptNeeded() to isDexOptNeededInternal().  This
needs additional arguments passed for profiles.

Bug: 12877748
Change-Id: I1a426c9309d760bac0cf92daa298defee62287c1

Conflicts:
core/jni/AndroidRuntime.cpp

10 years agoam 5de03b18: Merge "Don\'t assume that size_t is 32-bit"
Narayan Kamath [Fri, 7 Mar 2014 16:08:21 +0000 (08:08 -0800)]
am 5de03b18: Merge "Don\'t assume that size_t is 32-bit"

* commit '5de03b18ea455c0250cbd01912282f28d8635910':
  Don't assume that size_t is 32-bit

10 years agoam 28ccb4f7: Merge "Don\'t use size_t for variables that store uint32_t value"
Narayan Kamath [Fri, 7 Mar 2014 16:08:18 +0000 (08:08 -0800)]
am 28ccb4f7: Merge "Don\'t use size_t for variables that store uint32_t value"

* commit '28ccb4f7d9bbea65c8cb1807e332a46ef37bc619':
  Don't use size_t for variables that store uint32_t value

10 years agoam d265bcc4: Merge "Inform libcore of time format pref. changes."
Narayan Kamath [Fri, 7 Mar 2014 16:08:05 +0000 (08:08 -0800)]
am d265bcc4: Merge "Inform libcore of time format pref. changes."

* commit 'd265bcc4b555ab75009f8ceb32cc90007a621b41':
  Inform libcore of time format pref. changes.

10 years agoMerge "Don't assume that size_t is 32-bit"
Narayan Kamath [Fri, 7 Mar 2014 16:04:50 +0000 (16:04 +0000)]
Merge "Don't assume that size_t is 32-bit"

10 years agoMerge "Don't use size_t for variables that store uint32_t value"
Narayan Kamath [Fri, 7 Mar 2014 16:04:27 +0000 (16:04 +0000)]
Merge "Don't use size_t for variables that store uint32_t value"

10 years agoMerge "Inform libcore of time format pref. changes."
Narayan Kamath [Fri, 7 Mar 2014 13:50:03 +0000 (13:50 +0000)]
Merge "Inform libcore of time format pref. changes."

10 years agoInform libcore of time format pref. changes.
Narayan Kamath [Thu, 19 Dec 2013 14:49:36 +0000 (14:49 +0000)]
Inform libcore of time format pref. changes.

- Introduce a boolean extra for intent TIME_CHANGED that
  specifies if the user wants a 24 hour format or not.
- Have the ActivityManagerService inform running processes
  of changes to this preference.
- Add plumbing in ActivityThread to inform j.t.DateFormat

Change-Id: I05fafb903ae54e39c03a048b7a219dc5a93fd472

10 years agoam 29e55bef: Merge "NFC: getNdefMessage() should throw exception if no tag in field."
Martijn Coenen [Thu, 6 Mar 2014 15:51:13 +0000 (07:51 -0800)]
am 29e55bef: Merge "NFC: getNdefMessage() should throw exception if no tag in field."

* commit '29e55bef771ee1453017fbf73bb4de62d356e4fc':
  NFC: getNdefMessage() should throw exception if no tag in field.

10 years agoMerge "NFC: getNdefMessage() should throw exception if no tag in field."
Martijn Coenen [Thu, 6 Mar 2014 14:33:10 +0000 (14:33 +0000)]
Merge "NFC: getNdefMessage() should throw exception if no tag in field."

10 years agoDon't assume that size_t is 32-bit
Ashok Bhat [Wed, 5 Mar 2014 11:51:15 +0000 (11:51 +0000)]
Don't assume that size_t is 32-bit

Crypto data was being copied to java jint array in chunks of
size_t. This will not work on LP64 as size_t will be 64-bit.
This patch changes copy to use int32_t chunks instead of size_t.

Change-Id: I75d910a1182ad2f58f432cd172127f048b4c393b
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
10 years agoDon't use size_t for variables that store uint32_t value
Ashok Bhat [Tue, 4 Mar 2014 21:13:52 +0000 (21:13 +0000)]
Don't use size_t for variables that store uint32_t value

The local variables width, height, displayWidth and
displayHeight are set to the corresponding members
of VideoFrame class. As the members of VideoFrame are
uint32_t, the local variables have been changed to
uint32_t.

As these local variables are passed to a java method,
the change of size_t to uint32_t ensures that the size
of the actual parameter (i.e uint32_t) is now same as
the size of the formal parameter (i.e. jint) for all
platforms.

Change-Id: Icd14de0142bfd4e6ba52a3e6aff3d80b323a0de4
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
10 years agoFix the delegate method signatures in LayoutLib
Deepanshu Gupta [Thu, 6 Mar 2014 03:23:48 +0000 (19:23 -0800)]
Fix the delegate method signatures in LayoutLib

Change-Id: I262c285c1047958afdb024724959d5afb3552802

10 years agoam 2383f220: Merge "Validate objects are from the correct context."
Jason Sams [Thu, 6 Mar 2014 00:56:02 +0000 (16:56 -0800)]
am 2383f220: Merge "Validate objects are from the correct context."

* commit '2383f2200ab0c2dbd71708b5c1fb6af98db408fa':
  Validate objects are from the correct context.

10 years agoMerge "Validate objects are from the correct context."
Jason Sams [Thu, 6 Mar 2014 00:50:24 +0000 (00:50 +0000)]
Merge "Validate objects are from the correct context."

10 years agoValidate objects are from the correct context.
Jason Sams [Thu, 6 Mar 2014 00:09:02 +0000 (16:09 -0800)]
Validate objects are from the correct context.

Change-Id: I7d87b0e253b8d2e36d1aed790cfe3a7dd23e158f

10 years agoam be7b8f4f: Merge "aidl: Support building with updated host sysroot."
David 'Digit' Turner [Wed, 5 Mar 2014 23:14:31 +0000 (15:14 -0800)]
am be7b8f4f: Merge "aidl: Support building with updated host sysroot."

* commit 'be7b8f4f4c62239ad20202e4bbe8120d5e3dcf82':
  aidl: Support building with updated host sysroot.

10 years agoMerge "aidl: Support building with updated host sysroot."
David 'Digit' Turner [Wed, 5 Mar 2014 23:10:44 +0000 (23:10 +0000)]
Merge "aidl: Support building with updated host sysroot."

10 years agoaidl: Support building with updated host sysroot.
David 'Digit' Turner [Tue, 4 Mar 2014 15:43:41 +0000 (16:43 +0100)]
aidl: Support building with updated host sysroot.

This patch fixes tools/aidl/Type.cpp to compile with
a more recent SDK host toolchain sysroot (that has not
been submitted yet).

The main issue is that the code uses ssize_t which is
defined in <sys/types.h>, but didn't include the header
directly.

Apparently, this no longer compiles when using the Ubuntu
10.04 libc6-dev headers (the current SDK toolchain is
based on Ubuntu 8.04), so perform an explicit include
to fix this.

NOTE: This doesn't break the Windows SDK build.

Change-Id: Idcacf8f8d1c606b39bf8aa75ab409aa0c2a3cd5a

10 years agoam 5c126c3d: Merge "Add dex2oat-flags plumbing to AndroidRuntime"
Brian Carlstrom [Wed, 5 Mar 2014 19:26:44 +0000 (11:26 -0800)]
am 5c126c3d: Merge "Add dex2oat-flags plumbing to AndroidRuntime"

* commit '5c126c3d1703d8bef9a55dcc01f1fabf17811f60':
  Add dex2oat-flags plumbing to AndroidRuntime

10 years agoMerge "Add dex2oat-flags plumbing to AndroidRuntime"
Brian Carlstrom [Wed, 5 Mar 2014 19:23:48 +0000 (19:23 +0000)]
Merge "Add dex2oat-flags plumbing to AndroidRuntime"

10 years agoAdd dex2oat-flags plumbing to AndroidRuntime
Brian Carlstrom [Sat, 1 Mar 2014 07:27:22 +0000 (23:27 -0800)]
Add dex2oat-flags plumbing to AndroidRuntime

Change-Id: Idaa7e5351e146d76e1972cbe4d93af69f0b999a6

10 years agoam 22f66b76: Merge "Harden NsdManager against null-dereference crashes"
Dave Platt [Tue, 4 Mar 2014 21:59:57 +0000 (13:59 -0800)]
am 22f66b76: Merge "Harden NsdManager against null-dereference crashes"

* commit '22f66b76f5e49704f3be76ad3fff7e4b5456864d':
  Harden NsdManager against null-dereference crashes

10 years agoMerge "Harden NsdManager against null-dereference crashes"
Dave Platt [Tue, 4 Mar 2014 21:55:56 +0000 (21:55 +0000)]
Merge "Harden NsdManager against null-dereference crashes"

10 years agoHarden NsdManager against null-dereference crashes
Dave Platt [Fri, 28 Feb 2014 00:16:20 +0000 (16:16 -0800)]
Harden NsdManager against null-dereference crashes

Due to race conditions or programming errors, the NsdManager
can attempt to process an asynchronous status message (and issue
a callback to the listener) after the listener has already been
removed from the NsdManager state.  This causes dereferencing of
null objects, and a crash.

Split out the three async-queue message cases:  these are ones
in which message.arg2 does not hold an NsdManager array index
and the code should not interpret this field as if it were.

Add an explicit check for "null listener" (the array index in the
message has already been released), log a warning, and exit early.

Safeguard accesses to the "NSD service type" string from a (possibly
null) NsdServiceInfo object... return a constant "?" string rather
than crashing.

Bug: 9016259

Change-Id: I40aabdfc65d86fdd0eaac7a1e7e56e6ff69796cf

10 years agoam a0b4d0ce: Merge "Avoid duplication of AppWindowToken in created Task"
Craig Mautner [Tue, 4 Mar 2014 17:10:36 +0000 (09:10 -0800)]
am a0b4d0ce: Merge "Avoid duplication of AppWindowToken in created Task"

* commit 'a0b4d0ce471cf10888bac4d4ec5b97fd562ad756':
  Avoid duplication of AppWindowToken in created Task

10 years agoMerge "Avoid duplication of AppWindowToken in created Task"
Craig Mautner [Tue, 4 Mar 2014 15:19:17 +0000 (15:19 +0000)]
Merge "Avoid duplication of AppWindowToken in created Task"

10 years agoAvoid duplication of AppWindowToken in created Task
Yevgen Pronenko [Wed, 19 Feb 2014 09:33:07 +0000 (10:33 +0100)]
Avoid duplication of AppWindowToken in created Task

When WindowManagerService creates a new Task, it passes atoken to the
Task constructor. In this case atoken is added to mAppTokens list by
the Task constructor and then it is added manually again by calling
newTask.mAppTokens.add(atoken). As a result, the same atoken is present
in mAppTokens list twice.

When another window token is added to the list, it may be placed in
beetwen duplicated tokens and corresponding window will be hidden from
the screen by corresponding duplicated windows.
From user perspective it means that some windows will not be displayed
on the screen.

The issue is fixed by avoid adding atoken to mAppTokens list manually
when it was added already in Task constructor.

Change-Id: I10628e68186160fffdde07beb7d84ab3cecb7051

10 years agoam 9404752d: Merge "Add casual/cursive/sans-serif-smallcaps font families."
Victoria Lease [Mon, 3 Mar 2014 23:44:13 +0000 (15:44 -0800)]
am 9404752d: Merge "Add casual/cursive/sans-serif-smallcaps font families."

* commit '9404752d50a60319f0d2f53c212fad7c7cd8fb8e':
  Add casual/cursive/sans-serif-smallcaps font families.

10 years agoMerge "Add casual/cursive/sans-serif-smallcaps font families."
Victoria Lease [Mon, 3 Mar 2014 23:38:53 +0000 (23:38 +0000)]
Merge "Add casual/cursive/sans-serif-smallcaps font families."

10 years agoam 8377a4fd: Merge "Fix null check for BaseObj.equals."
Tim Murray [Mon, 3 Mar 2014 19:12:01 +0000 (11:12 -0800)]
am 8377a4fd: Merge "Fix null check for BaseObj.equals."

* commit '8377a4fd03d4fc367e0cb07af748ae941d9960a9':
  Fix null check for BaseObj.equals.

10 years agoMerge "Fix null check for BaseObj.equals."
Tim Murray [Mon, 3 Mar 2014 19:09:07 +0000 (19:09 +0000)]
Merge "Fix null check for BaseObj.equals."

10 years agoAdd casual/cursive/sans-serif-smallcaps font families.
Victoria Lease [Fri, 28 Feb 2014 23:34:26 +0000 (15:34 -0800)]
Add casual/cursive/sans-serif-smallcaps font families.

Bug: 12384866
Change-Id: I7482d228279a63ea92cb605de314b2f7d0ad483f

10 years agoam dd72b6e7: Merge "Fix indirect misuse of ."
Ying Wang [Sat, 1 Mar 2014 17:27:42 +0000 (09:27 -0800)]
am dd72b6e7: Merge "Fix indirect misuse of ."

* commit 'dd72b6e76c5d5e819809bd3d2ef4ff6f700af759':
  Fix indirect misuse of $(my-dir).

10 years agoMerge "Fix indirect misuse of $(my-dir)."
Ying Wang [Sat, 1 Mar 2014 17:25:10 +0000 (17:25 +0000)]
Merge "Fix indirect misuse of $(my-dir)."

10 years agoFix indirect misuse of $(my-dir).
Ying Wang [Sat, 1 Mar 2014 02:04:37 +0000 (18:04 -0800)]
Fix indirect misuse of $(my-dir).

Change-Id: I20a98a8e1378da3a53e6a6d599c8fc0100f7f87a

10 years agoFix null check for BaseObj.equals.
Tim Murray [Sat, 1 Mar 2014 00:57:47 +0000 (16:57 -0800)]
Fix null check for BaseObj.equals.

Change-Id: I4f060697db175cbf0b5617c1220db853bbe53f1f

10 years agoam 4a794846: Merge "Fix descriptor leak after accepting connections"
Nick Kralevich [Fri, 28 Feb 2014 21:04:42 +0000 (13:04 -0800)]
am 4a794846: Merge "Fix descriptor leak after accepting connections"

* commit '4a79484648262d5d0dc9e72c3d9cf36c77cca599':
  Fix descriptor leak after accepting connections

10 years agoMerge "Fix descriptor leak after accepting connections"
Nick Kralevich [Fri, 28 Feb 2014 21:02:20 +0000 (21:02 +0000)]
Merge "Fix descriptor leak after accepting connections"

10 years agoFix descriptor leak after accepting connections
Dave Platt [Fri, 6 Dec 2013 22:03:47 +0000 (14:03 -0800)]
Fix descriptor leak after accepting connections

After accepting a connection on a listening socket and
storing the resulting FileDescriptor into a newly created
LocalSocketImpl, the new impl's "descriptor was created
locally and should be closed normally" flag should be set.

(cherrypicked from 3e7305c6bf6062b5cb1e2ddcec6c6d30b4a8bc0d)

Bug: 11805817
Change-Id: I0a1a7c62ec3fbcf647a44a22110ddc778d14e5f4

10 years agoam eee2c72f: Merge "Various format string fixes for 64bit"
Narayan Kamath [Fri, 28 Feb 2014 13:45:01 +0000 (05:45 -0800)]
am eee2c72f: Merge "Various format string fixes for 64bit"

* commit 'eee2c72f96cd4e6228c50c8b461b4dd84a9f4538':
  Various format string fixes for 64bit

10 years agoMerge "Various format string fixes for 64bit"
Narayan Kamath [Fri, 28 Feb 2014 13:41:58 +0000 (13:41 +0000)]
Merge "Various format string fixes for 64bit"

10 years agoam 14420e29: Merge "AArch64: Use long[] for RS id array"
Narayan Kamath [Fri, 28 Feb 2014 13:26:30 +0000 (05:26 -0800)]
am 14420e29: Merge "AArch64: Use long[] for RS id array"

* commit '14420e29abc0f16f818ddaf606515861ba69ae68':
  AArch64: Use long[] for RS id array

10 years agoMerge "AArch64: Use long[] for RS id array"
Narayan Kamath [Fri, 28 Feb 2014 13:22:24 +0000 (13:22 +0000)]
Merge "AArch64: Use long[] for RS id array"

10 years agoam 0c72b769: Merge "Update layoutlib method for SystemClock"
Xavier Ducrohet [Thu, 27 Feb 2014 23:32:43 +0000 (15:32 -0800)]
am 0c72b769: Merge "Update layoutlib method for SystemClock"

* commit '0c72b76963f7f43a2f986c38831ce76b43c6275a':
  Update layoutlib method for SystemClock

10 years agoMerge "Update layoutlib method for SystemClock"
Xavier Ducrohet [Thu, 27 Feb 2014 23:28:13 +0000 (23:28 +0000)]
Merge "Update layoutlib method for SystemClock"

10 years agoam 16678ac6: Merge "Fixed upgrading from forward-lock application to system application"
Christopher Tate [Thu, 27 Feb 2014 22:06:32 +0000 (14:06 -0800)]
am 16678ac6: Merge "Fixed upgrading from forward-lock application to system application"

* commit '16678ac66f7e6d5ce414536b7534d1e823f7ab30':
  Fixed upgrading from forward-lock application to system application

10 years agoMerge "Fixed upgrading from forward-lock application to system application"
Christopher Tate [Thu, 27 Feb 2014 22:01:28 +0000 (22:01 +0000)]
Merge "Fixed upgrading from forward-lock application to system application"

10 years agoam e4dae5f2: Merge "AArch64: Make eglGetDisplay(int) work for EGL_DEFAULT_DISPLAY"
Narayan Kamath [Thu, 27 Feb 2014 13:20:52 +0000 (05:20 -0800)]
am e4dae5f2: Merge "AArch64: Make eglGetDisplay(int) work for EGL_DEFAULT_DISPLAY"

* commit 'e4dae5f2c26f5992a31f8ce15811fc082647ddb8':
  AArch64: Make eglGetDisplay(int) work for EGL_DEFAULT_DISPLAY

10 years agoMerge "AArch64: Make eglGetDisplay(int) work for EGL_DEFAULT_DISPLAY"
Narayan Kamath [Thu, 27 Feb 2014 13:18:06 +0000 (13:18 +0000)]
Merge "AArch64: Make eglGetDisplay(int) work for EGL_DEFAULT_DISPLAY"

10 years agoam 2000fe58: Merge "Make getAssetInt throw unconditionally."
Narayan Kamath [Thu, 27 Feb 2014 13:15:56 +0000 (05:15 -0800)]
am 2000fe58: Merge "Make getAssetInt throw unconditionally."

* commit '2000fe58332dffaad34c618fe35840992cb0f571':
  Make getAssetInt throw unconditionally.

10 years agoMerge "Make getAssetInt throw unconditionally."
Narayan Kamath [Thu, 27 Feb 2014 13:13:08 +0000 (13:13 +0000)]
Merge "Make getAssetInt throw unconditionally."

10 years agoAArch64: Make eglGetDisplay(int) work for EGL_DEFAULT_DISPLAY
Ashok Bhat [Wed, 26 Feb 2014 10:00:48 +0000 (10:00 +0000)]
AArch64: Make eglGetDisplay(int) work for EGL_DEFAULT_DISPLAY

Note that files changed in this patch have been automatically
generated by running frameworks/native/opengl/tools/glgen/gen
script

This will allow eglGetDisplay(int) to work on both 32-bit and
64-bit systems when EGL_DEFAULT_DISPLAY is passed as a parameter.

Change-Id: Idf27d6e00d623d331bb2d4d7f85fa450e0db26c9
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>