OSDN Git Service

android-x86/frameworks-base.git
8 years agoAdded 46654* to fee-free US short codes.
Yorick Henning [Sat, 5 Dec 2015 00:27:04 +0000 (16:27 -0800)]
Added 46654* to fee-free US short codes.

This change excludes the Google Wallet dedicated short code (being used
    by the Google Wallet team to send notifications to users) from
premium phone numbers. Users may answer the text message free of charge
(e.g. answering HELP). Google internal reference b/25675421.

Change-Id: Ic022ccc19151224b53c8a35c9568e9b943d8220d

8 years agoMerge changes I0af0f520,I51be014c
Yohei Yukawa [Fri, 4 Dec 2015 22:49:49 +0000 (22:49 +0000)]
Merge changes I0af0f520,I51be014c

* changes:
  Rewrite a fake language code "tl" in SpellChecker.
  retry: Add @hide SpellCheckerSubtype#getLocaleObject().

8 years agoMerge "Add tagging variants for DatagramSocket."
Jeff Sharkey [Fri, 4 Dec 2015 22:44:40 +0000 (22:44 +0000)]
Merge "Add tagging variants for DatagramSocket."

8 years agoRewrite a fake language code "tl" in SpellChecker.
Yohei Yukawa [Fri, 4 Dec 2015 22:43:17 +0000 (14:43 -0800)]
Rewrite a fake language code "tl" in SpellChecker.

With following CLs, we already have a special rewrite rule of "tl" to
"fil" for IMEs that are targeting older versions of Android earlier than
Lollipop that did not support three letter language codes and used
"tl" (Tagalog) as the language string for "fil" (Filipino).
  - 92280cd309b0f5967dd253280962d8581844db89 [1]
  - ed65bc0c62ca99a118057db7ad54c4ccc14d52d0 [2]

  [1]: I94f203bddceb9c87710cb187cc3cc0ee6d9092a5
  [2]: Ica9cd2baac002c406f92331aadd7725d7424046a

With this CL, we have the same rewrite rule for spell checker services.

Bug: 20696126
Change-Id: I0af0f520a15337e33973391c9965364e3ae1ee4c

8 years agoretry: Add @hide SpellCheckerSubtype#getLocaleObject().
Yohei Yukawa [Fri, 4 Dec 2015 22:43:01 +0000 (14:43 -0800)]
retry: Add @hide SpellCheckerSubtype#getLocaleObject().

This is the 2nd try of I39dc0c310158ad23ba6c987efce07deaf30ce693.

This is a mechanical refactoring with no behavior change.

With this CL, InputMethodSubtype and SpellCheckerSubtype have the same
getLocaleObject() hidden API, which makes it easy to share the logic in
subsequent CLs.

No behavior change is intended.

Bug: 11736916
Bug: 20696126
Bug: 22858221
Change-Id: I51be014c752b736a808e2b0d56e664941a218a2f

8 years agoAdd tagging variants for DatagramSocket.
Jeff Sharkey [Fri, 4 Dec 2015 22:21:52 +0000 (15:21 -0700)]
Add tagging variants for DatagramSocket.

Oops, we missed these along the way.

Bug: 25799174
Change-Id: I4ad368f9faee4b1996d605534dce4c2b23dbe200

8 years agoMerge "Revert "Add @hide SpellCheckerSubtype#getLocaleObject().""
Yohei Yukawa [Fri, 4 Dec 2015 22:30:45 +0000 (22:30 +0000)]
Merge "Revert "Add @hide SpellCheckerSubtype#getLocaleObject().""

8 years agoMerge "Fix broken copy after recent copy related chagnes."
Steve McKay [Fri, 4 Dec 2015 22:29:43 +0000 (22:29 +0000)]
Merge "Fix broken copy after recent copy related chagnes."

8 years agoRevert "Add @hide SpellCheckerSubtype#getLocaleObject()."
Yohei Yukawa [Fri, 4 Dec 2015 22:24:15 +0000 (22:24 +0000)]
Revert "Add @hide SpellCheckerSubtype#getLocaleObject()."

This reverts commit e3c761c87efdee7c28461559015fa76602d4605a.

Previous CL unintentionaly contained behavior change.

Change-Id: I1e350f224df815e991d9f42ac4145ecfc5c1c8b0

8 years agoMerge "Added default config to enable adding users from lockscreen"
Suprabh Shukla [Fri, 4 Dec 2015 22:26:20 +0000 (22:26 +0000)]
Merge "Added default config to enable adding users from lockscreen"

8 years agoFix broken copy after recent copy related chagnes.
Steve McKay [Fri, 4 Dec 2015 19:19:09 +0000 (11:19 -0800)]
Fix broken copy after recent copy related chagnes.

Also, add a label to Downloads app, and enabled drag and drop by default.
Cleanued up menu handling in BaseActivity (use switch statement).

Bug: 26033335
Change-Id: I3cef89a4a9f9e30b4e926411e94cf06bc2dc0f8d

8 years agoMerge "Add @hide SpellCheckerSubtype#getLocaleObject()."
Yohei Yukawa [Fri, 4 Dec 2015 22:17:32 +0000 (22:17 +0000)]
Merge "Add @hide SpellCheckerSubtype#getLocaleObject()."

8 years agoMerge "Refactoring: pulled ServiceHandler methods to its parent class."
Felipe Leme [Fri, 4 Dec 2015 22:14:05 +0000 (22:14 +0000)]
Merge "Refactoring: pulled ServiceHandler methods to its parent class."

8 years agoMerge "Add SpellCheckerSubtypeTest."
Yohei Yukawa [Fri, 4 Dec 2015 22:12:36 +0000 (22:12 +0000)]
Merge "Add SpellCheckerSubtypeTest."

8 years agoMerge "Changed workflow so max progress can be dynamically updated."
Felipe Leme [Fri, 4 Dec 2015 22:12:20 +0000 (22:12 +0000)]
Merge "Changed workflow so max progress can be dynamically updated."

8 years agoAdd @hide SpellCheckerSubtype#getLocaleObject().
Yohei Yukawa [Fri, 4 Dec 2015 02:12:40 +0000 (18:12 -0800)]
Add @hide SpellCheckerSubtype#getLocaleObject().

This is a mechanical refactoring with no behavior change.

With this CL, InputMethodSubtype and SpellCheckerSubtype have the same
getLocaleObject() hidden API, which makes it easy to share the logic in
subsequent CLs.

Bug: 11736916
Bug: 20696126
Bug: 22858221
Change-Id: I39dc0c310158ad23ba6c987efce07deaf30ce693

8 years agoRefactoring: pulled ServiceHandler methods to its parent class.
Felipe Leme [Fri, 4 Dec 2015 20:15:30 +0000 (12:15 -0800)]
Refactoring: pulled ServiceHandler methods to its parent class.

Now ServiceHandler only have 2 methods:

- handleMessage(): part of its interface.
- poll(): delegates work to parent, but sends a delayed message
  so it keeps polling.

Also changed hardcoded "N/A" to a resource.

BUG: 25794470
Change-Id: I486fff46c1532685bfd6f5903349d14e55059219

8 years agoMerge "Improved phrasing for "in progress" message."
Felipe Leme [Fri, 4 Dec 2015 21:48:14 +0000 (21:48 +0000)]
Merge "Improved phrasing for "in progress" message."

8 years agoMerge "Add package command to print resolve activity."
Dianne Hackborn [Fri, 4 Dec 2015 21:28:59 +0000 (21:28 +0000)]
Merge "Add package command to print resolve activity."

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 agoAdd SpellCheckerSubtypeTest.
Yohei Yukawa [Fri, 4 Dec 2015 01:49:07 +0000 (17:49 -0800)]
Add SpellCheckerSubtypeTest.

Before introducing behavior changes, this CL adds
SpellCheckerSubtypeTest to make the current behavior clear.

Bug: 11736916
Bug: 20696126
Bug: 22858221
Change-Id: Ied18580f31497156510e1b785adfc248683ba94d

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 agoChanged workflow so max progress can be dynamically updated.
Felipe Leme [Mon, 30 Nov 2015 23:41:11 +0000 (15:41 -0800)]
Changed workflow so max progress can be dynamically updated.

BUG: 25794470
Change-Id: I75dfdabf9febf54f2fb714441d48b339f8d3d293

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 agoImproved phrasing for "in progress" message.
Felipe Leme [Fri, 4 Dec 2015 01:42:31 +0000 (17:42 -0800)]
Improved phrasing for "in progress" message.

BUG: 25948539
Change-Id: Ie746a12207da337ec26e85dfbbd4188aa751c20d

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