OSDN Git Service

android-x86/frameworks-base.git
9 years agoMerge "Remove FRP wipe support for device initializers" into mnc-dev
Craig Lafayette [Thu, 18 Jun 2015 15:44:47 +0000 (15:44 +0000)]
Merge "Remove FRP wipe support for device initializers" into mnc-dev

9 years agoMerge "[ActivityManager] Fix index OOB when updating visible." into mnc-dev
Wale Ogunwale [Thu, 18 Jun 2015 14:52:11 +0000 (14:52 +0000)]
Merge "[ActivityManager] Fix index OOB when updating visible." into mnc-dev

9 years agoMerge "Fixes for Region_writeToParcel." into mnc-dev
Leon Scroggins III [Thu, 18 Jun 2015 13:03:32 +0000 (13:03 +0000)]
Merge "Fixes for Region_writeToParcel." into mnc-dev

9 years agoFix Select All Option is truncated when device goes from landscape to portrait
Clara Bayarri [Tue, 16 Jun 2015 17:04:55 +0000 (18:04 +0100)]
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

9 years agoUse consistent cases for aliases in AndroidKeystoreBCWorkaround.
Narayan Kamath [Wed, 17 Jun 2015 13:24:14 +0000 (14:24 +0100)]
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

9 years agoMerge "Add DISALLOW_CREATE_WINDOWS to Device Owner only user restrictions" into mnc-dev
Benjamin Franz [Thu, 18 Jun 2015 06:27:36 +0000 (06:27 +0000)]
Merge "Add DISALLOW_CREATE_WINDOWS to Device Owner only user restrictions" into mnc-dev

9 years agoMerge "Carefully select which DNS servers to send to netd" into mnc-dev
Erik Kline [Thu, 18 Jun 2015 06:25:07 +0000 (06:25 +0000)]
Merge "Carefully select which DNS servers to send to netd" into mnc-dev

9 years agoMerge "AppWidgetServiceImpl should use ParceledListSlice as return object b/19904873...
Hyunyoung Song [Thu, 18 Jun 2015 05:58:35 +0000 (05:58 +0000)]
Merge "AppWidgetServiceImpl should use ParceledListSlice as return object b/19904873" into mnc-dev

9 years agoCarefully select which DNS servers to send to netd
Erik Kline [Wed, 17 Jun 2015 04:19:54 +0000 (13:19 +0900)]
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

9 years agoMerge "Fix IME window flickering during rotation." into mnc-dev
Seigo Nonaka [Thu, 18 Jun 2015 03:58:25 +0000 (03:58 +0000)]
Merge "Fix IME window flickering during rotation." into mnc-dev

9 years agoMerge "Fix: Drag handle jumps between bidi boundaries." into mnc-dev
Keisuke Kuroyanagi [Thu, 18 Jun 2015 03:43:42 +0000 (03:43 +0000)]
Merge "Fix: Drag handle jumps between bidi boundaries." into mnc-dev

9 years agoFix IME window flickering during rotation.
Seigo Nonaka [Wed, 17 Jun 2015 07:04:43 +0000 (16:04 +0900)]
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

9 years agoMerge "Allow apps to hide the soft keyboard even in a transient state." into mnc-dev
Seigo Nonaka [Thu, 18 Jun 2015 03:10:20 +0000 (03:10 +0000)]
Merge "Allow apps to hide the soft keyboard even in a transient state." into mnc-dev

9 years agoMerge "Allow content rect to overshoot the bottom view bounds by 20dp." into mnc-dev
Abodunrinwa Toki [Thu, 18 Jun 2015 01:05:03 +0000 (01:05 +0000)]
Merge "Allow content rect to overshoot the bottom view bounds by 20dp." into mnc-dev

9 years agoMerge "Remove the action bar icon when there is no drawer enabled." into mnc-dev
Tomasz Mikolajewski [Thu, 18 Jun 2015 00:15:51 +0000 (00:15 +0000)]
Merge "Remove the action bar icon when there is no drawer enabled." into mnc-dev

9 years agoSync the Bluetooth name and address from the Bluetooth Adapter
Pavlin Radoslavov [Thu, 18 Jun 2015 00:01:23 +0000 (17:01 -0700)]
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

9 years agoMerge "Make MediaSessionService not blocked by AudioService." into mnc-dev
Dongwon Kang [Wed, 17 Jun 2015 23:51:11 +0000 (23:51 +0000)]
Merge "Make MediaSessionService not blocked by AudioService." into mnc-dev

9 years agoMerge "Allow to customize title of the dialog." into mnc-dev
Tomasz Mikolajewski [Wed, 17 Jun 2015 23:51:05 +0000 (23:51 +0000)]
Merge "Allow to customize title of the dialog." into mnc-dev

9 years agoMerge "system_server: add two child chains to firewall" into mnc-dev
Xiaohui Chen [Wed, 17 Jun 2015 23:50:23 +0000 (23:50 +0000)]
Merge "system_server: add two child chains to firewall" into mnc-dev

9 years agoMerge "Fixing issue with recents not being hidden for translucent apps." into mnc-dev
Winson Chung [Wed, 17 Jun 2015 23:30:49 +0000 (23:30 +0000)]
Merge "Fixing issue with recents not being hidden for translucent apps." into mnc-dev

9 years agoFixing issue with recents not being hidden for translucent apps.
Winson Chung [Wed, 17 Jun 2015 23:03:54 +0000 (16:03 -0700)]
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

9 years agoAllow to customize title of the dialog.
Tomasz Mikolajewski [Fri, 12 Jun 2015 23:22:17 +0000 (16:22 -0700)]
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

9 years agoMerge "ImageView updates cached drawable dimensions when drawable updates" into mnc-dev
Chet Haase [Wed, 17 Jun 2015 23:06:58 +0000 (23:06 +0000)]
Merge "ImageView updates cached drawable dimensions when drawable updates" into mnc-dev

9 years agoMerge "Remove indents from TextView" into mnc-dev
Raph Levien [Wed, 17 Jun 2015 23:06:16 +0000 (23:06 +0000)]
Merge "Remove indents from TextView" into mnc-dev

9 years agoMerge "Fixing a few accessibility issues." into mnc-dev
Winson Chung [Wed, 17 Jun 2015 22:59:29 +0000 (22:59 +0000)]
Merge "Fixing a few accessibility issues." into mnc-dev

9 years agosystem_server: add two child chains to firewall
Xiaohui Chen [Wed, 17 Jun 2015 22:55:37 +0000 (15:55 -0700)]
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

9 years agoRemove indents from TextView
Raph Levien [Wed, 17 Jun 2015 22:53:33 +0000 (15:53 -0700)]
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

9 years agoMerge "Request application of WindowInsets when setting a content view" into mnc-dev
Adam Powell [Wed, 17 Jun 2015 22:42:16 +0000 (22:42 +0000)]
Merge "Request application of WindowInsets when setting a content view" into mnc-dev

9 years agoMake MediaSessionService not blocked by AudioService.
Dongwon Kang [Tue, 16 Jun 2015 22:28:17 +0000 (15:28 -0700)]
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

9 years agoImageView updates cached drawable dimensions when drawable updates
Chet Haase [Wed, 17 Jun 2015 21:43:30 +0000 (14:43 -0700)]
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

9 years agoAppWidgetServiceImpl should use ParceledListSlice as return object
Hyunyoung Song [Wed, 17 Jun 2015 22:23:31 +0000 (15:23 -0700)]
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

9 years agoMerge "Seekbar track background alpha should be disabledAlpha" into mnc-dev
Alan Viverette [Wed, 17 Jun 2015 22:20:20 +0000 (22:20 +0000)]
Merge "Seekbar track background alpha should be disabledAlpha" into mnc-dev

9 years agoMerge "Fix issue #21814207 and issue #21814212 (alarm manager)" into mnc-dev
Dianne Hackborn [Wed, 17 Jun 2015 22:18:35 +0000 (22:18 +0000)]
Merge "Fix issue #21814207 and issue #21814212 (alarm manager)" into mnc-dev

9 years agoSeekbar track background alpha should be disabledAlpha
Alan Viverette [Wed, 17 Jun 2015 22:16:08 +0000 (15:16 -0700)]
Seekbar track background alpha should be disabledAlpha

Bug: 21728222
Change-Id: I92f21e85781ba6ed51858112aa67e00bf10914ae

9 years agoMerge "Revert spinner caret size to 24x24dp" into mnc-dev
Alan Viverette [Wed, 17 Jun 2015 22:10:25 +0000 (22:10 +0000)]
Merge "Revert spinner caret size to 24x24dp" into mnc-dev

9 years agoMerge "Work around inconsistent views in RelativeLayout.onMeasure()" into mnc-dev
Alan Viverette [Wed, 17 Jun 2015 22:10:09 +0000 (22:10 +0000)]
Merge "Work around inconsistent views in RelativeLayout.onMeasure()" into mnc-dev

9 years agoMerge "In intent picker dialog, change "personal apps" to "personal"." into mnc-dev
Nicolas Prevot [Wed, 17 Jun 2015 21:56:30 +0000 (21:56 +0000)]
Merge "In intent picker dialog, change "personal apps" to "personal"." into mnc-dev

9 years agoRevert spinner caret size to 24x24dp
Alan Viverette [Wed, 17 Jun 2015 21:42:32 +0000 (14:42 -0700)]
Revert spinner caret size to 24x24dp

Bug: 21754326
Change-Id: I5f52ee96e73c7a6bddb20dd4361e2084e77a6efe

9 years agoFixing a few accessibility issues.
Winson Chung [Wed, 17 Jun 2015 20:00:23 +0000 (13:00 -0700)]
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

9 years agoMerge "Resolve start/end insets in LayerDrawable.getIntrinsicWidth()" into mnc-dev
Alan Viverette [Wed, 17 Jun 2015 21:31:05 +0000 (21:31 +0000)]
Merge "Resolve start/end insets in LayerDrawable.getIntrinsicWidth()" into mnc-dev

9 years agoMerge "Remove unnecessary PKCS#1 authorization on legacy keys." into mnc-dev
Alex Klyubin [Wed, 17 Jun 2015 21:27:55 +0000 (21:27 +0000)]
Merge "Remove unnecessary PKCS#1 authorization on legacy keys." into mnc-dev

9 years agoMerge "Add keys to handle GSM and CDMA roaming/non roaming overrides" into mnc-dev
Chris Manton [Wed, 17 Jun 2015 21:21:38 +0000 (21:21 +0000)]
Merge "Add keys to handle GSM and CDMA roaming/non roaming overrides" into mnc-dev

9 years agoResolve start/end insets in LayerDrawable.getIntrinsicWidth()
Alan Viverette [Wed, 17 Jun 2015 21:09:53 +0000 (14:09 -0700)]
Resolve start/end insets in LayerDrawable.getIntrinsicWidth()

Bug: 21849185
Change-Id: If9b392d863e808d83a5d90bcc32df6cb9194cbdf

9 years agoMerge "Refactor Drawable.getDither() to isDither()" into mnc-dev
Alan Viverette [Wed, 17 Jun 2015 21:06:02 +0000 (21:06 +0000)]
Merge "Refactor Drawable.getDither() to isDither()" into mnc-dev

9 years agoMerge "Revert "remove setLatestEventInfo"" into mnc-dev
Chris Wren [Wed, 17 Jun 2015 21:03:22 +0000 (21:03 +0000)]
Merge "Revert "remove setLatestEventInfo"" into mnc-dev

9 years agoRevert "remove setLatestEventInfo"
Chris Wren [Wed, 17 Jun 2015 21:03:11 +0000 (21:03 +0000)]
Revert "remove setLatestEventInfo"

This reverts commit 965097321df7fd57a35f63365b1de26ddcf35214.

Change-Id: I658bb2611fe8f983309e962d6772d1bd80ed586e

9 years agoRefactor Drawable.getDither() to isDither()
Alan Viverette [Wed, 17 Jun 2015 20:59:31 +0000 (13:59 -0700)]
Refactor Drawable.getDither() to isDither()

Bug: 21342040
Change-Id: I801970c2a25289d670636ad5387ddf244fb48225

9 years agoRemove unnecessary PKCS#1 authorization on legacy keys.
Alex Klyubin [Wed, 17 Jun 2015 20:58:00 +0000 (13:58 -0700)]
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

9 years agoWork around inconsistent views in RelativeLayout.onMeasure()
Alan Viverette [Wed, 17 Jun 2015 20:42:32 +0000 (13:42 -0700)]
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

9 years agoMerge "Add DisconnectCause for CDMA activated case." into mnc-dev
Andrew Lee [Wed, 17 Jun 2015 20:42:04 +0000 (20:42 +0000)]
Merge "Add DisconnectCause for CDMA activated case." into mnc-dev

9 years agoRequest application of WindowInsets when setting a content view
Adam Powell [Wed, 17 Jun 2015 20:37:06 +0000 (13:37 -0700)]
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

9 years agoMerge "Add matching xml attributes for existing Toolbar properties" into mnc-dev
Adam Powell [Wed, 17 Jun 2015 20:22:35 +0000 (20:22 +0000)]
Merge "Add matching xml attributes for existing Toolbar properties" into mnc-dev

9 years agoMerge "remove setLatestEventInfo" into mnc-dev
Chris Wren [Wed, 17 Jun 2015 20:05:04 +0000 (20:05 +0000)]
Merge "remove setLatestEventInfo" into mnc-dev

9 years agoMerge "Bring back screenshot API." into mnc-dev
Dianne Hackborn [Wed, 17 Jun 2015 19:47:09 +0000 (19:47 +0000)]
Merge "Bring back screenshot API." into mnc-dev

9 years agoIn intent picker dialog, change "personal apps" to "personal".
Nicolas Prevot [Mon, 8 Jun 2015 20:07:22 +0000 (13:07 -0700)]
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

9 years agoMerge "AudioTrack.Builder should throw exception on failure." into mnc-dev
Andy Hung [Wed, 17 Jun 2015 19:21:50 +0000 (19:21 +0000)]
Merge "AudioTrack.Builder should throw exception on failure." into mnc-dev

9 years agoMerge "AudioRecord.Builder should throw exception on failure." into mnc-dev
Andy Hung [Wed, 17 Jun 2015 19:18:15 +0000 (19:18 +0000)]
Merge "AudioRecord.Builder should throw exception on failure." into mnc-dev

9 years agoFix issue #21814207 and issue #21814212 (alarm manager)
Dianne Hackborn [Wed, 17 Jun 2015 00:18:23 +0000 (17:18 -0700)]
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

9 years agoMerge "Prefer GCM to CBC or CTR in documentation." into mnc-dev
Alex Klyubin [Wed, 17 Jun 2015 18:32:22 +0000 (18:32 +0000)]
Merge "Prefer GCM to CBC or CTR in documentation." into mnc-dev

9 years agoMerge "Camera2: Do not throw unexpected runtime exception to app" into mnc-dev
Eino-Ville Talvala [Wed, 17 Jun 2015 18:31:43 +0000 (18:31 +0000)]
Merge "Camera2: Do not throw unexpected runtime exception to app" into mnc-dev

9 years agoMerge "Improve documentation for keys requiring user auth." into mnc-dev
Alex Klyubin [Wed, 17 Jun 2015 18:28:19 +0000 (18:28 +0000)]
Merge "Improve documentation for keys requiring user auth." into mnc-dev

9 years agoPrefer GCM to CBC or CTR in documentation.
Alex Klyubin [Wed, 17 Jun 2015 18:24:45 +0000 (11:24 -0700)]
Prefer GCM to CBC or CTR in documentation.

Bug: 21786749
Change-Id: If3824d1321ef1d8730d4384717b0c25d43518fe4

9 years agoMerge "Fixed a jump with the panel scrim" into mnc-dev
Selim Cinek [Wed, 17 Jun 2015 18:23:06 +0000 (18:23 +0000)]
Merge "Fixed a jump with the panel scrim" into mnc-dev

9 years agoCamera2: Do not throw unexpected runtime exception to app
Eino-Ville Talvala [Wed, 17 Jun 2015 18:18:43 +0000 (11:18 -0700)]
Camera2: Do not throw unexpected runtime exception to app

Use a generic CameraAccessException DEVICE_ERROR exception instead

Bug: 21869917
Change-Id: I73581b817cbdcbb4b876c234f050f725a459a29b

9 years agoMerge "Don't reinflate signal icons unless we really need to." into mnc-dev
Jason Monk [Wed, 17 Jun 2015 18:17:17 +0000 (18:17 +0000)]
Merge "Don't reinflate signal icons unless we really need to." into mnc-dev

9 years agoMerge "Add carrier config variable to hide sim lock setting ui." into mnc-dev
Junda Liu [Wed, 17 Jun 2015 18:11:01 +0000 (18:11 +0000)]
Merge "Add carrier config variable to hide sim lock setting ui." into mnc-dev

9 years agoImprove documentation for keys requiring user auth.
Alex Klyubin [Tue, 16 Jun 2015 17:44:11 +0000 (10:44 -0700)]
Improve documentation for keys requiring user auth.

Bug: 18088752
Change-Id: I24eeb33790a74d8d81d10fcdb1eb058d47144c44

9 years agoMerge "Camera2: Handle getting input surface failures" into mnc-dev
Chien-Yu Chen [Wed, 17 Jun 2015 18:02:27 +0000 (18:02 +0000)]
Merge "Camera2: Handle getting input surface failures" into mnc-dev

9 years agoMerge "Camera2: fix high speed request builder creation issue" into mnc-dev
Zhijun He [Wed, 17 Jun 2015 18:00:05 +0000 (18:00 +0000)]
Merge "Camera2: fix high speed request builder creation issue" into mnc-dev

9 years agoMerge "Expose AES GCM backed by Android Keystore." into mnc-dev
Alex Klyubin [Wed, 17 Jun 2015 17:58:33 +0000 (17:58 +0000)]
Merge "Expose AES GCM backed by Android Keystore." into mnc-dev

9 years agoMerge "Handle negative view types properly in getScrapView" into mnc-dev
Yigit Boyar [Wed, 17 Jun 2015 17:58:24 +0000 (17:58 +0000)]
Merge "Handle negative view types properly in getScrapView" into mnc-dev

9 years agoAdd carrier config variable to hide sim lock setting ui.
Junda Liu [Wed, 17 Jun 2015 16:55:57 +0000 (09:55 -0700)]
Add carrier config variable to hide sim lock setting ui.

Bug: b/19623656
Change-Id: Iee9efcdefe5cdda2adae03f0852ff2b53e75698f

9 years agoMerge "Drop support for P-192 EC keys." into mnc-dev
Alex Klyubin [Wed, 17 Jun 2015 17:54:34 +0000 (17:54 +0000)]
Merge "Drop support for P-192 EC keys." into mnc-dev

9 years agoMerge "Map >= 24bit encodings to ENCODING_PCM_FLOAT" into mnc-dev
Paul McLean [Wed, 17 Jun 2015 17:53:33 +0000 (17:53 +0000)]
Merge "Map >= 24bit encodings to ENCODING_PCM_FLOAT" into mnc-dev

9 years agoDrop support for P-192 EC keys.
Alex Klyubin [Wed, 17 Jun 2015 17:51:19 +0000 (10:51 -0700)]
Drop support for P-192 EC keys.

The minimum EC keys size is now 224 bit. This is because keymaster 1.0
does not support EC keys smaller than 224 bit.

Bug: 18088752
Change-Id: I8010ff2d6ccaeea7dcf86f697aee1d9ebd683cb2

9 years agoMap >= 24bit encodings to ENCODING_PCM_FLOAT
Paul McLean [Wed, 17 Jun 2015 17:10:11 +0000 (10:10 -0700)]
Map >= 24bit encodings to ENCODING_PCM_FLOAT

Bug: 21851140
Change-Id: I8203281f5ca7d194e1bd2f417e75d3ef2fd561c7

9 years agoMerge "Drag to select text: add some slop for moving between lines" into mnc-dev
Mady Mellor [Wed, 17 Jun 2015 17:36:30 +0000 (17:36 +0000)]
Merge "Drag to select text: add some slop for moving between lines" into mnc-dev

9 years agoMerge "Insertion cursor: add some slop for moving between lines" into mnc-dev
Mady Mellor [Wed, 17 Jun 2015 17:00:08 +0000 (17:00 +0000)]
Merge "Insertion cursor: add some slop for moving between lines" into mnc-dev

9 years agoDon't reinflate signal icons unless we really need to.
Jason Monk [Wed, 17 Jun 2015 16:52:43 +0000 (12:52 -0400)]
Don't reinflate signal icons unless we really need to.

Bug: 21791609
Change-Id: I5eb1b890f2298211b25afa0e2570f0ab49a45e0b

9 years agoMerge "Split control background into 40dp and 32dp diameter versions" into mnc-dev
Alan Viverette [Wed, 17 Jun 2015 16:50:25 +0000 (16:50 +0000)]
Merge "Split control background into 40dp and 32dp diameter versions" into mnc-dev

9 years agoInsertion cursor: add some slop for moving between lines
Mady Mellor [Fri, 5 Jun 2015 18:12:01 +0000 (11:12 -0700)]
Insertion cursor: add some slop for moving between lines

Applying same method to insertion cursor as the text selection drag
handles to improve moving along lines.

Basically adds some slop above / below the current line and only
allows you to change lines if you move outside of that.

Bug: 21306433
Change-Id: I6c7f3a496fbd1ea66936832f96325736cea872aa

9 years agoAllow apps to hide the soft keyboard even in a transient state.
Seigo Nonaka [Wed, 10 Jun 2015 06:31:20 +0000 (15:31 +0900)]
Allow apps to hide the soft keyboard even in a transient state.

Since I69b88989ae4d0fe056e9ab8d67d0a955dd10e6d9, we have
asserted that the following test cases can pass with CTS.

    assertTrue(imm.showSoftInput(
            view, InputMethodManager.SHOW_IMPLICIT));
    assertTrue(imm.hideSoftInputFromWindow(token, 0));

This CL fixes the test failure caused by
I33dc6278fd892f26e56352722bf9449b8b102030 in the above
CTS case.

Note that the test failure occurs only when the application
tries to close the software keyboard during IMMS#mInputShown
and IMMS#mImeWindowVis are in a transiently inconsistent
state.

Bug: 21727232
Change-Id: I195a9f9644583cb1172f48801e87273ad8def850

9 years agoDrag to select text: add some slop for moving between lines
Mady Mellor [Wed, 17 Jun 2015 16:46:01 +0000 (09:46 -0700)]
Drag to select text: add some slop for moving between lines

It's pretty easy to accidentally move to a different line when
selecting text. This CL makes an adjustment so that if the user
is on a line, they must move above the top of it + slop to move
up a line, and they must move below the bottom of it + slop to move
down a line. This applies the changes to the drag accelerator.

This CL also makes an adjustment to not apply the finger offset
to the drag accelerator until the user has moved lines, this was
causing an issue where it would immediately include the above line
when initiating the selection.

Bug: 21306433
Bug: 21303943
Change-Id: Id240136493f62524fe6445d8bd65479084fe8126

9 years agoam 93bd8134: am eae09b4a: Merge "docs: Updated Android TV landing page and Live TV...
Quddus Chong [Wed, 17 Jun 2015 16:36:17 +0000 (16:36 +0000)]
am 93bd8134: am eae09b4a: Merge "docs: Updated Android TV landing page and Live TV training to support channels. bug: 21786387" into mnc-preview-docs

* commit '93bd81346de88f850f4e4002229a3119c97d8ddb':
  docs: Updated Android TV landing page and Live TV training to support channels. bug: 21786387

9 years agoMerge "Text selection: add some slop for moving between lines" into mnc-dev
Mady Mellor [Wed, 17 Jun 2015 16:30:16 +0000 (16:30 +0000)]
Merge "Text selection: add some slop for moving between lines" into mnc-dev

9 years agoText selection: add some slop for moving between lines
Mady Mellor [Wed, 17 Jun 2015 16:25:19 +0000 (09:25 -0700)]
Text selection: add some slop for moving between lines

It's pretty easy to accidentally move to a different line when
selecting text. This CL makes an adjustment so that if the user
is on a line, they must move above the top of it + slop to move
up a line, and they must move below the bottom of it + slop to move
down a line.

This CL also makes a small modification to check if the layout is
null and return early which simplifies some of the following code.

Bug: 21306433
Change-Id: I4a854e644faafaf1e159201ae1f2838862f16b25

9 years agoExpose AES GCM backed by Android Keystore.
Alex Klyubin [Mon, 1 Jun 2015 23:07:53 +0000 (16:07 -0700)]
Expose AES GCM backed by Android Keystore.

Bug: 18088752
Bug: 21786749
Change-Id: Ica90491037d2920f7635195894ba18882fc4406d

9 years agoam eae09b4a: Merge "docs: Updated Android TV landing page and Live TV training to...
Quddus Chong [Wed, 17 Jun 2015 16:23:38 +0000 (16:23 +0000)]
am eae09b4a: Merge "docs: Updated Android TV landing page and Live TV training to support channels. bug: 21786387" into mnc-preview-docs

* commit 'eae09b4a642bb30d5fd8ff90796e410197d71c95':
  docs: Updated Android TV landing page and Live TV training to support channels. bug: 21786387

9 years agoCamera2: fix high speed request builder creation issue
Zhijun He [Wed, 17 Jun 2015 16:21:10 +0000 (09:21 -0700)]
Camera2: fix high speed request builder creation issue

The metadata local copy was mutated (swapped) to an empty copy after use,
we need make a copy every time.

Bug: 21442271
Change-Id: I8a71663ba964288bdd1d7f50b42db762d28d89c0

9 years agoMerge "Import translations. DO NOT MERGE" into mnc-dev
Geoff Mendal [Wed, 17 Jun 2015 16:19:15 +0000 (16:19 +0000)]
Merge "Import translations. DO NOT MERGE" into mnc-dev

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 17 Jun 2015 16:14:37 +0000 (09:14 -0700)]
Import translations. DO NOT MERGE

Change-Id: I4ac364b0a987a0546be8c0c9b606ee7ad85a7320
Auto-generated-cl: translation import

9 years agoMerge "docs: Updated Android TV landing page and Live TV training to support channels...
Quddus Chong [Wed, 17 Jun 2015 16:13:19 +0000 (16:13 +0000)]
Merge "docs: Updated Android TV landing page and Live TV training to support channels. bug: 21786387" into mnc-preview-docs

9 years agoFixes for Region_writeToParcel.
Leon Scroggins III [Wed, 17 Jun 2015 15:56:43 +0000 (11:56 -0400)]
Fixes for Region_writeToParcel.

Check the return value of Parcel::writeInplace. If it is NULL, there
was a failure, so do not attempt to write to it. Instead, report the
error and return false.

If SkRegion::writeToMemory claims to have written a different amount of
memory than it claimed it needed, report that error as well.

Change uses of NULL in this function to nullptr.

BUG:21271229
BUG:20666821
Change-Id: Ia6160f74f30bf42f5ff97f716dadb01d1f0d6961

9 years agoAudioTrack.Builder should throw exception on failure.
Andy Hung [Sat, 13 Jun 2015 06:02:03 +0000 (23:02 -0700)]
AudioTrack.Builder should throw exception on failure.

Should throw UnsupportedOperationException instead of returning
an uninitialized track object.

Bug: 21890643
Change-Id: I34df73b316fcb490be05eb3beff06b795645fd4c

9 years agoMerge "high-frequency notification stats." into mnc-dev
Chris Wren [Wed, 17 Jun 2015 15:43:39 +0000 (15:43 +0000)]
Merge "high-frequency notification stats." into mnc-dev

9 years agohigh-frequency notification stats.
Chris Wren [Tue, 16 Jun 2015 17:56:22 +0000 (13:56 -0400)]
high-frequency notification stats.

Aggregate and then periodically report stats that are high-frequency
because they are driven by app behavior, not user behavior.

Reuse the NotificationUsageStats facility.
Remove redundant stats.
Lessen memory foot print.
Enable in-memeory aggregates with small, bounded memory footprint.

Bug: 20258744
Change-Id: I87e391419c53917fa13c68a56f8cdb40a7c8e548

9 years agoAudioRecord.Builder should throw exception on failure.
Andy Hung [Sat, 13 Jun 2015 05:49:15 +0000 (22:49 -0700)]
AudioRecord.Builder should throw exception on failure.

Should throw UnsupportedOperationException instead of returning
an uninitialized record object.

Bug: 21890643
Change-Id: I9c05a4cff9f5e1d5513c76acace09699a567008f

9 years agoAdd keys to handle GSM and CDMA roaming/non roaming overrides
Chris Manton [Tue, 16 Jun 2015 19:06:08 +0000 (12:06 -0700)]
Add keys to handle GSM and CDMA roaming/non roaming overrides

bug: 20828356

Change-Id: Icb5ad25e213771554915bd9479a4a66b4f4a6906

9 years agoam 0752aa54: am 5cef09b0: Merge "docs: Update JavaDoc links for Watch Face class...
Luan Nguyen [Wed, 17 Jun 2015 15:14:32 +0000 (15:14 +0000)]
am 0752aa54: am 5cef09b0: Merge "docs: Update JavaDoc links for Watch Face class." into mnc-preview-docs

* commit '0752aa54a03b39e2a16e6f40e4d7cf912a29bd08':
  docs: Update JavaDoc links for Watch Face class.

9 years agoam ce26f291: am 5980ae8f: Merge "docs: Update JavaDoc reference links for Create...
Luan Nguyen [Wed, 17 Jun 2015 15:14:27 +0000 (15:14 +0000)]
am ce26f291: am 5980ae8f: Merge "docs: Update JavaDoc reference links for Create Wearable Apps class" into mnc-preview-docs

* commit 'ce26f2911361fe1da9d3f350e2785657d6d5e685':
  docs: Update JavaDoc reference links for Create Wearable Apps class