OSDN Git Service

android-x86/frameworks-base.git
8 years agoFix misc-macro-parentheses warnings in services jni.
Chih-Hung Hsieh [Thu, 19 May 2016 22:29:38 +0000 (15:29 -0700)]
Fix misc-macro-parentheses warnings in services jni.

Bug: 28705665
Change-Id: Iaf965875b667e45e1557e447de7988f729adfd52

8 years agoMerge "Make fake libart for misbehaving apps be loaded."
Alex Light [Wed, 18 May 2016 21:05:41 +0000 (21:05 +0000)]
Merge "Make fake libart for misbehaving apps be loaded."

8 years agoMake fake libart for misbehaving apps be loaded.
Alex Light [Wed, 20 Apr 2016 21:07:43 +0000 (14:07 -0700)]
Make fake libart for misbehaving apps be loaded.

Bug: 27775991
Change-Id: Ie4eba211e876ec0643ce6ecf6a110f3cb5e0f57e
(cherry picked from commit 20ed24fc0cbbada36e84dc1f1e86946db6e6c5a4)

8 years agoMerge "Add support for ICU data pinning in the Zygote"
Neil Fuller [Wed, 18 May 2016 11:45:35 +0000 (11:45 +0000)]
Merge "Add support for ICU data pinning in the Zygote"

8 years agoAdd support for ICU data pinning in the Zygote
Neil Fuller [Mon, 9 May 2016 15:55:36 +0000 (16:55 +0100)]
Add support for ICU data pinning in the Zygote

Upstream ICU caches use SoftReferences. On Android this means
that useful cached data initialized in the Zygote are "lost" when
the Zygote GCs and cannot be shared with apps. This change makes use
of an Android patch to ICU to ensure References created during
Zygote initialization are "strong". i.e. they are never collected.
This prevents them being GCd and ensures they can be shared between
applications.

After switching ICU to use strong references, this change
also creates DecimalFormatSymbols objects for common ULocales
(ROOT, US and the user's default, if different). DecimalFormatSymbols
makes use of an ICU Reference cache and this alone has been shown to
improve the construction time of java.text.DecimalFormat by 1-1.5
milliseconds on a Seed device. This saving applies the first time one
is created in each app for each locale, and again if SoftReferences
have been cleared.

The cost to the heap size of the Zygote has been measured at ~107k.
This value will change as more caches are switched to use the new
CacheValue class.

Formatting is typically performed on the UI thread and the intention
of this change is to reduce app start up time and jank in apps like
the Dialer which do a lot of formatting when scrolling lists. The
change may also enable more virtual memory page-sharing between
apps, though this is not the specific goal.

Bug: 28326526
Change-Id: Ia2c73f6525f05b1aa81e57a31eed1616decf6bb5

8 years agoMerge "ZygoteInit: warm up JCA providers during preload"
Sergio Giro [Tue, 17 May 2016 15:50:50 +0000 (15:50 +0000)]
Merge "ZygoteInit: warm up JCA providers during preload"

8 years agoMerge "Synchronize access of mSubscriptions"
Treehugger Robot [Tue, 17 May 2016 14:07:14 +0000 (14:07 +0000)]
Merge "Synchronize access of mSubscriptions"

8 years agoZygoteInit: warm up JCA providers during preload
Sergio Giro [Fri, 13 May 2016 15:34:46 +0000 (16:34 +0100)]
ZygoteInit: warm up JCA providers during preload

This makes the time spent in the first call of an app to
SSLSocketFactory.getDefault() drop from ~240 ms to ~50 ms. In M
it was around ~6ms. This is due to the fact that, while instantiating
the default factory, all providers are initialized.

In order to obtain the timings above, I created an app calling
SSLSocketFactory.getDefault in onCreate and timed it
with System.currentTimeMillis() .

(cherry picked from commit 6cb7b1c4765e9bc5175056826523dbd88426e9aa)

Bug: 28545496

Change-Id: Ic5aab3ece609d9fef06fee4ccb83d8371af075b2

8 years agoMerge "Fix GATT Characteristic write type serialization"
Andre Eisenbach [Sat, 14 May 2016 00:11:42 +0000 (00:11 +0000)]
Merge "Fix GATT Characteristic write type serialization"

8 years agoMerge "Fix "TelephonyRegistry notifies wrong data status""
Treehugger Robot [Fri, 13 May 2016 17:46:41 +0000 (17:46 +0000)]
Merge "Fix "TelephonyRegistry notifies wrong data status""

8 years agoMerge "Make android_net_NetUtils include what it actually uses."
Elliott Hughes [Fri, 13 May 2016 15:04:18 +0000 (15:04 +0000)]
Merge "Make android_net_NetUtils include what it actually uses."

8 years agoSynchronize access of mSubscriptions
Shibin George [Sat, 7 May 2016 10:46:50 +0000 (16:16 +0530)]
Synchronize access of mSubscriptions

Introduction of setConfigAsync to set Zen mode config
asynchronously leads to synchronization issues like
ArrayIndexOutOfBoundsException while accessing mSubscriptions.

Change-Id: I6f72d894605498e0a4b48eb58af19851be53b9dc

8 years agoFix "TelephonyRegistry notifies wrong data status"
xu.peng [Tue, 22 Mar 2016 10:21:28 +0000 (18:21 +0800)]
Fix "TelephonyRegistry notifies wrong data status"

TelephonyRegistry should notify data status by correct subId,
otherwise in some case, SIM1 data status will be overried
by SIM2 data status.
Such as screen on/off action.If in fact SIM1 is data connected
to download something, but SIM2 is not,then sreen off,
both SIM1 and SIM2 will be notified to update data status.
Then SIM1 data status will be overried by SIM2 to be "no data
connected", before SIM1 data downloading is finished,SIM1
will not be able to show "data conneced" status.

Change-Id: Ia7d0767b3b4520294ee0d024903f7522cb0a0110

8 years agoMerge "Fix documentation bug in SQLiteDatabase"
Treehugger Robot [Thu, 12 May 2016 22:25:20 +0000 (22:25 +0000)]
Merge "Fix documentation bug in SQLiteDatabase"

8 years agoMerge "ContentValues: improve documentation"
Treehugger Robot [Thu, 12 May 2016 22:17:32 +0000 (22:17 +0000)]
Merge "ContentValues: improve documentation"

8 years agoContentValues: improve documentation
Steve Pomeroy [Tue, 9 Oct 2012 19:37:34 +0000 (15:37 -0400)]
ContentValues: improve documentation

Correct and clarify the documentation for ContentValues.

Change-Id: Iddf54da093e97c32da2568eab8802b1b2715303b
Signed-off-by: Steve Pomeroy <steve@staticfree.info>
8 years agoFix documentation bug in SQLiteDatabase
Steve Pomeroy [Thu, 14 Mar 2013 04:42:10 +0000 (00:42 -0400)]
Fix documentation bug in SQLiteDatabase

The documentation incorrectly states that, "[insertWithOnConflict
returns] the primary key of the existing row if the input param
'conflictAlgorithm' = CONFLICT_IGNORE". Unfortunately, SQLite does
not provide such functionality.

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

Change-Id: Ife919c4dcf7bf703b692d338d1fb5844a532dd39
Signed-off-by: Steve Pomeroy <steve@staticfree.info>
8 years agoMerge "Support TrustedCertificateStore.findAllIssuers"
Chad Brubaker [Thu, 12 May 2016 19:18:47 +0000 (19:18 +0000)]
Merge "Support TrustedCertificateStore.findAllIssuers"

8 years agoSupport TrustedCertificateStore.findAllIssuers
Chad Brubaker [Fri, 18 Dec 2015 21:43:28 +0000 (13:43 -0800)]
Support TrustedCertificateStore.findAllIssuers

(cherry-picked from commit aa6c3c3e252252b80c3900bd4c1ff27d37265c6d)
Change-Id: I176ec42c9907e50ee218e4fb352b530ca797be46

8 years agoMake android_net_NetUtils include what it actually uses.
Elliott Hughes [Wed, 11 May 2016 22:18:13 +0000 (15:18 -0700)]
Make android_net_NetUtils include what it actually uses.

Bug: http://b/28519060
Change-Id: I49dcd358d3fc8e0ba5c5e0b50a0f5dcc63281d22

8 years agoMerge "[RenderScript] Interrupt mMessageThread when tearing down context."
Miao Wang [Wed, 11 May 2016 19:13:00 +0000 (19:13 +0000)]
Merge "[RenderScript] Interrupt mMessageThread when tearing down context."

8 years agoMerge "Fix AbstractStringBuilder gaining extra APIs."
Joachim Sauer [Wed, 11 May 2016 13:47:08 +0000 (13:47 +0000)]
Merge "Fix AbstractStringBuilder gaining extra APIs."

8 years agoFix AbstractStringBuilder gaining extra APIs.
Joachim Sauer [Tue, 10 May 2016 14:09:08 +0000 (15:09 +0100)]
Fix AbstractStringBuilder gaining extra APIs.

AbstractStringBuilder showed up in the API as gaining methods originally
belonging to StringBuffer/StringBuilder (mostly append(*) and
insert(*)).

Ideally it should not be in the API at all, but it's traditionally been
there and we'll keep it for now.

@hide the affected methods and move the "implements Appendable"
definition to StringBuffer/StringBuilder (as methods implementing an
interface can't be @hidden).

(cherry picked from commit 91f4aec3ccb4b2a2b66fbde095baa584b0862c11)

Bug: 27582395
Change-Id: I0b85c2c84f3e52ffe7864728d083f9c6ea7304ef

8 years agoFix GATT Characteristic write type serialization
Jakub Pawlowski [Fri, 1 Apr 2016 14:17:15 +0000 (07:17 -0700)]
Fix GATT Characteristic write type serialization

Default writeType for GATT characteristic was not being
serialized into Parcel. This cause errors when trying to
write into Characteristic.

Bug: 27910548
Change-Id: Ib2f88cf991123eaea244f16fa36deb0d773c5a33

8 years ago[RenderScript] Interrupt mMessageThread when tearing down context.
Miao Wang [Tue, 10 May 2016 23:44:11 +0000 (16:44 -0700)]
[RenderScript] Interrupt mMessageThread when tearing down context.

  - Interrupt mMessageThread, so it gets to see immediately
    that mRun is false and exit rightaway.

Change-Id: Ic586ef225a5c6f3a77f89de00b7fb3f3547c9838

8 years agoMerge "Clear more native pointers in finalizers"
Hans Boehm [Tue, 10 May 2016 23:41:30 +0000 (23:41 +0000)]
Merge "Clear more native pointers in finalizers"

8 years agoClear more native pointers in finalizers
Hans Boehm [Tue, 10 May 2016 20:01:22 +0000 (13:01 -0700)]
Clear more native pointers in finalizers

This hopefully handles the remaining finalizers in frameworks/base
that didn't guard against calls from other finalizers after being
finalized.

The goal here is to reduce the possible corruption causes we have
to think about by a few.

If any of theses are either very frequently used, or use large
Java (as opposed to native) objects, we should probably convert them
to NativeAllocationRegistry instead. But that's more work.

Bug: 18178237
Change-Id: I79bc0e8fa20af8f340418a6226022e0294d77f02

8 years agoMerge "Track libcore change e2f147b9b14c7645f29e92758f811a18258feef4"
Yi Kong [Mon, 9 May 2016 16:40:38 +0000 (16:40 +0000)]
Merge "Track libcore change e2f147b9b14c7645f29e92758f811a18258feef4"

8 years agoTrack libcore change e2f147b9b14c7645f29e92758f811a18258feef4
Yi Kong [Thu, 5 May 2016 10:32:54 +0000 (11:32 +0100)]
Track libcore change e2f147b9b14c7645f29e92758f811a18258feef4

Bug: 28582540
Change-Id: Ic944995957aa1a5ec65ecab2a8d4b8587094ccc8

8 years agoMerge "Read -Xjittransitionweight from system properties."
Calin Juravle [Mon, 9 May 2016 15:43:41 +0000 (15:43 +0000)]
Merge "Read -Xjittransitionweight from system properties."

8 years agoMerge "Fix divergent equals and hashCode behavior"
Treehugger Robot [Fri, 6 May 2016 23:20:01 +0000 (23:20 +0000)]
Merge "Fix divergent equals and hashCode behavior"

8 years agoMerge "List the CONNECTION_STATE_CHANGED broadcast for MAP as protected"
Ajay Panicker [Fri, 6 May 2016 23:18:51 +0000 (23:18 +0000)]
Merge "List the CONNECTION_STATE_CHANGED broadcast for MAP as protected"

8 years agoMerge "Protect TRANSFER_COMPLETE broadcast"
Ajay Panicker [Fri, 6 May 2016 23:18:32 +0000 (23:18 +0000)]
Merge "Protect TRANSFER_COMPLETE broadcast"

8 years agoFix divergent equals and hashCode behavior
Pavlin Radoslavov [Fri, 6 May 2016 19:05:47 +0000 (12:05 -0700)]
Fix divergent equals and hashCode behavior

Calling Objects.hash with a byte[] will call the identity hashCode on
the byte[] and this doesn't agree with the use of Objects.deepEquals
in equals.
Bug caught by error prone.

Also, replaced usage of Objects.deepEquals(mServiceDataUuid, ...) with
Objects.equals(mServiceDataUuid, ...), because mServiceDataUuid
is an Object of type ParcelUuid.

Bug: 28585195
Change-Id: Id92734874339985fedafe1a28286a6a4dcd88d3b

8 years agoMerge "Improve grammar in startService() documentation."
Hans Boehm [Fri, 6 May 2016 17:25:47 +0000 (17:25 +0000)]
Merge "Improve grammar in startService() documentation."

8 years agoProtect TRANSFER_COMPLETE broadcast
Ajay Panicker [Fri, 6 May 2016 01:59:44 +0000 (18:59 -0700)]
Protect TRANSFER_COMPLETE broadcast

Bug: 28621801
Change-Id: Ia90abd00694ae80000f59ee0a17826592fd2159b

8 years agoImprove grammar in startService() documentation.
Hans Boehm [Thu, 5 May 2016 20:09:28 +0000 (13:09 -0700)]
Improve grammar in startService() documentation.

Change-Id: If72f710caa2e85512636d6f7ddacff2426cfb835

8 years agoMerge "Fix the issue that App crash on startForeground."
Amith Yamasani [Thu, 5 May 2016 17:45:53 +0000 (17:45 +0000)]
Merge "Fix the issue that App crash on startForeground."

8 years agoMerge changes from topic 'icu_cp_catchup'
Neil Fuller [Thu, 5 May 2016 15:06:47 +0000 (15:06 +0000)]
Merge changes from topic 'icu_cp_catchup'

* changes:
  Track external/icu API changes for factory registration
  ICU4J: Hide constants that can change between releases
  Remove RawCollationKey/ByteArrayWrapper from the public API

8 years agoFix the issue that App crash on startForeground.
Wang Le [Wed, 4 May 2016 11:24:35 +0000 (19:24 +0800)]
Fix the issue that App crash on startForeground.

Install single APP in any user space except Owner user, the APP
got crash when call startForeground in Service Component with
Notification which without SmallIcon.

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

Change-Id: I88a3b8afc213cafe0f280f9b44d6acd2ea0df207
Signed-off-by: Wang Le <wangle@xiaomi.com>
8 years agoTrack external/icu API changes for factory registration
Neil Fuller [Wed, 4 May 2016 17:46:45 +0000 (18:46 +0100)]
Track external/icu API changes for factory registration

Bug: 28583844
(cherry picked from commit e7fda97fff236afa5597da7df69b1462390c5a14)

Change-Id: I4a411184fe002ea812349e49d07d17c62c66d842

8 years agoICU4J: Hide constants that can change between releases
Paul Duffin [Thu, 31 Mar 2016 12:15:03 +0000 (13:15 +0100)]
ICU4J: Hide constants that can change between releases

Bug: 27830659
(cherry picked from commit 71498f107ce41a1c3f2bc612fa214579aab19db1)

Change-Id: I007ed563d78cdf36ddd0e36ae72f118189772e5c

8 years agoRemove RawCollationKey/ByteArrayWrapper from the public API
Paul Duffin [Tue, 22 Mar 2016 16:53:41 +0000 (16:53 +0000)]
Remove RawCollationKey/ByteArrayWrapper from the public API

Bug: 22023363
(cherry picked from commit baa72515f60af798ea9a03e53a78a7d95834ceff)

Change-Id: If81d9a67ba9edf15688f4369390a6734d92a8f3c

8 years agoMerge "Fix issue #25727069: Top sleeping activity overrides foreground service"
Vikas Marwaha [Tue, 3 May 2016 20:50:39 +0000 (20:50 +0000)]
Merge "Fix issue #25727069: Top sleeping activity overrides foreground service"

8 years agoList the CONNECTION_STATE_CHANGED broadcast for MAP as protected
Ajay Panicker [Tue, 3 May 2016 18:14:07 +0000 (11:14 -0700)]
List the CONNECTION_STATE_CHANGED broadcast for MAP as protected

Bug: 28527879
Change-Id: Ifb2db87677e92022814bb9704c26009d249ac6ce

8 years agoMerge "List the SDP_RECORD broadcast as protected"
Ajay Panicker [Tue, 3 May 2016 17:22:57 +0000 (17:22 +0000)]
Merge "List the SDP_RECORD broadcast as protected"

8 years agoList the SDP_RECORD broadcast as protected
Ajay Panicker [Tue, 19 Apr 2016 17:16:54 +0000 (10:16 -0700)]
List the SDP_RECORD broadcast as protected

Bug: 28257589
Change-Id: I97ef91fa3a7f7ef62fd96ca079e0a6d5a957bc71

8 years agoFix issue #25727069: Top sleeping activity overrides foreground service
Dianne Hackborn [Tue, 17 Nov 2015 19:14:43 +0000 (11:14 -0800)]
Fix issue #25727069: Top sleeping activity overrides foreground service

Change-Id: I9a085cd650604f9d6277ad343bf3c3852324cafc

8 years agoMerge "FloatingToolbar: Fix javadoc for closeOverflow()."
Treehugger Robot [Fri, 29 Apr 2016 09:36:05 +0000 (09:36 +0000)]
Merge "FloatingToolbar: Fix javadoc for closeOverflow()."

8 years agoMerge "AAPT: ProGuard config for components in main dex."
Adam Lesinski [Thu, 28 Apr 2016 20:06:19 +0000 (20:06 +0000)]
Merge "AAPT: ProGuard config for components in main dex."

8 years agoMerge "Fix google-explicit-constructor warnings."
Chih-hung Hsieh [Thu, 28 Apr 2016 18:47:00 +0000 (18:47 +0000)]
Merge "Fix google-explicit-constructor warnings."

8 years agoFloatingToolbar: Fix javadoc for closeOverflow().
Sebastian Kaspari [Tue, 9 Feb 2016 15:22:08 +0000 (16:22 +0100)]
FloatingToolbar: Fix javadoc for closeOverflow().

Change-Id: I450fc603ae5fe49f08f580594352cc1120cc104d

8 years agoRead -Xjittransitionweight from system properties.
Calin Juravle [Wed, 27 Apr 2016 13:12:00 +0000 (14:12 +0100)]
Read -Xjittransitionweight from system properties.

Bug: 27865109

(cherry picked from commit 8d74de55464c885b602b34252ee8721a9e810dcf)

Change-Id: Id4f0668ea212f0fd82d32437ea251118bfce1ae2

8 years agoMerge "ZipUtils: Fix wrong timestamps when getEntryInfo"
Narayan Kamath [Thu, 28 Apr 2016 12:13:37 +0000 (12:13 +0000)]
Merge "ZipUtils: Fix wrong timestamps when getEntryInfo"

8 years agoZipUtils: Fix wrong timestamps when getEntryInfo
Shammi Khattar [Wed, 6 Apr 2016 22:33:03 +0000 (15:33 -0700)]
ZipUtils: Fix wrong timestamps when getEntryInfo

"tm_mon" format should align with "ZipEntry::setModWhen" in aapt.
"tm_isdst" should be initialized, or it will because random value
and cause error in function mktime().

BUG:28021145
Change-Id: I1e8d5c14e5d7b875bf9cd940cb7f4c5b93a1bcd6

8 years agoFix google-explicit-constructor warnings.
Chih-Hung Hsieh [Wed, 27 Apr 2016 18:29:23 +0000 (11:29 -0700)]
Fix google-explicit-constructor warnings.

Bug: 28341362
Change-Id: Ibdd6a210bb7ff228e3624cc319169f77aca3b51e

8 years agoAAPT: ProGuard config for components in main dex.
Rohit Agrawal [Thu, 21 Apr 2016 23:29:58 +0000 (16:29 -0700)]
AAPT: ProGuard config for components in main dex.

Create an analogue of "aapt -G" which outputs a proguard configuration
that keeps only components which need to be in the main dex.

BUG: 27383099

Change-Id: Ic18c8c563794ff27a5598a214111d1b446a005f1
(cherry picked from commit 86229cb622fccde8ab8cbe85eead91a34313a708)

8 years agoMerge "zygote: Remove NativeLoader initialization step"
Dimitry Ivanov [Wed, 27 Apr 2016 18:24:33 +0000 (18:24 +0000)]
Merge "zygote: Remove NativeLoader initialization step"

8 years agoMerge changes from topic 'target-sdk-0-fix'
Dimitry Ivanov [Wed, 27 Apr 2016 18:24:04 +0000 (18:24 +0000)]
Merge changes from topic 'target-sdk-0-fix'

* changes:
  Create linker namespace for the system server classloader
  Extract pathclassloader initialization to a separate class

8 years agozygote: Remove NativeLoader initialization step
Dimitry Ivanov [Thu, 21 Apr 2016 23:18:24 +0000 (16:18 -0700)]
zygote: Remove NativeLoader initialization step

This now done by art Runtime::Start()

Bug: http://b/28320913
Change-Id: Icf9b11954b732c9f953e02bba9ae52eb91117457

8 years agoCreate linker namespace for the system server classloader
Dimitry Ivanov [Wed, 20 Apr 2016 23:02:00 +0000 (16:02 -0700)]
Create linker namespace for the system server classloader

Bug: http://b/27702070
Change-Id: I12c9448e877202937cf558de75042bcb46f6a933

8 years agoMerge changes from topic 'icu-cherry-pick-from-nyc-to-aosp'
Paul Duffin [Wed, 27 Apr 2016 13:26:38 +0000 (13:26 +0000)]
Merge changes from topic 'icu-cherry-pick-from-nyc-to-aosp'

* changes:
  Hide general utility methods in ICU4J.
  ICU4J: Removed a couple of useless or internal methods from API
  ICU4J: Update API for using civil version of IslamicCalendar

8 years agoMerge "Track libcore change 13331bc0dd87b029b194e5aca4487e38d18da188"
Shubham Ajmera [Wed, 27 Apr 2016 09:45:03 +0000 (09:45 +0000)]
Merge "Track libcore change 13331bc0dd87b029b194e5aca4487e38d18da188"

8 years agoExtract pathclassloader initialization to a separate class
Dimitry Ivanov [Wed, 20 Apr 2016 21:09:32 +0000 (14:09 -0700)]
Extract pathclassloader initialization to a separate class

To be able to reuse this code when creating a classloader for
the system_server.

Bug: http://b/27245894
Bug: http://b/27702070
Change-Id: I928175a39a1beb0446d863a5b8f5edf94686e768

8 years agoMerge "Alarm icon is not shown for secondary users"
Treehugger Robot [Tue, 26 Apr 2016 18:32:50 +0000 (18:32 +0000)]
Merge "Alarm icon is not shown for secondary users"

8 years agoTrack libcore change 13331bc0dd87b029b194e5aca4487e38d18da188
Shubham Ajmera [Tue, 26 Apr 2016 16:48:26 +0000 (17:48 +0100)]
Track libcore change 13331bc0dd87b029b194e5aca4487e38d18da188

Bug: 27214236
Change-Id: I3074436baaa16fe19a158aa3aafdb79b534f792b

8 years agoMerge "Handle dalvik.vm.usejitprofiles property"
Calin Juravle [Mon, 25 Apr 2016 11:09:00 +0000 (11:09 +0000)]
Merge "Handle dalvik.vm.usejitprofiles property"

8 years agoMerge "Track libcore change e2270147c6ddfb164776b68295078a5e6c6dfee7"
Neil Fuller [Mon, 25 Apr 2016 09:31:40 +0000 (09:31 +0000)]
Merge "Track libcore change e2270147c6ddfb164776b68295078a5e6c6dfee7"

8 years agoMerge "Avoid instantiations of Boolean that are immediately unboxed."
Tobias Thierer [Mon, 25 Apr 2016 09:08:43 +0000 (09:08 +0000)]
Merge "Avoid instantiations of Boolean that are immediately unboxed."

8 years agoTrack libcore change e2270147c6ddfb164776b68295078a5e6c6dfee7
Shubham Ajmera [Wed, 20 Apr 2016 15:06:55 +0000 (16:06 +0100)]
Track libcore change e2270147c6ddfb164776b68295078a5e6c6dfee7

Bug: 27426743
(cherry picked from commit 6c69351469b9da7b424e9726c0bf878115a389b2)
Change-Id: I7276e39951d721704726132281c316c77bdab515

8 years agoHandle dalvik.vm.usejitprofiles property
Calin Juravle [Fri, 22 Apr 2016 15:40:50 +0000 (16:40 +0100)]
Handle dalvik.vm.usejitprofiles property

Bug: 26080105

Partial cherry picked from commit
db4a79a5d7d348e9d2286d95d4e5a59dd484456f

Change-Id: Ifef4ec0d153b8d30941a339d7f9052889631f84c

8 years agoMerge "Fix needless value boxing/unboxing in Am.java (except the Long unboxing covere...
Tobias Thierer [Fri, 22 Apr 2016 14:43:52 +0000 (14:43 +0000)]
Merge "Fix needless value boxing/unboxing in Am.java (except the Long unboxing covered by a separate CL)."

8 years agoHide general utility methods in ICU4J.
Joachim Sauer [Tue, 22 Mar 2016 13:32:35 +0000 (13:32 +0000)]
Hide general utility methods in ICU4J.

Bug: 22023363
(cherry picked from commit d76fe896d444ee7bf625493e12c51ee28bcc82ef)

Change-Id: Ic923c558270b81fe48034c46bfcd9b1ac1d438f2

8 years agoICU4J: Removed a couple of useless or internal methods from API
Paul Duffin [Sat, 19 Mar 2016 16:32:45 +0000 (16:32 +0000)]
ICU4J: Removed a couple of useless or internal methods from API

Bug: 22023363
(cherry picked from commit c108dea0bb0558f6d8462374775891005469097d)

Change-Id: I07c42b1124490daf502d1b3aff37b249d6118552

8 years agoICU4J: Update API for using civil version of IslamicCalendar
Paul Duffin [Tue, 22 Mar 2016 13:46:38 +0000 (13:46 +0000)]
ICU4J: Update API for using civil version of IslamicCalendar

Bug: 22023363
(cherry picked from commit 74a8e08d59169865ecb5e0ae9ba6a57f0814a05a)

Change-Id: I0d7b756be123f806d035ee225960f27806785424

8 years agoAvoid instantiations of Boolean that are immediately unboxed.
Tobias Thierer [Thu, 21 Apr 2016 16:51:41 +0000 (17:51 +0100)]
Avoid instantiations of Boolean that are immediately unboxed.

Replaced Boolean.valueOf() -> parseBoolean() across frameworks/base
(not including Am.java, which I'm leaving for a separate change).

Also fixed a couple of other valueOf()s in SyncStorageEngine.

Bug: 28289401
Change-Id: I2c6fb39a465885e7e625ed8894b1b9f8a30da5bc

8 years agoMerge "frameworks/base: Avoid Long object allocations in Long.valueOf()"
Tobias Thierer [Fri, 22 Apr 2016 10:27:26 +0000 (10:27 +0000)]
Merge "frameworks/base: Avoid Long object allocations in Long.valueOf()"

8 years agoFix needless value boxing/unboxing in Am.java
Tobias Thierer [Thu, 21 Apr 2016 17:51:17 +0000 (18:51 +0100)]
Fix needless value boxing/unboxing in Am.java
(except the Long unboxing covered by a separate CL).

Tested: Successfully built frameworks/base

Bug: 28289401
Change-Id: I40d09af9c003b7667cb96171747bd355d7a9dc4f

8 years agoframeworks/base: Avoid Long object allocations in Long.valueOf()
Tobias Thierer [Thu, 21 Apr 2016 13:52:10 +0000 (14:52 +0100)]
frameworks/base: Avoid Long object allocations in Long.valueOf()

Replace usages where the Long is immediately unboxed or thrown
away with Long.parseLong().
In TaskRecord.java, I also fixed up similar uses of
{Boolean,Integer}.valueOf()

Tested: built frameworks/base successfully.

Bug: 28289401
Change-Id: I1fad536853a68c7b0707cbf02989aca155064843

8 years agoMerge "Integer.valueOf() -> Integer.parseInt() to avoid allocation."
Tobias Thierer [Thu, 21 Apr 2016 13:23:18 +0000 (13:23 +0000)]
Merge "Integer.valueOf() -> Integer.parseInt() to avoid allocation."

8 years agoInteger.valueOf() -> Integer.parseInt() to avoid allocation.
Tobias Thierer [Thu, 21 Apr 2016 11:02:10 +0000 (12:02 +0100)]
Integer.valueOf() -> Integer.parseInt() to avoid allocation.

Bug: 28289401
Change-Id: If767f891644a06ba587f9bb55dccea4089a8c66d

8 years agoMerge "Doze settings example not matching real keys"
Adam Lesinski [Wed, 20 Apr 2016 22:37:18 +0000 (22:37 +0000)]
Merge "Doze settings example not matching real keys"

8 years agoMerge "Made Element accessors thread-safe"
Yang Ni [Wed, 20 Apr 2016 18:14:08 +0000 (18:14 +0000)]
Merge "Made Element accessors thread-safe"

8 years agoMade Element accessors thread-safe
Yang Ni [Mon, 18 Apr 2016 23:56:16 +0000 (16:56 -0700)]
Made Element accessors thread-safe

Bug: 28177082
Change-Id: I8f3f2d8ce559e93cba29f8eedd5b95d1389deb23
(cherry picked from commit 33703f0c4e9b16bda5fd72e71d7d89359ee0db17)

8 years agoMerge "Track libcore change be1608980825868eb1c70fab6eb86fe06bd304ce"
Yi Kong [Wed, 20 Apr 2016 15:36:53 +0000 (15:36 +0000)]
Merge "Track libcore change be1608980825868eb1c70fab6eb86fe06bd304ce"

8 years agoTrack libcore change be1608980825868eb1c70fab6eb86fe06bd304ce
Yi Kong [Wed, 20 Apr 2016 14:15:52 +0000 (15:15 +0100)]
Track libcore change be1608980825868eb1c70fab6eb86fe06bd304ce

Bug: 27704598
Change-Id: I5cb900c7b48bc7b48ed0ea1110ff834e1d316de7

8 years agoMerge "Fixed ScriptGroup finalizer for old API"
Yang Ni [Tue, 19 Apr 2016 18:02:01 +0000 (18:02 +0000)]
Merge "Fixed ScriptGroup finalizer for old API"

8 years agoFixed ScriptGroup finalizer for old API
Yang Ni [Mon, 18 Apr 2016 21:27:02 +0000 (14:27 -0700)]
Fixed ScriptGroup finalizer for old API

Bug: 28242626

ScriptGroup finalizer clears out the list of closures, which is
uninitialized for the old API.

Need to check null first, before accessing the list.

Change-Id: Ibf914e17a0878c8c561f823c5f6f6f6619594de1
(cherry picked from commit 07837d6dab331b1693aa3689223b4012012a7fad)

8 years agoDoze settings example not matching real keys
Henrik Baard [Tue, 19 Apr 2016 05:50:24 +0000 (07:50 +0200)]
Doze settings example not matching real keys

The keys used in the example for the Doze timeouts does
not match any real key. To avoid confusion the example
should match the existing keys.

Change-Id: I0306c542dac9e38aea7d172a3e0f7472d327c73c

8 years agoMerge "Fix issues of different phone objects sharing same mConnectionApns list."
Robert Greenwalt [Mon, 18 Apr 2016 21:58:05 +0000 (21:58 +0000)]
Merge "Fix issues of different phone objects sharing same mConnectionApns list."

8 years agoMerge "Track libcore change 5458546631c65f6d375b6a1780d36d0abb5b95af"
Yi Kong [Mon, 18 Apr 2016 09:57:23 +0000 (09:57 +0000)]
Merge "Track libcore change 5458546631c65f6d375b6a1780d36d0abb5b95af"

8 years agoMerge "When the applicantion is removed, reset network permission of this uid."
Lorenzo Colitti [Mon, 18 Apr 2016 06:54:00 +0000 (06:54 +0000)]
Merge "When the applicantion is removed, reset network permission of this uid."

8 years agoMerge "Frameworks/base: Fix old code in MediaPlayer"
Andreas Gampe [Sat, 16 Apr 2016 00:40:00 +0000 (00:40 +0000)]
Merge "Frameworks/base: Fix old code in MediaPlayer"

8 years agoTrack libcore change 5458546631c65f6d375b6a1780d36d0abb5b95af
Yi Kong [Tue, 12 Apr 2016 16:17:57 +0000 (17:17 +0100)]
Track libcore change 5458546631c65f6d375b6a1780d36d0abb5b95af

Bug: 28108421
Change-Id: Id0253fed98790f4c8eeb27877e14cf53474f29f0

8 years agoMerge "libfilterfw_jni needs libmedia include paths"
Christopher Wiley [Thu, 14 Apr 2016 18:19:16 +0000 (18:19 +0000)]
Merge "libfilterfw_jni needs libmedia include paths"

8 years agoMerge "libstorage needs libbinder include paths"
Treehugger Robot [Thu, 14 Apr 2016 18:03:25 +0000 (18:03 +0000)]
Merge "libstorage needs libbinder include paths"

8 years agolibfilterfw_jni needs libmedia include paths
Christopher Wiley [Thu, 14 Apr 2016 17:21:03 +0000 (10:21 -0700)]
libfilterfw_jni needs libmedia include paths

This library includes libmedia headers, and needs its full include path.

Bug: 27804373
Test: This code compiles with a slightly modified libmedia include
      path.

Change-Id: Ic9253c0f0e7236435f36f2baf47411ca7db187cd

8 years agolibstorage needs libbinder include paths
Christopher Wiley [Thu, 14 Apr 2016 17:16:33 +0000 (10:16 -0700)]
libstorage needs libbinder include paths

This library is almost all binder related.  It should be
using libbinder's published include path.

Bug: 27804373
Test: This library compiles with a slightly modified libbinder include
      path.

Change-Id: Ib8e00b59604cdda69ec36cf1c90150b4b9033879

8 years agoMerge "Track libcore change 135ea6cd4f7ebe2f225351a1928d8a62bce5cb00"
Shubham Ajmera [Thu, 14 Apr 2016 15:39:04 +0000 (15:39 +0000)]
Merge "Track libcore change 135ea6cd4f7ebe2f225351a1928d8a62bce5cb00"

8 years agoMerge "Change storage duration to static for native choreographer."
Martijn Coenen [Thu, 14 Apr 2016 09:52:10 +0000 (09:52 +0000)]
Merge "Change storage duration to static for native choreographer."