Commit Graph

12594 Commits

Author SHA1 Message Date
Winson Chung
dece92b287 Merge "Add overlays for nav bar interaction mode." 2019-03-22 21:02:07 +00:00
TreeHugger Robot
4e59b8d992 Merge "Restrict access to mGroupFlags." 2019-03-22 20:22:16 +00:00
TreeHugger Robot
6f59ef8a37 Merge "Restrict FLAG_SUPPORT_STATIC_TRANSFORMATIONS usage" 2019-03-22 20:06:36 +00:00
Rob Carr
087af2d89a Merge changes from topic "sv-background"
* changes:
  SurfaceView: Only show background when behind ViewRoot.
  SurfaceControl: Respond to more API Feedback
2019-03-22 19:21:59 +00:00
TreeHugger Robot
90cd0ce1d0 Merge "Restrict access to View's hierarchy listener." 2019-03-22 19:09:45 +00:00
TreeHugger Robot
25ad27eb6c Merge "New method ContentCaptureManager.getServiceSettingsComponentName()" 2019-03-22 18:35:58 +00:00
TreeHugger Robot
7d8a948b9d Merge "Restrict accesss to FLAG_DISALLOW_INTERCEPT" 2019-03-22 18:35:26 +00:00
Winson Chung
d9f2fb36ce Add overlays for nav bar interaction mode.
- Add config for nav bar interaction mode
- Add overlay packages for overriding the nav bar interaction mode
- Migrate existing swipe up setting into the resource overlay
  P2 P->Q:
    def/off -> 3 button overlay enabled (from default)
    set on  -> 2 button overlay enabled (from setting)
  P3 (default on):
    def (setting not exposed) -> 2 button overlay enabled (from default)

Bug: 127366543
Test: adb shell cmd overlay dump

Change-Id: I75590f81d9dd6a017776e0a34c295575bfe1bf2a
2019-03-22 11:33:52 -07:00
TreeHugger Robot
37d4372c35 Merge "AccessibilityRequestPreparer shouldn't crash if the view is released before the preparer is added or removed." 2019-03-22 04:56:16 +00:00
Brad Stenning
75eaf771f8 Merge "Provide a hook for forcing all system bars to be displayed at all times" 2019-03-22 02:18:58 +00:00
TreeHugger Robot
3662ca14a9 Merge "Trigger Augmented Autofill when the standard service is not set." 2019-03-22 01:26:15 +00:00
Felipe Leme
df30f27052 Trigger Augmented Autofill when the standard service is not set.
Test: atest AugmentedLoginActivityTest#testAugmentedAutoFill_mainServiceDisabled
Test: atest CtsAutoFillServiceTestCases # sanity check

Fixes: 123100813

Change-Id: I16bf7f583a4be13584f1fa20c76c2b1c32cf4409
2019-03-21 14:39:37 -07:00
Peiyong Lin
36ae1dedb4 Merge "Revert "Allow screenshot to carry more information."" 2019-03-21 20:54:46 +00:00
Peiyong Lin
bf9d677afd Revert "Allow screenshot to carry more information."
This reverts commit 42d5d0322a.

Below is the original commit message:

Previously screenshot returns a GraphicBuffer without any other information
about how to interpret this buffer, especially color space. We could not take
any WCG screenshot, and the color space information is also lost by the time we
create bitmap from the GraphicBuffer. This patch adds a ScreenshotGraphicBuffer
as a wrapper around GraphicBuffer with more information, for example color
space. And make screenshot native method return ScreenshotGraphicBuffer.

BUG: 116112787
Test: Build, flash and boot. Verify with WCG Photos.

Reason for revert: Break master build

Change-Id: I36efb7a1274bdcd31b6a7f1070a96d522c0f124a
2019-03-21 20:53:42 +00:00
Peiyong Lin
49b7d471fb Merge "Allow screenshot to carry more information." 2019-03-21 19:45:19 +00:00
TreeHugger Robot
e05cda0916 Merge "Corresponding changes for latest libtextclassifier import" 2019-03-21 19:18:13 +00:00
Andrei-Valentin Onea
bb5089fbd9 Merge "Add @UnsupportedAppUsage annotations" 2019-03-21 19:11:51 +00:00
Robert Carr
6b727e57c6 SurfaceView: Only show background when behind ViewRoot.
The old implementation of the SurfaceView background didn't show
when the Surface was in front of the  ViewRoot surface, and the new one does.
This is causing problems with apps that float invisible SurfaceViews on top
of themselves and with apps that don't implement draw notification. Here we restore
the old behavior.

Bug: 123920952
Bug: 115969839
Test: Manual
Change-Id: I12a6f3910551ba0fa2ab71a37475a9b78cf384b6
2019-03-21 09:29:59 -07:00
Robert Carr
29fe58a619 SurfaceControl: Respond to more API Feedback
1. Cleanup exception usage
2. Reference isValid from release and vice-verse
3. Clarify Transaction.close()
4. Fix "assosciated"->associated
5. Clarify builder defaults

Bug: 126360307
Test: Builds
Change-Id: Iead03c97f5dadba55b88b4217756bd5409937091
2019-03-21 09:29:55 -07:00
Andrei Onea
e30e3928f9 Add @UnsupportedAppUsage annotations
For packages:
  android.companion
  android.filterfw
  android.hardware.camera2.utils
  android.inputmethodservice
  android.net.nsd
  android.os
  android.preference
  android.security.keymaster
  android.service.dreams
  android.telecom
  android.telephony.ims.compat.feature
  android.telephony
  android.util
  android.view.accessibility
  android.media.effect

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I9c2f8347952f3cc65759472b0e1a2717b285e44e
2019-03-21 14:04:57 +00:00
TreeHugger Robot
7177077bb5 Merge "Remove unused @InspectableNodeName" 2019-03-21 12:31:30 +00:00
Tracy Zhou
69a325f448 Merge "Better support for cleaning up the recents animation" 2019-03-21 05:27:40 +00:00
TreeHugger Robot
c9a92abca4 Merge "Revert "Write touch classification metrics."" 2019-03-21 03:09:27 +00:00
TreeHugger Robot
b9b1befb36 Merge "Trigger Augmented Autofill when the standard service used FillResponse.disableAutofill()" 2019-03-20 23:59:30 +00:00
Brad Stenning
e057369877 Provide a hook for forcing all system bars to be displayed at all times
Bug: 121257946

Test: manual
Change-Id: Ibbf41a03b0229b62366a42543e542af954a0ea8b
2019-03-20 16:27:47 -07:00
Felipe Leme
f8b8778468 New method ContentCaptureManager.getServiceSettingsComponentName()
Test: manual verification

Test: atest CtsContentCaptureServiceTestCases # sanity check

Bug: 119264902

Change-Id: I3f387386652dad7b187ae04b29f16512ff444ca1
2019-03-20 14:58:53 -07:00
Ashley Rose
b948bcd44d Remove unused @InspectableNodeName
Change-Id: Ib5a2688e7b25c4c8ba43dc4aeb80e17a12427f9c
Fix: 128997046
Test: atest --host view-inspector-annotation-processor-test
2019-03-20 15:24:28 -04:00
Felipe Leme
adb34f58de Trigger Augmented Autofill when the standard service used FillResponse.disableAutofill()
Test: atest CtsAutoFillServiceTestCases:android.autofillservice.cts.augmented.DisableAutofillTest
Test: atest CtsAutoFillServiceTestCases # sanity check

Fixes: 123099744

Change-Id: Ic40727a72f931d7a062dedf02fa83d091648498b
2019-03-20 12:03:30 -07:00
Philip Quinn
3394206cb3 Revert "Write touch classification metrics."
This reverts commit f195c98a42.

Bug: 128980431
Change-Id: I8183b2880d852ea0bfe4f3836a9cb8e2f0b90d47
2019-03-20 18:46:30 +00:00
TreeHugger Robot
100bb0e692 Merge "[Magnifier-80] Make API getters relative to window" 2019-03-20 18:20:36 +00:00
lumark
5428446535 Better support for cleaning up the recents animation
With Life Tiles in QuickSteps (b/111697218), launcher will
“punch a hole” for TaskView & the app window will be transformed
in it & keep the task is running.

To prevent launcher animates on TaskView without the real app surface
during task switching, launcher start RecentsAnimation to monitor
onStackOrderChanged without cancel animation when swiping to recents.

We use this as signal to screenshot the previous app window when next
app transtion start, make leash with screenshot surface to let it below
homeAnimationLayer, so that launcher can still control the leash,
and then callback onAnimationCanceled with screenshot parameter for
launcher to know if need to call IRecentsAnimation#cleanupScreenshot for
clean up screenshot, to make the next app transtion animation can work
smoothly without flickering.

Bug: 122593881
Test: manual
Test: atest RecentsAnimationControllerTest RecentsAnimationTest
Change-Id: I83504d578a17856623a53c04a7d3c54e5bcab5f4
2019-03-21 02:04:04 +08:00
Tony Mak
2a3adb7f31 Corresponding changes for latest libtextclassifier import
Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/

Change-Id: I6ef36cc746b9ed97a350b5c51de063948680e57f
2019-03-20 17:56:24 +00:00
Peiyong Lin
42d5d0322a Allow screenshot to carry more information.
Previously screenshot returns a GraphicBuffer without any other information
about how to interpret this buffer, especially color space. We could not take
any WCG screenshot, and the color space information is also lost by the time we
create bitmap from the GraphicBuffer. This patch adds a ScreenshotGraphicBuffer
as a wrapper around GraphicBuffer with more information, for example color
space. And make screenshot native method return ScreenshotGraphicBuffer.

BUG: 116112787
Test: Build, flash and boot. Verify with WCG Photos.
Change-Id: I03cc5ce76d13f165c1203ced0b7fefc570dd2096
2019-03-20 10:19:01 -07:00
Mihai Popa
ef456970fe [Magnifier-80] Make API getters relative to window
The CL updates Magnifier#getPosition() and Magnifier#getSourcePosition()
to return coordinates relative to the main application window, rather
than relative to the surface backing it. Working with window relative
coordinates is the better approach for public APIs. The CL also makes
View#getLocationInSurface public. Magnifier CTS tests still need it,
when testing MAX_IN_SURFACE behavior.

Bug: 124012182
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I684f27aa466e0390c7801b616331f4682784c423
2019-03-20 16:08:46 +00:00
Adrian Roos
5f9ec2c1c6 Merge "Gestures: Assemble per-window exclusion zones" 2019-03-20 15:28:03 +00:00
Felipe Leme
01f07e5fb7 Merge "Added @Nullable to ContentCaptureContext.getLocusId()" 2019-03-19 22:33:33 +00:00
Felipe Leme
56bddaab68 Added @Nullable to ContentCaptureContext.getLocusId()
Test: m update-api
Fixes: 128922706

Change-Id: I541d0b33732069d6df85f6dbe12d1f599e4cb241
2019-03-19 13:01:37 -07:00
TreeHugger Robot
cf49db1265 Merge "WindowInsets: Add mandatory system gesture and tappable element insets" 2019-03-19 19:29:45 +00:00
Brad Stenning
fbc4c76b24 Merge "Updates isKeyguardSecure to take in a user id." 2019-03-19 18:52:00 +00:00
Ashley Rose
d6b17862df Merge "Rename @EnumEntry and @FlagEntry" 2019-03-19 18:03:24 +00:00
Adam He
c384395d1a Merge changes from topics "aa_fill_ui", "aa_cancellation"
* changes:
  Don't show fill ui if fillrequest times out.
  Implemented CancellationSignal for augmented autofill requests.
2019-03-19 17:31:37 +00:00
Philip Quinn
c0bee6e4fd Merge changes Ie88d8b55,I33e44976
* changes:
  Use a subclass of GestureDetector in SystemGesturesPointerEventListener.
  Write touch classification metrics.
2019-03-18 23:35:57 +00:00
Ashley Rose
73abdd3c59 Rename @EnumEntry and @FlagEntry
Test: atest CtsViewInspectorAnnotationProcessorTestCases
Bug: 127531820
Exempt-From-Owner-Approval: Annotation-only change
Change-Id: Id293e2b2ac9cf7bf2aaeb28645471ea227bb587b
2019-03-18 16:05:55 -04:00
Adam He
234030a0c5 Don't show fill ui if fillrequest times out.
Fixes: 127062800
Test: atest
android.autofillservice.cts.augmented.AugmentedLoginActivityTest

Change-Id: Iad067c79746a829334f64b2b340021876e341dd4
2019-03-18 11:51:34 -07:00
Adrian Roos
15ab5192ec WindowInsets: Add mandatory system gesture and tappable element insets
Bug: 126511573
Test: atest android.server.wm.WindowInsetsTest
Change-Id: I6b50916e63f173239ef3f3d425aa410e21d1c27e
2019-03-18 17:58:22 +00:00
Adrian Roos
4ffc8977e2 Gestures: Assemble per-window exclusion zones
Adds a facility to listen for per-window exclusion zones and
assembles them into a per-display exclusion zone ready for
consumption by interested parties.

Bug: 126360272
Test: atest DisplayContentTests
Change-Id: Ic186f86ca551af98a5f77beb254d257c281a4160
2019-03-18 17:45:05 +00:00
TreeHugger Robot
5ddff3f335 Merge "Input: Override touchable region bounds with surface bounds 1/2" 2019-03-17 22:46:09 +00:00
Tony Mak
72e17976f3 Include language information in intents from the TextClassifier.
This CL runs langid on classifyText() and sets the language information
of the classified text in Intent extras that are sent to the destination
app. If the text is too small for langId to detect the text reliably,
include surrounding text as necessary.

Includes flags to tune/disable how sorrounding text is used.
Also fixes failing tests.

Bug: 126453204
Test: atest android.view.textclassifier
Change-Id: I9ef2a33690dc3787f6544ceed0f41c527f4423e5
2019-03-16 11:39:38 +00:00
TreeHugger Robot
6a6f9f59b8 Merge "Populate entities information to extras and add copy action" 2019-03-16 10:09:20 +00:00
TreeHugger Robot
0fb1f1e011 Merge "Use IntFunction for inspector flag and enum mapping" 2019-03-16 03:03:26 +00:00