OSDN Git Service

android-x86/frameworks-base.git
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 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>
10 years agoam 2729857d: (-s ours) Merge "Fix AOSP build - DO NOT MERGE"
Chris Craik [Wed, 26 Feb 2014 19:06:30 +0000 (11:06 -0800)]
am 2729857d: (-s ours) Merge "Fix AOSP build - DO NOT MERGE"

* commit '2729857df6c559b37248c96b78303b662212d14b':
  Fix AOSP build - DO NOT MERGE

10 years agoam c3bac8a0: Merge "Fix graphics corruption caused by HWUI caches"
Chris Craik [Wed, 26 Feb 2014 19:06:27 +0000 (11:06 -0800)]
am c3bac8a0: Merge "Fix graphics corruption caused by HWUI caches"

* commit 'c3bac8a096cc5661cf91c8c0aa9b7dd0fc099c5d':
  Fix graphics corruption caused by HWUI caches

10 years agoMerge "Fix AOSP build - DO NOT MERGE"
Chris Craik [Wed, 26 Feb 2014 18:48:27 +0000 (18:48 +0000)]
Merge "Fix AOSP build - DO NOT MERGE"

10 years agoMerge "Fix graphics corruption caused by HWUI caches"
Chris Craik [Wed, 26 Feb 2014 18:47:59 +0000 (18:47 +0000)]
Merge "Fix graphics corruption caused by HWUI caches"

10 years agoFix AOSP build - DO NOT MERGE
Chris Craik [Wed, 26 Feb 2014 18:44:33 +0000 (10:44 -0800)]
Fix AOSP build - DO NOT MERGE

Change-Id: I42b420c2ce89ce364a2809b28b827964e6923fa1

10 years agoFix graphics corruption caused by HWUI caches
Sangkyu Lee [Thu, 9 Jan 2014 05:11:57 +0000 (14:11 +0900)]
Fix graphics corruption caused by HWUI caches

Some caches(PatchCache, TextureCache, PathCache) for HWUI
uses deferred removal for their cache entries even though
actual resource objects are immediately freed by
ResourceCache.
For this reason, the uniqueness of a resource address in
the caches is not guaranteed in specific cases.
(Because malloc() can return the same address when malloc()
and free() called very frequently.)

So it can be possible the cache have two cache entries for
two different resources but the same memory address.
(Of course one of the resources is already freed.)
It also can be possible mGarbage vector in PatchCache has
duplicated addresses and this can lead to duplicated free
blocks in the free block list and graphics corruption.
(Deferred removal was implmeneted based on an assumption of
unique resource addresses.)

So this patch makes sure resource objects are freed after
the resources are removed from the caches to guarantee
the uniqueness of a resource address and prevent graphics
corruption.

Change-Id: I040f033a4fc783d2c4bc04b113589657c36fb15b
Signed-off-by: Sangkyu Lee <sk82.lee@lge.com>
10 years agoMake getAssetInt throw unconditionally.
Narayan Kamath [Tue, 25 Feb 2014 15:48:07 +0000 (15:48 +0000)]
Make getAssetInt throw unconditionally.

All callers have been moved over to getNativeAsset, and
this method has been hidden from the public API internally.

Change-Id: I5f29b5ddb4449adadf426e49a4085c7320289a15

10 years agoam 2ba70fd4: Merge "Use reinterpret_cast when an integer is cast to a pointer"
Narayan Kamath [Tue, 25 Feb 2014 13:11:43 +0000 (05:11 -0800)]
am 2ba70fd4: Merge "Use reinterpret_cast when an integer is cast to a pointer"

* commit '2ba70fd49bfcbb516e75c198c106764609335feb':
  Use reinterpret_cast when an integer is cast to a pointer

10 years agoam 6ab07fac: Merge "Use long for pointers in opengl/EGL classes"
Narayan Kamath [Tue, 25 Feb 2014 13:11:40 +0000 (05:11 -0800)]
am 6ab07fac: Merge "Use long for pointers in opengl/EGL classes"

* commit '6ab07fac49d6b618883a2ef4cea11f0959b3abe3':
  Use long for pointers in opengl/EGL classes

10 years agoMerge "Use reinterpret_cast when an integer is cast to a pointer"
Narayan Kamath [Tue, 25 Feb 2014 13:05:47 +0000 (13:05 +0000)]
Merge "Use reinterpret_cast when an integer is cast to a pointer"

10 years agoMerge "Use long for pointers in opengl/EGL classes"
Narayan Kamath [Tue, 25 Feb 2014 13:05:43 +0000 (13:05 +0000)]
Merge "Use long for pointers in opengl/EGL classes"

10 years agoUpdate layoutlib method for SystemClock
Deepanshu Gupta [Mon, 24 Feb 2014 22:22:29 +0000 (14:22 -0800)]
Update layoutlib method for SystemClock

Update layoutlib to reflect changes from
http://android-review.googlesource.com/83061/

Change-Id: If7326f3af2a97271ad1465382944e1f078b965d8

10 years agoVarious format string fixes for 64bit
Kévin PETIT [Thu, 13 Feb 2014 11:02:27 +0000 (11:02 +0000)]
Various format string fixes for 64bit

Change-Id: I74532a4e0400033f5ee3e3f6827ac42f77d16f53
Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
10 years agoUse long for pointers in opengl/EGL classes
Ashok Bhat [Mon, 24 Feb 2014 10:06:55 +0000 (10:06 +0000)]
Use long for pointers in opengl/EGL classes

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

This patch updates EGL classes in frameworks/base to support
64-bit platforms. Key changes in the EGL classes include

[x] EGLObjectHandle class - EGLObjectHandle class has two public
    methods (constructor and getHandle) that assume handles are
    32-bit. They have not been changed. Instead, two new hidden
    methods (EGLObjectHandle(long) and getNativeHandle) have been
    added.

[x] EG14 class - Two public methods eglGetDisplay and
    eglCreatePbufferFromClientBuffer assume that handles are 32-bit.
    They have been changed to throw unsupported operation exception
    on non 32-bit machines. Two new methods eglGetDisplay(long)
    and eglCreatePbufferFromClientBuffer(...long buffer..) have
    been added to support 64-bit handles.

Change-Id: I9e0f064e5b33700eb0baa2e1841a21f931f7a765
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
10 years agoUse reinterpret_cast when an integer is cast to a pointer
Ashok Bhat [Mon, 24 Feb 2014 09:49:07 +0000 (09:49 +0000)]
Use reinterpret_cast when an integer is cast to a pointer

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

Change-Id: Iff3ac2e804af41b9a6ec073fd65019c6806fe821
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
10 years agoam bbfc08b3: Merge changes I6d4fdada,Ia34899a4
Greg Hackmann [Fri, 21 Feb 2014 21:04:00 +0000 (13:04 -0800)]
am bbfc08b3: Merge changes I6d4fdada,Ia34899a4

* commit 'bbfc08b3abc0934f67659f3238eb79dcac838c17':
  open("/dev/rtc0") failure in AlarmManagerService.setTime() should be non-fatal
  Move time setting code from SystemClock to AlarmManagerService

10 years agoMerge changes I6d4fdada,Ia34899a4
Greg Hackmann [Fri, 21 Feb 2014 21:01:00 +0000 (21:01 +0000)]
Merge changes I6d4fdada,Ia34899a4

* changes:
  open("/dev/rtc0") failure in AlarmManagerService.setTime() should be non-fatal
  Move time setting code from SystemClock to AlarmManagerService

10 years agoopen("/dev/rtc0") failure in AlarmManagerService.setTime() should be non-fatal
Greg Hackmann [Tue, 28 Jan 2014 00:30:09 +0000 (16:30 -0800)]
open("/dev/rtc0") failure in AlarmManagerService.setTime() should be non-fatal

Setting the time-of-day clock is still useful on systems where the RTC
device is not yet brought up or otherwise unavailable.  This matches the
in-kernel behavior of the Android alarm driver.

Change-Id: I6d4fdadab12e241ada7419425efd55bd13873c55
Signed-off-by: Greg Hackmann <ghackmann@google.com>
10 years agoMove time setting code from SystemClock to AlarmManagerService
Greg Hackmann [Thu, 20 Feb 2014 00:39:36 +0000 (16:39 -0800)]
Move time setting code from SystemClock to AlarmManagerService

On devices using /dev/rtc instead of /dev/alarm, updating the
time-of-day clock and RTC are separate syscalls.  Hence the clock and
RTC could be left in inconsistent states if two threads called
SystemClock.setCurrentTimeMillis() simultaneously.

By moving this code into AlarmManagerService, we can put a global lock
around AlarmManagerService.setTime() and prevent the race condition.

Note that access to SystemClock.setCurrentTimeMillis() is now gated by
android.permission.SET_TIME, where before it was gated by filesystem
permissions (i.e., could the process write to /dev/alarm or /dev/rtc).

Change-Id: Ia34899a4cde983656305fd2ef466dfe908ed23c8
Signed-off-by: Greg Hackmann <ghackmann@google.com>
10 years agoam 4a809272: Merge "Fix documentation for Parcel.readException()."
Elliott Hughes [Fri, 21 Feb 2014 17:25:54 +0000 (09:25 -0800)]
am 4a809272: Merge "Fix documentation for Parcel.readException()."

* commit '4a80927241b3168d9d5138c46c22385d6467a736':
  Fix documentation for Parcel.readException().

10 years agoam 8d41e653: Merge "Miscellaneous small documentation fixes."
Elliott Hughes [Fri, 21 Feb 2014 17:25:50 +0000 (09:25 -0800)]
am 8d41e653: Merge "Miscellaneous small documentation fixes."

* commit '8d41e653bae240488281d430309e2d501e9524e5':
  Miscellaneous small documentation fixes.

10 years agoMerge "Fix documentation for Parcel.readException()."
Elliott Hughes [Fri, 21 Feb 2014 17:21:52 +0000 (17:21 +0000)]
Merge "Fix documentation for Parcel.readException()."

10 years agoMerge "Miscellaneous small documentation fixes."
Elliott Hughes [Fri, 21 Feb 2014 17:19:21 +0000 (17:19 +0000)]
Merge "Miscellaneous small documentation fixes."

10 years agoam 4a642ee5: Merge "Remove unused JNITest class"
Narayan Kamath [Fri, 21 Feb 2014 16:34:36 +0000 (08:34 -0800)]
am 4a642ee5: Merge "Remove unused JNITest class"

* commit '4a642ee5e65ca47ecf6cb274096162e580aac922':
  Remove unused JNITest class

10 years agoam 22c66639: Merge "Fixes for 64bit in libhwui"
Narayan Kamath [Fri, 21 Feb 2014 16:34:30 +0000 (08:34 -0800)]
am 22c66639: Merge "Fixes for 64bit in libhwui"

* commit '22c66639093a634b5688372d261d003b0478c450':
  Fixes for 64bit in libhwui

10 years agoMerge "Remove unused JNITest class"
Narayan Kamath [Fri, 21 Feb 2014 15:02:30 +0000 (15:02 +0000)]
Merge "Remove unused JNITest class"

10 years agoRemove unused JNITest class
Ashok Bhat [Sat, 15 Feb 2014 11:28:48 +0000 (11:28 +0000)]
Remove unused JNITest class

JNITest class is no longer actively used. This patch
removes the class (java and jni) files.

JNI interfaces and calls are extensively tested in
the art unit tests (art/tests) and in cts (see
CtsJniTestCases).

Change-Id: I62f7c72deb5d206fa3f545ae39a9cb9011110d0a
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
10 years agoMerge "Fixes for 64bit in libhwui"
Narayan Kamath [Fri, 21 Feb 2014 14:23:57 +0000 (14:23 +0000)]
Merge "Fixes for 64bit in libhwui"

10 years agoFixes for 64bit in libhwui
Kévin PETIT [Thu, 13 Feb 2014 11:03:40 +0000 (11:03 +0000)]
Fixes for 64bit in libhwui

Using reinterpret_cast allows conversions between pointer types
and integers which don't have the same size. The corresponding
flags is -Wint-to-pointer-cast.

Change-Id: I8ff0c79d235fa6d07b8d9305edc185d946d5133d
Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
10 years agoam 05cebdc2: Merge "Fix several bad function definitions."
Narayan Kamath [Thu, 20 Feb 2014 12:58:52 +0000 (04:58 -0800)]
am 05cebdc2: Merge "Fix several bad function definitions."

* commit '05cebdc2abd05b0dca351306cb039245d50c67ae':
  Fix several bad function definitions.

10 years agoam 9fce8535: Merge "AArch64: Make AssetAtlasService 64-bit compatible"
Narayan Kamath [Thu, 20 Feb 2014 12:58:45 +0000 (04:58 -0800)]
am 9fce8535: Merge "AArch64: Make AssetAtlasService 64-bit compatible"

* commit '9fce8535851fc696997bd3c251d00e34179d6482':
  AArch64: Make AssetAtlasService 64-bit compatible

10 years agoMerge "Fix several bad function definitions."
Narayan Kamath [Thu, 20 Feb 2014 12:55:27 +0000 (12:55 +0000)]
Merge "Fix several bad function definitions."

10 years agoMerge "AArch64: Make AssetAtlasService 64-bit compatible"
Narayan Kamath [Thu, 20 Feb 2014 12:55:20 +0000 (12:55 +0000)]
Merge "AArch64: Make AssetAtlasService 64-bit compatible"

10 years agoFix several bad function definitions.
Narayan Kamath [Thu, 6 Feb 2014 11:50:31 +0000 (11:50 +0000)]
Fix several bad function definitions.

We claim these functions want jlong as input (8 bytes wide)
but the definitions use pointer types or jints
(4 bytes wide for 32 bit).

bug: 12890271

(cherry picked from 017546e65280a3389b6167f5fc3b5d1c3001154a)

Change-Id: Iede02be90e6a3c9a2db1fe04dcd0db99abe37097

10 years agoAArch64: Make AssetAtlasService 64-bit compatible
Ashok Bhat [Mon, 27 Jan 2014 16:00:23 +0000 (16:00 +0000)]
AArch64: Make AssetAtlasService 64-bit compatible

Changes in this patch include

[x] Long(64-bit) is used to store native pointers in
    AssetAtlasService and related classes as they can be 64-bit.

[x] Some minor changes have been done to conform with
    standard JNI practice (e.g. use of jint instead of int
    in JNI function prototypes)

Change-Id: Ib4c77c134e3ad5b21732e20cde9a54a0b16bdab1
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
10 years agoam 2b3c14bf: Merge "libandroidfw: fix build error for 64-bit"
Narayan Kamath [Thu, 20 Feb 2014 11:53:36 +0000 (03:53 -0800)]
am 2b3c14bf: Merge "libandroidfw: fix build error for 64-bit"

* commit '2b3c14bf75c71524a0fcbc3e9d1fdab9aa6c3473':
  libandroidfw: fix build error for 64-bit

10 years agoMerge "libandroidfw: fix build error for 64-bit"
Narayan Kamath [Thu, 20 Feb 2014 11:50:59 +0000 (11:50 +0000)]
Merge "libandroidfw: fix build error for 64-bit"

10 years agolibandroidfw: fix build error for 64-bit
Patrik Bannura [Wed, 12 Feb 2014 12:38:54 +0000 (13:38 +0100)]
libandroidfw: fix build error for 64-bit

Fixed casting int to pointer in logging code.
Previously ints where printed as pointers and
the %p format specifier was used for convenience
to get hex output. This change uses %x and also
gets rid of the casts.

Change-Id: Ia2539769d245f50c0f3884119f80682defe69d61

10 years agoam 16ea3e6a: Merge "A background started service is removed from mStartingBackground...
Craig Mautner [Wed, 19 Feb 2014 16:26:15 +0000 (08:26 -0800)]
am 16ea3e6a: Merge "A background started service is removed from mStartingBackground when timeout. Fix is to make sure mStartingBackground is updated to remove one."

* commit '16ea3e6a5b37dc436d1089996004bcae12f5e3b0':
  A background started service is removed from mStartingBackground when timeout. Fix is to make sure mStartingBackground is updated to remove one.

10 years agoam 7c710936: Merge "Remove java.io.tmpdir assignment in AndroidRuntime."
Narayan Kamath [Wed, 19 Feb 2014 16:26:07 +0000 (08:26 -0800)]
am 7c710936: Merge "Remove java.io.tmpdir assignment in AndroidRuntime."

* commit '7c710936c5129664f8b23bf4592c12eca975d229':
  Remove java.io.tmpdir assignment in AndroidRuntime.

10 years agoMerge "A background started service is removed from mStartingBackground when timeout...
Craig Mautner [Wed, 19 Feb 2014 15:36:00 +0000 (15:36 +0000)]
Merge "A background started service is removed from mStartingBackground when timeout. Fix is to make sure mStartingBackground is updated to remove one."

10 years agoMerge "Remove java.io.tmpdir assignment in AndroidRuntime."
Narayan Kamath [Wed, 19 Feb 2014 14:24:47 +0000 (14:24 +0000)]
Merge "Remove java.io.tmpdir assignment in AndroidRuntime."

10 years agoam f11cc165: Merge "Fixed a possible infinite loop in JsonReader#skipValue()"
Calin Juravle [Wed, 19 Feb 2014 11:18:06 +0000 (03:18 -0800)]
am f11cc165: Merge "Fixed a possible infinite loop in JsonReader#skipValue()"

* commit 'f11cc165f4d6e18d79ce013fa2f74fb43e002ac1':
  Fixed a possible infinite loop in JsonReader#skipValue()