OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Do not stack allocate RefBase object in AaptAssets::filter"
Hans Boehm [Thu, 11 Aug 2016 17:18:21 +0000 (17:18 +0000)]
Merge "Do not stack allocate RefBase object in AaptAssets::filter"

7 years agoDo not stack allocate RefBase object in AaptAssets::filter
Hans Boehm [Thu, 11 Aug 2016 02:56:50 +0000 (19:56 -0700)]
Do not stack allocate RefBase object in AaptAssets::filter

Doing so is likely to trigger log messages in the future, and will
hinder diagnosis of other problems.

Bug: 30292538
Change-Id: I2cb8c507e43d06d4afa7e35b564416c1474c81d1

7 years agoMerge "[NetworkPolicy]: Fixes the crash issues caused by null pointer."
Robert Greenwalt [Wed, 10 Aug 2016 21:07:25 +0000 (21:07 +0000)]
Merge "[NetworkPolicy]: Fixes the crash issues caused by null pointer."

7 years ago[NetworkPolicy]: Fixes the crash issues caused by null pointer.
zhangshuxiao [Tue, 9 Aug 2016 10:48:04 +0000 (18:48 +0800)]
[NetworkPolicy]: Fixes the crash issues caused by null pointer.

When handleRegisterNetworkAgent in ConnectivityService,
the networkinfo of NetworkAgentInfo will be set to null.
So we need to handle the null pointer of state.networkInfo.

Change-Id: I2a278f1f1b2455057fd2ed323ff4df340c3cbca9
Signed-off-by: zhangshuxiao <zhangshuxiao@xiaomi.com>
7 years agoMerge "Add stub isCTVerificationRequired methods"
Chad Brubaker [Tue, 9 Aug 2016 19:13:00 +0000 (19:13 +0000)]
Merge "Add stub isCTVerificationRequired methods"

7 years agoMerge "Track libcore change ee24b6322448ac919231a668e308ebd719aa52d7"
Yi Kong [Tue, 9 Aug 2016 17:59:07 +0000 (17:59 +0000)]
Merge "Track libcore change ee24b6322448ac919231a668e308ebd719aa52d7"

7 years agoTrack libcore change ee24b6322448ac919231a668e308ebd719aa52d7
Yi Kong [Tue, 9 Aug 2016 13:58:57 +0000 (14:58 +0100)]
Track libcore change ee24b6322448ac919231a668e308ebd719aa52d7

Change-Id: I73dd6af604304ea4eb8e01990454f491af659602

7 years agoMerge "Tidy up MockWebServer usage"
Neil Fuller [Tue, 9 Aug 2016 16:05:38 +0000 (16:05 +0000)]
Merge "Tidy up MockWebServer usage"

7 years agoMerge "Add a finalize() method to StrictJarFile"
Neil Fuller [Tue, 9 Aug 2016 10:43:18 +0000 (10:43 +0000)]
Merge "Add a finalize() method to StrictJarFile"

7 years agoMerge "Ensure apps cannot prevent uncaught exceptions being logged."
Tobias Thierer [Tue, 9 Aug 2016 08:55:34 +0000 (08:55 +0000)]
Merge "Ensure apps cannot prevent uncaught exceptions being logged."

7 years agoMerge "fix safeMode status in AppWidgetService"
Treehugger Robot [Mon, 8 Aug 2016 21:36:45 +0000 (21:36 +0000)]
Merge "fix safeMode status in AppWidgetService"

7 years agoEnsure apps cannot prevent uncaught exceptions being logged.
Tobias Thierer [Thu, 21 Jul 2016 14:05:19 +0000 (15:05 +0100)]
Ensure apps cannot prevent uncaught exceptions being logged.

Let RuntimeInit use an UncaughtExceptionPreHandler to log an exception
rather than relying on UncaughtHandler, which apps can replace. This
makes it easier to diagnose application death, especially during app
compatibility testing for a new version of Android.

Test: Verified manually, with the help of a small sample app (not
checked in), that stacktraces for RuntimeExceptions thrown on main
or background threads are logged even when the app set a default
UncaughtExceptionHandler that swallows the exception with no action.

Note that such an inappropriate UncaughtExceptionHandler will still
cause threads to die without the app being killed, which it should be.
In an exception then happens on the main thread, the app will freeze
until the ANR dialog kicks in after a few seconds. I have manually
verified that this behavior is unchanged from before this CL.

No new integration tests are included because the default system
behavior has not changed.

Bug: 29624607
Change-Id: Ie87377b0bcadc3ba4083a8ab1bedb8f3dd95a4bd

7 years agoMerge "Fix random crash in libhwui"
Treehugger Robot [Fri, 5 Aug 2016 18:23:14 +0000 (18:23 +0000)]
Merge "Fix random crash in libhwui"

7 years agoMerge "APIs for ProcessBuilder.Redirect"
Tobias Thierer [Fri, 5 Aug 2016 12:36:35 +0000 (12:36 +0000)]
Merge "APIs for ProcessBuilder.Redirect"

7 years agoMerge "Track libcore change 0e393b4d628541e84e31210342f4103315c07e23"
Przemyslaw Szczepaniak [Fri, 5 Aug 2016 09:36:41 +0000 (09:36 +0000)]
Merge "Track libcore change 0e393b4d628541e84e31210342f4103315c07e23"

7 years agoMerge "Update SMP documentation."
Hans Boehm [Fri, 5 Aug 2016 01:59:38 +0000 (01:59 +0000)]
Merge "Update SMP documentation."

7 years agoUpdate SMP documentation.
Hans Boehm [Mon, 14 Sep 2015 20:50:00 +0000 (13:50 -0700)]
Update SMP documentation.

The old version was seriously obsolete, primarily in that it ignored
C11 and C++11 atomics and the programming model underlying them.  As
a result it paid way too much attention to hardware characteristics,
which 0.001% of application programmers should really be aware of.
And some of those hardware descriptions were also obsolete.

This is a fairly complete rewrite.

Bug: 18523857

Change-Id: Icc14a390f74486193486c2ba07a86b05611e7d3c

7 years agoMerge "Fix bad index usage"
Andre Eisenbach [Thu, 4 Aug 2016 20:20:02 +0000 (20:20 +0000)]
Merge "Fix bad index usage"

7 years agoFix bad index usage
Jakub Pawlowski [Thu, 4 Aug 2016 20:16:32 +0000 (13:16 -0700)]
Fix bad index usage

Bug: 27999121
Change-Id: Ie2ba6f71bbf6f789a3c1016ba2f0051b809ac87e

7 years agoMerge "Enable clang for arm64."
Chih-hung Hsieh [Thu, 4 Aug 2016 17:13:53 +0000 (17:13 +0000)]
Merge "Enable clang for arm64."

7 years agoEnable clang for arm64.
Chih-Hung Hsieh [Wed, 3 Aug 2016 17:56:33 +0000 (10:56 -0700)]
Enable clang for arm64.

emutls should work now with latest prebuilt clang/llvm.

BUG: 25642296
Test: build and boot up on arm64 emulator.

Change-Id: I5c8dd36a1575436e5fd56e91f7c285f2b3e6546f
(cherry picked from commit 8ffb6b76f7a72e14882e09f882494e5f7d5fc45d)

7 years agoMerge "Add API for setsockoptInt(fd, IPPROTO_TCP, TCP_USER_TIMEOUT, value)"
Tobias Thierer [Thu, 4 Aug 2016 10:51:13 +0000 (10:51 +0000)]
Merge "Add API for setsockoptInt(fd, IPPROTO_TCP, TCP_USER_TIMEOUT, value)"

7 years agoMerge "HFP 1.7 profile update (3/4)"
Andre Eisenbach [Thu, 4 Aug 2016 01:06:46 +0000 (01:06 +0000)]
Merge "HFP 1.7 profile update (3/4)"

7 years agoHFP 1.7 profile update (3/4)
Mudumba Ananth [Mon, 29 Feb 2016 10:14:36 +0000 (02:14 -0800)]
HFP 1.7 profile update (3/4)

-> Android Framework changes to add support for
   an API to send indicator change in AG.
-> Added a system intent for broadcasting assigned number(ID)
   of the supported HF indicators and their values (if received)

Bug: 19983867
Change-Id: If26a7ae5da5686da72ebca9ec3decfe086e2ffb6
(cherry picked from commit 0d98ebf997b24e96d0328b4195a22832f9ae2664)

7 years agoMerge "Remove write type from GATT descriptor writes (1/4)"
Treehugger Robot [Wed, 3 Aug 2016 23:54:35 +0000 (23:54 +0000)]
Merge "Remove write type from GATT descriptor writes (1/4)"

7 years agoRemove write type from GATT descriptor writes (1/4)
Jakub Pawlowski [Thu, 31 Mar 2016 05:58:17 +0000 (22:58 -0700)]
Remove write type from GATT descriptor writes (1/4)

According to the Bluetooth Core specification v4.2, Vol 3, Part G,
section 4.12.3: "The Attribute Protocol WRITE REQUEST is used
for this sub-procedure".

Change-Id: I141dd24ed5911d5d485b52a1b661835b9960921a

7 years agoAdd API for setsockoptInt(fd, IPPROTO_TCP, TCP_USER_TIMEOUT, value)
Tobias Thierer [Wed, 3 Aug 2016 16:19:27 +0000 (17:19 +0100)]
Add API for setsockoptInt(fd, IPPROTO_TCP, TCP_USER_TIMEOUT, value)

Test: "make" succeeds.

Bug: 30402085
Change-Id: I4bc4b5dcfab04ac756578c2fae7a337e74587b66

7 years agoMerge "Stop profiling on uncaught exception."
Tobias Thierer [Wed, 3 Aug 2016 10:42:37 +0000 (10:42 +0000)]
Merge "Stop profiling on uncaught exception."

7 years agoMerge "GATT Server refactoring (2/4)"
Jakub Pawlowski [Wed, 3 Aug 2016 10:21:43 +0000 (10:21 +0000)]
Merge "GATT Server refactoring (2/4)"

7 years agoMerge "Fixes the system server crash issue caused by uncatched exception."
Tobias Thierer [Wed, 3 Aug 2016 09:54:53 +0000 (09:54 +0000)]
Merge "Fixes the system server crash issue caused by uncatched exception."

7 years agoMerge "remove x attribute of java file"
Tobias Thierer [Wed, 3 Aug 2016 09:54:23 +0000 (09:54 +0000)]
Merge "remove x attribute of java file"

7 years agoMerge "Zygote: Add CAP_WAKE_ALARM to system_server to properly support timerfd alarms"
Treehugger Robot [Wed, 3 Aug 2016 00:04:19 +0000 (00:04 +0000)]
Merge "Zygote: Add CAP_WAKE_ALARM to system_server to properly support timerfd alarms"

7 years agoGATT Server refactoring (2/4)
Jakub Pawlowski [Fri, 1 Apr 2016 14:51:45 +0000 (07:51 -0700)]
GATT Server refactoring (2/4)

Bug: 27999121
Change-Id: Ia5f91298a4b01b62adebc8adc30f27f757259588

7 years agoremove x attribute of java file
Ganesh Mahendran [Tue, 28 Jun 2016 07:59:45 +0000 (15:59 +0800)]
remove x attribute of java file

java file do not need x attribute, so this patch
removes it.

Change-Id: I807722ac3f40688f032228294d61a4266d0e9e60
Signed-off-by: Ganesh Mahendran <opensource.ganesh@gmail.com>
7 years agoStop profiling on uncaught exception.
Tobias Thierer [Tue, 2 Aug 2016 16:32:26 +0000 (17:32 +0100)]
Stop profiling on uncaught exception.

When "handling" an uncaught exception, make an attempt to stop
profiling. In case profiling was active, this will avoid losing
the profiling buffer.

This change is required as a base in order for
https://android-review.googlesource.com/#/c/249721/
to merge cleanly.

(Cherry picked from commit 4c79fea9efea7cfa739cf5b5f525ddadb28e52a6)
Bug: 26291225
Change-Id: I35f352e5f28eafe4702da9eae587c3b65c360b3a

7 years agoAdd stub isCTVerificationRequired methods
Chad Brubaker [Mon, 1 Aug 2016 17:48:27 +0000 (10:48 -0700)]
Add stub isCTVerificationRequired methods

Bug: 28746284
Change-Id: Iebeecba7356ac57fedb06d71de63aa9900f2ccd8

7 years agoTrack libcore change 0e393b4d628541e84e31210342f4103315c07e23
Przemyslaw Szczepaniak [Tue, 12 Jul 2016 09:54:46 +0000 (10:54 +0100)]
Track libcore change 0e393b4d628541e84e31210342f4103315c07e23

Bug: 28666126
Change-Id: Ib63e14c5c72fd3a13f09a90358cb137e318a3653

7 years agoFixes the system server crash issue caused by uncatched exception.
songjinshi [Wed, 27 Jul 2016 12:36:46 +0000 (20:36 +0800)]
Fixes the system server crash issue caused by uncatched exception.

The restat method of the StatFs may throw an IllegalArgumentException,
so we must to catch it and throw an IOException for the caller
of the trimToFit(),this fix can improve system stability.

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

Change-Id: I54a2f569eea67d3ab628944e3586ca918ec70283
Signed-off-by: songjinshi <songjinshi@xiaomi.com>
7 years agoMerge "libsigchain: intercept bsd_signal on lp32"
Treehugger Robot [Mon, 1 Aug 2016 22:39:15 +0000 (22:39 +0000)]
Merge "libsigchain: intercept bsd_signal on lp32"

7 years agolibsigchain: intercept bsd_signal on lp32
Dimitry Ivanov [Mon, 1 Aug 2016 21:12:38 +0000 (14:12 -0700)]
libsigchain: intercept bsd_signal on lp32

bsd_signal is a deprecated synonym for the signal. Nevertheless
there are apps and libraries calling this function.

libsigchain needs to intercept these calls and handle them the same
way it handles signal() call.

Bug: http://b/30562229
Test: readelf --dyn-sym app_process32 and check that bsd_signal is exported
      readelf --dyn-sym app_process64 and check that bsd_signal is not exported
Change-Id: Iec584070b42bc7fa43b114c0f884aff2db5a6858

7 years agoMerge "Fix the API compatibility of "UriMatcher#addURI""
Fyodor Kupolov [Mon, 1 Aug 2016 17:34:32 +0000 (17:34 +0000)]
Merge "Fix the API compatibility of "UriMatcher#addURI""

7 years agoFix the API compatibility of "UriMatcher#addURI"
Hidehiko Tsuchiya [Tue, 25 Mar 2014 09:27:27 +0000 (18:27 +0900)]
Fix the API compatibility of "UriMatcher#addURI"

The previous patch (ef23bf19 Allow leading slash in path...) made
a single slash path unmatchable.
To solve it, this patch stops removing a slash character if the path
only has a slash character.
Now, a single slash is a matchable path for a URI without path string.

Bug: 29524484
Change-Id: I90b357aa48be1a3e0cf36e75ed2a9d6532908972

7 years agoAdd a finalize() method to StrictJarFile
Neil Fuller [Thu, 3 Dec 2015 17:31:18 +0000 (17:31 +0000)]
Add a finalize() method to StrictJarFile

Bug: 25896372
Test: Booted device, installed CTS apps
Test: run cts --class android.util.cts.StrictJarFileTest
Change-Id: I35e238dadd48d2c4ca53ac37a4c5aacdd471a93a

7 years agoZygote: Add CAP_WAKE_ALARM to system_server to properly support timerfd alarms
John Stultz [Thu, 28 Jul 2016 19:35:31 +0000 (12:35 -0700)]
Zygote: Add CAP_WAKE_ALARM to system_server to properly support timerfd alarms

The when the timerfd alarm logic was added to the kernel, an oversight was made
and the interface does not check for the CAP_WAKE_ALARM permissions as required
via other kernel methods to trigger an alarm timer.

In v4.8-rc kernels, the change 2895a5e5b3a ("timerfd: Reject ALARM timerfds
without CAP_WAKE_ALARM") was added by Eric Caruso <ejcaruso@google.com>.

After this change (which may be backported to -stable), the AlarmManager will
fail on the first timerfd_create call, and will not be able to set the time
or handle other necessary functions.

The solution here is to add CAP_WAKE_ALARM to the system_server process.

Change-Id: Ifdb16f3ef42711e553f727165de3922d484b5be4
Signed-off-by: John Stultz <john.stultz@linaro.org>
7 years agoMerge "api: destroy() and isDestroyed() methods are now default in Destroyable"
Sergio Giro [Wed, 27 Jul 2016 11:30:55 +0000 (11:30 +0000)]
Merge "api: destroy() and isDestroyed() methods are now default in Destroyable"

7 years agoMerge "Fix memory leak in MediaScannerConnection"
Marco Nelissen [Tue, 26 Jul 2016 15:37:32 +0000 (15:37 +0000)]
Merge "Fix memory leak in MediaScannerConnection"

7 years agoAPIs for ProcessBuilder.Redirect
Tobias Thierer [Tue, 26 Jul 2016 14:28:12 +0000 (15:28 +0100)]
APIs for ProcessBuilder.Redirect

This CL is required for the following libcore change:
Revert "Hide ProcessBuilder.Redirect and associated APIs."

Test: Checked that 'make' succeeds.

Bug: 27464570
Change-Id: I7719ab495863d3fc8cdd00fbe19ac40a37b5a6f2

7 years agoMerge "bootanimation: Call eglReleaseThread in threadLoop"
Jesse Hall [Mon, 25 Jul 2016 03:36:57 +0000 (03:36 +0000)]
Merge "bootanimation: Call eglReleaseThread in threadLoop"

7 years agoMerge "Fix google-explicit-constructor warnings in frameworks/base"
Chih-hung Hsieh [Fri, 22 Jul 2016 00:55:18 +0000 (00:55 +0000)]
Merge "Fix google-explicit-constructor warnings in frameworks/base"

7 years agoFix google-explicit-constructor warnings in frameworks/base
Chih-Hung Hsieh [Thu, 21 Jul 2016 18:23:06 +0000 (11:23 -0700)]
Fix google-explicit-constructor warnings in frameworks/base

* Add explicit keyword to conversion constructors.
* Add NOLINT to implicit conversion constructors.

Bug: 28341362
Test: build with clang-tidy
Change-Id: Ie4d37072ab57d1662d18db4de1c8577247f43337

7 years agoMerge "Update RenderScript docs: reduction, other API 23/24 changes, cleanup."
David Gross [Thu, 21 Jul 2016 16:15:37 +0000 (16:15 +0000)]
Merge "Update RenderScript docs: reduction, other API 23/24 changes, cleanup."

7 years agoFix memory leak in MediaScannerConnection
xiaoli.xb.zuo [Wed, 13 Jul 2016 05:37:58 +0000 (14:37 +0900)]
Fix memory leak in MediaScannerConnection

This patch adds releasing of MediaScannerConnection in ClientProxy
after disconnecting and releasing of ClientProxy and
IMediaScannerService in disconnection sequence in
MediaScannerConnection.

Bug: 30150344

Change-Id: I1e162e4c9a0b7a741ace20480bcf06f3151a93bf

8 years agoUpdate RenderScript docs: reduction, other API 23/24 changes, cleanup.
David Gross [Wed, 20 Jul 2016 23:04:35 +0000 (16:04 -0700)]
Update RenderScript docs: reduction, other API 23/24 changes, cleanup.

Substantive changes:
- Add discussion of reduction kernels.
- Use RS_KERNEL in place of __attribute__((kernel)).
- Discuss "context" special argument.
- Special arguments x, y, z may be of type int.
- Discuss multiple inputs for mapping kernels.
- Mention that script-side global writes are not visible in Java.
- Rewrite part of discussion regarding when to use support library.
- Change minimum device version for support library from Android 2.2 (API level 8)
  to Android 2.3 (API level 9).

Stylistic changes (better conformance with style guide):
- Proper use of <i> (italic) versus <em> (emphasis).
- Proper case for headings.
- Proper pattern for Android version numbers.
- Do not use e.g. or i.e.
- Prefer active rather than passive voice.
- Prefer present rather than future tense.

Miscellaneous minor editorial changes.

Bug: 27299393
Bug: 30000147

Change-Id: Ie0a26152714cf8f619d4914218f7262d675bb25f

8 years agoMerge "Remove dependency on android_alarm.h."
Christopher Ferris [Wed, 20 Jul 2016 18:03:47 +0000 (18:03 +0000)]
Merge "Remove dependency on android_alarm.h."

8 years agoMerge "Disable warning triggered in Clang r271374"
Stephen Hines [Tue, 19 Jul 2016 22:02:31 +0000 (22:02 +0000)]
Merge "Disable warning triggered in Clang r271374"

8 years agoDisable warning triggered in Clang r271374
Pirama Arumuga Nainar [Wed, 29 Jun 2016 05:09:50 +0000 (22:09 -0700)]
Disable warning triggered in Clang r271374

http://b/28149048
http://b/29823425

Disable -Wconstant-conversion that gets triggered in
native/imageproc/to_rgba.c.

Test: Tested build, boot and common usage for Arm, Arm64, x86, x86_64,
Mips images in AOSP and internal branch.

Change-Id: Ia8dbe49a1a8577599244642cbd2e3bb17ec1f83c

8 years agoRemove dependency on android_alarm.h.
Christopher Ferris [Mon, 18 Jul 2016 23:58:52 +0000 (16:58 -0700)]
Remove dependency on android_alarm.h.

android_alarm.h no longer exists in upstream android kernels. Since it's
only used by the AlarmManagerService, copy in the parts of the file that
are needed into that one file.

Bug: 30072483
Change-Id: I5c994dfa2ad261da48a67e5c35dc4b6618b82aa1

8 years agoMerge "Handle long process names correctly."
Treehugger Robot [Tue, 19 Jul 2016 00:09:24 +0000 (00:09 +0000)]
Merge "Handle long process names correctly."

8 years agoHandle long process names correctly.
Dmitriy Filchenko [Mon, 18 Jul 2016 23:00:35 +0000 (16:00 -0700)]
Handle long process names correctly.

pthread_setname_np() expects 16 or fewer characters for the name argument. When the process name is longer, we should trim it.

Change-Id: I40be3a4212bdaab900c8eb30fa27aeeb7ed1b0d1

8 years agoFix random crash in libhwui
Keith Mok [Wed, 13 Jul 2016 21:45:16 +0000 (14:45 -0700)]
Fix random crash in libhwui

On some cases (noticed from log) that there is a crash in
libhwui.so, future debug log shows that the light center position
values are nan, causing an out of bound access in hull function
in SpotShadow.cpp for parameter retPoly which assume to be of
maximum length of pointsLength only but not the case when all
points are nan.

More log shows that a Snapshot was created (new) without
mRelativeLightCenter begin set, and Layer.cpp trying to
use it by calling updateLightPosFromRenderer. Those values
are random values in stack which causing math calc based on
that value returning nan also.

Initialize mRelativeLightCenter to 0 in Snapshot.cpp to avoid the
problem.

Change-Id: I9e24f6f1f856d053d09db1b1aae100f219f2a6de

8 years agoMerge "Remove calls to set_process_name."
Treehugger Robot [Wed, 13 Jul 2016 19:50:52 +0000 (19:50 +0000)]
Merge "Remove calls to set_process_name."

8 years agoRemove calls to set_process_name.
Dmitriy Filchenko [Tue, 12 Jul 2016 22:40:54 +0000 (15:40 -0700)]
Remove calls to set_process_name.

BUG:29824203

Change-Id: I67a1eb350cf9ea28c554166986df8fc251b666eb

8 years agoMerge "Fix unsafe concurrent access in LegacyTypeTracker"
Treehugger Robot [Tue, 12 Jul 2016 13:08:20 +0000 (13:08 +0000)]
Merge "Fix unsafe concurrent access in LegacyTypeTracker"

8 years agoFix unsafe concurrent access in LegacyTypeTracker
Hugo Benichi [Tue, 21 Jun 2016 00:48:07 +0000 (09:48 +0900)]
Fix unsafe concurrent access in LegacyTypeTracker

This patch adds synchronization inside LegacyTypeTracker so that
getNetworkForType() can safely run concurrently with remove().

Without synchronization if remove() removes the last network for a
given type while getNetworkForType() runs for the same type, it is
possible that getNetworkForType tries to access the head of an empty
list, resulting in a runtime exception.

This issue was found by zoran.jovanovic@sonymobile.com who proposed a
fix in AOSP (Change-Id: Ia963662edb9d643790e8d9439e4dbdcac4c2187b).

This patch differs from the fix proposed by the bug reporter and tries
instead to do the minimum amount of locking to make getNetworkForType
safe.

Bug: 29030387

(cherry picked from commit 78caa25870391f676e1edbd448b5ff3e12a99a1e)

Change-Id: I915aac527fc8828b32bf35fee870add2dfb11d8d

8 years agoMerge "Solve the infinite loop on clearExternalStorageDataSync"
Todd Kennedy [Mon, 11 Jul 2016 14:32:02 +0000 (14:32 +0000)]
Merge "Solve the infinite loop on clearExternalStorageDataSync"

8 years agoMerge "Track libcore change dd5097d93d2f2c211fc79cde4d5f09db48e8808a"
Shubham Ajmera [Mon, 11 Jul 2016 10:08:40 +0000 (10:08 +0000)]
Merge "Track libcore change dd5097d93d2f2c211fc79cde4d5f09db48e8808a"

8 years agoapi: destroy() and isDestroyed() methods are now default in Destroyable
Sergio Giro [Fri, 8 Jul 2016 12:33:35 +0000 (13:33 +0100)]
api: destroy() and isDestroyed() methods are now default in Destroyable

Test: make droid docs and check-ojluni-files
Bug: 29631070
Change-Id: I93015997fbb18a45ba438f6bfc5c6564f053da64

8 years agoMerge "Resolve deadlock between ActivityManagerService and PowerManagerService"
Treehugger Robot [Thu, 7 Jul 2016 15:19:01 +0000 (15:19 +0000)]
Merge "Resolve deadlock between ActivityManagerService and PowerManagerService"

8 years agoResolve deadlock between ActivityManagerService and PowerManagerService
Shibin George [Tue, 5 Jul 2016 20:42:10 +0000 (02:12 +0530)]
Resolve deadlock between ActivityManagerService and PowerManagerService

ActivityManagerService lock and PowerManagerService.mLock can
be acquired in different threads in different orders.
registerReceiver() here tries to acquire ActivityManagerService
internally while holding mLock. A particular call from
WindowManagerService acquires these locks in reverse order.
This deadlock can be resolved by moving registerReceiver()
to another thread.

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

Change-Id: I12cd610e61f212a3fb5e441f2c7a557c90afbda4
Signed-off-by: Shibin George <shibing@codeaurora.org>
8 years agoMerge "MediaSession: Use mHandler for sending a pending intent"
Treehugger Robot [Wed, 6 Jul 2016 07:58:53 +0000 (07:58 +0000)]
Merge "MediaSession: Use mHandler for sending a pending intent"

8 years agoMerge "Fix deadlock in MediaSessionService during getCurrentUser()"
Jae Seo [Wed, 6 Jul 2016 07:15:54 +0000 (07:15 +0000)]
Merge "Fix deadlock in MediaSessionService during getCurrentUser()"

8 years agoFix deadlock in MediaSessionService during getCurrentUser()
Shibin George [Tue, 28 Jun 2016 10:26:50 +0000 (15:56 +0530)]
Fix deadlock in MediaSessionService during getCurrentUser()

SystemServiceMAnager.stopUser() acquires ActivityManagerService
lock first and then acquires MediaSessionService.mLock during
onStopUser(). MediaSessionService.onSwitchUser(), on the other
hand, acquires mLock first and ActivityManagerService lock next.
This is a potential deadlock situation which can be resolved by
moving getCurrentUser() out of synchronized block. This will
release mLock sooner and avoid the deadlock.

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

Change-Id: Ieb4520d60af6ca38496ca933da0cd9ae096a9408
Signed-off-by: Shibin George <shibing@codeaurora.org>
8 years agoMerge "Track libcore change c49fd8d2b8449193fbb53750e7f6a22cacc2f968"
Przemyslaw Szczepaniak [Tue, 5 Jul 2016 08:42:05 +0000 (08:42 +0000)]
Merge "Track libcore change c49fd8d2b8449193fbb53750e7f6a22cacc2f968"

8 years agoMerge "Track libcore change 4eed609c71648c069d8e83ec7001da29044d416b"
Przemyslaw Szczepaniak [Mon, 4 Jul 2016 16:26:37 +0000 (16:26 +0000)]
Merge "Track libcore change 4eed609c71648c069d8e83ec7001da29044d416b"

8 years agoTrack libcore change 4eed609c71648c069d8e83ec7001da29044d416b
Przemyslaw Szczepaniak [Mon, 4 Jul 2016 15:35:28 +0000 (16:35 +0100)]
Track libcore change 4eed609c71648c069d8e83ec7001da29044d416b

Bug: 27464570
Change-Id: I761cab7198f2608b8e76e9a5c775e3bcec44d781

8 years agoTrack libcore change dd5097d93d2f2c211fc79cde4d5f09db48e8808a
Shubham Ajmera [Thu, 30 Jun 2016 12:44:38 +0000 (13:44 +0100)]
Track libcore change dd5097d93d2f2c211fc79cde4d5f09db48e8808a

Change-Id: If8e4308d6c43eae7e2661bc083dea657969b9254

8 years agoMerge "Changes for upgrade to OkHttp 2.7.5"
Tobias Thierer [Thu, 30 Jun 2016 12:35:03 +0000 (12:35 +0000)]
Merge "Changes for upgrade to OkHttp 2.7.5"

8 years agoChanges for upgrade to OkHttp 2.7.5
Tobias Thierer [Wed, 1 Jun 2016 19:51:45 +0000 (20:51 +0100)]
Changes for upgrade to OkHttp 2.7.5

 - Use com.android.okhttp.Dns in place of com.android.okhttp.internal.Network
 - Specify TimeUnit.MILLISECONDS for timeouts which 2.7.5 allows and
   brings us closer to 3+

Change-Id: I95b5d72a94ebe1389f7c2e8d95903aa1aadd944b

8 years agoTrack libcore change c49fd8d2b8449193fbb53750e7f6a22cacc2f968
Przemyslaw Szczepaniak [Wed, 29 Jun 2016 16:41:01 +0000 (17:41 +0100)]
Track libcore change c49fd8d2b8449193fbb53750e7f6a22cacc2f968

Bug: 28666126
Change-Id: I385e3ce957d966bc27531ed915fe8cc8aeb577ab

8 years agoTidy up MockWebServer usage
Neil Fuller [Tue, 28 Jun 2016 17:29:03 +0000 (18:29 +0100)]
Tidy up MockWebServer usage

Delay creation of MockWebServer until setUp() and
add shutdown logic in one case.

Bug: 29820565
Change-Id: Iea43f8692b8425d05405a8fe86382d6d12197b2d

8 years agoMerge "Track libcore change fec24735b29faf2a81dbbc35a3a5f9630a597259"
Yi Kong [Fri, 24 Jun 2016 16:47:02 +0000 (16:47 +0000)]
Merge "Track libcore change fec24735b29faf2a81dbbc35a3a5f9630a597259"

8 years agoMerge "Track libcore change 694e617f54a7bfbdad24913ce96f5d56f1a1960a"
Przemyslaw Szczepaniak [Fri, 24 Jun 2016 11:16:20 +0000 (11:16 +0000)]
Merge "Track libcore change 694e617f54a7bfbdad24913ce96f5d56f1a1960a"

8 years agoTrack libcore change 694e617f54a7bfbdad24913ce96f5d56f1a1960a
Przemyslaw Szczepaniak [Mon, 20 Jun 2016 16:49:43 +0000 (17:49 +0100)]
Track libcore change 694e617f54a7bfbdad24913ce96f5d56f1a1960a

This change reverts previous fix for b/27582395 and makes
AbstractStringBuffer an Appendable.

Bug: 28666126
Bug: 27582395
Change-Id: I4b1b554fb47f45459eec24801af4ec798fc3039b

8 years agoMerge "Fix deadlock b/w ActivityManagerService and MediaSessionService"
Treehugger Robot [Thu, 23 Jun 2016 00:13:44 +0000 (00:13 +0000)]
Merge "Fix deadlock b/w ActivityManagerService and MediaSessionService"

8 years agoTrack libcore change fec24735b29faf2a81dbbc35a3a5f9630a597259
Yi Kong [Wed, 22 Jun 2016 13:17:55 +0000 (14:17 +0100)]
Track libcore change fec24735b29faf2a81dbbc35a3a5f9630a597259

Bug: 29067535
Change-Id: Ib0049db9ad5f6dfcdb04598ba288a1d94c32a31c

8 years agoMerge "Fix links to Bluetooth Guide"
Marie Janssen [Tue, 21 Jun 2016 21:26:00 +0000 (21:26 +0000)]
Merge "Fix links to Bluetooth Guide"

8 years agoMerge "Bluetooth: Send GET request as single packet"
Sanket Agarwal [Tue, 21 Jun 2016 20:37:36 +0000 (20:37 +0000)]
Merge "Bluetooth: Send GET request as single packet"

8 years agoFix deadlock b/w ActivityManagerService and MediaSessionService
Shibin George [Tue, 14 Jun 2016 15:12:13 +0000 (20:42 +0530)]
Fix deadlock b/w ActivityManagerService and MediaSessionService

While handling adjustVolume and finishReceiver at the same time,
system_server gets into deadlock situation where
ActivityManagerService lock and MediaSessionService lock are
getting acquired in reverse order. To fix this,
adjustSuggestedStreamVolume() is shifted to MediaSessionService's
Handler thread.

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

Change-Id: I3125c890546c8ab7c4df530bb68ba87cd688f8ce

8 years agoMerge "DisplayEventDisplatcher: Quiet down dispatcher Vsync pulse messages"
Treehugger Robot [Mon, 20 Jun 2016 18:44:17 +0000 (18:44 +0000)]
Merge "DisplayEventDisplatcher: Quiet down dispatcher Vsync pulse messages"

8 years agoFix links to Bluetooth Guide
Marie Janssen [Mon, 20 Jun 2016 17:26:31 +0000 (10:26 -0700)]
Fix links to Bluetooth Guide

Change-Id: I5798c3d71c7cc9c509e0f7b04fa140168b0fdc11

8 years agoMerge "Performance Optimization: Align texture dirty rect"
John Reck [Thu, 16 Jun 2016 21:35:12 +0000 (21:35 +0000)]
Merge "Performance Optimization: Align texture dirty rect"

8 years agoDisplayEventDisplatcher: Quiet down dispatcher Vsync pulse messages
John Stultz [Thu, 16 Jun 2016 17:24:43 +0000 (10:24 -0700)]
DisplayEventDisplatcher: Quiet down dispatcher Vsync pulse messages

My logcat is packed with these dispatcher vsync pulse messages
that really don't seem to be describing an error case (though
maybe I'm wrong?).

So quiet it down a bit and set the loglevel to verbose.

Change-Id: Ic4359f64f9cecfc1ffe49275f5f63327ba1b6f1d
Signed-off-by: John Stutlz <john.stultz@linaro.org>
8 years agoMerge "Track libcore change 45f477557ddaf68cb2fe9603544b95c0e7af9a92"
Yi Kong [Thu, 16 Jun 2016 16:16:00 +0000 (16:16 +0000)]
Merge "Track libcore change 45f477557ddaf68cb2fe9603544b95c0e7af9a92"

8 years agoMerge "Remove unused link to libcutils"
Treehugger Robot [Thu, 16 Jun 2016 15:56:50 +0000 (15:56 +0000)]
Merge "Remove unused link to libcutils"

8 years agoTrack libcore change 45f477557ddaf68cb2fe9603544b95c0e7af9a92
Yi Kong [Mon, 13 Jun 2016 20:14:35 +0000 (21:14 +0100)]
Track libcore change 45f477557ddaf68cb2fe9603544b95c0e7af9a92

Change-Id: Id1de514f0fc46fead029036ad5aded8ec9899119

8 years agoMerge "API updated for ICU4J 57.1"
Joachim Sauer [Thu, 16 Jun 2016 12:38:29 +0000 (12:38 +0000)]
Merge "API updated for ICU4J 57.1"

8 years agoMerge "Track libcore change I9138244ba1f30ec32b20c1c6394392742ffc3b2c"
Przemyslaw Szczepaniak [Thu, 16 Jun 2016 12:26:51 +0000 (12:26 +0000)]
Merge "Track libcore change I9138244ba1f30ec32b20c1c6394392742ffc3b2c"

8 years agoTrack libcore change I9138244ba1f30ec32b20c1c6394392742ffc3b2c
Przemyslaw Szczepaniak [Thu, 16 Jun 2016 12:07:31 +0000 (13:07 +0100)]
Track libcore change I9138244ba1f30ec32b20c1c6394392742ffc3b2c

Bug: 28666126
Change-Id: I52b859a5504536413f74c1e27d3eb7f1f930dc20

8 years agoRemove unused link to libcutils
Dan Willemsen [Wed, 15 Jun 2016 20:56:27 +0000 (13:56 -0700)]
Remove unused link to libcutils

This library is built against the NDK, so it shouldn't be linking to
platform libraries. It should also be pulling <android/log.h> from the
NDK headers, so remove the system/core/include include directory.

Change-Id: Ie9d6514f43492401697907aee4df56bdbf4e1926

8 years agoBluetooth: Send GET request as single packet
AnubhavGupta [Mon, 21 Mar 2016 12:14:17 +0000 (17:44 +0530)]
Bluetooth: Send GET request as single packet

- If obex based profile explicitly sets GET with final flag, then
  GET should always be sent as single packet request with final flag
  set.

Change-Id: I82ff8295a239c4dbbfb4b3abfd358021820283cc