OSDN Git Service
Robert Greenwalt [Tue, 24 May 2016 15:57:09 +0000 (15:57 +0000)]
Merge "Add free short codes for Direct Carrier Billing."
Sergio Giro [Tue, 24 May 2016 11:56:50 +0000 (11:56 +0000)]
Merge "ZygoteInit: install AndroidKeyStoreProvider in the Zygote"
Sergio Giro [Tue, 17 May 2016 15:52:33 +0000 (16:52 +0100)]
ZygoteInit: install AndroidKeyStoreProvider in the Zygote
Instead of in activity thread. That way, we can warm up (ie,
precompute cached values) this provider and AndroidBCWorkaroundProvider
(which are installed together) so that the computation doesn't
happen in the app. As a result, the time spent in the first call to
SSLSocketFactory.getDefault() decreases by ~5ms in angler userdebug.
Measured with an app calling SSLSocketFactory.getDefault in onCreate
and timed it with System.currentTimeMillis() .
(cherry picked from commit
69de32071c8ca7fa2277e4340a320b7df6fe963d)
Bug:
28545496
Change-Id: Ic4e11d058fb404eaa92db925a3e765fc3bef7ae2
Vasco Brito [Thu, 19 May 2016 16:30:43 +0000 (17:30 +0100)]
Add free short codes for Direct Carrier Billing.
All short codes are used by DCB on Google Play. Fixed default pattern for countries added recently.
Internal bug b/
27911552.
Change-Id: I9b4a2bb30f2c6de058cc2adb75b67c4f69182198
Signed-off-by: Vasco Brito <vascob@google.com>
Adam Lesinski [Thu, 19 May 2016 23:25:09 +0000 (23:25 +0000)]
Merge "Fix misc-macro-parentheses warnings in aapt and androidfw."
Treehugger Robot [Thu, 19 May 2016 23:24:03 +0000 (23:24 +0000)]
Merge "Fix misc-macro-parentheses warnings in services jni."
Treehugger Robot [Thu, 19 May 2016 23:02:55 +0000 (23:02 +0000)]
Merge "Fix misc-macro-parentheses warnings in hwui and graphic 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
Chih-Hung Hsieh [Thu, 19 May 2016 22:25:50 +0000 (15:25 -0700)]
Fix misc-macro-parentheses warnings in hwui and graphic jni.
Bug:
28705665
Change-Id: I7d1eb38a713fe6cc7f41a3cc3f2f9d0aa0114b2c
Chih-Hung Hsieh [Thu, 19 May 2016 22:19:22 +0000 (15:19 -0700)]
Fix misc-macro-parentheses warnings in aapt and androidfw.
Bug:
28705665
Change-Id: Iac353e66718aadad384183cf300330695df25909
Andre Eisenbach [Thu, 19 May 2016 21:59:25 +0000 (21:59 +0000)]
Merge "Fix GATT autoConnect race condition"
Sungki Kim [Thu, 19 May 2016 17:18:07 +0000 (10:18 -0700)]
Fix GATT autoConnect race condition
As pointed out here:
https://code.google.com/p/android/issues/detail?id=69834
registerApp() causes onClientRegistered() to happen before autoConnect
is set. This patch fixes that.
Bug:
28861330
Change-Id: Ie1174c0f224f5084178439420b383164d22d542c
Alex Light [Wed, 18 May 2016 21:05:41 +0000 (21:05 +0000)]
Merge "Make 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)
Neil Fuller [Wed, 18 May 2016 11:45:35 +0000 (11:45 +0000)]
Merge "Add 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
Sergio Giro [Tue, 17 May 2016 15:50:50 +0000 (15:50 +0000)]
Merge "ZygoteInit: warm up JCA providers during preload"
Treehugger Robot [Tue, 17 May 2016 14:07:14 +0000 (14:07 +0000)]
Merge "Synchronize access of mSubscriptions"
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
Andre Eisenbach [Sat, 14 May 2016 00:11:42 +0000 (00:11 +0000)]
Merge "Fix GATT Characteristic write type serialization"
Treehugger Robot [Fri, 13 May 2016 17:46:41 +0000 (17:46 +0000)]
Merge "Fix "TelephonyRegistry notifies wrong data status""
Elliott Hughes [Fri, 13 May 2016 15:04:18 +0000 (15:04 +0000)]
Merge "Make android_net_NetUtils include what it actually uses."
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
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
Treehugger Robot [Thu, 12 May 2016 22:25:20 +0000 (22:25 +0000)]
Merge "Fix documentation bug in SQLiteDatabase"
Treehugger Robot [Thu, 12 May 2016 22:17:32 +0000 (22:17 +0000)]
Merge "ContentValues: 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>
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>
Chad Brubaker [Thu, 12 May 2016 19:18:47 +0000 (19:18 +0000)]
Merge "Support 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
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
Miao Wang [Wed, 11 May 2016 19:13:00 +0000 (19:13 +0000)]
Merge "[RenderScript] Interrupt mMessageThread when tearing down context."
Joachim Sauer [Wed, 11 May 2016 13:47:08 +0000 (13:47 +0000)]
Merge "Fix 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
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
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
Hans Boehm [Tue, 10 May 2016 23:41:30 +0000 (23:41 +0000)]
Merge "Clear 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
Yi Kong [Mon, 9 May 2016 16:40:38 +0000 (16:40 +0000)]
Yi Kong [Thu, 5 May 2016 10:32:54 +0000 (11:32 +0100)]
Track libcore change
e2f147b9b14c7645f29e92758f811a18258feef4
Bug:
28582540
Change-Id: Ic944995957aa1a5ec65ecab2a8d4b8587094ccc8
Calin Juravle [Mon, 9 May 2016 15:43:41 +0000 (15:43 +0000)]
Merge "Read -Xjittransitionweight from system properties."
Treehugger Robot [Fri, 6 May 2016 23:20:01 +0000 (23:20 +0000)]
Merge "Fix divergent equals and hashCode behavior"
Ajay Panicker [Fri, 6 May 2016 23:18:51 +0000 (23:18 +0000)]
Merge "List the CONNECTION_STATE_CHANGED broadcast for MAP as protected"
Ajay Panicker [Fri, 6 May 2016 23:18:32 +0000 (23:18 +0000)]
Merge "Protect TRANSFER_COMPLETE broadcast"
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
Hans Boehm [Fri, 6 May 2016 17:25:47 +0000 (17:25 +0000)]
Merge "Improve grammar in startService() documentation."
Ajay Panicker [Fri, 6 May 2016 01:59:44 +0000 (18:59 -0700)]
Protect TRANSFER_COMPLETE broadcast
Bug:
28621801
Change-Id: Ia90abd00694ae80000f59ee0a17826592fd2159b
Hans Boehm [Thu, 5 May 2016 20:09:28 +0000 (13:09 -0700)]
Improve grammar in startService() documentation.
Change-Id: If72f710caa2e85512636d6f7ddacff2426cfb835
Amith Yamasani [Thu, 5 May 2016 17:45:53 +0000 (17:45 +0000)]
Merge "Fix the issue that App crash on startForeground."
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
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>
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
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
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
Vikas Marwaha [Tue, 3 May 2016 20:50:39 +0000 (20:50 +0000)]
Merge "Fix issue #
25727069: Top sleeping activity overrides foreground service"
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
Ajay Panicker [Tue, 3 May 2016 17:22:57 +0000 (17:22 +0000)]
Merge "List 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
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
Treehugger Robot [Fri, 29 Apr 2016 09:36:05 +0000 (09:36 +0000)]
Merge "FloatingToolbar: Fix javadoc for closeOverflow()."
Adam Lesinski [Thu, 28 Apr 2016 20:06:19 +0000 (20:06 +0000)]
Merge "AAPT: ProGuard config for components in main dex."
Chih-hung Hsieh [Thu, 28 Apr 2016 18:47:00 +0000 (18:47 +0000)]
Merge "Fix google-explicit-constructor warnings."
Sebastian Kaspari [Tue, 9 Feb 2016 15:22:08 +0000 (16:22 +0100)]
FloatingToolbar: Fix javadoc for closeOverflow().
Change-Id: I450fc603ae5fe49f08f580594352cc1120cc104d
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
Narayan Kamath [Thu, 28 Apr 2016 12:13:37 +0000 (12:13 +0000)]
Merge "ZipUtils: 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
Chih-Hung Hsieh [Wed, 27 Apr 2016 18:29:23 +0000 (11:29 -0700)]
Fix google-explicit-constructor warnings.
Bug:
28341362
Change-Id: Ibdd6a210bb7ff228e3624cc319169f77aca3b51e
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)
Dimitry Ivanov [Wed, 27 Apr 2016 18:24:33 +0000 (18:24 +0000)]
Merge "zygote: Remove NativeLoader initialization step"
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
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
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
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
Shubham Ajmera [Wed, 27 Apr 2016 09:45:03 +0000 (09:45 +0000)]
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
Treehugger Robot [Tue, 26 Apr 2016 18:32:50 +0000 (18:32 +0000)]
Merge "Alarm icon is not shown for secondary users"
Shubham Ajmera [Tue, 26 Apr 2016 16:48:26 +0000 (17:48 +0100)]
Track libcore change
13331bc0dd87b029b194e5aca4487e38d18da188
Bug:
27214236
Change-Id: I3074436baaa16fe19a158aa3aafdb79b534f792b
Calin Juravle [Mon, 25 Apr 2016 11:09:00 +0000 (11:09 +0000)]
Merge "Handle dalvik.vm.usejitprofiles property"
Neil Fuller [Mon, 25 Apr 2016 09:31:40 +0000 (09:31 +0000)]
Tobias Thierer [Mon, 25 Apr 2016 09:08:43 +0000 (09:08 +0000)]
Merge "Avoid instantiations of Boolean that are immediately unboxed."
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
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
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)."
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
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
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
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
Tobias Thierer [Fri, 22 Apr 2016 10:27:26 +0000 (10:27 +0000)]
Merge "frameworks/base: Avoid Long object allocations in Long.valueOf()"
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
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
Tobias Thierer [Thu, 21 Apr 2016 13:23:18 +0000 (13:23 +0000)]
Merge "Integer.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
Adam Lesinski [Wed, 20 Apr 2016 22:37:18 +0000 (22:37 +0000)]
Merge "Doze settings example not matching real keys"
Yang Ni [Wed, 20 Apr 2016 18:14:08 +0000 (18:14 +0000)]
Merge "Made 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)
Yi Kong [Wed, 20 Apr 2016 15:36:53 +0000 (15:36 +0000)]
Yi Kong [Wed, 20 Apr 2016 14:15:52 +0000 (15:15 +0100)]
Track libcore change
be1608980825868eb1c70fab6eb86fe06bd304ce
Bug:
27704598
Change-Id: I5cb900c7b48bc7b48ed0ea1110ff834e1d316de7
Yang Ni [Tue, 19 Apr 2016 18:02:01 +0000 (18:02 +0000)]
Merge "Fixed 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)
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