Commit Graph

12722 Commits

Author SHA1 Message Date
Felipe Leme
dc868e04f9 Merge "Clarified format of ContentCaptureCondition.FLAG_IS_REGEX" into qt-dev 2019-04-16 19:34:37 +00:00
TreeHugger Robot
50a56879e5 Merge "Grant clipboard access to the Augmented Autofill service." into qt-dev 2019-04-16 19:19:37 +00:00
TreeHugger Robot
786714e526 Merge "Add missing set/getExtras to ConversationActions.Request." into qt-dev 2019-04-16 00:17:10 +00:00
TreeHugger Robot
11141109f4 Merge "DO NOT MERGE - Removed ContentCapture support from standard SDK toolkit." into qt-dev 2019-04-15 23:42:14 +00:00
TreeHugger Robot
472893443d Merge "Fix for unexpected scale factors in ScaleGestureDetector" into qt-dev 2019-04-15 21:02:19 +00:00
Tony Mak
170f35bc59 Add missing set/getExtras to ConversationActions.Request.
All requests / result objects from TextClassifier have get/setRequest,
so ConversationActions.Request should have them as well.

BUG: 130529981

Test: atest cts/tests/tests/view/src/android/view/textclassifier/cts/ConversationActionsTest.java

Change-Id: I19719b009d4f34df8650c669cc24cb304293407a
2019-04-15 20:11:36 +00:00
Felipe Leme
4cb2c3db13 Clarified format of ContentCaptureCondition.FLAG_IS_REGEX
Test: make ds-docs
Fixes: 130313634

Change-Id: I715ba4b7a1e3f3b13fbc521db925f716607763e6
2019-04-15 12:27:26 -07:00
Felipe Leme
ef1c0b36ab DO NOT MERGE - Removed ContentCapture support from standard SDK toolkit.
Test: atest CtsContentCaptureServiceTestCases
Test: m update-api
Test: make ds-docs

Fixes: 129982633

Change-Id: I5a0fa4231d0222638830c1abd8015d9f2635996a
2019-04-15 09:36:25 -07:00
Michael Wright
b0241bd88a Merge "Add class docs for InputMonitor." into qt-dev 2019-04-12 21:39:51 +00:00
Abodunrinwa Toki
b7f24a557e Merge "Null annotations in TC APIs." into qt-dev 2019-04-12 17:36:24 +00:00
Peiyong Lin
2a4e6f6e2d Merge "Determine the dataspace of the screenshot buffer based on display color mode." into qt-dev 2019-04-12 16:57:38 +00:00
Felipe Leme
c743634138 Grant clipboard access to the Augmented Autofill service.
Test: atest CtsAutoFillServiceTestCases:android.autofillservice.cts.augmented.ClipboardAccessTest
Fixes: 130166067

Change-Id: I5d55a5921bb961565d6e9cb535927df80c67f79b
2019-04-12 09:22:10 -07:00
Mihai Popa
8621631bf8 Merge "Revert "Stop window redraws for invisible parent children"" into qt-dev 2019-04-12 10:26:10 +00:00
Adrian Roos
76d2f52e3f Merge "System Bars: API to ensure contrast when app requested transparent bar" into qt-dev 2019-04-12 09:43:57 +00:00
TreeHugger Robot
73913e3bf6 Merge "Fixing HardwareBuffer leak when creating a bitmap" into qt-dev 2019-04-11 21:06:40 +00:00
Alison Cichowlas
902e82278a Merge "Add a longpress timeout config for screenshot chord" into qt-dev 2019-04-11 18:33:43 +00:00
Mihai Popa
175579b4b8 Revert "Stop window redraws for invisible parent children"
This reverts commit 4add16c4b8.

Bug: b/130061620
Bug: b/129692959

Change-Id: I07c54f1510d7a5e3aff92cbfffe944e9e8dae9a9
2019-04-11 16:43:56 +00:00
TreeHugger Robot
ac3d917aa3 Merge "Remove remaining deepCopy() usages in TextClassifier" into qt-dev 2019-04-11 15:54:52 +00:00
Adrian Roos
6eb1ed3a61 System Bars: API to ensure contrast when app requested transparent bar
Bug: 129533768
Test: atest EnsureBarContrastTest
Change-Id: I42facefc15dce227193a4db5f368184e1b5ebd32
2019-04-11 16:50:32 +02:00
Sunny Goyal
62915b28e0 Fixing HardwareBuffer leak when creating a bitmap
Callers are supposed to close the hardware buffer themselves. Creating
a utility method around this

Bug: 123874711
Test: No more leak warning on device
Change-Id: I2cf215f0646222f63e564a58edab1ffffa396ff3
2019-04-10 21:59:57 +00:00
TreeHugger Robot
b5258351ea Merge "System Bars: Ensure contrast when app requested transparent bar" into qt-dev 2019-04-10 21:58:42 +00:00
TreeHugger Robot
a00cee7fed Merge "Nullability for ViewTreeObserver gesture exclusion" into qt-dev 2019-04-10 21:32:33 +00:00
Adam Powell
dafee65f21 Fix for unexpected scale factors in ScaleGestureDetector
Provided by levischmidt@google.com

Test: cts: atest ScaleGestureDetector
Fixes: 122328202
Change-Id: Ie229c39f65e4ac72a3f8e22317633f648f7fa008
2019-04-10 21:25:04 +00:00
Tony Mak
748281037b Remove remaining deepCopy() usages in TextClassifier
Did a grep to ensure no more deepCopy() in textclassifier folder.

BUG: 129901152

Test: atest cts/tests/tests/view/src/android/view/textclassifier/cts/

Change-Id: Ia1e6f3ad1664a0b57495d94d2cf5aa8945965862
2019-04-10 21:15:10 +00:00
Peiyong Lin
21e499ac88 Determine the dataspace of the screenshot buffer based on display color mode.
Previously when we capture layers into graphic buffer we always assume SRGB
dataspace, however, if we have an app that is in wide color gamut mode, we want
to show the difference. This patch adds the ability to determine the dataspace
screenshot graphic buffer based on the color mode of the display.

BUG: 116112787
Test: Build, flash and boot. Verify with WCG Photos.
Change-Id: Ie2df32cad056576c256b9299a67855ed73714f50
2019-04-10 13:30:51 -07:00
Abodunrinwa Toki
9aed55ebd9 Null annotations in TC APIs.
Fixes: 126699077
Fixes: 126698613
Test: none
Change-Id: I5eab3d7e4e15995e0b5a163dbfdc2b2923ddc136
2019-04-10 21:27:15 +01:00
TreeHugger Robot
3fa2657fd6 Merge "Hard-disable precompiled layouts" into qt-dev 2019-04-10 18:16:41 +00:00
Adam Powell
aa78d796f0 Nullability for ViewTreeObserver gesture exclusion
Bug: 128704597
Test: n/a
Change-Id: Ia89458cf967ab4e01738ba1658e3460f27ae1830
2019-04-10 18:09:44 +00:00
Felipe Leme
bef3d76b16 Merge "Clarified ContentCaptureCondition constructor." into qt-dev 2019-04-10 16:19:56 +00:00
Adrian Roos
4c864595bd System Bars: Ensure contrast when app requested transparent bar
Bug: 129533768
Test: atest EnsureBarContrastTest
Change-Id: Ib8f4045b9e8e7bf65c13437133f114d91d0cb050
2019-04-10 18:16:25 +02:00
Eric Holk
49e7040b92 Hard-disable precompiled layouts
The feature is not enabled for Q, so although the cost of checking if it's
enabled is low, there's no reason to pay it at all.

Bug: 111895153
Change-Id: I0d20f47d2c8ddc15031257ce87b40a0d23a617ff
2019-04-10 09:16:05 -07:00
TreeHugger Robot
9214de571f Merge "Do not deep copy bundle in getExtras()" into qt-dev 2019-04-10 16:00:56 +00:00
Felipe Leme
b079576fad Clarified ContentCaptureCondition constructor.
Fixes: 130248145
Test: m -j frameworks/base/:doc-comment-check-docs

Change-Id: Ib3c7b01ccd3ec41ef553a000e69b12d269710a49
2019-04-09 17:06:34 -07:00
Edward Savage-Jones
8f5c95bc17 Add a longpress timeout config for screenshot chord
The global actions longpress timeout is currently used for the
screenshot chord. This means that increasing the globalactions
longpress timeout would also increase the time for triggering
a screenshot.

This adds a configuration item specifically for the screenshot
chord.

Bug: 119989329
Test: manual - increase the globalactions timeout and check that
               the screenshot chord is not affected.
Change-Id: I6bd8416f7546aa1d2da43f37f3e76edac3ed543b
2019-04-09 18:12:09 -04:00
Tracy Zhou
966860dbae Merge "Implement the new PiP animation (fade-in)." into qt-dev 2019-04-09 21:06:28 +00:00
Tracy Zhou
9c675d4f4b Implement the new PiP animation (fade-in).
The new fully gestural navigation changes how user goes home from an
app as well as the animation of the app transition. The current PiP animation (bounds) is not compatible with the new model because of the direction of movements. Instead of animating bounds, we can fade the PiP window in after app closing animation finishes.

Fixes: 122609330
Test: 1. Open youtube, play a video, tap home to observe the new PiP
animation (demo video attached in the ticket b/122609330) 2. With gestural nav on, observe pip transition when swiping up to home.
atest ActivityManagerPinnedStackTests
atest BoundsAnimationControllerTests
atest RecentsAnimationTestTest

Change-Id: I28eeb1aa99c4fd569845ca7a42561f6b20796f9b
2019-04-09 10:37:32 -07:00
TreeHugger Robot
16f682cac6 Merge "Fix InsetsSourceConsumer visibility" into qt-dev 2019-04-09 05:34:11 +00:00
Rob Carr
f8f5f0290e Merge "Careful with screenshots containing secure layers!" into qt-dev 2019-04-09 00:45:22 +00:00
Robert Carr
66b5664f2d Careful with screenshots containing secure layers!
For purposes of	the screen rotation animation the system server	is allowed
to capture secure (not protected) layers and trusted not to persist screenshots
which may contain secure layers. However when displaying the screen rotation animation,
the layer the screenshot is placed on will itself not be secure, so if we record
the animation the recording will contain persisted versions of the secure content. Make sure
we use the new API from SurfaceFlinger to set FLAG_SECURE if our screenshot contains secure
content.

Bug: 69703445
Test: Transaction_test#SetFlagsSecureEuidSystem
Change-Id: I1b016fb1ad56eccd712442a71cc134e5fa3b1ac6
2019-04-08 15:22:46 -07:00
Tarandeep Singh
fb1689f1be Fix InsetsSourceConsumer visibility
It seems we mistakenly removed[1] leash visbility transaction from
InsetsSourceConsumer#setVisible() method causing tests to fail.

[1] I47b3d3b430fa38f80203276b9984df1f71008f6e

Change-Id: I370805a5a5bdceda4bd363c66376a8975c5ea669
Merged-In: I370805a5a5bdceda4bd363c66376a8975c5ea669
Fix: 128537917
Test: atest InsetsSourceConsumerTest
(cherry picked from commit 9602bd62bd)
2019-04-08 20:43:12 +00:00
Tony Mak
5a8d827526 Do not deep copy bundle in getExtras()
Test: atest cts/tests/tests/view/src/android/view/textclassifier/cts/*

BUG: 129901152
Change-Id: Icc55b81acabfad317622de4d664d573646f49914
2019-04-08 15:46:31 +01:00
Qasid Ahmad Sadiq
7bcdd702c9 Revert "Depecrate flags, and try to match them to actions"
This reverts commit 063eefa78a.
The problem with this fix is that services expect to be able to
determine if a node has certain capabilities, even if it is disabled,
and doesn't have the action associated with them.

Change-Id: Ia17ed6ed5f92737226cfe704dc71957f2ae5541b
Fix: 120247282
Test: it builds.
2019-04-05 19:47:41 +00:00
Rob Carr
f6bd0bc297 Merge "SurfaceFlinger: Add exclusion list for captureLayers." into qt-dev 2019-04-05 18:47:40 +00:00
TreeHugger Robot
96aaa9f237 Merge "Fix metadata surfacecontrol api/jni" into qt-dev 2019-04-05 18:33:24 +00:00
TreeHugger Robot
08f5841707 Merge "Add getTextClassifier perf test" into qt-dev 2019-04-05 18:04:23 +00:00
Evan Rosky
b51e246143 Fix metadata surfacecontrol api/jni
This was wrong

Bug: 122925737
Test: Using setMetadata doesn't crash anymore
Change-Id: I75216ca9778e356b3f2a76555367e2563d9a29e0
2019-04-05 16:22:56 +00:00
TreeHugger Robot
3b74731f4e Merge "Flag to configure model parameters" into qt-dev 2019-04-05 15:52:17 +00:00
Tony Mak
20fe187bdf Flag to configure model parameters
The objective is to allow us to push model parameters by using a settings flag,
without the need of pushing a new model file.

Settings.Global#TEXT_CLASSIFIER_ACTION_MODEL_PARAMS stores a comma
separated string that contains these three fields:
1. required_model_version
2. required_locales
3. serialized_preconditions

To ensure serialized_preconditions is applied to the target model file,
TextClassifierImpl only applies the serialized_preconditions when
required_model_version and required_locales are both met.

Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/
Test: adb shell settings put global text_classifier_action_model_params 'required_model_version=0,required_locales=en,serialized_preconditions=FAAAAAAADgAIAAAAAAAAAAAABAAOAAAAAAAAAA=='
      Observe that the flag is actually applied in the model.
Test: Ensure that finalize is called when the activity is dead.

BUG: 123616497

Change-Id: Ie42dcfeee705c83bbb693a5c1a0fedd0821df5e7
2019-04-05 14:35:13 +01:00
TreeHugger Robot
f8aeee04c3 Merge "Stores serialized entity data to the extras" into qt-dev 2019-04-05 13:26:20 +00:00
John Reck
0c7027d86b Add draw props back to greylist
Bug: 129957634
Test: none
Change-Id: Iaf2d7f8dc0f5d6f1b0dc12025210820bf8255f67
2019-04-04 18:05:10 +00:00