Commit Graph

12606 Commits

Author SHA1 Message Date
Jackal Guo
a4d92da88d Merge "Refine adjustIsVisibleToUser" 2019-03-25 01:11:36 +00:00
TreeHugger Robot
1987dfa035 Merge "Added a "lite" flag on ContentCaptureOptions." 2019-03-23 04:33:21 +00:00
TreeHugger Robot
dd72d2f8cd Merge "Restrict access to FLAG_USE_CHILD_DRAWING_ORDER." 2019-03-23 00:26:47 +00:00
TreeHugger Robot
23537e3995 Merge "Conversation Actions: support multiple models." 2019-03-22 23:36:21 +00:00
TreeHugger Robot
4f3f18dec3 Merge "Fixed Content Capture workflow when service package is updated." 2019-03-22 23:00:01 +00:00
Peiyong Lin
260b714200 Merge "Revert "Revert "Allow screenshot to carry more information.""" 2019-03-22 22:24:51 +00:00
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
Peiyong Lin
e3e5efd8b6 Revert "Revert "Allow screenshot to carry more information.""
This reverts commit bf9d677afd.

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.
Change-Id: I4db6aeaf086a183a8be4f731d9f1a10205d3b8ae
2019-03-22 09:53:07 -07:00
Tony Mak
237f37b7f4 Conversation Actions: support multiple models.
This allows us to use the universal model when there is no model available for the
supported language.

Test: adb shell dumpsys textclassification. Observe that both en
      and univerisal actions model are listed properly.
Test: Switch to traditional chinese, observe that url action is working.

BUG: 128312720
Change-Id: I38258c8859e8ce505535ccf1f650ccf9daf64f46
2019-03-22 16:07:50 +00: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
2f28843249 Fixed Content Capture workflow when service package is updated.
The workflow already handles the case where the service dies and the framework re-establishes
the binder connection, but that didn't work when it died because the package was being updated.

This CL fixes this scenario by gracefully pausing the existing sessions before the package is
updated, then resuming them afterwards.

Test: manual verification
Test: atest CtsContentCaptureServiceTestCases # sanity check minus flakiness

Bug: 126266412
Fixes: 129072171

Change-Id: Ibc6b723c7bc08b4f920436f365d6006bc8fac7b6
2019-03-21 18:15:05 -07: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
Felipe Leme
5001b3bb44 Added a "lite" flag on ContentCaptureOptions.
It will be used to let activities from the ContentCapture service package to use
the ContentCaptureManager APIs (such as isContentCaptureFeatureEnabled()), without
triggering content capture per se.

Bug: 122958583
Test: manual verification
Test: atest CtsContentCaptureServiceTestCases # sanity check

Change-Id: I0305fa9f3adb68e6faff80afcb965ae4643f2992
2019-03-21 10:13:49 -07: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
Jackal Guo
ecd09bb6b4 Refine adjustIsVisibleToUser
A11yInteractionController would adjust A11yNodeInfo's visible when it
is outside of interactive region. Therefore, the top row characters
in pop-up of IME additional characters may be invisible to users. It
causes a11y services can't select these A11yNodeInfo.

Check if window type of ViewRootImpl should be bypassed adjustment.

Bug: 113531901
Test: A11y CTS & unit test
Test: Check if the top row characters in pop-up of IME additional
      characters could be selected by Switch Access & Voice Access

Change-Id: If8d55720be69ea17090c26b12ce29ab64fdc5440
2019-03-21 09:45:24 +08: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