195589 Commits

Author SHA1 Message Date
Winson Chung
1bf9293501 Merge "Fixing a few accessibility issues." into mnc-dev 2015-06-17 22:59:31 +00:00
Xiaohui Chen
b41c9f7f39 system_server: add two child chains to firewall
This is an attempt to speed up getting out of device idle.  It groups
uid firewall rules in these child chains so we can attach/detach a whole
chain instead of individual uid rules.

BUG:21446713
Change-Id: Ie8f392da2deabe7cc86a9ecf4ed080163861d41e
2015-06-17 15:55:37 -07:00
Raph Levien
8edac58e55 Remove indents from TextView
On more careful reflection, the "indents" feature was not ready for
inclusion in the public API. It is still available at a lower level
in StaticLayout.

Also fix a minor typo in the doc for breakStrategy.

Bug: 20641996
Change-Id: I5cd976a536c48615980860396b1564b51b19e14a
2015-06-17 15:53:33 -07:00
Adam Powell
40359f73b1 Merge "Request application of WindowInsets when setting a content view" into mnc-dev 2015-06-17 22:42:17 +00:00
Dongwon Kang
a38e1f4ed9 Make MediaSessionService not blocked by AudioService.
Backgroud: As noted in b/20823981, MediaSessionService calls some
audio service methods while holding a lock and the audio service
methods also talk to other system services. And, deadlock happens when
the other system service fires another request to MediaSessionService
while holding its lock.

Example1) --- resolved by the change in MediaSessionRecord.java
T1: MediaSessionService.dispatchAdjustVolumeLocked()
     -> MediaSessionRecord.adjustVolume()
       -> +++AudioServiceInternal.adjustSuggestedStreamVolumeForUid()+++
         -> AudioService.adjustSuggestedStreamVolume()
           -> telecom.TelecomManager.isInCall() --- blocked by lock in TelecomManager.
T2: telecom.ConnectionServiceWrapper.handleCreateConnectionComplete()
     -> MediaSession.setActive()
       -> MediaSessionRecord$SessionStub.setActive()
         -> MediaSessionService.updateSession() --- blocked by lock in MediaSessionService.

Example2) --- resolved by the change in IAudioService.aidl
T1: MediaSessionService.dispatchAdjustVolumeLocked()
     -> IAudioService.adjustSuggestedStreamVolume()
       -> AudioService.adjustSuggestedStreamVolume()
         -> telecom.TelecomManager.isInCall() --- blocked by lock in TelecomManager.
T2: telecom.ConnectionServiceWrapper.handleCreateConnectionComplete()
     -> MediaSession.setActive()
       -> MediaSessionRecord$SessionStub.setActive()
         -> MediaSessionService.updateSession() --- blocked by lock in MediaSessionService.

Here, this change prevents the deadlock by making related audio IPC oneway
and calling the internal audio method without holding the lock.

Bug: 20823981
Change-Id: I4c4b2fc796f23d83be67f7edaacd7496c145d985
2015-06-17 15:37:50 -07:00
Fyodor Kupolov
d24e4eafdb OP_READ_PHONE_STATE AppOp check for getMergedSubscriberIds
Bug: 21726452
Bug: 21878243
Change-Id: I390386e28d8f948b8672a212ac413dfa61e54a15
2015-06-17 15:34:03 -07:00
Alan Viverette
56bbeff99a Clear/restore calling identity in AccessibilityInteractionClient
To quote sendAccessibilityEvent(), "it is possible that this manager is
in the same process as the service but client using it is called through
Binder from another process."

Bug: 21737301
Change-Id: I8d4699a0ca8187a12235741ce420948061798f27
2015-06-17 15:33:54 -07:00
Wei Liu
ae363d2db4 Wear doesn't need Shell to send notification when bugreport captured.
b/19179040

Change-Id: Iec74e1e55adee16c8674f28a6e7d697499b85acf
2015-06-17 15:32:05 -07:00
Christopher Ferris
ad81791641 Add libwilhelm to app_process.
If an app exposes new/delete from a shared library, the libwilhelm
shared library can wind up using the new from the app shared library,
and the delete from libc++. It is completely legal for the app to
export new/delete in this way, so in order to avoid this situation,
preload libwilhelm in the zygote. This forces libwilhelm to always
resolve the new/delete from libc++.

This library cannot be added to android_runtime since libwilhelm
has a shared library which depends on android_runtime.

Bug: 21032018
Change-Id: Id89c196df62d98d62855a1421f397b75a7e990a9
2015-06-17 15:30:29 -07:00
Chet Haase
8473f5a768 ImageView updates cached drawable dimensions when drawable updates
Changes to drawable dimensions were not propagated to cached dimension
values in ImageView. Now this is done when the drawable is invalidated.

Issue #18798152  ImageView caches wrong value of mDrawableWidth and mDrawableHeight

Change-Id: I8da7d82b0543fa02d8ef3d896595bd0e5ea2a61e
2015-06-17 15:28:25 -07:00
Hyunyoung Song
ccf6c68147 AppWidgetServiceImpl should use ParceledListSlice as return object
b/19904873

> Reason: to prevent TransactionTooLargeException from occuring when
binder transaction size goes over the limit.

Change-Id: I054cb161d235234f3ccdaadd70314163e690b0db
2015-06-17 15:23:31 -07:00
Alan Viverette
2b18e42b7b Merge "Seekbar track background alpha should be disabledAlpha" into mnc-dev 2015-06-17 22:20:21 +00:00
Dianne Hackborn
22433a337a Merge "Fix issue #21814207 and issue #21814212 (alarm manager)" into mnc-dev 2015-06-17 22:18:37 +00:00
Miao Wang
fb675a5396 [RenderScript] Add documentation for IntrinsicBLAS, and @hide
annotations.

bug: 21039492
Change-Id: I50a6beca22c9e524a76925d8e497b2618177491d
2015-06-17 15:17:18 -07:00
Alan Viverette
3e9c4a82f4 Seekbar track background alpha should be disabledAlpha
Bug: 21728222
Change-Id: I92f21e85781ba6ed51858112aa67e00bf10914ae
2015-06-17 15:16:08 -07:00
Alan Viverette
0d96264bb6 Merge "Revert spinner caret size to 24x24dp" into mnc-dev 2015-06-17 22:10:27 +00:00
Alan Viverette
e1c947263f Merge "Work around inconsistent views in RelativeLayout.onMeasure()" into mnc-dev 2015-06-17 22:10:11 +00:00
Yang Ni
77eba48889 Unpublish methods in class ScriptGroup.Binding
b/21187932

Made it an opaque class, since there is no need for a user to
inspect its fields after creation.

Change-Id: I9101afdecc5e25bb484d060be2a08c470faa92e5
2015-06-17 15:06:30 -07:00
Nicolas Prevot
ad81a28556 Merge "In intent picker dialog, change "personal apps" to "personal"." into mnc-dev 2015-06-17 21:56:37 +00:00
Alan Viverette
833e24f41f Revert spinner caret size to 24x24dp
Bug: 21754326
Change-Id: I5f52ee96e73c7a6bddb20dd4361e2084e77a6efe
2015-06-17 14:42:32 -07:00
Winson Chung
83ea6f71eb Fixing a few accessibility issues.
- Fixing issue with accessibility focus being incorrect when animating from home
- Fixing issue with accessibility focus being reset too aggressively when the
  list is scrolled
- Ensuring that recents handles forward/backwards scrolling

Bug: 19997561
Change-Id: I042666775862f4a20e8f22960e1f34e45fc5664e
2015-06-17 14:31:50 -07:00
Alan Viverette
67b5a68088 Merge "Resolve start/end insets in LayerDrawable.getIntrinsicWidth()" into mnc-dev 2015-06-17 21:31:06 +00:00
Alex Klyubin
a7f4d74296 Merge "Remove unnecessary PKCS#1 authorization on legacy keys." into mnc-dev 2015-06-17 21:27:57 +00:00
Chris Manton
69dd4bba65 Merge "Add keys to handle GSM and CDMA roaming/non roaming overrides" into mnc-dev 2015-06-17 21:21:40 +00:00
Alan Viverette
536652fe91 Resolve start/end insets in LayerDrawable.getIntrinsicWidth()
Bug: 21849185
Change-Id: If9b392d863e808d83a5d90bcc32df6cb9194cbdf
2015-06-17 14:09:53 -07:00
Alan Viverette
95b6fdebb4 Merge "Refactor Drawable.getDither() to isDither()" into mnc-dev 2015-06-17 21:06:07 +00:00
Chris Wren
e222a44429 Merge "Revert "remove setLatestEventInfo"" into mnc-dev 2015-06-17 21:03:24 +00:00
Chris Wren
dfdb52abe6 Revert "remove setLatestEventInfo"
This reverts commit 965097321df7fd57a35f63365b1de26ddcf35214.

Change-Id: I658bb2611fe8f983309e962d6772d1bd80ed586e
2015-06-17 21:03:11 +00:00
Alan Viverette
373954a1fd Refactor Drawable.getDither() to isDither()
Bug: 21342040
Change-Id: I801970c2a25289d670636ad5387ddf244fb48225
2015-06-17 13:59:31 -07:00
Alex Klyubin
2e3aaa7dc1 Remove unnecessary PKCS#1 authorization on legacy keys.
There is no need to authorize PKCS#1 signature padding scheme when
NONE padding scheme is authorized. NONE authorizes the use of any
padding scheme.

Bug: 18088752
Change-Id: I73ccb373d577c988acde372d972092278923c4e4
2015-06-17 13:58:00 -07:00
Alan Viverette
3e2e064a1f Work around inconsistent views in RelativeLayout.onMeasure()
Previously, RelativeLayout's measure pass could crash if the view's
children were modified without calling requestLayout() prior to the
next measure pass. This avoids the issue by only looking at the most
recent set of sorted views and preserves the previous behavior where
onMeasure() could return incorrect data.

Bug: 21123292
Change-Id: If471d071d1d2e2729cf13854d95b1f517c1fe73a
2015-06-17 13:42:32 -07:00
Andrew Lee
94f3082495 Merge "Add DisconnectCause for CDMA activated case." into mnc-dev 2015-06-17 20:42:06 +00:00
Adam Powell
41607d5a2b Request application of WindowInsets when setting a content view
For both PhoneWindow and VoiceInteractionSession, call
requestApplyInsets when the content view(s) change. This is generally
what the developer expects if the new view tree responds to insets in
any way.

Bug 21620924

Change-Id: I60a88af55bf85217c3587aa37f03fdc3fdce686d
2015-06-17 13:37:06 -07:00
Adam Powell
074c340420 Merge "Add matching xml attributes for existing Toolbar properties" into mnc-dev 2015-06-17 20:22:37 +00:00
Chris Wren
c20c1eec9e Merge "remove setLatestEventInfo" into mnc-dev 2015-06-17 20:05:11 +00:00
Dianne Hackborn
d1419ed29a Merge "Bring back screenshot API." into mnc-dev 2015-06-17 19:47:11 +00:00
Nicolas Prevot
e973baeba3 In intent picker dialog, change "personal apps" to "personal".
Also setting a maximum length for the translations.
For some languages, the translation of "personal apps" took
too much space.
"Personal" is also more consistent with the string "work", used
for personal -> work.

BUG: 20481950
Change-Id: I595072d7ff267f1a110a43bb708bf48840ea750f
2015-06-17 12:44:32 -07:00
Chris Wren
e565ee6ccb instrument volume controls
Bug: 21474639
Change-Id: I48641ae778f4e274c0f67ca6491102d978d3cd5f
2015-06-17 15:27:38 -04:00
Andy Hung
90b3b93de4 Merge "AudioTrack.Builder should throw exception on failure." into mnc-dev 2015-06-17 19:21:53 +00:00
Andy Hung
a56eadb273 Merge "AudioRecord.Builder should throw exception on failure." into mnc-dev 2015-06-17 19:18:17 +00:00
Jason Monk
b71218aec1 Add way to get the network location provider package
Bug: 21805447
Change-Id: Ie9fd35a69d8808ae4346927b30b77e9fd733b569
2015-06-17 15:16:51 -04:00
Dianne Hackborn
a750a63d63 Fix issue #21814207 and issue #21814212 (alarm manager)
Issue #21814207: AlarmManager.setAndAllowWhileIdle should also allow wake locks.

Introduce a whole new infrastructure for providing options when
sending broadcasts, much like ActivityOptions.  There is a single
option right now, asking the activity manager to apply a tempory
whitelist to each receiver of the broadcast.

Issue #21814212: Need to allow configuration of alarm manager parameters

The various alarm manager timing configurations are not modifiable
through settings, much like DeviceIdleController.  Also did a few
tweaks in the existing DeviceIdleController impl.

Change-Id: Ifd01013185acc4de668617b1e46e78e30ebed041
2015-06-17 11:41:45 -07:00
Alex Klyubin
97f4d3b407 Merge "Prefer GCM to CBC or CTR in documentation." into mnc-dev 2015-06-17 18:32:24 +00:00
Eino-Ville Talvala
b7bbd629eb Merge "Camera2: Do not throw unexpected runtime exception to app" into mnc-dev 2015-06-17 18:31:45 +00:00
Alex Klyubin
211cb7cb98 Merge "Improve documentation for keys requiring user auth." into mnc-dev 2015-06-17 18:28:21 +00:00
Alex Klyubin
a5e21f0ee2 Prefer GCM to CBC or CTR in documentation.
Bug: 21786749
Change-Id: If3824d1321ef1d8730d4384717b0c25d43518fe4
2015-06-17 11:24:45 -07:00
Selim Cinek
6857ffc940 Merge "Fixed a jump with the panel scrim" into mnc-dev 2015-06-17 18:23:08 +00:00
Eino-Ville Talvala
d3e39d16cb Camera2: Do not throw unexpected runtime exception to app
Use a generic CameraAccessException DEVICE_ERROR exception instead

Bug: 21869917
Change-Id: I73581b817cbdcbb4b876c234f050f725a459a29b
2015-06-17 11:18:43 -07:00
Jason Monk
f582027663 Merge "Don't reinflate signal icons unless we really need to." into mnc-dev 2015-06-17 18:17:18 +00:00
Junda Liu
a5aabfebca Merge "Add carrier config variable to hide sim lock setting ui." into mnc-dev 2015-06-17 18:11:03 +00:00