OSDN Git Service

android-x86/frameworks-base.git
6 years agoFix CTS TextViewTest
Seigo Nonaka [Thu, 1 Mar 2018 22:29:34 +0000 (14:29 -0800)]
Fix CTS TextViewTest

Id65a7e36487375f0e3a2c2da44ad8d7c5ea49734 changes the typeface
associated with the TextView. It used be null if no attribute was set,
but after above change, it is now Typeface.DEFAULT.

The typeface is null means Typeface.DEFAULT but there is an expectations
in CTS that getTypeface must return null if no attribute was set.

To keep this behavior, call setTypeface with null if no font weight value
was set.

Bug: 74080879
Test: atest CtsWidgetTestCases:EditTextTest
    CtsWidgetTestCases:TextViewFadingEdgeTest
    FrameworksCoreTests:TextViewFallbackLineSpacingTest
    FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest
    CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest
    CtsTextTestCases FrameworksCoreTests:android.text

Change-Id: Ic91827bbeed8a3a4b148dd8d305c78e384407ab0

6 years agoMerge "TURN OFF -> Turn off"
TreeHugger Robot [Thu, 1 Mar 2018 17:57:21 +0000 (17:57 +0000)]
Merge "TURN OFF -> Turn off"

6 years agoMerge "Use non-condensed font for QS labels"
TreeHugger Robot [Thu, 1 Mar 2018 17:52:24 +0000 (17:52 +0000)]
Merge "Use non-condensed font for QS labels"

6 years agoMerge "Sanity check to avoice NPE if an app-provided URI is invalid."
TreeHugger Robot [Thu, 1 Mar 2018 17:31:40 +0000 (17:31 +0000)]
Merge "Sanity check to avoice NPE if an app-provided URI is invalid."

6 years agoMerge "Removed AMS.updatePersistableUriPermission()"
TreeHugger Robot [Thu, 1 Mar 2018 17:30:33 +0000 (17:30 +0000)]
Merge "Removed AMS.updatePersistableUriPermission()"

6 years agoMerge "Send ACTION_POWER_SAVE_MODE_CHANGING to secondary users too"
TreeHugger Robot [Thu, 1 Mar 2018 17:27:26 +0000 (17:27 +0000)]
Merge "Send ACTION_POWER_SAVE_MODE_CHANGING to secondary users too"

6 years agoMerge "Mark location classes as Parcelable appropriately"
Arthur Ishiguro [Thu, 1 Mar 2018 17:10:14 +0000 (17:10 +0000)]
Merge "Mark location classes as Parcelable appropriately"

6 years agoMerge "Only animate drag handle alpha, not translation."
TreeHugger Robot [Thu, 1 Mar 2018 16:56:31 +0000 (16:56 +0000)]
Merge "Only animate drag handle alpha, not translation."

6 years agoMerge "Tweak DateFormat.is24HourFormat javadoc to be more explicit." am: 093c509c40...
Przemyslaw Szczepaniak [Thu, 1 Mar 2018 16:55:45 +0000 (16:55 +0000)]
Merge "Tweak DateFormat.is24HourFormat javadoc to be more explicit." am: 093c509c40 am: 031b91574d
am: 54ebb3e0b7

Change-Id: Ie218259d09539ec004ccf9fca88133227323d6e2

6 years agoMerge "Tweak DateFormat.is24HourFormat javadoc to be more explicit." am: 093c509c40
Przemyslaw Szczepaniak [Thu, 1 Mar 2018 16:43:31 +0000 (16:43 +0000)]
Merge "Tweak DateFormat.is24HourFormat javadoc to be more explicit." am: 093c509c40
am: 031b91574d

Change-Id: I50385cb665a557baad8b271bcfd4431072db7592

6 years agoMerge "Tweak DateFormat.is24HourFormat javadoc to be more explicit."
Przemyslaw Szczepaniak [Thu, 1 Mar 2018 16:37:13 +0000 (16:37 +0000)]
Merge "Tweak DateFormat.is24HourFormat javadoc to be more explicit."
am: 093c509c40

Change-Id: I562562c1abc3a5a64820ca5eaa244f00a75c4200

6 years agoMerge "Add temporary logging for state transitions."
Bryce Lee [Thu, 1 Mar 2018 16:33:54 +0000 (16:33 +0000)]
Merge "Add temporary logging for state transitions."

6 years agoTURN OFF -> Turn off
Amin Shaikh [Thu, 1 Mar 2018 16:31:09 +0000 (11:31 -0500)]
TURN OFF -> Turn off

Bug: 72549790
Test: visual
Change-Id: I756c7893a00ec701c8112e878bbcb2b7b0d0319e

6 years agoMerge "Use destroy in transaction for animation"
Chavi Weingarten [Thu, 1 Mar 2018 16:28:32 +0000 (16:28 +0000)]
Merge "Use destroy in transaction for animation"

6 years agoUse non-condensed font for QS labels
Evan Laird [Thu, 1 Mar 2018 16:13:58 +0000 (11:13 -0500)]
Use non-condensed font for QS labels

Test: visual
Change-Id: Iab2f2ff09a5c62f86730b90aa47f9cb2179ce2e5
Fixes: 74022469

6 years agoMerge "Remove calls to setAccount and getAccount in test"
TreeHugger Robot [Thu, 1 Mar 2018 15:11:16 +0000 (15:11 +0000)]
Merge "Remove calls to setAccount and getAccount in test"

6 years agoMerge "Tweak DateFormat.is24HourFormat javadoc to be more explicit."
Przemyslaw Szczepaniak [Thu, 1 Mar 2018 15:11:14 +0000 (15:11 +0000)]
Merge "Tweak DateFormat.is24HourFormat javadoc to be more explicit."

6 years agoOnly animate drag handle alpha, not translation.
Amin Shaikh [Thu, 1 Mar 2018 14:03:52 +0000 (09:03 -0500)]
Only animate drag handle alpha, not translation.

Bug: 73312177
Test: visual
Change-Id: I47f1bc0f0bf72a73c3e42c5cdd7df3c22218f7aa

6 years agoMerge "DisplayCutout: Add xml wrapper for layoutInDisplayCutoutMode"
Adrian Roos [Thu, 1 Mar 2018 13:57:22 +0000 (13:57 +0000)]
Merge "DisplayCutout: Add xml wrapper for layoutInDisplayCutoutMode"

6 years agoRemove calls to setAccount and getAccount in test
Robert Berry [Thu, 1 Mar 2018 13:21:07 +0000 (13:21 +0000)]
Remove calls to setAccount and getAccount in test

This param is now deprecated.

Test: runtest frameworks-services -p \
      com.android.server.locksettings.recoverablekeystore

Change-Id: I318edba915cb15280b884181ae868b4b07a35098

6 years agoMerge "Merge "frameworks/base: Set LOCAL_SDK_VERSION where possible." am: c164c83191...
Android Build Merger (Role) [Thu, 1 Mar 2018 12:06:09 +0000 (12:06 +0000)]
Merge "Merge "frameworks/base: Set LOCAL_SDK_VERSION where possible." am: c164c83191 am: 9ee9e6b2b6 am: 09ad1cbdc0  -s ours"

6 years agoMerge "frameworks/base: Set LOCAL_SDK_VERSION where possible." am: c164c83191 am...
Anton Hansson [Thu, 1 Mar 2018 12:05:36 +0000 (12:05 +0000)]
Merge "frameworks/base: Set LOCAL_SDK_VERSION where possible." am: c164c83191 am: 9ee9e6b2b6
am: 09ad1cbdc0  -s ours

Change-Id: Ie6a6e4241fbf4b614fa0683419e58969559992fe

6 years agoMerge "lowRamDevice TVs can have multi-user"
TreeHugger Robot [Thu, 1 Mar 2018 12:03:29 +0000 (12:03 +0000)]
Merge "lowRamDevice TVs can have multi-user"

6 years agoMerge "frameworks/base: Set LOCAL_SDK_VERSION where possible." am: c164c83191
Anton Hansson [Thu, 1 Mar 2018 11:53:43 +0000 (11:53 +0000)]
Merge "frameworks/base: Set LOCAL_SDK_VERSION where possible." am: c164c83191
am: 9ee9e6b2b6

Change-Id: I984b5ee633078401769d3c649aa9b020715772df

6 years agoMerge "frameworks/base: Set LOCAL_SDK_VERSION where possible."
Anton Hansson [Thu, 1 Mar 2018 11:46:29 +0000 (11:46 +0000)]
Merge "frameworks/base: Set LOCAL_SDK_VERSION where possible."
am: c164c83191

Change-Id: Icd753634a498a9c1a2d2e27ad4e6cd788e7b9e1f

6 years agoMerge "Revert "Complete [add|remove]OnSessionTokensChangedListener""
Clara Bayarri [Thu, 1 Mar 2018 10:44:41 +0000 (10:44 +0000)]
Merge "Revert "Complete [add|remove]OnSessionTokensChangedListener""

6 years agoTweak DateFormat.is24HourFormat javadoc to be more explicit.
Przemyslaw Szczepaniak [Thu, 1 Mar 2018 10:35:57 +0000 (10:35 +0000)]
Tweak DateFormat.is24HourFormat javadoc to be more explicit.

Bug: 32761394
Test: make docs
Change-Id: If10da5b9d63e6e88774e333d5c266e423e6bc7c8

6 years agoMerge "frameworks/base: Set LOCAL_SDK_VERSION where possible."
Anton Hansson [Thu, 1 Mar 2018 10:25:12 +0000 (10:25 +0000)]
Merge "frameworks/base: Set LOCAL_SDK_VERSION where possible."

6 years agoRevert "Complete [add|remove]OnSessionTokensChangedListener"
Esteban Talavera [Thu, 1 Mar 2018 10:13:34 +0000 (10:13 +0000)]
Revert "Complete [add|remove]OnSessionTokensChangedListener"

This reverts commit 86c7d721630ce0c6f4e4069e779e32d591a394c9.

Reason for revert: Broke several targets on git_master

Change-Id: I0876582b5211db90e25897690d57de6b179a50c5

6 years agoMerge "Update javadoc for DISALLOW_SYSTEM_ERROR_DIALOGS"
Benjamin Franz [Thu, 1 Mar 2018 09:30:12 +0000 (09:30 +0000)]
Merge "Update javadoc for DISALLOW_SYSTEM_ERROR_DIALOGS"

6 years agoMerge "Complete [add|remove]OnSessionTokensChangedListener"
Christofer Ã…kersten [Thu, 1 Mar 2018 07:54:03 +0000 (07:54 +0000)]
Merge "Complete [add|remove]OnSessionTokensChangedListener"

6 years agoMerge "MediaPlayer2: clean up APIs"
TreeHugger Robot [Thu, 1 Mar 2018 07:28:35 +0000 (07:28 +0000)]
Merge "MediaPlayer2: clean up APIs"

6 years agoMerge "AudioPolicy: support for add/remove AudioMix without unregistering"
Jean-Michel Trivi [Thu, 1 Mar 2018 07:00:39 +0000 (07:00 +0000)]
Merge "AudioPolicy: support for add/remove AudioMix without unregistering"

6 years agoMerge "Add TCM.getTextClassifier(int type)"
Abodunrinwa Toki [Thu, 1 Mar 2018 06:38:24 +0000 (06:38 +0000)]
Merge "Add TCM.getTextClassifier(int type)"

6 years agoMerge "Fix up NetworkCapabilities' toString" am: 7959e70ef2 am: 773523a667
Chalard Jean [Thu, 1 Mar 2018 06:13:04 +0000 (06:13 +0000)]
Merge "Fix up NetworkCapabilities' toString" am: 7959e70ef2 am: 773523a667
am: 669194a830

Change-Id: I3d3f3f34f30b69750e197b185c4e70bd360f35e0

6 years agoMerge "Plumb PhysicalChannelConfig all the way up." am: 44d13875ff am: c870528371
Eric Schwarzenbach [Thu, 1 Mar 2018 05:57:20 +0000 (05:57 +0000)]
Merge "Plumb PhysicalChannelConfig all the way up." am: 44d13875ff am: c870528371
am: 7771e91a99

Change-Id: Ia0a69386981e2984472e9153c161cca7bfccc9dd

6 years agoMerge "Fix up NetworkCapabilities' toString" am: 7959e70ef2
Chalard Jean [Thu, 1 Mar 2018 05:56:33 +0000 (05:56 +0000)]
Merge "Fix up NetworkCapabilities' toString" am: 7959e70ef2
am: 773523a667

Change-Id: I2f1578589232c49574dbf401d7f4becfa350a1c0

6 years agoMerge "Fix up NetworkCapabilities' toString"
Chalard Jean [Thu, 1 Mar 2018 05:48:14 +0000 (05:48 +0000)]
Merge "Fix up NetworkCapabilities' toString"
am: 7959e70ef2

Change-Id: I21e66bc78a763f9e37725f50ca8b406ac7259518

6 years agoMerge "Plumb PhysicalChannelConfig all the way up." am: 44d13875ff
Eric Schwarzenbach [Thu, 1 Mar 2018 05:47:20 +0000 (05:47 +0000)]
Merge "Plumb PhysicalChannelConfig all the way up." am: 44d13875ff
am: c870528371

Change-Id: I2b57a55e8bb36ba24578c00e2afaebfc21e0e4c3

6 years agoMerge "Plumb PhysicalChannelConfig all the way up."
Eric Schwarzenbach [Thu, 1 Mar 2018 05:38:49 +0000 (05:38 +0000)]
Merge "Plumb PhysicalChannelConfig all the way up."
am: 44d13875ff

Change-Id: I37f039ea44114b48b44bce7174deb3d55b2667fc

6 years agoMerge "Fix "app doesn't support backup and restore" bug"
Makoto Onuki [Thu, 1 Mar 2018 05:35:49 +0000 (05:35 +0000)]
Merge "Fix "app doesn't support backup and restore" bug"

6 years agoMerge "MediaSession2: Unhide setAudioFocusRequest"
TreeHugger Robot [Thu, 1 Mar 2018 05:11:24 +0000 (05:11 +0000)]
Merge "MediaSession2: Unhide setAudioFocusRequest"

6 years agoAudioPolicy: support for add/remove AudioMix without unregistering
Jean-Michel Trivi [Wed, 14 Feb 2018 16:57:46 +0000 (08:57 -0800)]
AudioPolicy: support for add/remove AudioMix without unregistering

System API for a registered AudioPolicy to attach or detach
  AudioMix without having to unregister, and then registering
  the new mix configuration.

Bug: 63906162
Test: AudioPolicyTest

Change-Id: Ib2fea8aa034d3f7b498e76dc1fc51c1ea508d3a2

6 years agoMerge "Remove RemoteSurfaceTrace functionality."
TreeHugger Robot [Thu, 1 Mar 2018 04:21:25 +0000 (04:21 +0000)]
Merge "Remove RemoteSurfaceTrace functionality."

6 years agoMerge "Fix up NetworkCapabilities' toString"
Chalard Jean [Thu, 1 Mar 2018 04:01:16 +0000 (04:01 +0000)]
Merge "Fix up NetworkCapabilities' toString"

6 years agoMediaPlayer2: clean up APIs
Wei Jia [Fri, 23 Feb 2018 17:16:08 +0000 (09:16 -0800)]
MediaPlayer2: clean up APIs

Make MediaPlayer2 derived from MediaPlayerBase
Test: MediaPlayer2 plays
Bug: 63934228
Change-Id: Ib31e3196ad65c694f778a8a79277e53017a7026f

6 years agoMerge "Plumb PhysicalChannelConfig all the way up."
Treehugger Robot [Thu, 1 Mar 2018 03:48:32 +0000 (03:48 +0000)]
Merge "Plumb PhysicalChannelConfig all the way up."

6 years agoMerge "MediaSession2: Refine APIs"
TreeHugger Robot [Thu, 1 Mar 2018 03:39:31 +0000 (03:39 +0000)]
Merge "MediaSession2: Refine APIs"

6 years agoMediaSession2: Unhide setAudioFocusRequest
Sungsoo Lim [Thu, 1 Mar 2018 00:08:40 +0000 (09:08 +0900)]
MediaSession2: Unhide setAudioFocusRequest

Bug: 64098437
Test: make update-api
Change-Id: I9244719e1a771ab7b420a95af6ba43faef7b352c

6 years agoMark location classes as Parcelable appropriately
Arthur Ishiguro [Wed, 28 Feb 2018 19:27:50 +0000 (11:27 -0800)]
Mark location classes as Parcelable appropriately

Doesn't add the "final" qualifier,
since make will throw errors due to compatibility issues.

Bug: 69622177
Test: Run CHQTS from master and oc-mr1-dev, verify pass
Change-Id: If02203d7862e77ca4fda7b95a39bbfa3d9f6d87d

6 years agoMerge "Prevent ripple animation when swiping up for quick step"
TreeHugger Robot [Thu, 1 Mar 2018 03:06:23 +0000 (03:06 +0000)]
Merge "Prevent ripple animation when swiping up for quick step"

6 years agoMerge "Reformat Android.bp file"
Logan Chien [Thu, 1 Mar 2018 03:00:30 +0000 (03:00 +0000)]
Merge "Reformat Android.bp file"

6 years agoMerge "Make activity-alias inherit "enableVrMode" attribute from target activity."
TreeHugger Robot [Thu, 1 Mar 2018 02:59:49 +0000 (02:59 +0000)]
Merge "Make activity-alias inherit "enableVrMode" attribute from target activity."

6 years agoMerge "Fix link-type check warning on com.android.mediadrm.signer"
TreeHugger Robot [Thu, 1 Mar 2018 02:47:23 +0000 (02:47 +0000)]
Merge "Fix link-type check warning on com.android.mediadrm.signer"

6 years agoMerge "Fix link-type check warning on com.android.media.remotedisplay"
TreeHugger Robot [Thu, 1 Mar 2018 02:47:15 +0000 (02:47 +0000)]
Merge "Fix link-type check warning on com.android.media.remotedisplay"

6 years agoMerge "autofill: touch on IME should not close autofill"
Dake Gu [Thu, 1 Mar 2018 02:40:03 +0000 (02:40 +0000)]
Merge "autofill: touch on IME should not close autofill"

6 years agoMerge "Add default implementation to handle master dev option switch."
TreeHugger Robot [Thu, 1 Mar 2018 02:38:47 +0000 (02:38 +0000)]
Merge "Add default implementation to handle master dev option switch."

6 years agoMerge "Don't hold the WM lock when canceling recents animation"
Winson Chung [Thu, 1 Mar 2018 02:33:54 +0000 (02:33 +0000)]
Merge "Don't hold the WM lock when canceling recents animation"

6 years agoMerge "Add setting for off body, radio off feature"
TreeHugger Robot [Thu, 1 Mar 2018 02:24:10 +0000 (02:24 +0000)]
Merge "Add setting for off body, radio off feature"

6 years agoMerge changes I5c2facba,I2fecbeaa,I045ddf19,I961d190d
TreeHugger Robot [Thu, 1 Mar 2018 02:06:40 +0000 (02:06 +0000)]
Merge changes I5c2facba,I2fecbeaa,I045ddf19,I961d190d

* changes:
  Move frame validation logic for deferTransactionUntil.
  Handle surfaceInset changes with deferred transactions.
  Various pinned animation bug fixes.
  Nuke WindowState#mShownPosition. Rework mXOffset/mYOffset.

6 years agoSanity check to avoice NPE if an app-provided URI is invalid.
Felipe Leme [Thu, 1 Mar 2018 01:37:52 +0000 (17:37 -0800)]
Sanity check to avoice NPE if an app-provided URI is invalid.

Test: atest VirtualContainerActivityCompatModeTest#testAutofillSync

Fixes: 73790788

Change-Id: Ic73eb800f4532425effb03396f0ab455142ab6dc

6 years agoMediaSession2: Refine APIs
Sungsoo Lim [Tue, 27 Feb 2018 12:39:50 +0000 (21:39 +0900)]
MediaSession2: Refine APIs

Bug: 64098437
Test: passed MediaComponentTest
Change-Id: I40e1ef141e47d17e2bfa0a689a680b45a3d73b03

6 years agoMerge "Auto set summary on preference during updateState"
TreeHugger Robot [Thu, 1 Mar 2018 01:29:22 +0000 (01:29 +0000)]
Merge "Auto set summary on preference during updateState"

6 years agoMerge "Add attr for customizing progress bar corner radius."
TreeHugger Robot [Thu, 1 Mar 2018 01:27:16 +0000 (01:27 +0000)]
Merge "Add attr for customizing progress bar corner radius."

6 years agoMerge "NEW API: Add Image.getHardwareBuffer()"
TreeHugger Robot [Thu, 1 Mar 2018 01:26:14 +0000 (01:26 +0000)]
Merge "NEW API: Add Image.getHardwareBuffer()"

6 years agoMerge "Finish ops started on behalf of a removed package."
TreeHugger Robot [Thu, 1 Mar 2018 01:11:35 +0000 (01:11 +0000)]
Merge "Finish ops started on behalf of a removed package."

6 years agoMerge "Use start/finish app ops in window manager"
TreeHugger Robot [Thu, 1 Mar 2018 01:11:25 +0000 (01:11 +0000)]
Merge "Use start/finish app ops in window manager"

6 years agoMerge "addModemTxPowerToHistory() made synchronized"
TreeHugger Robot [Thu, 1 Mar 2018 01:06:38 +0000 (01:06 +0000)]
Merge "addModemTxPowerToHistory() made synchronized"

6 years agoSend ACTION_POWER_SAVE_MODE_CHANGING to secondary users too
Makoto Onuki [Thu, 1 Mar 2018 00:56:21 +0000 (16:56 -0800)]
Send ACTION_POWER_SAVE_MODE_CHANGING to secondary users too

Change-Id: I161506575390f8e28cdfbb2d684c18e10aab5aa5
Fix: 73963359
Test: manual test on a guest user on the BS setting screen.

6 years agoMerge "Ringtone: unhide looping and volume control"
Jean-Michel Trivi [Thu, 1 Mar 2018 00:57:31 +0000 (00:57 +0000)]
Merge "Ringtone: unhide looping and volume control"

6 years agoMerge "Rename dumpsys protos to make platform proto names consistent."
TreeHugger Robot [Thu, 1 Mar 2018 00:54:51 +0000 (00:54 +0000)]
Merge "Rename dumpsys protos to make platform proto names consistent."

6 years agoMerge "Fixes set lock task (and screen pinning) state with/out quickstep"
TreeHugger Robot [Thu, 1 Mar 2018 00:41:50 +0000 (00:41 +0000)]
Merge "Fixes set lock task (and screen pinning) state with/out quickstep"

6 years agoFix "app doesn't support backup and restore" bug
Makoto Onuki [Thu, 1 Mar 2018 00:25:40 +0000 (16:25 -0800)]
Fix "app doesn't support backup and restore" bug

Always make sure to scan all packages before back up. There was a case
where SPI.updateFromPackageInfo() wasn't called before backup.

Fix: 72638013
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests
Test: atest CtsShortcutHostTestCases
Change-Id: I7fd39a62924a2d3724dfbd759ed157933af3f357

6 years agoPrevent ripple animation when swiping up for quick step
Matthew Ng [Wed, 28 Feb 2018 19:55:52 +0000 (11:55 -0800)]
Prevent ripple animation when swiping up for quick step

Do not show animation of ripple on navigation bar buttons when swiping
up trigging quick step. The ripple is only shown when quick step is
disabled, tapping the button or long press on the button.

Bug: 67957962
Test: swipe up over home/back button
Change-Id: Ia9325eac61d18b99a39902fc0d368aa1fcb1d4d7

6 years agoautofill: touch on IME should not close autofill
Dake Gu [Mon, 26 Feb 2018 20:25:14 +0000 (12:25 -0800)]
autofill: touch on IME should not close autofill

ag/3434666 causes a regression:
Before ag/3434666, autofill gets touch event after IME, autofill
close itself if it gets ACTION_OUTSIDE touch event.
But after ag/3434666, autofill intercepts touch events before IME, if
user touches within IME, autofill still gets ACTION_OUTSIDE event,
and close itself unexpectedly.

The fix moves the closing code to ViewRootImpl.EarlyPostImeStage
around the same place closing tooltip.

If user taps outside autofill window, we will force to close window,
even last autofillid that requestShowUi does not match.

Bug: 73796497
Test: atest CtsAutoFillServiceTestCases
Test: Added LoginActivityTest.testAutofillTapOutside
Test: manually tested using IME and sample app
TODO: need a fake IME service to dispatch given key upon touch.

Change-Id: I10fc0d29dc30d29a48b2118264ec1c4375062deb

6 years agoMerge "pm: Fix typo in error" am: a12e18bcd1 am: a79fef132b
Joe Maples [Thu, 1 Mar 2018 00:09:25 +0000 (00:09 +0000)]
Merge "pm: Fix typo in error" am: a12e18bcd1 am: a79fef132b
am: 1ec4c3b3b1

Change-Id: I9d1b48c0852bc75108ab72cd4c58c08a43b62a8b

6 years agoAdd default implementation to handle master dev option switch.
Doris Ling [Thu, 1 Mar 2018 00:06:19 +0000 (16:06 -0800)]
Add default implementation to handle master dev option switch.

- subclass that does not override the methods will inherit the default
behavior: preference will be enabled/disabled when the top level
developer options switch is turned on/off.

Bug: 73955632
Test: make RunSettingsLibRoboTests
Change-Id: I477170afd7eb4d74a807c933dcc254ff7a4bbd96

6 years agoAdd TCM.getTextClassifier(int type)
Abodunrinwa Toki [Wed, 28 Feb 2018 23:02:13 +0000 (23:02 +0000)]
Add TCM.getTextClassifier(int type)

Bug: 72747726
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationConstantsTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Change-Id: I0d6cb5eaf3f9baa0564672c4d4b680fb00f40a51

6 years agoMerge "pm: Fix typo in error" am: a12e18bcd1
Joe Maples [Thu, 1 Mar 2018 00:00:13 +0000 (00:00 +0000)]
Merge "pm: Fix typo in error" am: a12e18bcd1
am: a79fef132b

Change-Id: I45fa701a8f9e727e1a072f4f6dd773bba0de01aa

6 years agoMerge "pm: Fix typo in error"
Joe Maples [Wed, 28 Feb 2018 23:49:49 +0000 (23:49 +0000)]
Merge "pm: Fix typo in error"
am: a12e18bcd1

Change-Id: I924eef635de153a0277da49c804f2c7dc1c97a4d

6 years agoMerge "Add metrics event for recent location requests"
TreeHugger Robot [Wed, 28 Feb 2018 23:46:32 +0000 (23:46 +0000)]
Merge "Add metrics event for recent location requests"

6 years agoAdd setting for off body, radio off feature
Damien Bargiacchi [Fri, 16 Feb 2018 00:45:37 +0000 (16:45 -0800)]
Add setting for off body, radio off feature

Bug: 72714112
Change-Id: I8a632983c6c60ae195afa5bd6bdb677719bc5044

6 years agoMerge "Restore AutofillId when view is restored from a bundle."
TreeHugger Robot [Wed, 28 Feb 2018 23:41:45 +0000 (23:41 +0000)]
Merge "Restore AutofillId when view is restored from a bundle."

6 years agoMerge "Update battery discharging strings"
TreeHugger Robot [Wed, 28 Feb 2018 23:22:30 +0000 (23:22 +0000)]
Merge "Update battery discharging strings"

6 years agoMerge "More work on issue #73301635: Ability to extract device configuration"
TreeHugger Robot [Wed, 28 Feb 2018 23:19:13 +0000 (23:19 +0000)]
Merge "More work on issue #73301635: Ability to extract device configuration"

6 years agoMerge "Delay the initial package checking in MediaUpdateService"
TreeHugger Robot [Wed, 28 Feb 2018 23:18:52 +0000 (23:18 +0000)]
Merge "Delay the initial package checking in MediaUpdateService"

6 years agoRemoved AMS.updatePersistableUriPermission()
Felipe Leme [Wed, 14 Feb 2018 20:00:29 +0000 (12:00 -0800)]
Removed AMS.updatePersistableUriPermission()

Bug: 72055774

Test: manual verification
Test: atest CtsAppSecurityHostTestCases:ScopedDirectoryAccessTest#testResetDoNotAskAgain,testResetGranted
Test: atest CtsAppSecurityHostTestCases:ScopedDirectoryAccessTest

Change-Id: I90cd9a79a1caa19989e00dbc1a656469bc3221f9

6 years agoMerge "WebView: relax URLUtil#isFileUrl()"
TreeHugger Robot [Wed, 28 Feb 2018 23:11:37 +0000 (23:11 +0000)]
Merge "WebView: relax URLUtil#isFileUrl()"

6 years agoMerge "WM: Split portrait and landscape status bar size"
TreeHugger Robot [Wed, 28 Feb 2018 23:11:27 +0000 (23:11 +0000)]
Merge "WM: Split portrait and landscape status bar size"

6 years agoMerge "Fix heap buffer overflow"
TreeHugger Robot [Wed, 28 Feb 2018 23:05:09 +0000 (23:05 +0000)]
Merge "Fix heap buffer overflow"

6 years agoAdd temporary logging for state transitions.
Bryce Lee [Wed, 28 Feb 2018 22:41:56 +0000 (14:41 -0800)]
Add temporary logging for state transitions.

This changelist passes along a log of the state transitions to
lifecycler requests to help better debug lifecycle mismatch issues.
These changes are meant to be reverted once the associate bug has
been fixed.

Bug: 71506345
Test: manual
Change-Id: I41bf614874957743585c6c2185bbd34104b08f95

6 years agoMerge "pm: Fix typo in error"
Treehugger Robot [Wed, 28 Feb 2018 22:38:24 +0000 (22:38 +0000)]
Merge "pm: Fix typo in error"

6 years agoMerge "Associate TCconstants with the TCM instead of TCImpl"
TreeHugger Robot [Wed, 28 Feb 2018 22:34:58 +0000 (22:34 +0000)]
Merge "Associate TCconstants with the TCM instead of TCImpl"

6 years agoMerge "Added an api to query ForcedAppStandby state"
TreeHugger Robot [Wed, 28 Feb 2018 22:28:30 +0000 (22:28 +0000)]
Merge "Added an api to query ForcedAppStandby state"

6 years agoNEW API: Add Image.getHardwareBuffer()
Mathias Agopian [Wed, 21 Feb 2018 02:32:22 +0000 (18:32 -0800)]
NEW API: Add Image.getHardwareBuffer()

This mirror the corresponding NDK API. For some
reason this was missing from the java version
of Image.

Bug: 73784759
Test: manual
Change-Id: Iafa6dedda809fe38ea4453d9873d1ba886f88481

6 years agoMerge "Tag foreground notis that use certain services"
TreeHugger Robot [Wed, 28 Feb 2018 22:09:34 +0000 (22:09 +0000)]
Merge "Tag foreground notis that use certain services"

6 years agoMerge "Toggle READ_BINARY_CPU_TIME"
TreeHugger Robot [Wed, 28 Feb 2018 21:59:47 +0000 (21:59 +0000)]
Merge "Toggle READ_BINARY_CPU_TIME"

6 years agoaddModemTxPowerToHistory() made synchronized
Siddharth Ray [Wed, 28 Feb 2018 21:46:16 +0000 (13:46 -0800)]
addModemTxPowerToHistory() made synchronized

BUG:73818082
Change-Id: Ie0cce10d993a696c5e915e8ef62a66f2cd453197

6 years agoMerge "Add component ordering"
TreeHugger Robot [Wed, 28 Feb 2018 21:54:03 +0000 (21:54 +0000)]
Merge "Add component ordering"

6 years agoFixes set lock task (and screen pinning) state with/out quickstep
Matthew Ng [Tue, 27 Feb 2018 21:47:38 +0000 (13:47 -0800)]
Fixes set lock task (and screen pinning) state with/out quickstep

When quickstep is enabled, ensures that the home button is gone when
locked to task without home access and prevents quickstep when overview
access is disabled. When quickstep is disabled, fixes recents visibility
according to overview access. Also prevent screen pinning after locking
task to app.

Bug: 72799389
Fixes: 73886663
Test: manual - use quickstep when locked to task
Change-Id: Iacfa0b12374217511602cee6c2ca5ceafd6e2964