Commit Graph

11141 Commits

Author SHA1 Message Date
Jeff Sharkey
fc1dd8789c Merge "Switch reference time to ZonedDateTime" into pi-dev am: 50ac4d2c60
am: 69258db6ed

Change-Id: I217365cefe9ce1283d122e8688b479112c5ac605
2018-03-29 20:55:42 +00:00
Jan Althaus
a1652cfcce Switch reference time to ZonedDateTime
Bug: 74838195
Test: atest FrameworksCoreTests:TextClassificationManagerTest
Test: atest FrameworksCoreTests:TextClassificationTest
Test: atest CtsViewTestCases:TextClassificationManagerTest
Test: atest CtsViewTestCases:TextClassifierValueObjectsTest
Change-Id: I0df9dddf415fa558435553336a8a0a15621e9b05
2018-03-29 18:41:32 +02:00
Abodunrinwa Toki
5e4879c4c2 Merge "Implement Stateful TextClassifier APIs." into pi-dev am: 119d10deb9
am: 12dea84530

Change-Id: I248b3ffff26747f3cb95b6caf44bfcbe8dae10a3
2018-03-29 00:10:10 +00:00
Abodunrinwa Toki
119d10deb9 Merge "Implement Stateful TextClassifier APIs." into pi-dev 2018-03-28 20:58:47 +00:00
Jorim Jaggi
66f7ea24c4 Merge "Add different animation for transitions with translucent apps" into pi-dev am: 13c4b14e92
am: 162b5e89ec

Change-Id: Id1eded5e514f0444f697fe52730e39af593aaba4
2018-03-28 20:03:21 +00:00
Jorim Jaggi
13c4b14e92 Merge "Add different animation for transitions with translucent apps" into pi-dev 2018-03-28 19:09:08 +00:00
Jan Althaus
bd626aa9cb Merge "Change TextClassification to use RemoteActions" into pi-dev am: 08a75e0ee7
am: 39441a9d85

Change-Id: Ib9f44a89c0943eeff54f60f68e1aeb5d83ef3994
2018-03-28 17:35:32 +00:00
Jan Althaus
08a75e0ee7 Merge "Change TextClassification to use RemoteActions" into pi-dev 2018-03-28 17:04:58 +00:00
Yohei Yukawa
ac8d445ec3 Merge "Improve the JavaDoc for SOFT_INPUT_STATE_UNSPECIFIED" into pi-dev am: 59ecb96da9
am: 45cce268a0

Change-Id: I483b805079891e303081508fae767952bdac6ec4
2018-03-28 16:50:40 +00:00
TreeHugger Robot
59ecb96da9 Merge "Improve the JavaDoc for SOFT_INPUT_STATE_UNSPECIFIED" into pi-dev 2018-03-28 16:29:56 +00:00
Adrian Roos
a38538d2d6 Merge "DisplayCutout: Add clarifying images to LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES" into pi-dev am: 95712fe0cb
am: b038415e98

Change-Id: If06875a89cdf08eb04aeaeada403e5de8551e326
2018-03-28 15:21:53 +00:00
Adrian Roos
95712fe0cb Merge "DisplayCutout: Add clarifying images to LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES" into pi-dev 2018-03-28 14:56:19 +00:00
Adrian Roos
1a2ee998b7 Merge "DisplayCutout: Fix attrs.xml javadoc" into pi-dev am: 813a4bee76
am: f71a29c976

Change-Id: I9cc8503daa68cbc45f288bf61afa54d3ad4045f2
2018-03-28 14:54:06 +00:00
Jorim Jaggi
98a9d206be Add different animation for transitions with translucent apps
None of the existing animation really work with transitions in
which a translucent app is appearing/disappearing. Add a separate
animation for that and change all existing transitions to these
new transition types in case we detect that only translucent
activities are appearing/disappearing.

Test: Sharesheet animations
Test: go/wm-smoke
Change-Id: Iffe57b7664dddf647d723c91d115ade60c12ad33
Fixes: 37953606
Fixes: 70730519
Fixes: 72649981
Fixes: 72686618
2018-03-28 16:46:41 +02:00
Adrian Roos
813a4bee76 Merge "DisplayCutout: Fix attrs.xml javadoc" into pi-dev 2018-03-28 14:29:08 +00:00
Adrian Roos
ad1da31764 DisplayCutout: Add clarifying images to LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
Fixes: 76462084
Test: make doc-comment-check-docs, open $ANDROID_BUILD_TOP/out/target/common/docs/doc-comment-check/reference/android/view/WindowManager.LayoutParams.html, navigate to LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
Change-Id: I8a9df979cbb062896fa874a163414a4f8a095b21
2018-03-28 15:00:45 +02:00
Jan Althaus
20d346eafe Change TextClassification to use RemoteActions
Behavioural changes:
- Every action now as an icon, and instead hints via RemoteAction whether
  the icon should be shown or not.
- Icons are now taken from the app default, not the activity.
  (That way, we can construct a lightweight resource backed Icon)
- Legacy intents are no longer parceled for security reasons.
  (TextClassificatio wasn't parcelable in O)
- TextClassifications built with the new API will always return null for
  getIntent, but provide a getOnClickListener.
- Accessibility descriptions are now provided for action mode items.

Testing changes:
- Removed URI checks from TCM test because PendingIntent hides this info.

Bug: 73950205
Test: atest FrameworksCoreTests:TextClassificationManagerTest
Test: atest FrameworksCoreTests:TextClassificationTest
Test: atest CtsViewTestCases:TextClassificationManagerTest
Test: atest CtsViewTestCases:TextClassifierValueObjectsTest
Test: atest CtsWidgetTestCases:TextViewTest
Test: atest CtsWidgetTestCases:EditTextTest
Change-Id: I6706d2c342a8bbb9de0146a48c8b8aac9d9c7d83
2018-03-28 11:41:39 +02:00
Lucas Dupin
c8c6f79581 Merge "Unload wallpaper bitmap and release HwuiContext" into pi-dev am: 3844e1d83c
am: a68e764dad

Change-Id: I8a268f6a1d21785eee32deaefd478faf3424764c
2018-03-28 04:01:40 +00:00
Abodunrinwa Toki
88be5a6cee Implement Stateful TextClassifier APIs.
Outstanding work tbd in other CLs
- Introduce request objects with session Ids
- Implement character based indexing for Selection events.

This CL hides the old Logger API but still keeps running so that we can
check that the modifications to the new API does not break anything.
We will remove the old Logger once we're convinced this is stable.

Please refer to I3c9ceea0863099fc4f0a5ce5e823c648ee9c4521 for previous
reviews related to this CL.

Bug: 74461129
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Change-Id: Iea744f1fa5964b4399290c31863ebeffa99af8d3
2018-03-28 02:54:36 +01:00
Lucas Dupin
41c25cee06 Unload wallpaper bitmap and release HwuiContext
To decrease sysui memory usage

Test: adb dumpsys meminfo
Fixes: 74534423
Change-Id: I3cb4a5927e8d6b20a7aeba3fda253f0ba4cc18f6
2018-03-27 16:30:07 -07:00
Yohei Yukawa
a754785cf9 Improve the JavaDoc for SOFT_INPUT_STATE_UNSPECIFIED
SOFT_INPUT_STATE_UNSPECIFIED is a tricky mode because its de facto
spec is that the system can do whatever it thinks valid.

Despite the fact that this is the default value for newly created
Windows, unfortunatelly there is no clear spec about what would happen
regarding whether the system thinks the software keyboard should be
shown or dismissed.

This CL doesn't change the behavior, but it just attempts to clarify
the behavior in JavaDoc.

Bug: 73793727
Bug: 77152727
Test: make -j doc-comment-check-doc
Change-Id: I69dab7c7018da89ba57fe2f5c8e718ef95985307
2018-03-27 15:47:45 -07:00
Felipe Leme
51c2131306 Merge "Recover dataset picker when view fail to autofill." into pi-dev am: 828ffa45a1
am: f10983fbe7

Change-Id: I8cbae3ab05a79fc9358a787af32887d9968370b6
2018-03-27 22:01:48 +00:00
TreeHugger Robot
828ffa45a1 Merge "Recover dataset picker when view fail to autofill." into pi-dev 2018-03-27 19:48:44 +00:00
Derek Sollenberger
93e2e97d1b Merge "Remove deprecated android.graphics.Canvas APIs" into pi-dev am: 812e87ecba
am: d32b6e012a

Change-Id: I596d43c935516141b9c834c0af7441606d41a33a
2018-03-27 19:36:37 +00:00
Felipe Leme
49f08edf7d Recover dataset picker when view fail to autofill.
When a dataset is selected, the framework tries to autofill all views belonging
to it. But if one (or more view) failed to autofill, we should let the user
recover by tapping the view again.

This scenario typically happens when views are recycled.

Test: atest MutableAutofillIdTest#testViewGoneDuringAutofillCanStillBeFilled
Test: atest CtsAutoFillServiceTestCases # manually retrying flaky failures

Fixes: 76149637

Change-Id: I7a6352c68b4a7d5e4cb80a7346c66efd831f21c8
2018-03-27 10:50:36 -07:00
Adrian Roos
87526af33c DisplayCutout: Fix attrs.xml javadoc
Fixes an issue with the javadoc for windowLayoutInDisplayCutoutMode.
Removes @tags from enum javadocs, because they get merged into a table,
which does not support inner @tags. Instead, use <code> tags which work
in that context.

Also replaces @see tags with {@link} tags in the attr javadoc, because
the enum value table gets appended, but it is invalid to have text after
an @see tag.

Change-Id: Ib97e9aa82e173d99a467132a0d403793d7297e61
Fixes: 76448223
Test: make doc-comment-check-docs, verify output at $ANDROID_BUILD_TOP/out/target/common/docs/doc-comment-check/reference/android/R.attr.html#windowLayoutInDisplayCutoutMode
2018-03-27 17:44:19 +02:00
Derek Sollenberger
7b837616ae Remove deprecated android.graphics.Canvas APIs
Bug: 73777445
Test: compile
Change-Id: Ie68f2fbe3c3be82f3c20529d535875d4cc204b7c
2018-03-27 14:36:50 +00:00
Felipe Leme
82eca0fb60 Merge "Integrate autofill session lifecycle with URL bar changes when on compat mode." into pi-dev am: 992d078542
am: 85584bcb20

Change-Id: Iaa4e79b744c71b7e666ac026e108128eb96255c1
2018-03-27 05:42:41 +00:00
TreeHugger Robot
992d078542 Merge "Integrate autofill session lifecycle with URL bar changes when on compat mode." into pi-dev 2018-03-27 05:15:20 +00:00
Felipe Leme
0c8ce322a3 Integrate autofill session lifecycle with URL bar changes when on compat mode.
The contents of a browser URL bar is typically changed for 2 reasons:

1.User entered a new URL.
2.Form was submitted and the URL changed.

On scenario #1, the current session should be canceled, while on #2 it should be
committed. Scenario #2 is already handled when the service sets a SaveInfo, so
this CL handles the other cases:

1.Focus on URL bar is ignored so it does not trigger a new partition.
2.If URL bar changed and service didn't set a SaveInfo, the session is canceled.

Fixes: 76027553

Test: manual test with Chrome
Test: new tests on VirtualContainerActivityCompatModeTest:
      testFocusOnUrlBarIsIgnored()
      testUrlBarChangeIgnoredWhenServiceCanSave()
      testUrlBarChangeCancelsSessionWhenServiceCannotSave
      testUrlBarChangeCancelsSessionWhenServiceReturnsNullResponse
Test: atest CtsAutoFillServiceTestCases

Change-Id: I19d2aa4c8b25def0d5eca1c59cfdc2ffe33dd388
2018-03-26 11:55:31 -07:00
Robert Carr
cfc0ddf1df Merge "Fix SurfaceView Background" into pi-dev am: e3d2c41344
am: beb2540414

Change-Id: I1e6bc640843038f41a0b444dd507d884d472a117
2018-03-24 04:00:58 +00:00
Felipe Leme
d6878276d9 Merge "Properly set input type on autofill compat mode." into pi-dev am: 352da45bbb
am: be541db705

Change-Id: I8975c3604122935f84347606a3a21517a7ee05e3
2018-03-24 02:06:48 +00:00
Todd Kopriva
56a99d5ff6 Merge "Merge "docs: fixing bug 36982027 and 30636712, typos" into oc-mr1-dev am: 5b0a4eea8d" into pi-dev am: ba22b7f4fd
am: 1e72ce692a

Change-Id: I9741c3ba70d229e389fb2c4e068a576a9b6007a6
2018-03-24 01:44:05 +00:00
Evan Rosky
1069c90060 Merge "Added TestApi for default focus highlight" into pi-dev am: 87f9818319
am: a6afc381c9

Change-Id: I034e076aa41e3866b84e19261132450991d9488d
2018-03-24 00:54:19 +00:00
TreeHugger Robot
e3d2c41344 Merge "Fix SurfaceView Background" into pi-dev 2018-03-23 23:21:04 +00:00
TreeHugger Robot
352da45bbb Merge "Properly set input type on autofill compat mode." into pi-dev 2018-03-23 22:49:25 +00:00
John Reck
477ea0674c Merge "Add isPivotSet/resetPivot" into pi-dev am: 6045d66aa2
am: 530d626b81

Change-Id: I592dd6459b9526393602d9845d0191c291f56cb6
2018-03-23 22:14:45 +00:00
Todd Kopriva
1057fc37f5 Merge "docs: fixing bug 36982027 and 30636712, typos" into oc-mr1-dev
am: 5b0a4eea8d

Change-Id: Iff4044c52e7ccdf6f7f879b9d5457ce1458b21bd
2018-03-23 22:11:38 +00:00
TreeHugger Robot
87f9818319 Merge "Added TestApi for default focus highlight" into pi-dev 2018-03-23 22:04:04 +00:00
Felipe Leme
c380e18e31 Properly set input type on autofill compat mode.
Test: atest CtsAutoFillServiceTestCases:android.autofillservice.cts.VirtualContainerActivityTest#testAutofillSync\
CtsAutoFillServiceTestCases:android.autofillservice.cts.VirtualContainerActivityCompatModeTest#testAutofillSync

Fixes: 76173462

Change-Id: Ie400ed5d4426febc34b02f68d6be4d86bc11034f
2018-03-23 14:04:23 -07:00
Robert Carr
386fd70434 Fix SurfaceView Background
When refactoring to not use global transaction when setting
position  I failed to account for the forwarding done by the
background wrapper.

Bug: 76099976
Bug: 76110573
Test: Manual. go/wm-smoke
Change-Id: I2cff8e571f12e69cefbd1ea35538fd71beaf1ec4
2018-03-23 13:48:48 -07:00
John Reck
6045d66aa2 Merge "Add isPivotSet/resetPivot" into pi-dev 2018-03-23 19:26:50 +00:00
Felipe Leme
5b5e50d987 Merge "Improved autofill logging and dumping." into pi-dev am: 63df4e248a
am: c39b648a80

Change-Id: Ifc409bae7d1e8b1c6d2f84be9c1ca7bef308966f
2018-03-23 07:28:21 +00:00
Felipe Leme
63df4e248a Merge "Improved autofill logging and dumping." into pi-dev 2018-03-23 05:48:26 +00:00
Evan Rosky
e1a0b347a0 Added TestApi for default focus highlight
Bug: 62864111
Test: View_DefaultFocusHighlightTest
Change-Id: I2a74de3274351f0a7662715e723c25f4d7f8f6ed
2018-03-22 19:37:50 -07:00
Abodunrinwa Toki
80f5725d1e Merge "Fix smart_linkify_enabled flag." into pi-dev am: e9a7cb8158
am: 27d8cf774a

Change-Id: I4d0c13b480cdd0f2fa134716575e86630a7e90d4
2018-03-23 02:31:56 +00:00
Rose Liu
8bc23adc0d Merge "Assign -1 as default value of window type and owner uid." into pi-dev am: a194d92495
am: 0da0266bdf

Change-Id: I7e52c530a059592fefb14503b09cd0f416584e67
2018-03-23 01:55:59 +00:00
Felipe Leme
da9ea34c02 Improved autofill logging and dumping.
Bug: 76027553
Test: adb shell dumpsys autofill

Change-Id: I19ef88c71334c62292ed982e43d7a7e89b35f10e
2018-03-22 16:43:28 -07:00
TreeHugger Robot
e9a7cb8158 Merge "Fix smart_linkify_enabled flag." into pi-dev 2018-03-22 22:56:58 +00:00
rongliu
3dac23bd4d Assign -1 as default value of window type and owner uid.
Bug: 74622357
Test: Test with ag/3738015 together. Layers without buffers have window
type -1 and owner uid -1.

Change-Id: I6f010bf1327671a06874b75bc0a63a3fb010ced7
2018-03-22 13:44:29 -07:00