4803 Commits

Author SHA1 Message Date
Narayan Kamath
2f4df690e5 am abf7f323: am f5b7778e: Merge "Pass MUTF-8 paths to open(2) instead of UTF-8."
* commit 'abf7f323400f2b896280aea6f0d512f08feee50b':
  Pass MUTF-8 paths to open(2) instead of UTF-8.
2015-06-08 16:59:09 +00:00
tao.pei
d415303c4d Pass MUTF-8 paths to open(2) instead of UTF-8.
Modified UTF-8 and UTF-8 differ with respect to how they handle
non-BMP characters. Modified UTF-8 uses 2 x 3 byte encodings, one
each for the high and low surrogate, whereas UTF-8 uses a single
4 byte sequence.

File systems don't specify and encoding and therefore the file name
encoding will vary depending on how it's created. All standard
Java APIs (java.io.File / FileOutputStream etc.) use Modified UTF-8
filenames, so we assume that's the status quo.

We will also audit code from the rest of the platform to make sure
that file names are encoded consistently.

bug: 21578056

Change-Id: I8e37af7f7cc442805a48899917f8e61c8f81fba6
2015-06-08 15:14:08 +00:00
Jeff Brown
faa4a6b0bf am 95fe4e20: am c203e61d: Merge "Fix Bitmap parceling through ashmem." into mnc-dev
* commit '95fe4e20604a4a38651841b451e41705e2571054':
  Fix Bitmap parceling through ashmem.
2015-06-06 04:48:01 +00:00
Jeff Brown
a316c5dfbc Fix Bitmap parceling through ashmem.
Fixes a bug where the Bitmap parceling code was unable to deal with
sending bitmaps through Parcels that disallow file descriptors.
Uses extended functionality of the Parcel blob interface to pass
buffers around more efficiently while adapting to whether FDs
are allowed.

Bug: 21428802
Change-Id: If24926f4388d29aa2aac627000436beb015edcb9
2015-06-06 04:23:45 +00:00
Svet Ganov
bfc8742783 am acce6dda: am e0748316: Merge "Update the pdfium library - framework" into mnc-dev
* commit 'acce6dda97e57db562f751bdd5ff72ea058dd970':
  Update the pdfium library - framework
2015-06-05 01:15:55 +00:00
Svet Ganov
fbd0288655 Update the pdfium library - framework
Change-Id: I4880e9310c02c6e26d4560fb8515f2ce51c597f4
2015-06-04 14:57:06 -07:00
Chris Craik
76c3563fe8 am 704b3bd4: am f1bbdf51: Merge "FastJNI for android.os.Trace" into mnc-dev
* commit '704b3bd4a28bf9ec5d69d527cc6e7d69b1dccbaf':
  FastJNI for android.os.Trace
2015-06-04 03:05:04 +00:00
Chris Craik
f1bbdf5182 Merge "FastJNI for android.os.Trace" into mnc-dev 2015-06-04 02:42:52 +00:00
Chris Craik
a29cb3d68e am 1bd73625: am 1b54fb27: Delete MAKE_ENUM_FLAGS
* commit '1bd73625bda2fe10762911281632c1ac5ad2d3bc':
  Delete MAKE_ENUM_FLAGS
2015-06-03 21:11:22 +00:00
Chris Craik
a2235eedde FastJNI for android.os.Trace
bug:21566713

Change-Id: I129e405fe46268b9d40974d3a43f06a1faf4cadd
2015-06-03 13:46:12 -07:00
Chris Craik
1b54fb27ac Delete MAKE_ENUM_FLAGS
bug:21595702

Settle on namespace-enum for consistency. Also removes k prefix.

Change-Id: Ib89f94cb9263de40b6e4636577dca4860867d0d8
2015-06-03 13:42:21 -07:00
Raph Levien
d5f58e4adc am 8d633080: am e7934a65: Merge "Apply contextStart consistently in getRunAdvance" into mnc-dev
* commit '8d6330804826424bb99c0805657414558257419d':
  Apply contextStart consistently in getRunAdvance
2015-06-03 18:49:24 +00:00
Raph Levien
36ff86c9a3 Apply contextStart consistently in getRunAdvance
The contextStart needs to be applied to all offsets relative to the
actual start of context. The code was missing "offset", which caused
mischief especially in mixed LTR and RTL text.

Bug: 21573666
Change-Id: I47a1b6cde5862442b9c7236ee72b2ceb0df9b2e9
2015-06-03 10:58:33 -07:00
Christopher Tate
140f2b41af Close race condition in binderDied()
It was possible for a binderDied() call to occur while the death
recipient list containing the object was being iterated, in which
case we could invalidate an object reference out from under the
iteration, causing a VM abort.  We now interlock the binderDied()
deref operation with the list's locking semantics to prevent this.

Bug 15831054

(cherry picked from commit 090c08ff2a7525c830b4edfd1a79aa8ee3893c60)

Change-Id: If0027d3ac4da1153284a425dd9b2819a203481ab
2015-05-29 08:33:52 +00:00
Glenn Kasten
67cf94ba85 am b182d570: am 626f0dc7: Merge "Deprecations are warnings not errors" into mnc-dev
* commit 'b182d570c46330e95301dd46bc15c1b631e9ca42':
  Deprecations are warnings not errors
2015-05-28 23:30:22 +00:00
Glenn Kasten
626f0dc73b Merge "Deprecations are warnings not errors" into mnc-dev 2015-05-28 22:51:17 +00:00
David Srbecky
9d698acfc4 am efe01cc6: am 3976a569: Merge "Replace --include-cfi with --generate-debug-info."
* commit 'efe01cc62ee49f57c34726ec9c13ddaa9c1b1d8b':
  Replace --include-cfi with --generate-debug-info.
2015-05-28 20:16:45 +00:00
David Srbecky
f39477b592 Replace --include-cfi with --generate-debug-info.
This follows a change in dex2oat.

Change-Id: I46b61298ca00bee2e83080456b180d63efd95b8f
2015-05-28 17:16:09 +01:00
Glenn Kasten
85d99546a0 Deprecations are warnings not errors
Change-Id: Ib77f45fdc27ea53f1dd181f48c76810d03f8dcdb
2015-05-28 07:59:36 -07:00
Glenn Kasten
16144ac378 Merge "Add comments to indicate code review was done for bugs" into mnc-dev 2015-05-28 14:52:37 +00:00
John Reck
0781a2f116 Fix reconfigure & setPremult alpha handling
Bug: 20948129
Change-Id: Ifba35e5d87772a304fd3655e4a2363b293a6d8ac
2015-05-27 16:29:17 -07:00
Martijn Coenen
99fbb56a0a Merge "Don't count lowmem mappings as memory used." into mnc-dev 2015-05-26 08:11:28 +00:00
Dianne Hackborn
fa4d547d58 Merge "Improve reporting to apps of transaction too large failures." into mnc-dev 2015-05-22 18:52:41 +00:00
Eric Laurent
843f1e0f94 Merge "sound trigger: fix wrong field type in JNI" into mnc-dev 2015-05-22 17:36:40 +00:00
Eric Laurent
89311c282a sound trigger: fix wrong field type in JNI
Bug: 20951546.
Change-Id: I44f6dd05888e335a70bd212eb6f9c468a338ff92
2015-05-22 10:30:13 -07:00
Martijn Coenen
ab3576e58a Don't count lowmem mappings as memory used.
Bug: 21268095
Change-Id: I1b5f42752752584e947af710e53896203fbe477c
2015-05-22 09:16:45 +02:00
Dianne Hackborn
e5c4262109 Improve reporting to apps of transaction too large failures.
If the app tried to do various things with too much data --
starting an activity, starting a service, sending a broadcast --
this would fairly silently fail with little indication of what
was going on.  Fix this in two ways:

- Now when the native code generates a TransactionTooLargeException,
  it may include an additional message in it telling you how much
  data was in the parcel being sent, to help you understand why
  this happening.

- In all the framework code paths where we call to the system and
  may fail, convert these failures into a a runtime exception and
  rethrow them back to the app so that it will clearly get the
  above message.

Change-Id: I745159b97d3edb6fca86aa09cbc40c1f15a7d128
2015-05-21 18:19:50 -07:00
Christopher Tate
7ca242e0b4 Merge "Close race condition in binderDied()" into mnc-dev 2015-05-21 20:27:12 +00:00
Leon Scroggins III
aba3ecb976 Merge "Fix overflow in NinePatchImpl." into mnc-dev 2015-05-21 19:05:46 +00:00
Paul McLean
d6c3404f59 Merge "Test for non-null AudioTrack() object in android_media_AudioTrack_setOutputDevice()." into mnc-dev 2015-05-21 16:21:48 +00:00
Leon Scroggins III
462dd01046 Fix overflow in NinePatchImpl.
Cast numXDivs to a size_t before adding 1, so that if numXDivs is 255
it does not overflow. Move the calculation outside of alloca().

BUG:20727488
Change-Id: I2ecc9d650338acba7316554cb72195e02816b1f8
2015-05-21 12:20:26 -04:00
Paul McLean
cef696e8b4 Test for non-null AudioTrack() object in android_media_AudioTrack_setOutputDevice().
Change-Id: Ibf77bb0757720aa25eaaf6e603ab446257430453
2015-05-21 09:16:40 -07:00
Eric Laurent
97de0c9a29 Merge "AudioService: indicate system ready to AudioFlinger" into mnc-dev 2015-05-21 16:13:04 +00:00
Eric Laurent
0867bed9dd AudioService: indicate system ready to AudioFlinger
Indicate when JAVA services are ready to AudioFlinger so that
calls to power manager and scheduling service can be enabled.

Bug: 11520969.
Change-Id: Id977cab3208c34709011703d2dfdcf552e60371b
2015-05-20 17:39:21 -07:00
Andy Hung
b14b7e188f Merge "Fix AudioTrack, AudioRecord, AudioFormat API" into mnc-dev 2015-05-20 23:01:39 +00:00
Andy Hung
e90a0a88f4 Fix AudioTrack, AudioRecord, AudioFormat API
Rename getNativeFrameCount to getBufferSizeInFrames
Remove throw declaration on IllegalArgumentException and
IllegalStateException

Bug: 20887665
Bug: 21304902
Change-Id: Ia85d8010be46524b9a8b93105b16b7b9480f6bd9
2015-05-20 22:58:31 +00:00
Eric Laurent
5aa384cdc8 Merge "AudioFormat: more compressed formats" into mnc-dev 2015-05-20 16:22:01 +00:00
Christopher Tate
090c08ff2a Close race condition in binderDied()
It was possible for a binderDied() call to occur while the death
recipient list containing the object was being iterated, in which
case we could invalidate an object reference out from under the
iteration, causing a VM abort.  We now interlock the binderDied()
deref operation with the list's locking semantics to prevent this.

Bug 15831054

Change-Id: If0027d3ac4da1153284a425dd9b2819a203481ab
2015-05-19 18:34:20 -07:00
Eric Laurent
cae3466333 AudioFormat: more compressed formats
Add MP3 and AAC as valid AudioFormat encodings.
Only @hide for now to allow system components to manage
audio patches with those formats.

Bug: 18649264.
Change-Id: I5ef5f151783308e31d8ac5b29454589077ef62ea
2015-05-19 16:46:52 -07:00
Paul Jensen
c1a9436d27 Merge "Query HTTP proxy for network via a new API to avoid permissions exceptions" into mnc-dev 2015-05-19 17:58:11 +00:00
Derek Sollenberger
252893df57 Merge "Check that the parcel contained the expected amount of region data." into mnc-dev 2015-05-19 14:38:52 +00:00
Adam Powell
863e65e123 Merge "Add -round and -notround qualifier to android runtime/aapt" into mnc-dev 2015-05-18 21:30:21 +00:00
Glenn Kasten
14d226a2cd Add comments to indicate code review was done for bugs
Bug: 20818955
Bug: 20890069
Change-Id: I243205b99b198eb1b5a1a027b27cbb7d5aaaa8db
2015-05-18 13:54:40 -07:00
Riley Andrews
721ae5fec5 Add internal bitmap api for creating immutable ashmem backed bitmaps.
Bug 21037890
Change-Id: I827e83dd75e301e7d93ead5efdd744f0d8435ae5
2015-05-18 19:55:39 +00:00
Riley Andrews
39d7f30ebe Use ashmem to optimize all bitmap copies.
Bug 21037890
Change-Id: Ie32ca3a0c527755f1a1b77db7548cb9629e2001b
2015-05-18 19:55:21 +00:00
Derek Sollenberger
cdadfc211d Check that the parcel contained the expected amount of region data.
bug:20883006
Change-Id: Ib47a8ec8696dbc37e958b8dbceb43fcbabf6605b
2015-05-18 14:29:02 -04:00
Derek Sollenberger
beda8613ad Merge "Ensure that unparcelling Region only reads the expected number of bytes" into mnc-dev 2015-05-18 17:37:08 +00:00
Paul Jensen
cee9b51c4b Query HTTP proxy for network via a new API to avoid permissions exceptions
Add @hidden ConnectivityManager.getProxyForNetwork() API.

Bug:20470604
Change-Id: I6a9bc4afc8273bc43b14cdeccfedbbf3ff66be40
2015-05-18 17:05:51 +00:00
Jérôme Poichet
58cff53a5d Merge "SkScalarDiv and its variants are deprecated" into mnc-dev 2015-05-16 02:05:12 +00:00
Adam Lesinski
2738c96d99 Add -round and -notround qualifier to android runtime/aapt
The round qualifier denotes a device with a screen shape that
is round. The qualifier shows up after the 'long/notlong' qualifier
and before the orientation 'port/land/square' qualifiers.

Change-Id: I3044258b2703a9165694b79725bade770fa6cea1
2015-05-15 15:10:58 -07:00