OSDN Git Service

android-x86/frameworks-base.git
10 years agoam e559d7ee: Merge "Utility API for creating types."
Tim Murray [Mon, 3 Feb 2014 22:41:05 +0000 (14:41 -0800)]
am e559d7ee: Merge "Utility API for creating types."

* commit 'e559d7ee53a69502c9aef8764bb055ed2d1adb64':
  Utility API for creating types.

10 years agoam b1c1518e: Merge "Remove old hidden API."
Tim Murray [Mon, 3 Feb 2014 22:41:02 +0000 (14:41 -0800)]
am b1c1518e: Merge "Remove old hidden API."

* commit 'b1c1518ef1e89fb8bc42022b6455a695cacd949c':
  Remove old hidden API.

10 years agoam aea3b581: Merge "Remove hidden API setSurfaceTexture."
Tim Murray [Mon, 3 Feb 2014 22:41:00 +0000 (14:41 -0800)]
am aea3b581: Merge "Remove hidden API setSurfaceTexture."

* commit 'aea3b5816d8461fcbc4a384874a1a073ecdeafcf':
  Remove hidden API setSurfaceTexture.

10 years agoMerge "Utility API for creating types."
Tim Murray [Mon, 3 Feb 2014 22:36:13 +0000 (22:36 +0000)]
Merge "Utility API for creating types."

10 years agoMerge "Remove old hidden API."
Tim Murray [Mon, 3 Feb 2014 22:36:05 +0000 (22:36 +0000)]
Merge "Remove old hidden API."

10 years agoMerge "Remove hidden API setSurfaceTexture."
Tim Murray [Mon, 3 Feb 2014 22:35:14 +0000 (22:35 +0000)]
Merge "Remove hidden API setSurfaceTexture."

10 years agoam c064a1b5: Merge "Remove DRLCertFactory"
Kenny Root [Fri, 31 Jan 2014 22:58:53 +0000 (14:58 -0800)]
am c064a1b5: Merge "Remove DRLCertFactory"

* commit 'c064a1b5d9a68bb5513e6ed64a067ab822e98764':
  Remove DRLCertFactory

10 years agoMerge "Remove DRLCertFactory"
Kenny Root [Fri, 31 Jan 2014 22:54:44 +0000 (22:54 +0000)]
Merge "Remove DRLCertFactory"

10 years agoRemove DRLCertFactory
Kenny Root [Fri, 31 Jan 2014 22:10:01 +0000 (14:10 -0800)]
Remove DRLCertFactory

No longer needed since Conscrypt is the main provider.

Change-Id: Iee741ef376af2de52db79df07e96057438778bc6

10 years agoUtility API for creating types.
Jason Sams [Thu, 10 Oct 2013 00:15:36 +0000 (17:15 -0700)]
Utility API for creating types.

Change-Id: I3263cb4440ef3a60cd418f0559b8c5638a9b8bf3

10 years agoRemove old hidden API.
Jason Sams [Thu, 26 Sep 2013 19:13:20 +0000 (12:13 -0700)]
Remove old hidden API.

This was never shipped and long since replaced by ioReceive().

Change-Id: Ieba7fd4305c2c561cc36154c57414783e4bf502b

10 years agoRemove hidden API setSurfaceTexture.
Jason Sams [Tue, 24 Sep 2013 22:18:52 +0000 (15:18 -0700)]
Remove hidden API setSurfaceTexture.

Change-Id: Ib6a3c5b84550932168f314375e74059507fc01ae

10 years agoam 49b7ba4d: Merge "AArch64: Make AssetManager and related classes 64-bit compatible"
Narayan Kamath [Fri, 31 Jan 2014 15:30:21 +0000 (07:30 -0800)]
am 49b7ba4d: Merge "AArch64: Make AssetManager and related classes 64-bit compatible"

* commit '49b7ba4dbc0b4984fc466bb98e9cfa40650db85b':
  AArch64: Make AssetManager and related classes 64-bit compatible

10 years agoam 1cadc07d: Merge "Change ResourceType cookies to int32_t."
Narayan Kamath [Fri, 31 Jan 2014 15:30:18 +0000 (07:30 -0800)]
am 1cadc07d: Merge "Change ResourceType cookies to int32_t."

* commit '1cadc07dd1e3711fb1e57548038e3026682c5ef8':
  Change ResourceType cookies to int32_t.

10 years agoam b9f960e0: Merge "Fixed cancel() not working correctly"
Narayan Kamath [Fri, 31 Jan 2014 15:30:15 +0000 (07:30 -0800)]
am b9f960e0: Merge "Fixed cancel() not working correctly"

* commit 'b9f960e094d53440be5c7e8759a74dbb0ab57317':
  Fixed cancel() not working correctly

10 years agoam e05b7b50: Merge "EGL14.eglCreateWindowSurface should set producerControlledByApp"
Igor Murashkin [Fri, 31 Jan 2014 15:30:12 +0000 (07:30 -0800)]
am e05b7b50: Merge "EGL14.eglCreateWindowSurface should set producerControlledByApp"

* commit 'e05b7b50e234e8ed2471f5ad96bb3d715067e9f3':
  EGL14.eglCreateWindowSurface should set producerControlledByApp

10 years agoMerge "AArch64: Make AssetManager and related classes 64-bit compatible"
Narayan Kamath [Fri, 31 Jan 2014 14:35:13 +0000 (14:35 +0000)]
Merge "AArch64: Make AssetManager and related classes 64-bit compatible"

10 years agoAArch64: Make AssetManager and related classes 64-bit compatible
Ashok Bhat [Fri, 17 Jan 2014 16:02:38 +0000 (16:02 +0000)]
AArch64: Make AssetManager and related classes 64-bit compatible

Following changes have been done:

[x] Long is used to store native pointers as pointers can be
    64-bit.

[x] AssetManager openAsset native function returned -1 if
    file name was empty and java function considered any
    non-zero value as success. This has been fixed by native
    function throwing Illegal Argument Exception as well.

[x] AssetManager incRefsLocked and decRefsLocked now accept
    long as input to support 64-bit native references.

[x] AssetManager incRefsLocked method incorrecly used
    'this.hashCode()' instead of the passed parameter id.
    This has been fixed.

[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: I095b9f900d49e51f43ad6afc47cbc23116a6a64a
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Craig Barber <craig.barber@arm.com>
Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
10 years agoMerge "Change ResourceType cookies to int32_t."
Narayan Kamath [Fri, 31 Jan 2014 14:13:47 +0000 (14:13 +0000)]
Merge "Change ResourceType cookies to int32_t."

10 years agoChange ResourceType cookies to int32_t.
Narayan Kamath [Mon, 27 Jan 2014 17:32:37 +0000 (17:32 +0000)]
Change ResourceType cookies to int32_t.

Also change the order of parameters in ResTable constructors
to avoid ambiguity.

(cherry picked from commit 00b314436f4fdfada4bbf1e79ec12e9fa38aeaf1)

Change-Id: I874c5d03c134dc3c331fba423b5280366296287c

10 years agoMerge "Fixed cancel() not working correctly"
Narayan Kamath [Fri, 31 Jan 2014 13:20:58 +0000 (13:20 +0000)]
Merge "Fixed cancel() not working correctly"

10 years agoMerge "EGL14.eglCreateWindowSurface should set producerControlledByApp"
Igor Murashkin [Fri, 31 Jan 2014 01:26:14 +0000 (01:26 +0000)]
Merge "EGL14.eglCreateWindowSurface should set producerControlledByApp"

10 years agoam 0a1b64fe: Merge "Release locked buffer when it fails to acquire graphics buffer"
Zhijun He [Thu, 30 Jan 2014 23:03:30 +0000 (15:03 -0800)]
am 0a1b64fe: Merge "Release locked buffer when it fails to acquire graphics buffer"

* commit '0a1b64fe79f41eec5cebe8434ab30d93e2ea2724':
  Release locked buffer when it fails to acquire graphics buffer

10 years agoMerge "Release locked buffer when it fails to acquire graphics buffer"
Zhijun He [Thu, 30 Jan 2014 23:01:20 +0000 (23:01 +0000)]
Merge "Release locked buffer when it fails to acquire graphics buffer"

10 years agoam 3038046b: Merge "frameworks/base: Rename persist.sys.dalvik.vm.lib to allow new...
Brian Carlstrom [Thu, 30 Jan 2014 22:11:02 +0000 (14:11 -0800)]
am 3038046b: Merge "frameworks/base: Rename persist.sys.dalvik.vm.lib to allow new default"

* commit '3038046b23540ccf4ca80f181386a77cf64d5e27':
  frameworks/base: Rename persist.sys.dalvik.vm.lib to allow new default

10 years agoMerge "frameworks/base: Rename persist.sys.dalvik.vm.lib to allow new default"
Brian Carlstrom [Thu, 30 Jan 2014 21:50:57 +0000 (21:50 +0000)]
Merge "frameworks/base: Rename persist.sys.dalvik.vm.lib to allow new default"

10 years agoframeworks/base: Rename persist.sys.dalvik.vm.lib to allow new default
Brian Carlstrom [Thu, 30 Jan 2014 21:14:01 +0000 (13:14 -0800)]
frameworks/base: Rename persist.sys.dalvik.vm.lib to allow new default

Bug: 12798969
Change-Id: Ibb7ed86867e4dca53ad7fe33326b08e6f5e664c4

10 years agoFixed cancel() not working correctly
jl1990 [Wed, 7 Aug 2013 15:39:22 +0000 (17:39 +0200)]
Fixed cancel() not working correctly

The method handleMessage(Message msg) from mHandler variable was
not checking if the timer was cancelled, so
sendMessageDelayed(obtainMessage(MSG), delay) was keeping the
timer alive. The patch simply adds a boolean and checks if the
CountDownTimer was cancelled before calling
sendMessageDelayed(obtainMessage(MSG), delay)

bug: https://code.google.com/p/android/issues/detail?id=58668

Change-Id: Ic6bbb9d33a3616f8503db222513cc14ad2270cb8
Signed-off-by: jl1990 <jlcarrasco1990@gmail.com>
10 years agoam ab71f8b6: Merge "AArch64: Use of long for pointers in PropertyValuesHolder"
Narayan Kamath [Thu, 30 Jan 2014 10:39:21 +0000 (02:39 -0800)]
am ab71f8b6: Merge "AArch64: Use of long for pointers in PropertyValuesHolder"

* commit 'ab71f8b68fee0f2a4f2049c4345b5334948c9df9':
  AArch64: Use of long for pointers in PropertyValuesHolder

10 years agoMerge "AArch64: Use of long for pointers in PropertyValuesHolder"
Narayan Kamath [Thu, 30 Jan 2014 10:37:12 +0000 (10:37 +0000)]
Merge "AArch64: Use of long for pointers in PropertyValuesHolder"

10 years agoam 54190ec8: Merge "change Surface constructor arg to 64bit"
Narayan Kamath [Thu, 30 Jan 2014 10:34:38 +0000 (02:34 -0800)]
am 54190ec8: Merge "change Surface constructor arg to 64bit"

* commit '54190ec8307ebb83d02b7d9b8edc80a042792de6':
  change Surface constructor arg to 64bit

10 years agoMerge "change Surface constructor arg to 64bit"
Narayan Kamath [Thu, 30 Jan 2014 10:31:43 +0000 (10:31 +0000)]
Merge "change Surface constructor arg to 64bit"

10 years agochange Surface constructor arg to 64bit
Chong Zhang [Wed, 29 Jan 2014 20:52:15 +0000 (12:52 -0800)]
change Surface constructor arg to 64bit

Bug: 12799017
Bug: 12799384

(cherry picked from commit af608e81d450b962a443a21fb1a6feadeb355fe1)

Change-Id: I8d1471b16e6a6d334a3a32b789045eb171b81e03

10 years agoam c65e0c95: Merge "Fix a few more delegate methods in layoutlib."
Narayan Kamath [Thu, 30 Jan 2014 09:37:41 +0000 (01:37 -0800)]
am c65e0c95: Merge "Fix a few more delegate methods in layoutlib."

* commit 'c65e0c95c855de4505a320b6dcd66df5397c88d5':
  Fix a few more delegate methods in layoutlib.

10 years agoMerge "Fix a few more delegate methods in layoutlib."
Narayan Kamath [Thu, 30 Jan 2014 09:13:17 +0000 (09:13 +0000)]
Merge "Fix a few more delegate methods in layoutlib."

10 years agoam db3278ab: Merge "Map SELinux log levels to Android log levels."
Nick Kralevich [Wed, 29 Jan 2014 18:03:53 +0000 (10:03 -0800)]
am db3278ab: Merge "Map SELinux log levels to Android log levels."

* commit 'db3278ab429860161e5baa26f141de95a48de0cb':
  Map SELinux log levels to Android log levels.

10 years agoMerge "Map SELinux log levels to Android log levels."
Nick Kralevich [Wed, 29 Jan 2014 18:00:36 +0000 (18:00 +0000)]
Merge "Map SELinux log levels to Android log levels."

10 years agoMap SELinux log levels to Android log levels.
Stephen Smalley [Wed, 29 Jan 2014 17:55:58 +0000 (12:55 -0500)]
Map SELinux log levels to Android log levels.

Change-Id: I202c543ca6e4110c4011d1904eada4b75b59ff10
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
10 years agoam d12f4eb8: Merge "[Navigation bar] Allow "right to left" gesture to launch search...
John Spurlock [Wed, 29 Jan 2014 15:40:00 +0000 (07:40 -0800)]
am d12f4eb8: Merge "[Navigation bar] Allow "right to left" gesture to launch search panel"

* commit 'd12f4eb8cb986d710aaf98a9d6b8f66803d182d6':
  [Navigation bar] Allow "right to left" gesture to launch search panel

10 years agoMerge "[Navigation bar] Allow "right to left" gesture to launch search panel"
John Spurlock [Wed, 29 Jan 2014 15:36:40 +0000 (15:36 +0000)]
Merge "[Navigation bar] Allow "right to left" gesture to launch search panel"

10 years agoam d228a038: Merge "mNativeCanvas is long, not int."
Narayan Kamath [Wed, 29 Jan 2014 15:26:19 +0000 (07:26 -0800)]
am d228a038: Merge "mNativeCanvas is long, not int."

* commit 'd228a03891f60520d517b2a3bc900b008b2da702':
  mNativeCanvas is long, not int.

10 years agoFix a few more delegate methods in layoutlib.
Narayan Kamath [Wed, 29 Jan 2014 15:05:03 +0000 (15:05 +0000)]
Fix a few more delegate methods in layoutlib.

Change-Id: Icd7069452b9ac66498af69ec705d12c3acd1c848

10 years agoMerge "mNativeCanvas is long, not int."
Narayan Kamath [Wed, 29 Jan 2014 15:02:05 +0000 (15:02 +0000)]
Merge "mNativeCanvas is long, not int."

10 years agomNativeCanvas is long, not int.
Narayan Kamath [Wed, 29 Jan 2014 12:21:32 +0000 (12:21 +0000)]
mNativeCanvas is long, not int.

swapNativeCanvas was asking for an int field.

Change-Id: I660fb13ecfb5d3b24201676dc03c16d61c92af07

10 years agoam d4ccffd3: Merge "AArch64: Use long for pointers in graphics/Interpolator"
Narayan Kamath [Wed, 29 Jan 2014 12:14:48 +0000 (04:14 -0800)]
am d4ccffd3: Merge "AArch64: Use long for pointers in graphics/Interpolator"

* commit 'd4ccffd3ba7f7c27ddfc56231cf7f2424842b1e3':
  AArch64: Use long for pointers in graphics/Interpolator

10 years agoam 887b1ca8: Merge "AArch64: Use long for pointers in SurfaceTexture"
Narayan Kamath [Wed, 29 Jan 2014 12:14:44 +0000 (04:14 -0800)]
am 887b1ca8: Merge "AArch64: Use long for pointers in SurfaceTexture"

* commit '887b1ca87941095797a246b2d68ec2626a7cfc43':
  AArch64: Use long for pointers in SurfaceTexture

10 years agoMerge "AArch64: Use long for pointers in graphics/Interpolator"
Narayan Kamath [Wed, 29 Jan 2014 12:12:27 +0000 (12:12 +0000)]
Merge "AArch64: Use long for pointers in graphics/Interpolator"

10 years agoMerge "AArch64: Use long for pointers in SurfaceTexture"
Narayan Kamath [Wed, 29 Jan 2014 12:12:17 +0000 (12:12 +0000)]
Merge "AArch64: Use long for pointers in SurfaceTexture"

10 years agoam dd6de16a: Merge "AArch64: Use long for pointers in DRM classes"
Narayan Kamath [Wed, 29 Jan 2014 12:03:16 +0000 (04:03 -0800)]
am dd6de16a: Merge "AArch64: Use long for pointers in DRM classes"

* commit 'dd6de16aee254497040b32cc330b4637b96685c0':
  AArch64: Use long for pointers in DRM classes

10 years agoMerge "AArch64: Use long for pointers in DRM classes"
Narayan Kamath [Wed, 29 Jan 2014 12:00:27 +0000 (12:00 +0000)]
Merge "AArch64: Use long for pointers in DRM classes"

10 years agoAArch64: Use of long for pointers in PropertyValuesHolder
Ashok Bhat [Fri, 17 Jan 2014 16:44:27 +0000 (16:44 +0000)]
AArch64: Use of long for pointers in PropertyValuesHolder

Long is used in PropertyValuesHolder class to store native pointers
as they can be 64-bit. Note that jmethodID, a pointer to structures,
is also carried in long rather than int to support 64-bit system.

Change-Id: Ifb514fc8473d7c41c0d6194fc6eb85d4816b2cd9
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
10 years agoam 50afaefd: Merge "AArch64: Make Binder and Parcel 64-bit compatible"
Narayan Kamath [Wed, 29 Jan 2014 10:45:12 +0000 (02:45 -0800)]
am 50afaefd: Merge "AArch64: Make Binder and Parcel 64-bit compatible"

* commit '50afaefdc09060c7435291bc91aac47295ce2dfd':
  AArch64: Make Binder and Parcel 64-bit compatible

10 years agoMerge "AArch64: Make Binder and Parcel 64-bit compatible"
Narayan Kamath [Wed, 29 Jan 2014 10:43:22 +0000 (10:43 +0000)]
Merge "AArch64: Make Binder and Parcel 64-bit compatible"

10 years ago[Navigation bar] Allow "right to left" gesture to launch search panel
fisherson_lin [Mon, 20 Jan 2014 06:47:27 +0000 (14:47 +0800)]
[Navigation bar] Allow "right to left" gesture to launch search panel

Symptom: "Bottom to up" gesture can launch search panel in portrait, but "right to left" gesture CANNOT in landscape.
Root Cause: Not handled.
Solution: Set swapXY to handle this in landscape case.

Change-Id: I1793280b3656af6912e6b4583b08e80a0a38e44a

10 years agoam 967c5d00: Merge changes I3659193f,I8b78e4db
Mark Salyzyn [Tue, 28 Jan 2014 21:36:14 +0000 (13:36 -0800)]
am 967c5d00: Merge changes I3659193f,I8b78e4db

* commit '967c5d00dfcd890820c3ca82bc608814ebfe1cc1':
  jni: Resolve build warnings
  jni: Incorporate liblog reading API

10 years agoMerge changes I3659193f,I8b78e4db
Mark Salyzyn [Tue, 28 Jan 2014 21:30:39 +0000 (21:30 +0000)]
Merge changes I3659193f,I8b78e4db

* changes:
  jni: Resolve build warnings
  jni: Incorporate liblog reading API

10 years agoam 9b0f4be0: Merge "Track 64bit changes to android/graphics."
Narayan Kamath [Tue, 28 Jan 2014 19:16:00 +0000 (11:16 -0800)]
am 9b0f4be0: Merge "Track 64bit changes to android/graphics."

* commit '9b0f4be0a20ee48a3ddf56438e846231955bd557':
  Track 64bit changes to android/graphics.

10 years agoam 154614ab: Merge "AArch64: Use long for pointers in graphics/Camera"
Narayan Kamath [Tue, 28 Jan 2014 19:15:57 +0000 (11:15 -0800)]
am 154614ab: Merge "AArch64: Use long for pointers in graphics/Camera"

* commit '154614abbcc819c265bfb79b2626fcee66333ac2':
  AArch64: Use long for pointers in graphics/Camera

10 years agoam 6e09eb4c: Merge "AArch64: Make graphics classes 64-bit compatible"
Narayan Kamath [Tue, 28 Jan 2014 19:15:47 +0000 (11:15 -0800)]
am 6e09eb4c: Merge "AArch64: Make graphics classes 64-bit compatible"

* commit '6e09eb4c6753f8e5cbd04f9b0c7b65046d27afdb':
  AArch64: Make graphics classes 64-bit compatible

10 years agoMerge "Track 64bit changes to android/graphics."
Narayan Kamath [Tue, 28 Jan 2014 19:12:33 +0000 (19:12 +0000)]
Merge "Track 64bit changes to android/graphics."

10 years agoMerge "AArch64: Use long for pointers in graphics/Camera"
Narayan Kamath [Tue, 28 Jan 2014 19:12:29 +0000 (19:12 +0000)]
Merge "AArch64: Use long for pointers in graphics/Camera"

10 years agoMerge "AArch64: Make graphics classes 64-bit compatible"
Narayan Kamath [Tue, 28 Jan 2014 19:12:16 +0000 (19:12 +0000)]
Merge "AArch64: Make graphics classes 64-bit compatible"

10 years agoam baf2c7a4: Merge "[ActivityManager]: Fix the activity visibility state not sync...
Craig Mautner [Tue, 28 Jan 2014 18:08:18 +0000 (10:08 -0800)]
am baf2c7a4: Merge "[ActivityManager]: Fix the activity visibility state not sync between ActivityManager and WindowManager"

* commit 'baf2c7a400ef27b1f33999498a80e2fb3e05a22f':
  [ActivityManager]: Fix the activity visibility state not sync between ActivityManager and WindowManager

10 years agoMerge "[ActivityManager]: Fix the activity visibility state not sync between Activity...
Craig Mautner [Tue, 28 Jan 2014 18:05:30 +0000 (18:05 +0000)]
Merge "[ActivityManager]: Fix the activity visibility state not sync between ActivityManager and WindowManager"

10 years agoTrack 64bit changes to android/graphics.
Narayan Kamath [Mon, 27 Jan 2014 14:24:16 +0000 (14:24 +0000)]
Track 64bit changes to android/graphics.

All pointers are now 64bits wide, so should be
represented as java longs and not ints.

Also changed DelegateManager and SparseWeakArray to
reflect the new world order.

(cherry picked from commit 88a8364c386c694f7ad56662ef89713dbf7c9d63)

Change-Id: Ic2f55dd6235751169c5014f9d2ccf3f544259a87

10 years agoAArch64: Use long for pointers in graphics/Camera
Ashok Bhat [Mon, 13 Jan 2014 20:44:05 +0000 (20:44 +0000)]
AArch64: Use long for pointers in graphics/Camera

For storing pointers, long is used in
android/graphics/Camera class, as native
pointers can be 64-bit.

In addition, 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: Ic05ebf2051a225a1638a43f476bab6176c0b5c38
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
10 years agoAArch64: Make graphics classes 64-bit compatible
Ashok Bhat [Mon, 20 Jan 2014 20:08:01 +0000 (20:08 +0000)]
AArch64: Make graphics classes 64-bit compatible

Changes in this patch include

[x] Long is used to store native pointers 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)

[x] AssetAtlasManager is not completely 64-bit compatible
    yet. Specifically mAtlasMap member has to be converted
    to hold native pointer using long. Added a TODO to
    AssetAtlasManager.java to indicate the change required.

Change-Id: I940433f601c6db998c1a8ffff338f5361200d5ed
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Craig Barber <craig.barber@arm.com>
Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
10 years ago[ActivityManager]: Fix the activity visibility state not sync between ActivityManager...
louis_chang [Tue, 28 Jan 2014 10:38:06 +0000 (18:38 +0800)]
[ActivityManager]: Fix the activity visibility state not sync between ActivityManager and WindowManager

Symptom:
When press Home key to home screen, user is able to see the activity's window shown on top of wallpaper and below launcher(widgets).

Root Cause:
The ensureActivitiesVisibleLocked() is called pretty often (for example when a new process bound).
If the top activity "B" was finishing, then the previous activity "A" should be visible.
Therefore, the activity "A" window will be set to visible and then launched activity "A", but it does not updates the visible state in ActivityRecord for "A".
There has a timing issue that if a new activity "C" is started, "C" becomes the new top activity and be resumed.
In that case, Activity "A" window will remain visible even if it is behind a full screen activity "C" because the ActivityRecord.visble of "A" is still false, so the window visibility won't be update.
So when user press home key and back to launcher, the surface of activity "A" will be composed on top of wallpaper.

Solution:
Updates ActivityRecord.visible to true for "A". After "C" is started, the "A" will be called WindowManagerService.setAppVisibility() to set invisible, then called onStop() when execute ensureActivitiesVisibleLocked() again.

Change-Id: I536ba04b95d8d274fea6d679a6493e620bc981e2

10 years agoRelease locked buffer when it fails to acquire graphics buffer
lina.x.pi [Mon, 27 Jan 2014 02:31:44 +0000 (10:31 +0800)]
Release locked buffer when it fails to acquire graphics buffer

The JNI buffer in ImageReader_imageSetup is not released when
it fails to acquire graphics buffer. After all JNI buffers are
exhausted, ACQUIRE_MAX_IMAGES will be returned and leads to
error. The JNI buffer should be released when it fails to acquire
graphics buffer.

Change-Id: I3319a58ac44e36c8593b404672a685c4b589a735

10 years agojni: Resolve build warnings
Mark Salyzyn [Thu, 7 Nov 2013 19:16:22 +0000 (11:16 -0800)]
jni: Resolve build warnings

(cherry picked from commit 087f58dd80e3296a53c6e3c74c089e9a0265f3bd)

Change-Id: I3659193f1ba1ba94561e4684cdb6627880ffc2fa

10 years agojni: Incorporate liblog reading API
Mark Salyzyn [Thu, 5 Dec 2013 18:06:18 +0000 (10:06 -0800)]
jni: Incorporate liblog reading API

(cherry picked from commit e11cbd441df4a1689c89b2ab91b84523c9f2fd10)

Change-Id: I8b78e4db67b6daabb975ce740fb40478df4ffcef

10 years agoam 1ff4293e: Merge "Fixed race condition in Spinner.DialogPopup on null reference."
Christopher Tate [Mon, 27 Jan 2014 19:40:51 +0000 (11:40 -0800)]
am 1ff4293e: Merge "Fixed race condition in Spinner.DialogPopup on null reference."

* commit '1ff4293e33f98e6dc19e4f154cb497af9bd88c9d':
  Fixed race condition in Spinner.DialogPopup on null reference.

10 years agoMerge "Fixed race condition in Spinner.DialogPopup on null reference."
Christopher Tate [Mon, 27 Jan 2014 19:29:56 +0000 (19:29 +0000)]
Merge "Fixed race condition in Spinner.DialogPopup on null reference."

10 years agoam db525724: Merge "Fix dest == src bugs in Matrix.cpp."
Mathieu Chartier [Mon, 27 Jan 2014 19:17:13 +0000 (11:17 -0800)]
am db525724: Merge "Fix dest == src bugs in Matrix.cpp."

* commit 'db5257248637df729ec4f8db58bdfbf0660051b2':
  Fix dest == src bugs in Matrix.cpp.

10 years agoMerge "Fix dest == src bugs in Matrix.cpp."
Mathieu Chartier [Mon, 27 Jan 2014 17:26:47 +0000 (17:26 +0000)]
Merge "Fix dest == src bugs in Matrix.cpp."

10 years agoam d5970e9c: Merge "AssetManager cookies should be int32_t and not void*."
Narayan Kamath [Mon, 27 Jan 2014 11:58:32 +0000 (03:58 -0800)]
am d5970e9c: Merge "AssetManager cookies should be int32_t and not void*."

* commit 'd5970e9ca34038051f694c7349fa5f3548ee9499':
  AssetManager cookies should be int32_t and not void*.

10 years agoMerge "AssetManager cookies should be int32_t and not void*."
Narayan Kamath [Mon, 27 Jan 2014 11:56:03 +0000 (11:56 +0000)]
Merge "AssetManager cookies should be int32_t and not void*."

10 years agoAssetManager cookies should be int32_t and not void*.
Narayan Kamath [Mon, 27 Jan 2014 11:17:22 +0000 (11:17 +0000)]
AssetManager cookies should be int32_t and not void*.

Cookies are really indices into vectors and arrays, so
they don't need to be void*. We choose int32_t instead
of size_t to allow their width to be well specified.

(cherry picked from commit ebfdd0f467e39c3af8d92cade78263935340acb7)
(cherry picked from commit a7fa2e592e2e579e5acdb903dba83fc074ebc215)
(cherry picked from commit a9d5701b034ed2d9771b3f0943e1add00741d7cd)

Change-Id: I2aed3db568b6fdc487bf99e2c5dd123206736fda

10 years agoam d1eeb674: Merge "Telephony: Modify code to check that PUK code length is always 8."
Wink Saville [Sun, 26 Jan 2014 16:43:28 +0000 (08:43 -0800)]
am d1eeb674: Merge "Telephony: Modify code to check that PUK code length is always 8."

* commit 'd1eeb6747820f549ec724546a84e3860b4580587':
  Telephony: Modify code to check that PUK code length is always 8.

10 years agoFix dest == src bugs in Matrix.cpp.
Mathieu Chartier [Sun, 26 Jan 2014 01:54:22 +0000 (17:54 -0800)]
Fix dest == src bugs in Matrix.cpp.

The main bug was that the AutoJavaFloatArray autoSrc was not passing in
read only. This meant that the destructor overwrote the data which
the autoDst AutoJavaFloatArray had written in it's destructor.
This case only happened if src == dest and the arrays were copies.
Also improved performance by passing in read only a few other places.

Bug: 12570144

Change-Id: Idc8764087dc165433c584b87a0f9d4ed0ec795e8

10 years agoMerge "Telephony: Modify code to check that PUK code length is always 8."
Wink Saville [Sat, 25 Jan 2014 21:51:34 +0000 (21:51 +0000)]
Merge "Telephony: Modify code to check that PUK code length is always 8."

10 years agoam 3c30eff6: Merge "Remove unused field from AssetManager."
Narayan Kamath [Fri, 24 Jan 2014 09:39:47 +0000 (01:39 -0800)]
am 3c30eff6: Merge "Remove unused field from AssetManager."

* commit '3c30eff63fb33901df4e040ecce78f7755be588f':
  Remove unused field from AssetManager.

10 years agoMerge "Remove unused field from AssetManager."
Narayan Kamath [Fri, 24 Jan 2014 09:27:48 +0000 (09:27 +0000)]
Merge "Remove unused field from AssetManager."

10 years agoam a3106d1d: Merge "Revert "Adding freeMemoryForTests static method to WebView.""
Selim Gurun [Thu, 23 Jan 2014 22:37:15 +0000 (14:37 -0800)]
am a3106d1d: Merge "Revert "Adding freeMemoryForTests static method to WebView.""

* commit 'a3106d1dbe5141a6df742262f4bbe8cf2c8ea915':
  Revert "Adding freeMemoryForTests static method to WebView."

10 years agoMerge "Revert "Adding freeMemoryForTests static method to WebView.""
Selim Gurun [Thu, 23 Jan 2014 22:26:33 +0000 (22:26 +0000)]
Merge "Revert "Adding freeMemoryForTests static method to WebView.""

10 years agoRevert "Adding freeMemoryForTests static method to WebView."
Selim Gurun [Thu, 23 Jan 2014 22:13:40 +0000 (22:13 +0000)]
Revert "Adding freeMemoryForTests static method to WebView."

This reverts commit c6a2a6e20f7ddd5a903e9395f6c574c316960694.

Change-Id: If9e1b3420ee239ab3166850e853d5949821f99e1

10 years agoam f6d69ae0: Merge "Adding freeMemoryForTests static method to WebView."
Selim Gurun [Thu, 23 Jan 2014 19:49:00 +0000 (11:49 -0800)]
am f6d69ae0: Merge "Adding freeMemoryForTests static method to WebView."

* commit 'f6d69ae0f9215e08137b010acb4076a30e3d28c6':
  Adding freeMemoryForTests static method to WebView.

10 years agoMerge "Adding freeMemoryForTests static method to WebView."
Selim Gurun [Thu, 23 Jan 2014 19:42:18 +0000 (19:42 +0000)]
Merge "Adding freeMemoryForTests static method to WebView."

10 years agoAdding freeMemoryForTests static method to WebView.
Selim Gurun [Thu, 23 Jan 2014 19:21:00 +0000 (11:21 -0800)]
Adding freeMemoryForTests static method to WebView.

This is going to be used by pagecycler tests.
Bug: b/10629847

(cherry picked from commit 54daaf1cffddad6366fac2ccfceb1e042dd8e90e)

Change-Id: Ie16a94baa15f868d60f3837290dcc8045aea31a9

10 years agoAArch64: Make Binder and Parcel 64-bit compatible
Ashok Bhat [Wed, 22 Jan 2014 16:00:20 +0000 (16:00 +0000)]
AArch64: Make Binder and Parcel 64-bit compatible

Changes include
[x] Long is used to store native pointers

[x] Added new method obtain(long obj) to Parcel. Binder
    uses this method instead of obtain(int obj).

[x] obtain(int) has been changed to throw unsupported
    operation exception.

Change-Id: I408e0f2a24deb28c9277d86670653a51eb314266
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Craig Barber <craig.barber@arm.com>
Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
10 years agoam 407f74f4: Merge "Set Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE default value"
Christopher Tate [Thu, 23 Jan 2014 01:43:52 +0000 (17:43 -0800)]
am 407f74f4: Merge "Set Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE default value"

* commit '407f74f494e5374d9bdceae9d9fb453aa8270f6b':
  Set Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE default value

10 years agoMerge "Set Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE default value"
Christopher Tate [Thu, 23 Jan 2014 01:40:37 +0000 (01:40 +0000)]
Merge "Set Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE default value"

10 years agoam cc81bcec: Merge "Only send storage intents after boot complete"
Christopher Tate [Wed, 22 Jan 2014 23:50:31 +0000 (15:50 -0800)]
am cc81bcec: Merge "Only send storage intents after boot complete"

* commit 'cc81bcece411794b4eac6b03b7700a0214fdbb87':
  Only send storage intents after boot complete

10 years agoMerge "Only send storage intents after boot complete"
Christopher Tate [Wed, 22 Jan 2014 23:46:57 +0000 (23:46 +0000)]
Merge "Only send storage intents after boot complete"

10 years agoRemove unused field from AssetManager.
Narayan Kamath [Wed, 22 Jan 2014 11:09:09 +0000 (11:09 +0000)]
Remove unused field from AssetManager.

This field was introduced in commit 4bdd33b81a17 but wasn't
used there (or since).

Change-Id: I0615e98b8990d42da6b85f8094ab19eb0465fd9e

10 years agoam 9fc157a4: Merge "FLAG_PRIVILEGED disappears if privileged app is updated and rebooted"
Christopher Tate [Wed, 22 Jan 2014 01:45:00 +0000 (17:45 -0800)]
am 9fc157a4: Merge "FLAG_PRIVILEGED disappears if privileged app is updated and rebooted"

* commit '9fc157a4767f54d1cff53dc9489638b67aec2da3':
  FLAG_PRIVILEGED disappears if privileged app is updated and rebooted

10 years agoMerge "FLAG_PRIVILEGED disappears if privileged app is updated and rebooted"
Christopher Tate [Wed, 22 Jan 2014 01:42:50 +0000 (01:42 +0000)]
Merge "FLAG_PRIVILEGED disappears if privileged app is updated and rebooted"

10 years agoFLAG_PRIVILEGED disappears if privileged app is updated and rebooted
Naofumi Harada [Tue, 21 Jan 2014 01:29:36 +0000 (10:29 +0900)]
FLAG_PRIVILEGED disappears if privileged app is updated and rebooted

Since Kitkat, an app pre-loaded under /system/priv-app/ has
FLAG_PRIVILEGED. However, if the app updated and the device
rebooted, privileged flag is unset from pkgFlags. This patch
fix issue to assign privileged flag when scanning the updated
packages.

Bug: 12640283

Change-Id: Ic24b5882f65dabdfae9cc39da3d68661bed4fc31

10 years agoOnly send storage intents after boot complete
Johan Redestig [Sat, 18 Jan 2014 21:46:56 +0000 (22:46 +0100)]
Only send storage intents after boot complete

It is not possible to send a broadcast before the system
boot is completed. If you do it anyway you will get an
IllegalStateException: Cannot broadcast before boot completed.

If a memory card is inserted or removed while the phone is
booting up, there is a risk that the MountService will try to
broadcast a storage intent too early, and cause the device
to crash.

Use FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT to avoid
problems with too early broadcasts.

Change-Id: Ied36a13d235df37c9788e45a35de40d919ae0cd0

10 years agoam c9a60b0f: Merge "Don\'t confuse stat and stat64."
Elliott Hughes [Sat, 18 Jan 2014 02:36:02 +0000 (18:36 -0800)]
am c9a60b0f: Merge "Don\'t confuse stat and stat64."

* commit 'c9a60b0f77525244ac4f970258703b8dc62ee140':
  Don't confuse stat and stat64.