Commit Graph

214615 Commits

Author SHA1 Message Date
Yohann Roussel
5cd1569eb9 Add a test app for suppressed exceptions
Declare MultiDexLegacyTestApp_corrupted with a fake secondary dex (size
0). This is to test correct correct handling of suppressed exception on
API 19 or 20.

Bug: 28808797
Change-Id: Ib700d7e2ecaaf026ada2c974f0410fd98d773926
2016-06-29 17:10:28 +02:00
Andre Eisenbach
233f48e3fa Merge "Fix GATT Characteristic write type serialization" 2016-05-14 00:11:42 +00:00
Treehugger Robot
3b2f202599 Merge "Fix "TelephonyRegistry notifies wrong data status"" 2016-05-13 17:46:41 +00:00
Elliott Hughes
e8f373e442 Merge "Make android_net_NetUtils include what it actually uses." 2016-05-13 15:04:18 +00:00
xu.peng
9071ced8b0 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
2016-05-13 05:38:21 +00:00
Treehugger Robot
21d061ec2e Merge "Fix documentation bug in SQLiteDatabase" 2016-05-12 22:25:20 +00:00
Treehugger Robot
b44d4207c1 Merge "ContentValues: improve documentation" 2016-05-12 22:17:32 +00:00
Steve Pomeroy
1276b5f29e ContentValues: improve documentation
Correct and clarify the documentation for ContentValues.

Change-Id: Iddf54da093e97c32da2568eab8802b1b2715303b
Signed-off-by: Steve Pomeroy <steve@staticfree.info>
2016-05-12 21:18:15 +00:00
Steve Pomeroy
8fc3144fa5 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>
2016-05-12 21:16:55 +00:00
Chad Brubaker
d58e7b2d15 Merge "Support TrustedCertificateStore.findAllIssuers" 2016-05-12 19:18:47 +00:00
Chad Brubaker
d4b6c696e1 Support TrustedCertificateStore.findAllIssuers
(cherry-picked from commit aa6c3c3e25)
Change-Id: I176ec42c9907e50ee218e4fb352b530ca797be46
2016-05-12 11:15:47 -07:00
Elliott Hughes
7691b78fbb Make android_net_NetUtils include what it actually uses.
Bug: http://b/28519060
Change-Id: I49dcd358d3fc8e0ba5c5e0b50a0f5dcc63281d22
2016-05-11 15:18:13 -07:00
Miao Wang
9f2a1979a7 Merge "[RenderScript] Interrupt mMessageThread when tearing down context." 2016-05-11 19:13:00 +00:00
Joachim Sauer
b64859d899 Merge "Fix AbstractStringBuilder gaining extra APIs." 2016-05-11 13:47:09 +00:00
Joachim Sauer
a305ee1027 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 91f4aec3cc)

Bug: 27582395
Change-Id: I0b85c2c84f3e52ffe7864728d083f9c6ea7304ef
2016-05-11 14:19:44 +01:00
Jakub Pawlowski
2168fc29a2 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
2016-05-11 06:53:10 +00:00
Miao Wang
4a574806e6 [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
2016-05-10 16:48:25 -07:00
Hans Boehm
a5ca0ca886 Merge "Clear more native pointers in finalizers" 2016-05-10 23:41:31 +00:00
Hans Boehm
ad3cc3c63c 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
2016-05-10 15:33:53 -07:00
Yi Kong
4c7169fadf Merge "Track libcore change e2f147b9b14c7645f29e92758f811a18258feef4" 2016-05-09 16:40:38 +00:00
Yi Kong
c2b4f49241 Track libcore change e2f147b9b14c7645f29e92758f811a18258feef4
Bug: 28582540
Change-Id: Ic944995957aa1a5ec65ecab2a8d4b8587094ccc8
2016-05-09 16:04:55 +00:00
Calin Juravle
53ce983c22 Merge "Read -Xjittransitionweight from system properties." 2016-05-09 15:43:41 +00:00
Treehugger Robot
e8579b12a3 Merge "Fix divergent equals and hashCode behavior" 2016-05-06 23:20:02 +00:00
Ajay Panicker
04a7cfcf73 Merge "List the CONNECTION_STATE_CHANGED broadcast for MAP as protected" 2016-05-06 23:18:51 +00:00
Ajay Panicker
1be1934e81 Merge "Protect TRANSFER_COMPLETE broadcast" 2016-05-06 23:18:32 +00:00
Pavlin Radoslavov
f74b830e68 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
2016-05-06 12:05:47 -07:00
Hans Boehm
e3a25ad692 Merge "Improve grammar in startService() documentation." 2016-05-06 17:25:47 +00:00
Ajay Panicker
dde98961bb Protect TRANSFER_COMPLETE broadcast
Bug: 28621801
Change-Id: Ia90abd00694ae80000f59ee0a17826592fd2159b
2016-05-05 18:59:44 -07:00
Hans Boehm
fb9f6acd6f Improve grammar in startService() documentation.
Change-Id: If72f710caa2e85512636d6f7ddacff2426cfb835
2016-05-05 13:09:28 -07:00
Amith Yamasani
6f28d02bed Merge "Fix the issue that App crash on startForeground." 2016-05-05 17:45:53 +00:00
Neil Fuller
f6aabd95df 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
2016-05-05 15:06:48 +00:00
Wang Le
179ebbe6c9 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>
2016-05-05 21:04:57 +08:00
Neil Fuller
8bea855f75 Track external/icu API changes for factory registration
Bug: 28583844
(cherry picked from commit e7fda97fff)

Change-Id: I4a411184fe002ea812349e49d07d17c62c66d842
2016-05-05 11:38:45 +01:00
Paul Duffin
bd63ae8c83 ICU4J: Hide constants that can change between releases
Bug: 27830659
(cherry picked from commit 71498f107c)

Change-Id: I007ed563d78cdf36ddd0e36ae72f118189772e5c
2016-05-05 11:34:01 +01:00
Paul Duffin
2391234242 Remove RawCollationKey/ByteArrayWrapper from the public API
Bug: 22023363
(cherry picked from commit baa72515f6)

Change-Id: If81d9a67ba9edf15688f4369390a6734d92a8f3c
2016-05-05 11:33:15 +01:00
Vikas Marwaha
683168c10f Merge "Fix issue #25727069: Top sleeping activity overrides foreground service" 2016-05-03 20:50:39 +00:00
Ajay Panicker
8a9d642546 List the CONNECTION_STATE_CHANGED broadcast for MAP as protected
Bug: 28527879
Change-Id: Ifb2db87677e92022814bb9704c26009d249ac6ce
2016-05-03 18:21:34 +00:00
Ajay Panicker
0d14c01a3e Merge "List the SDP_RECORD broadcast as protected" 2016-05-03 17:22:57 +00:00
Ajay Panicker
4f86d76cf4 List the SDP_RECORD broadcast as protected
Bug: 28257589
Change-Id: I97ef91fa3a7f7ef62fd96ca079e0a6d5a957bc71
2016-05-03 00:28:47 +00:00
Dianne Hackborn
7064c019a7 Fix issue #25727069: Top sleeping activity overrides foreground service
Change-Id: I9a085cd650604f9d6277ad343bf3c3852324cafc
2016-05-02 14:09:53 -07:00
Treehugger Robot
daf6bdba0e Merge "FloatingToolbar: Fix javadoc for closeOverflow()." 2016-04-29 09:36:05 +00:00
Adam Lesinski
da66fa7526 Merge "AAPT: ProGuard config for components in main dex." 2016-04-28 20:06:19 +00:00
Chih-hung Hsieh
6e35557ad3 Merge "Fix google-explicit-constructor warnings." 2016-04-28 18:47:00 +00:00
Sebastian Kaspari
eb101a700c FloatingToolbar: Fix javadoc for closeOverflow().
Change-Id: I450fc603ae5fe49f08f580594352cc1120cc104d
2016-04-28 16:34:33 +00:00
Calin Juravle
7116e4b999 Read -Xjittransitionweight from system properties.
Bug: 27865109

(cherry picked from commit 8d74de5546)

Change-Id: Id4f0668ea212f0fd82d32437ea251118bfce1ae2
2016-04-28 16:34:40 +01:00
Narayan Kamath
3f0355f972 Merge "ZipUtils: Fix wrong timestamps when getEntryInfo" 2016-04-28 12:13:38 +00:00
Shammi Khattar
1ead474f61 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
2016-04-28 12:13:16 +00:00
Chih-Hung Hsieh
c6baf563ba Fix google-explicit-constructor warnings.
Bug: 28341362
Change-Id: Ibdd6a210bb7ff228e3624cc319169f77aca3b51e
2016-04-27 11:38:12 -07:00
Rohit Agrawal
6ba873faec 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 86229cb622)
2016-04-27 11:26:55 -07:00
Dimitry Ivanov
4dd00e93f3 Merge "zygote: Remove NativeLoader initialization step" 2016-04-27 18:24:33 +00:00