Commit Graph

12712 Commits

Author SHA1 Message Date
Mihai Popa
4ea8e43e52 Merge "Revert "Stop window redraws for invisible parent children"" into qt-dev
am: 8621631bf8

Change-Id: Ic42265cf6bb54787abb23488113d6af6385c9d6b
2019-04-12 07:22:42 -07:00
Adrian Roos
928a1a1826 Merge "System Bars: API to ensure contrast when app requested transparent bar" into qt-dev
am: 76d2f52e3f

Change-Id: I24f9a8d0c94a4b99a80b1439051b220a41cf4576
2019-04-12 06:46:52 -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
Sunny Goyal
02b167e7f5 Merge "Fixing HardwareBuffer leak when creating a bitmap" into qt-dev
am: 73913e3bf6

Change-Id: I52571b19934a3855b089c4f7562364b20da44abf
2019-04-11 14:24:07 -07: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
1234e94b8c Merge "Add a longpress timeout config for screenshot chord" into qt-dev
am: 902e82278a

Change-Id: I672e25dd225bdc5eb0e91298414c4b95874dec93
2019-04-11 11:50:07 -07:00
Alison Cichowlas
902e82278a Merge "Add a longpress timeout config for screenshot chord" into qt-dev 2019-04-11 18:33:43 +00:00
Neil Fuller
a76674f153 resolve merge conflicts of fe9b32e4be to qt-dev-plus-aosp
Bug: None
Test: I solemnly swear I tested this conflict resolution.
Exempt-From-Owner-Approval: Merge conflict resolution for approved change
Change-Id: I39bda8417f709f86b5b389a75ff34df8a28a3d8d
2019-04-11 18:09:18 +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
Neil Fuller
b5d1c15ec2 Switch from Byte.toHexString() to HexEncoding
Switch from Byte.toHexString() to HexEncoding equivalents.

Bug: 124232146
Test: build only
Exempt-From-Owner-Approval: Cherry-picking OWNERS approved internal version
Merged-In: Id244e5247eb87c67446cbd65eb5d320f3617b8cd
Change-Id: Id244e5247eb87c67446cbd65eb5d320f3617b8cd
2019-04-11 09:27:45 +00: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
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
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
Robert Carr
ffcdc51319 SurfaceFlinger: Add exclusion list for captureLayers.
Among other use cases, WM needs to be able to omit the IME from Task Snapshots, even while it
is on-screen.

Bug: 126614127
Test: Transaction_test.cpp#CaptureLayerExclude
Change-Id: I055d99106c9ce2ed90d64eca06961d88cbd5e2d4
2019-04-04 09:23:47 -07:00
Tony Mak
751afc9821 Add getTextClassifier perf test
This helps us to evaluate the fix.

BUG: 129695635

Test: frameworks/base/apct-tests/perftests/textclassifier/run.sh

Change-Id: I7d2d019faecb3721c044a43e24d86d98a08be64b
2019-04-04 17:09:58 +01:00
Tony Mak
fdb3554e5e Stores serialized entity data to the extras
libtextclassifier (native side) will serialize the extra entity information
(like parsed datetime) into a byte array and passed it to framework.
Framework puts it to the extras Bundle of result object, i.e. TextClassification
and ConversationActions.

In the future, we will provide a library (maybe AndroidX) to deserialize the
string and return structured objects.

BUG: 129119759

Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/

Change-Id: I8091a1038691419825f5d6da3562b8ba81787dc7
2019-04-04 10:24:34 +00:00
Jorim Jaggi
a6aabacbb5 Force app to draw navigation bar background
For gestural navigation, having a small bar drawn by SystemUI
looks really really weird. Since we force the status bar
background to be drawn in the client, we can also force the
navigation bar background without expecting any compat issues.

Bug: 129751541
Test: Open legacy app, ensure black is drawn in the client
Change-Id: I9cd4c5dd799324ff10bf9d28750e8f238ab1e459
(cherry picked from commit 461bb11371)
2019-04-04 07:27:10 +00:00
TreeHugger Robot
7e3051ca4e Merge "Fix NPE in RNA#callOnFinished" 2019-04-03 22:06:55 +00:00
Nicolas Geoffray
5d5972263f Merge "Use Class.forName instead of ClassLoader.loadClass." am: dc489aba0e am: 1b7fb8f7ae
am: cb6605192c

Change-Id: I953c2bb97dda4ca654e552d58bf56d884d609fc0
2019-04-03 14:22:03 -07:00
Nicolas Geoffray
cb6605192c Merge "Use Class.forName instead of ClassLoader.loadClass." am: dc489aba0e
am: 1b7fb8f7ae

Change-Id: I41141b6fc6934faf086ea930b19539a0daba8298
2019-04-03 13:14:39 -07:00
Nicolas Geoffray
7ef8030754 Use Class.forName instead of ClassLoader.loadClass.
Class.forName has a fast path that ClassLoader.loadClass doesn't
have yet.

Bug: 129834244
Test: m
Change-Id: I52427be9dae5acd8eef530f706626246d16dc82a
2019-04-03 10:32:49 -07:00
TreeHugger Robot
ffd5fb6954 Merge "Support content description with app name" 2019-04-03 16:30:08 +00:00