OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Restore exception behavior of getLocationInWindow."
Rob Carr [Fri, 4 Dec 2015 21:08:54 +0000 (21:08 +0000)]
Merge "Restore exception behavior of getLocationInWindow."

8 years agoMerge "Put PIP windows above transition animations."
Filip Gruszczynski [Fri, 4 Dec 2015 20:50:23 +0000 (20:50 +0000)]
Merge "Put PIP windows above transition animations."

8 years agoPut PIP windows above transition animations.
Filip Gruszczynski [Fri, 4 Dec 2015 17:05:00 +0000 (09:05 -0800)]
Put PIP windows above transition animations.

PIP activities are already on top of everything else, but during
animation we increase the layer of the animated window for the duration
of the animation and it may cover the PIP. By forcing the same
adjustment on PIP windows we will keep them above animating windows.

Bug: 26015827
Change-Id: I8f7a87f41fed24b3e520fb599a94cf24cc2eeb50

8 years agoRestore exception behavior of getLocationInWindow.
Robert Carr [Fri, 4 Dec 2015 20:48:55 +0000 (12:48 -0800)]
Restore exception behavior of getLocationInWindow.

Restore exception throwing behavior on invalid arguments
for getLocationInWindow. This is tested by CTS.
Tweak some variable names to make the exception string readable.

Change-Id: I069d63b354d90ce74d156362b223765a5c2da2f0

8 years agoMerge "Topics can now have an Importance."
Julia Reynolds [Fri, 4 Dec 2015 20:37:28 +0000 (20:37 +0000)]
Merge "Topics can now have an Importance."

8 years agoTopics can now have an Importance.
Julia Reynolds [Fri, 20 Nov 2015 20:38:20 +0000 (15:38 -0500)]
Topics can now have an Importance.

Bug: 22451710
Change-Id: I627121da6c4b85492715a8e8a099656dca52b734

8 years agoMerge "Followup changes to ag/810782."
Steve McKay [Fri, 4 Dec 2015 20:14:34 +0000 (20:14 +0000)]
Merge "Followup changes to ag/810782."

8 years agoFollowup changes to ag/810782.
Steve McKay [Fri, 4 Dec 2015 20:12:48 +0000 (12:12 -0800)]
Followup changes to ag/810782.

Note, one of the requested changes already happened.

Change-Id: I253cbc2b3b7f2091ca80f43c90e951263fc50ad2

8 years agoMerge "Remove some sized based resource (match support lib removal)."
Filip Gruszczynski [Fri, 4 Dec 2015 20:09:31 +0000 (20:09 +0000)]
Merge "Remove some sized based resource (match support lib removal)."

8 years agoMerge "Reset mPointerIconShape properly on window manager."
Jun Mukai [Fri, 4 Dec 2015 20:08:02 +0000 (20:08 +0000)]
Merge "Reset mPointerIconShape properly on window manager."

8 years agoMerge "Mark WIFI_AP_STATE_CHANGED_ACTION and extras @SystemApi."
Vinit Deshpande [Fri, 4 Dec 2015 19:58:58 +0000 (19:58 +0000)]
Merge "Mark WIFI_AP_STATE_CHANGED_ACTION and extras @SystemApi."

8 years agoMerge "Cleanup related to files removed in Phone refactor."
Amit Mahajan [Fri, 4 Dec 2015 19:40:38 +0000 (19:40 +0000)]
Merge "Cleanup related to files removed in Phone refactor."

8 years agoMerge "Move strings to SettingsLib"
Tony Mantler [Fri, 4 Dec 2015 19:38:31 +0000 (19:38 +0000)]
Merge "Move strings to SettingsLib"

8 years agoMove strings to SettingsLib
Tony Mantler [Fri, 4 Dec 2015 19:24:34 +0000 (11:24 -0800)]
Move strings to SettingsLib

Change-Id: I8dc93cfc206e41b14f894b03ecd8a18225d47fe7

8 years agoMerge "Add hidden APIs for retrieving LTE RSRQ and RSSNR"
Nathan Harold [Fri, 4 Dec 2015 19:20:26 +0000 (19:20 +0000)]
Merge "Add hidden APIs for retrieving LTE RSRQ and RSSNR"

8 years agoReset mPointerIconShape properly on window manager.
Jun Mukai [Fri, 4 Dec 2015 19:11:17 +0000 (11:11 -0800)]
Reset mPointerIconShape properly on window manager.

Sometimes mPointerIconShape wrongly remember old icon shape,
so that it fails to specify the icon on some situation, such
as reported in the bug.
- task == null: happening tasks are overlapping and mouse moves
  directly from an edge of a task to inside of another task
- hover_exit: happening the mouse moves outside of any tasks.
  I believe I added this line but anyways it's been lost at
  some point.

Bug: 26011155
Change-Id: I0bdc345a28089bd13443d9b7b8e7c770e56247f3

8 years agoMerge "Correct shadowtext glyph count"
Chris Craik [Fri, 4 Dec 2015 18:30:28 +0000 (18:30 +0000)]
Merge "Correct shadowtext glyph count"

8 years agoRemove accidentally left-in commented out line. am: 8e6fc083fe
George Mount [Fri, 4 Dec 2015 18:15:08 +0000 (10:15 -0800)]
Remove accidentally left-in commented out line. am: 8e6fc083fe
am: 827902553d

* commit '827902553d2642a3ed82553e1e5b6214960c3986':
  Remove accidentally left-in commented out line.

8 years agoRemove accidentally left-in commented out line.
George Mount [Fri, 4 Dec 2015 18:07:17 +0000 (18:07 +0000)]
Remove accidentally left-in commented out line.
am: 8e6fc083fe

* commit '8e6fc083fe33543fa3ffd3bbfd25fa937f4ec7bf':
  Remove accidentally left-in commented out line.

8 years agoMerge "Revert "Revert "Choose the correct Fragment to pull a Transiton from."""
George Mount [Fri, 4 Dec 2015 18:02:28 +0000 (18:02 +0000)]
Merge "Revert "Revert "Choose the correct Fragment to pull a Transiton from."""

8 years agoMerge "Revert "Revert "Give transitioning fragment a context prior to retrieving...
George Mount [Fri, 4 Dec 2015 18:02:18 +0000 (18:02 +0000)]
Merge "Revert "Revert "Give transitioning fragment a context prior to retrieving transition"""

8 years agoRevert "Revert "Choose the correct Fragment to pull a Transiton from.""
George Mount [Fri, 4 Dec 2015 18:00:55 +0000 (18:00 +0000)]
Revert "Revert "Choose the correct Fragment to pull a Transiton from.""

This reverts commit c30d875c7f21890a4167938e536771675964a613.

Change-Id: Ica7c9b6d1dc6553aae893d2ce07bedef7da7dfe5

8 years agoMerge "Force divider visibility reevaluation when system ui registers listener."
Filip Gruszczynski [Fri, 4 Dec 2015 17:36:26 +0000 (17:36 +0000)]
Merge "Force divider visibility reevaluation when system ui registers listener."

8 years agoCorrect shadowtext glyph count
Chris Craik [Fri, 4 Dec 2015 17:16:58 +0000 (09:16 -0800)]
Correct shadowtext glyph count

bug:25837773

Change-Id: Id890624ddce3e5a331ecef207011709be0daf703

8 years agoForce divider visibility reevaluation when system ui registers listener.
Filip Gruszczynski [Fri, 4 Dec 2015 17:21:37 +0000 (09:21 -0800)]
Force divider visibility reevaluation when system ui registers listener.

If system UI dies and then returns, we need to make sure it receives
information about visibility of the divider.

Bug: 26009659
Change-Id: I067d2023ce27b2d36723070127a18c71b694eb45

8 years agoMerge "Handle non-encryption-aware accounts and sync."
Jeff Sharkey [Fri, 4 Dec 2015 16:50:38 +0000 (16:50 +0000)]
Merge "Handle non-encryption-aware accounts and sync."

8 years agoMerge "Run activity visibility adjustment even if there is no top running."
Filip Gruszczynski [Fri, 4 Dec 2015 16:42:49 +0000 (16:42 +0000)]
Merge "Run activity visibility adjustment even if there is no top running."

8 years agoHandle non-encryption-aware accounts and sync.
Jeff Sharkey [Fri, 4 Dec 2015 00:56:20 +0000 (17:56 -0700)]
Handle non-encryption-aware accounts and sync.

The system can now boot in a "locked" state where only encryption
aware (EA) components can be safely started.  When in this state,
PackageManager already filters away non-EA components, but system
services like AccountManager and SyncManager need to carefully handle
these temporarily "missing" components.

As a guiding principle, all known Accounts are still present when
the device is locked, but communication with underlying non-EA
authenticators is blocked.

To keep things simple for now, all SyncManager requests are kept
dormant until the user enters the unlocked state.

The core of this logic is that RegisteredServicesCache now works
with all components regardless of EA status, which prevents us from
accidentally thinking a service was removed when the user is locked.

Bug: 25945136
Change-Id: I8714121f6236b00821769023c4df7de1c8a99944

8 years agoMerge "Change Contacts.CORP_CONTENT_FILTER_URI to enterprise API"
Ricky Wai [Fri, 4 Dec 2015 16:35:33 +0000 (16:35 +0000)]
Merge "Change Contacts.CORP_CONTENT_FILTER_URI to enterprise API"

8 years agoMerge "Make Work Directory API as Enterprise API"
Ricky Wai [Fri, 4 Dec 2015 16:34:49 +0000 (16:34 +0000)]
Merge "Make Work Directory API as Enterprise API"

8 years agoMerge "Add ENTERPRISE_CONTENT_FILTER_URI to Callable and Phone"
Victor Chang [Fri, 4 Dec 2015 16:31:57 +0000 (16:31 +0000)]
Merge "Add ENTERPRISE_CONTENT_FILTER_URI to Callable and Phone"

8 years agoRevert "Revert "Give transitioning fragment a context prior to retrieving transition""
George Mount [Thu, 3 Dec 2015 22:43:33 +0000 (14:43 -0800)]
Revert "Revert "Give transitioning fragment a context prior to retrieving transition""

This reverts commit 214f6749fccb5e90e909ae1bdce567b83d286433.

Change-Id: Iced45f42251a82448e4dc4392315c3864494a31a

8 years agoMerge "Fix for non persisted jobs being persisted"
Shreyas Basarge [Fri, 4 Dec 2015 15:09:32 +0000 (15:09 +0000)]
Merge "Fix for non persisted jobs being persisted"

8 years agoFix for non persisted jobs being persisted
Shreyas Basarge [Thu, 3 Dec 2015 16:45:22 +0000 (16:45 +0000)]
Fix for non persisted jobs being persisted

Bug: 25905179
Change-Id: I5e836f9894089aa8acc1bde382674e29402f0a60

8 years agoMerge "Add a FLAG_ARCHIVE flag to DocumentsContract."
Tomasz Mikolajewski [Fri, 4 Dec 2015 11:43:17 +0000 (11:43 +0000)]
Merge "Add a FLAG_ARCHIVE flag to DocumentsContract."

8 years agoMerge "Add thread safety documentation"
Neil Fuller [Fri, 4 Dec 2015 11:09:53 +0000 (11:09 +0000)]
Merge "Add thread safety documentation"

8 years agoAdd a FLAG_ARCHIVE flag to DocumentsContract.
Tomasz Mikolajewski [Wed, 25 Nov 2015 03:18:55 +0000 (12:18 +0900)]
Add a FLAG_ARCHIVE flag to DocumentsContract.

Bug: 20176812
Change-Id: I4bf7c4f228682a68ca5106bfc757fb533e281a86

8 years agoMerge "Introduce ONLY_IF_NO_MATCH_FOUND in CrossProfileIntentFilter"
Tony Mak [Fri, 4 Dec 2015 09:26:35 +0000 (09:26 +0000)]
Merge "Introduce ONLY_IF_NO_MATCH_FOUND in CrossProfileIntentFilter"

8 years agoMerge "Add capability to receive FD with NativeDaemonConnector."
Daichi Hirono [Fri, 4 Dec 2015 05:28:44 +0000 (05:28 +0000)]
Merge "Add capability to receive FD with NativeDaemonConnector."

8 years agoAdd capability to receive FD with NativeDaemonConnector.
Daichi Hirono [Thu, 19 Nov 2015 07:58:57 +0000 (16:58 +0900)]
Add capability to receive FD with NativeDaemonConnector.

BUG=25755372

Change-Id: I2888219b77cf04f4bf749d5518ff62ba16258f2d

8 years agoMerge "Grant USB device permission for android.media UID always."
Daichi Hirono [Fri, 4 Dec 2015 05:13:06 +0000 (05:13 +0000)]
Merge "Grant USB device permission for android.media UID always."

8 years agoGrant USB device permission for android.media UID always.
Daichi Hirono [Thu, 3 Dec 2015 07:57:12 +0000 (16:57 +0900)]
Grant USB device permission for android.media UID always.

The UID is used by MtpDocumentsProvider that is a system component and
needs to access MTP devices.

BUG=25983848

Change-Id: Iaa20a849cb9e7a86bde6c5bf8abbb15e65ced6c3

8 years agoMerge "Polish MtpManagerTest."
Daichi Hirono [Fri, 4 Dec 2015 03:34:19 +0000 (03:34 +0000)]
Merge "Polish MtpManagerTest."

8 years agoPolish MtpManagerTest.
Daichi Hirono [Thu, 3 Dec 2015 09:09:16 +0000 (18:09 +0900)]
Polish MtpManagerTest.

Change-Id: Ibadd209ee1cb752f0e55694d0f1f631c558f1370

8 years agoBring along the rest of the change too.
Jeff Sharkey [Fri, 4 Dec 2015 03:12:45 +0000 (20:12 -0700)]
Bring along the rest of the change too.

Change-Id: Ic1ca033e7f4003f7c7d10d3a47de00006f18fe02

8 years agoGrr, fix build from a skipped merge.
Jeff Sharkey [Fri, 4 Dec 2015 03:06:46 +0000 (20:06 -0700)]
Grr, fix build from a skipped merge.

Change-Id: Id5961399c6057b8d721ad2a858aa91d107b0ab94

8 years agoMerge "USB MIDI: Fix race condition that causes intermittent connections." am: 1c9bdf...
Phil Burk [Fri, 4 Dec 2015 02:50:39 +0000 (02:50 +0000)]
Merge "USB MIDI: Fix race condition that causes intermittent connections." am: 1c9bdfd029 am: ec719f1509
am: 740b6f6fc7

* commit '740b6f6fc7edc74b1ff73a3797cfecbd6d6941a0':
  USB MIDI: Fix race condition that causes intermittent connections.

8 years agoMerge "Allow customisation of advanced settings in DocumentsUI" am: f1b325c1ec am...
Jeff Sharkey [Fri, 4 Dec 2015 02:49:19 +0000 (02:49 +0000)]
Merge "Allow customisation of advanced settings in DocumentsUI" am: f1b325c1ec am: f2a3c341ab
am: b0b78ab587  -s ours

* commit 'b0b78ab5874b48c18fd10e939c4f134bcae52cd9':
  Allow customisation of advanced settings in DocumentsUI

8 years agoRemove some sized based resource (match support lib removal).
Filip Gruszczynski [Fri, 4 Dec 2015 02:37:38 +0000 (18:37 -0800)]
Remove some sized based resource (match support lib removal).

Bug: 25394588
Change-Id: I5b5b446667fc6ec028ec259da236967d3b2d22d2

8 years agoMark WIFI_AP_STATE_CHANGED_ACTION and extras @SystemApi.
Jeremy Klein [Tue, 1 Dec 2015 06:43:10 +0000 (22:43 -0800)]
Mark WIFI_AP_STATE_CHANGED_ACTION and extras @SystemApi.

These will be used by Magic Tether within GmsCore.

Change-Id: I06691e69d256d0400d16a7bb63e3406fada7b5f1

8 years agoMerge "Introduce accessibility large pointer icons."
Jun Mukai [Fri, 4 Dec 2015 01:53:16 +0000 (01:53 +0000)]
Merge "Introduce accessibility large pointer icons."

8 years agoMerge "Minor tweak to initial paging state."
Winson Chung [Fri, 4 Dec 2015 01:45:35 +0000 (01:45 +0000)]
Merge "Minor tweak to initial paging state."

8 years agoMerge "Fixing landscape transition into Recents."
Winson Chung [Fri, 4 Dec 2015 01:45:31 +0000 (01:45 +0000)]
Merge "Fixing landscape transition into Recents."

8 years agoMerge "Make it harder to dismiss recents when dragging up"
Jorim Jaggi [Fri, 4 Dec 2015 01:35:46 +0000 (01:35 +0000)]
Merge "Make it harder to dismiss recents when dragging up"

8 years agoMerge "USB MIDI: Fix race condition that causes intermittent connections." am: 1c9bdfd029
Phil Burk [Fri, 4 Dec 2015 01:27:36 +0000 (01:27 +0000)]
Merge "USB MIDI: Fix race condition that causes intermittent connections." am: 1c9bdfd029
am: ec719f1509

* commit 'ec719f1509807765dac661286000c7e411ec9662':
  USB MIDI: Fix race condition that causes intermittent connections.

8 years agoMinor tweak to initial paging state.
Winson [Fri, 4 Dec 2015 01:21:00 +0000 (17:21 -0800)]
Minor tweak to initial paging state.

- Making the scroll and focus animations identical so that it doesn't
  cause a weird flicker.

Change-Id: If1e3d23cd5ef45e429341c6bf7ac62b3a17eb662

8 years agoMerge "Introduce EditorInfo#locales."
Yohei Yukawa [Fri, 4 Dec 2015 01:21:02 +0000 (01:21 +0000)]
Merge "Introduce EditorInfo#locales."

8 years agoMerge "USB MIDI: Fix race condition that causes intermittent connections."
Phil Burk [Fri, 4 Dec 2015 01:18:51 +0000 (01:18 +0000)]
Merge "USB MIDI: Fix race condition that causes intermittent connections."
am: 1c9bdfd029

* commit '1c9bdfd0294cd1b13470ae6443bfa2ad425bd7dd':
  USB MIDI: Fix race condition that causes intermittent connections.

8 years agoMerge "Make LocaleList Parcelable."
Yohei Yukawa [Fri, 4 Dec 2015 01:18:41 +0000 (01:18 +0000)]
Merge "Make LocaleList Parcelable."

8 years agoMerge "USB MIDI: Fix race condition that causes intermittent connections."
Phil Burk [Fri, 4 Dec 2015 01:12:01 +0000 (01:12 +0000)]
Merge "USB MIDI: Fix race condition that causes intermittent connections."

8 years agoUSB MIDI: Fix race condition that causes intermittent connections.
Phil Burk [Fri, 4 Dec 2015 01:00:42 +0000 (17:00 -0800)]
USB MIDI: Fix race condition that causes intermittent connections.

Plugging in a USB MIDI device normally works.
But occasionally the device is not seen due to a race condition.
This code retries until the device is ready.

Change-Id: Ifba9c9678e6be0c3d139f3467f895307096a2ad8
Signed-off-by: Phil Burk <philburk@google.com>
8 years agoMake it harder to dismiss recents when dragging up
Jorim Jaggi [Fri, 4 Dec 2015 00:58:08 +0000 (16:58 -0800)]
Make it harder to dismiss recents when dragging up

Change-Id: I5883f754125e978ebac470a2c72a1dc13b05b052

8 years agoAdd tuner params to change the initial stack state and navbar gesture.
Winson [Fri, 4 Dec 2015 00:55:06 +0000 (16:55 -0800)]
Add tuner params to change the initial stack state and navbar gesture.

Change-Id: I114b8342f5293589eb96a1fd3a14da1757e75a95

8 years agoRun activity visibility adjustment even if there is no top running.
Filip Gruszczynski [Wed, 2 Dec 2015 20:49:58 +0000 (12:49 -0800)]
Run activity visibility adjustment even if there is no top running.

Ensuring visibility is triggered in unpredictable fashion, e.g. it can
be triggered by attachment of application. It can happen between an
activity stopping due to change of user, but before that operation is
finished and as a result the stopped activity will get marked as
visible even if we mark it as invisible in stop. Instead of trying the
activity as invisbile during stopping, we adjust the visibility ensuring
method to go through stack contents even if there is no top running
activity (because the top running activity is run by a different user)
and force the correct visibility.

Bug: 25958227

Change-Id: I4662667e8151fa25d947bacf33ba915389dd32e8

8 years agoFixing landscape transition into Recents.
Winson [Fri, 4 Dec 2015 00:13:07 +0000 (16:13 -0800)]
Fixing landscape transition into Recents.

- Fixing jump in transition when going into Recents in landscape
- Also adding check to prevent NPE when searching for a null task.

Change-Id: I3944ea54caaab41a069a9e8255601ec2871afe56

8 years agoMerge changes I284c851e,I3b1229e0,Ifbb10bac,I518521e6,I1f6a0efd
Jorim Jaggi [Fri, 4 Dec 2015 00:13:05 +0000 (00:13 +0000)]
Merge changes I284c851e,I3b1229e0,Ifbb10bac,I518521e6,I1f6a0efd

* changes:
  Drag up gesture improvements
  When dragging from the left side, dock on the right
  Draw status bar background in BackgroundFrameRenderer while resizing
  Don't remove colored bar views when relaunching
  Add flag so apps always draw status bar background

8 years agoMerge "Fix instrumentation context initialization"
Fyodor Kupolov [Fri, 4 Dec 2015 00:12:00 +0000 (00:12 +0000)]
Merge "Fix instrumentation context initialization"

8 years agoDrag up gesture improvements
Jorim Jaggi [Thu, 3 Dec 2015 02:37:54 +0000 (18:37 -0800)]
Drag up gesture improvements

- Use current velocity of finger for the animation, makes it feel
smoother.
- When flinging downwards, maximize the docked stack again to cancel
the gesture.

Change-Id: I284c851e2e418d21e890b9dfe983cfe63300fe10

8 years agoWhen dragging from the left side, dock on the right
Jorim Jaggi [Thu, 3 Dec 2015 02:17:07 +0000 (18:17 -0800)]
When dragging from the left side, dock on the right

In landscape, when dragging up from the left side, dock the current
app on the right side.

Change-Id: I3b1229e0d347db6cc1f55272c7d76694417977d0

8 years agoIntroduce EditorInfo#locales.
Yohei Yukawa [Thu, 3 Dec 2015 19:27:32 +0000 (11:27 -0800)]
Introduce EditorInfo#locales.

The primary goal of this CL is to enable application developers to
provide more context-based language (locale) information for IME
developers so that users can be benefited by more natural text input
experience.

As of API Level 23, there are several APIs that allow IMEs to retrieve
locale/country related information.

  - Locale#getDefault()
  - Configuration#locale
  - LocaleSpan#getLocale()
  - SubscriptionInfo#getCountryIso()

However, only LocaleSpan#getLocale() can be used to pass application
specific languge (locale) context from applications to IMEs.  Also
LocaleSpan is not designed to be used per input-context.  We want to
have something in EditorInfo and LocaleList would be the right thing.

Although default implementation of TextView#onCreateInputConnection()
starts filling EditorInfo#localeList with TextView#getTextLocales() by
this CL, application developers are encouraged to provide its own
LocaleList when they are confident that the user want to use a
certain (set) of language(s).

For instance, a chat application may be able to guess what language will
be used in the conversation before the user start typing.  At least it
should be able to remember the last used language for each conversation.

Another instance would be "From" and "To" EditText fields in a
translation app.  Those fields should have different LocaleList based on
the languages that the user want to translate from and to.

Bug: 22859862
Change-Id: I77db5b99a7cf745d800db75baf135bb60ad04820

8 years agoMerge "Fix window disappearing when docking a second app"
Chong Zhang [Fri, 4 Dec 2015 00:06:38 +0000 (00:06 +0000)]
Merge "Fix window disappearing when docking a second app"

8 years agoDraw status bar background in BackgroundFrameRenderer while resizing
Jorim Jaggi [Wed, 2 Dec 2015 23:11:45 +0000 (15:11 -0800)]
Draw status bar background in BackgroundFrameRenderer while resizing

To make sure there is always enough contrast between the status bar
icons and the background, we move the drawing for the status bar
background into BackdropFrameRenderer while resizing, so we can
extend the width into the full surface width.

Bug: 24365214
Change-Id: Ifbb10bacf66670c3637f6f6730a8ac47eb1c3939

8 years agoFix window disappearing when docking a second app
Chong Zhang [Thu, 3 Dec 2015 23:36:21 +0000 (15:36 -0800)]
Fix window disappearing when docking a second app

When moving app1 to docked stack, the app2 is resized while in background
(fullscreen stack). Because of the config change, mWillReplaceWindow is
marked true. But since the app2 is in GONE state, all updates of mFrame
are skipped. When it's made visible again, because mWillReplaceWindow is
set, update of mFrame in computeFrameLw() is still skipped, resulting in
wrong mFrame being used.

The fix here is to not set mWillReplaceWindow if the app is not visible,
as we don't need to preserve old window.

Also fix position change check.

bug: 25937471
Change-Id: Iea506296ebd5c2a108368fb2d1d77cdc31a36cdc

8 years agoMake LocaleList Parcelable.
Yohei Yukawa [Thu, 3 Dec 2015 19:27:05 +0000 (11:27 -0800)]
Make LocaleList Parcelable.

This is a preparation work to pass LocaleList from TextView to IMEs via
EditorInfo.

Marshalling and unmrshlling LocaleList via Parcel is actually not so
difficult.  We can reuse its internal data representation "localeTags"
as a canonical serialization format.

As for implementation, there are two choices.  One is making LocaleList
Parcelable and the other is having a utility method to do that.

This CL uses Parcelable approach so that not only Framework but also
application developers can reuse the code.

Bug: 22859862
Change-Id: Ib28363bd5ff74228d2abeaa95004ec8bed72bddd

8 years agoMerge "Reorganize hwui test directories"
Chris Craik [Thu, 3 Dec 2015 23:39:22 +0000 (23:39 +0000)]
Merge "Reorganize hwui test directories"

8 years agoMerge "Add a test for constructLocaleFromString(String)."
Yohei Yukawa [Thu, 3 Dec 2015 23:31:44 +0000 (23:31 +0000)]
Merge "Add a test for constructLocaleFromString(String)."

8 years agoMerge "Set Tether APN protocol type to IPv4 for Telus" into mnc-dr1.5-dev am: 9eacc97...
Vineeta Srivastava [Thu, 3 Dec 2015 23:27:58 +0000 (23:27 +0000)]
Merge "Set Tether APN protocol type to IPv4 for Telus" into mnc-dr1.5-dev am: 9eacc97d71 am: 360930372f
am: 9bbb90383e

* commit '9bbb90383e6d8e78ac68248ff278394b37dc9fb8':
  Set Tether APN protocol type to IPv4 for Telus

8 years agoDon't remove colored bar views when relaunching
Jorim Jaggi [Tue, 1 Dec 2015 23:19:49 +0000 (15:19 -0800)]
Don't remove colored bar views when relaunching

Change-Id: I518521e6b5e0b18a7f9ad9c7c6a67d55e2dfa2ab

8 years agoAdd flag so apps always draw status bar background
Jorim Jaggi [Tue, 1 Dec 2015 01:13:56 +0000 (17:13 -0800)]
Add flag so apps always draw status bar background

So we don't have to implement crazy magic when one app requests
drawing the status bar by itself, and the other doesn't in split
mode.

Bug: 24365214
Change-Id: I1f6a0efd0865b784402055e008da2f31e626f163

8 years agoMerge "Fix repositionChild positioning."
Rob Carr [Thu, 3 Dec 2015 23:23:26 +0000 (23:23 +0000)]
Merge "Fix repositionChild positioning."

8 years agoAdd a test for constructLocaleFromString(String).
Yohei Yukawa [Thu, 3 Dec 2015 23:21:15 +0000 (15:21 -0800)]
Add a test for constructLocaleFromString(String).

This is a follow up CL for ed65bc0c62ca99a118057db7ad54c4ccc14d52d0 [1],
which fixed special handling of a fake language code "tl".

  [1] Ica9cd2baac002c406f92331aadd7725d7424046a

Bug: 20696126
Change-Id: Ifc8bf2ff6bd617a215e4b68f6b2bf9b94e80db07

8 years agoMerge "Allow customisation of advanced settings in DocumentsUI" am: f1b325c1ec
Jeff Sharkey [Thu, 3 Dec 2015 23:19:42 +0000 (23:19 +0000)]
Merge "Allow customisation of advanced settings in DocumentsUI" am: f1b325c1ec
am: f2a3c341ab

* commit 'f2a3c341ab9061b576ab399e1336e9e45afb8c2e':
  Allow customisation of advanced settings in DocumentsUI

8 years agoFix repositionChild positioning.
Robert Carr [Thu, 3 Dec 2015 00:53:18 +0000 (16:53 -0800)]
Fix repositionChild positioning.

Two seperate issues corrected. First top and left
were swapped as parameters to repositionChild. Second
the recent change to update attributes was incomplete.
Updating the attributes fixes the size and scaling
but its also necessary to update the frame in order
to trigger an update to mShownPosition. Extract and
use a method applyGravityAndUpdateFrame to do so.

Bug: 25791641
Change-Id: Id0b98d587e8acf163121b28eb377c4cf83ebc58b

8 years agoMerge "Allow customisation of advanced settings in DocumentsUI"
Jeff Sharkey [Thu, 3 Dec 2015 23:11:51 +0000 (23:11 +0000)]
Merge "Allow customisation of advanced settings in DocumentsUI"
am: f1b325c1ec

* commit 'f1b325c1ec41c09f6efeb3d7709e7e7af93eacb8':
  Allow customisation of advanced settings in DocumentsUI

8 years agoMerge "Allow customisation of advanced settings in DocumentsUI"
Jeff Sharkey [Thu, 3 Dec 2015 23:04:29 +0000 (23:04 +0000)]
Merge "Allow customisation of advanced settings in DocumentsUI"

8 years agoAllow customisation of advanced settings in DocumentsUI
Edward Savage-Jones [Tue, 21 Jan 2014 14:45:44 +0000 (15:45 +0100)]
Allow customisation of advanced settings in DocumentsUI

Enables the customisation of the default value of the DocumentsUI
'advanced' setting using overlays.

Change-Id: I240cbb845d15ab2ea6ae7a79a17b4f51905fdb9c

8 years agoMerge changes I1e345044,I8c00aba3,I91536ce4
Winson Chung [Thu, 3 Dec 2015 22:57:06 +0000 (22:57 +0000)]
Merge changes I1e345044,I8c00aba3,I91536ce4

* changes:
  Fixing crash when the focused task was removed.
  Freeform workspace fixes
  Fixing jump when second finger touches the stack.

8 years agoMerge "Attempt to unlock users with null token."
Jeff Sharkey [Thu, 3 Dec 2015 22:36:07 +0000 (22:36 +0000)]
Merge "Attempt to unlock users with null token."

8 years agoAttempt to unlock users with null token.
Jeff Sharkey [Thu, 3 Dec 2015 22:23:08 +0000 (15:23 -0700)]
Attempt to unlock users with null token.

When starting a locked user, try unlocking their storace will a null
token, which will typically succeed if there is an insecure
lockscreen (no PIN or pattern).

For users with a secure lockscreen, pass through a stub token for
now to indicate that it came from a user challenge.  Eventually we'll
hook that up to gatekeeperd.

Without this, we were only unlocking users with secure lockscreens.

Bug: 25943941
Change-Id: Ia0324d50f43f55dfe0b8366793ddc5d25d885922

8 years agoFixing crash when the focused task was removed.
Winson [Thu, 3 Dec 2015 20:02:38 +0000 (12:02 -0800)]
Fixing crash when the focused task was removed.

- The previous fix didn’t work when the stack changed and the focused
  task indices shifted.  It’s easier to just keep track of the focused
  task so that we can clean it up directly.

Bug: 25975225
Change-Id: I1e345044165d3a0a5eab29fb8c2a3f59df615832

8 years agoFreeform workspace fixes
Winson [Thu, 3 Dec 2015 18:55:01 +0000 (10:55 -0800)]
Freeform workspace fixes

- Fixing issue with the wrong task view index being calculated for
  freeform workspace tasks causing them to be invisible when dragged
  to the stack
- Reducing unnecessary detach/reattach calls for freeform tasks
- Adding freeform workspace background to match exit to home animation

Change-Id: I8c00aba377601da92195ef301ba5da1ffb0045c5

8 years agoFixing jump when second finger touches the stack.
Winson [Thu, 3 Dec 2015 18:07:52 +0000 (10:07 -0800)]
Fixing jump when second finger touches the stack.

Change-Id: I91536ce49d04bc13cbd54f230139592d1d3a3cf1

8 years agoMerge "Adding workaround to prevent flicker in Recents when resizing."
Winson Chung [Thu, 3 Dec 2015 22:23:47 +0000 (22:23 +0000)]
Merge "Adding workaround to prevent flicker in Recents when resizing."

8 years agoMerge "Set Tether APN protocol type to IPv4 for Telus" into mnc-dr1.5-dev am: 9eacc97d71
Vineeta Srivastava [Thu, 3 Dec 2015 22:09:58 +0000 (22:09 +0000)]
Merge "Set Tether APN protocol type to IPv4 for Telus" into mnc-dr1.5-dev am: 9eacc97d71
am: 360930372f

* commit '360930372fcab1a093bd1cd7d11bd082255577d8':
  Set Tether APN protocol type to IPv4 for Telus

8 years agoAdding workaround to prevent flicker in Recents when resizing.
Winson [Thu, 3 Dec 2015 22:03:07 +0000 (14:03 -0800)]
Adding workaround to prevent flicker in Recents when resizing.

Change-Id: Id5b12e1208f2a624b386c2388081565205aeca54

8 years agoMerge "Set Tether APN protocol type to IPv4 for Telus" into mnc-dr1.5-dev
Vineeta Srivastava [Thu, 3 Dec 2015 22:01:30 +0000 (22:01 +0000)]
Merge "Set Tether APN protocol type to IPv4 for Telus" into mnc-dr1.5-dev
am: 9eacc97d71

* commit '9eacc97d71166a05ec0eb67025a00cb4e57979c8':
  Set Tether APN protocol type to IPv4 for Telus

8 years agoMerge "Set Tether APN protocol type to IPv4 for Telus" into mnc-dr1.5-dev
Vineeta Srivastava [Thu, 3 Dec 2015 21:56:29 +0000 (21:56 +0000)]
Merge "Set Tether APN protocol type to IPv4 for Telus" into mnc-dr1.5-dev

8 years agoSet Tether APN protocol type to IPv4 for Telus
Hyejin Kim [Fri, 30 Oct 2015 00:46:53 +0000 (09:46 +0900)]
Set Tether APN protocol type to IPv4 for Telus

BUG=25356170
Change-Id: I080c354409d263388844543bf7a57ff6c28d760f

8 years agoMerge "Stop using 512 bit RSA keys in keyset unit tests." am: 59c9bfd41b am: b1e7f6d287
Alex Klyubin [Thu, 3 Dec 2015 21:33:44 +0000 (21:33 +0000)]
Merge "Stop using 512 bit RSA keys in keyset unit tests." am: 59c9bfd41b am: b1e7f6d287
am: 64868d11dd

* commit '64868d11dd1597267631bc6b519c1eacbfd90396':
  Stop using 512 bit RSA keys in keyset unit tests.

8 years agoMerge "allow locking UI mode and block launching car dock for automotive"
Keun-young Park [Thu, 3 Dec 2015 21:31:23 +0000 (21:31 +0000)]
Merge "allow locking UI mode and block launching car dock for automotive"