195413 Commits

Author SHA1 Message Date
Chien-Yu Chen
161a76cae4 Camera2: Remove references to sync.frameNumber
sync.frameNumber is a hidden key.

Bug: 21957397
Change-Id: I3b235d776782a8441354ee24c9174ae30e074a61
2015-06-26 11:23:55 -07:00
Selim Cinek
b0a8d2c4ae Merge "Fixed a potential bug where the keyguard could become empty" into mnc-dev 2015-06-18 18:43:16 +00:00
Selim Cinek
d6efd00a6a Merge "Canceling expand animations as well when starting QS expansion" into mnc-dev 2015-06-18 18:42:12 +00:00
Selim Cinek
4c2e9ab911 Merge "Fixed another crash with HUNs" into mnc-dev 2015-06-18 18:41:41 +00:00
Alan Viverette
49e11f805d Merge "Clear/restore calling identity in AccessibilityInteractionClient" into mnc-dev 2015-06-18 18:22:08 +00:00
Adam Lesinski
c93f115486 Merge "AAPT2: Remove the need for specifying package name in compile phase" into mnc-dev 2015-06-18 17:29:31 +00:00
Mady Mellor
03709c780a Merge "Text selection: update touch delta when moving towards handles" into mnc-dev 2015-06-18 17:26:04 +00:00
Adam Powell
2a1f916418 Merge "Un-hide ViewGroup#onViewAdded/onViewRemoved" into mnc-dev 2015-06-18 17:20:44 +00:00
Adam Powell
6690d018b9 Un-hide ViewGroup#onViewAdded/onViewRemoved
These methods are generally useful for writing custom views, and by
exposing them we make it easier for custom view authors to still allow
app developers to use an OnHierarchyChangedListener since it will not
be occupied by a custom view's implementation.

Also move the actual dispatch to package-scoped dispatch methods so
that a developer forgetting to call super won't stop a listener from
functioning.

Bug 21866523

Change-Id: Ie2bb5e241d7c5a02a5033f33ecdaeb40aceb20b5
2015-06-18 10:19:18 -07:00
ztenghui
91870fa281 Merge "Separate 2 clip paths into 2 groups" into mnc-dev 2015-06-18 17:05:13 +00:00
Mady Mellor
9a08fe2aca Merge "Update button press in AbsListView to use new MotionEvent APIs" into mnc-dev 2015-06-18 15:46:27 +00:00
Craig Lafayette
b4c469095f Merge "Remove FRP wipe support for device initializers" into mnc-dev 2015-06-18 15:44:49 +00:00
Wale Ogunwale
77b093824f Merge "[ActivityManager] Fix index OOB when updating visible." into mnc-dev 2015-06-18 14:52:13 +00:00
Leon Scroggins III
8c6750ff0e Merge "Fixes for Region_writeToParcel." into mnc-dev 2015-06-18 13:03:34 +00:00
Clara Bayarri
6bc1224448 Fix Select All Option is truncated when device goes from landscape to portrait
We were not taking into account configuration changes to update the
available space for the toolbar.

Bug: 21816857
Change-Id: I0f346e8eecb66ab788d1500239d5c1e020b87f97
2015-06-18 11:58:12 +01:00
Selim Cinek
80c2abe5bb Fixed a potential bug where the keyguard could become empty
Bug: 21124013
Change-Id: Ia955b1426e13d47a8f191817d55615253012acb1
2015-06-18 03:17:30 -07:00
Selim Cinek
831941fdd9 Canceling expand animations as well when starting QS expansion
Bug: 21764741
Change-Id: I065a03e7d594459d8c271d3bd7eb104ac2065b01
2015-06-18 03:17:30 -07:00
Selim Cinek
e0890e5cdc Fixed another crash with HUNs
This time for real :)
Bug: 21868047

Change-Id: I0572dce7d7e5abdf806198b194ad2516a021ab0d
2015-06-18 03:17:30 -07:00
Narayan Kamath
240e48d2e1 Use consistent cases for aliases in AndroidKeystoreBCWorkaround.
Should be "with" and not "With". Has the side effect of fixing
a test that assumes that these names are case-sensitive. While the
test must be fixed separately, this is still good for consistency.

bug: 21870226

Change-Id: I884b4abdbb18be064210555aec8e0cd16b0d0bcb
2015-06-18 09:52:11 +00:00
Benjamin Franz
9cb6a493f4 Merge "Add DISALLOW_CREATE_WINDOWS to Device Owner only user restrictions" into mnc-dev 2015-06-18 06:27:39 +00:00
Erik Kline
3d54e672a5 Merge "Carefully select which DNS servers to send to netd" into mnc-dev 2015-06-18 06:25:09 +00:00
Hyunyoung Song
0ff78e7cc8 Merge "AppWidgetServiceImpl should use ParceledListSlice as return object b/19904873" into mnc-dev 2015-06-18 05:58:36 +00:00
Erik Kline
4136850b80 Carefully select which DNS servers to send to netd
Select only DNS servers that:
    - are reachable, according to routes in the LinkProperties, AND

    - have a "suitable" source address in the LinkProperites, meaning:
        - IPv4 DNS server:
            - only if LinkProperties has any IPv4 address
        - IPv6 link-local DNS server:
            - only if the server has a scopeId set
            - assume for now that LinkProperties has a suitable
              link-local address
        - IPv6 non-link-local DNS server:
            - only if LinkProperties has a global, preferred IPv6 address

Bug: 19470192
Bug: 20733156
Change-Id: Ibd95f3f7b33a4fb6c36d1cea4adb63c99068f657
2015-06-18 14:50:21 +09:00
Seigo Nonaka
25d2746b08 Merge "Fix IME window flickering during rotation." into mnc-dev 2015-06-18 03:58:27 +00:00
Keisuke Kuroyanagi
fe67c1ec6d Merge "Fix: Drag handle jumps between bidi boundaries." into mnc-dev 2015-06-18 03:43:44 +00:00
Seigo Nonaka
d56ec1d444 Fix IME window flickering during rotation.
This was introduced by Ifd15736b163ab,
performLayoutAndPlaceSurfacesLocked is called even if
computeNewConfigurationLocked() returns non-null object.
This is simply by mistake and now computeNewConfigurationLocked
never returns null. The only case we need to care is that
mDisplayReady is false, but there is nothing to do with that state.

Thus simply removes if segments from computeNewConfiguration.

Bug: 20823978

Change-Id: I527dfeddffb8d928d578f8d60d64f98557aa3dcb
2015-06-18 12:22:36 +09:00
Seigo Nonaka
c73cd407f0 Merge "Allow apps to hide the soft keyboard even in a transient state." into mnc-dev 2015-06-18 03:10:23 +00:00
Abodunrinwa Toki
e8378476b5 Merge "Allow content rect to overshoot the bottom view bounds by 20dp." into mnc-dev 2015-06-18 01:05:07 +00:00
Tomasz Mikolajewski
41ce003934 Merge "Remove the action bar icon when there is no drawer enabled." into mnc-dev 2015-06-18 00:15:52 +00:00
Pavlin Radoslavov
512fb0ca90 Sync the Bluetooth name and address from the Bluetooth Adapter
It looks like the synchronization of the Bluetooth name and address
from the Bluetooth Adapter has been removed by the following commit
without an explanation:

  Bluetooth LE background operation mode (2/2)

As a result, the BluetoothManagerService.mAddress was always null.

Bug: 20545952
Change-Id: I595f370e06e17b2c67ce511f793efdee7674598c
2015-06-18 00:10:34 +00:00
Dongwon Kang
c7c12e5639 Merge "Make MediaSessionService not blocked by AudioService." into mnc-dev 2015-06-17 23:51:23 +00:00
Tomasz Mikolajewski
9ce9ffec9e Merge "Allow to customize title of the dialog." into mnc-dev 2015-06-17 23:51:07 +00:00
Xiaohui Chen
802ece6139 Merge "system_server: add two child chains to firewall" into mnc-dev 2015-06-17 23:50:28 +00:00
ztenghui
b6e9534ea5 Separate 2 clip paths into 2 groups
Since 2 clip paths is taking the intersection as the final clip, we should
separate this test case into 2 groups.

Prior to M release, the 2nd clip path is overriding the first one.
The behavior changed in this CL:
e9c01a40a2f0f0da195dfbb2909aaee5c005d1c6

b/16376848
b/19946683

Change-Id: Ib21c95e70f1317321725acbbe0ccf91713f748c3
2015-06-17 16:50:03 -07:00
Winson Chung
8b9730f749 Merge "Fixing issue with recents not being hidden for translucent apps." into mnc-dev 2015-06-17 23:30:52 +00:00
Winson Chung
fe855d124b Fixing issue with recents not being hidden for translucent apps.
- When tapping home, we can't depend on the stack state to determine
  whether or not hide recents since there can be translucent windows
  above it.  In this case, we just dismiss recents directly since the
  receiver will only be registered while recents is visible.

Bug: 20110140

Change-Id: I6b796cc4cbd790aac9a0857549e34117adb808d8
2015-06-17 16:18:28 -07:00
Tomasz Mikolajewski
0e591f95bd Allow to customize title of the dialog.
TEST=adb shell am start -a android.intent.action.OPEN_DOCUMENT -e
     android.intent.extra.TITLE 'Upload!' -t "text/plain"
BUG=19150996

Change-Id: Ibded6cfaa2de3698c5eada154efbee2b323464d4
2015-06-17 16:12:14 -07:00
Chet Haase
45bb0ca49a Merge "ImageView updates cached drawable dimensions when drawable updates" into mnc-dev 2015-06-17 23:07:17 +00:00
Raph Levien
8872ca4d55 Merge "Remove indents from TextView" into mnc-dev 2015-06-17 23:06:17 +00:00
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
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
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
Alan Viverette
3e9c4a82f4 Seekbar track background alpha should be disabledAlpha
Bug: 21728222
Change-Id: I92f21e85781ba6ed51858112aa67e00bf10914ae
2015-06-17 15:16:08 -07:00