Commit Graph

13283 Commits

Author SHA1 Message Date
TreeHugger Robot
4a4282f20c Merge "Define SurfaceControl.Transaction aidl in SurfaceControl.aidl file" 2019-09-13 06:38:34 +00:00
Vishnu Nair
676cdb31d8 Define SurfaceControl.Transaction aidl in SurfaceControl.aidl file
Test: go/wm-smoke
Change-Id: I60bb4683798e61149907731a4e3beb4e1a6389f2
2019-09-12 09:27:43 -07:00
TreeHugger Robot
54ea3cc589 Merge "Status bar background color should not be transparent." 2019-09-12 02:15:19 +00:00
Priyank Singh
bb1dafb062 Status bar background color should not be transparent.
Bug: 130431689
Test: Manual
Change-Id: Ida8788f2d758eedaf5db0139f81a65402ba0b88b
2019-09-11 16:21:34 -07:00
TreeHugger Robot
0bd4a945c8 Merge "WindowlessViewRoot: Add transparency and SurfaceInset support" 2019-09-11 22:57:25 +00:00
Yinglei Wang
d4a9b49082 Merge "Add accessibility state API in platform" 2019-09-11 20:10:25 +00:00
yingleiw
6189b8c220 Add accessibility state API in platform
The detailed proposal is here:
https://docs.google.com/document/d/1zeR67kiDmLUJ2CENXjJ2-O3REzhC7MtyYGjV_yMj2g0/edit#heading=h.o3tvsnccns69

Test: Tested with the "bluetooth" tile in quick settings. First call
setStateDescription() in
handleStateChanged(QSTile.State state), then add log to dump the
accessibility info string in
onInitializeAccessibilityNodeInfo(). With talkback enabled, checked that
the logs have the correct state description field.
Bug: 140882622

Change-Id: I658f7972fec2a4c8abeb9470d2bda2104db053df
2019-09-11 13:01:04 -07:00
Aurimas Liutikas
648056c210 Merge "Adding nullability annotations on ViewNode/AssistStructure." 2019-09-11 15:00:22 +00:00
Chavi Weingarten
c4ee1101f5 Merge "Remove setGeometryAppliesWithResize" 2019-09-06 20:18:21 +00:00
TreeHugger Robot
c5a1fb3d2e Merge "Reduce relayoutWindow when requestTransparentRegion" 2019-09-06 04:58:57 +00:00
chaviw
007340c9c7 Remove setGeometryAppliesWithResize
This function is no longer used so removing the API and any logic
implemented for it.

Test: go/wm-smoke
Change-Id: I5701507005134c6ed2e94d2843ae502705f1e2f7
2019-09-05 13:56:38 -07:00
Riddle Hsu
15d0ac57f7 Reduce relayoutWindow when requestTransparentRegion
The pixel format should only need to apply once if the private
flags is actually changed. The subsequent request doesn't change
the window attributes. The most common case is from
SurfaceView#onAttachedToWindow and performDrawFinished.

Also remove mWindowAttributesChangesFlag which is never checked.
It was added in commit f21c9b0f and its functionality was replaced
by commit 40e0383d.

Bug: 140407614
Test: Enable log of relayoutWindow in WindowManagerService.
      Launch a sample app with a button which will add a
      SurfaceView if clicked. The relayoutWindow log won't
      appear after the second time pressing the button.

Change-Id: I13d36e390faad17a8e39a8c17c95fee5d3111960
2019-09-05 23:10:36 +08:00
Yan Zhu
39b0e9a02b Add flag info to displays dump output proto
FLAG_PRIVATE information is needed for cts on physical private display

Bug: 133794475
Test: -Build and flash (make -j framework; aae flash 1s)
- Add "Log.d(TAG, display.toString())" in code to print out detailed
information about display. (Note: Display class is imported from
android.server.wm.WindowManagerState.Display)
- Check "mFlags=.." is printed

Change-Id: I6481dff51b140d3a9320e1e92b06fff531ba34e9
2019-09-05 14:05:28 +00:00
TreeHugger Robot
c93a8d0fe9 Merge "Merge mContentCaptureSession and mCachedContentCaptureSession." 2019-09-05 02:57:38 +00:00
Adam He
37148c93db Merge mContentCaptureSession and mCachedContentCaptureSession.
Fixes: 124308646
Test: atest android.contentcaptureservice.cts.LoginActivityTest#testContentCaptureSessionCache
Test: atest CtsContentCaptureServiceTestCases
Change-Id: I3c32e14c4022ec68195470945775ab06ba72ec96
2019-09-04 10:29:32 -07:00
Ember Rose
d5c504d587 Merge "Update Ember's name and email" 2019-09-04 17:16:29 +00:00
Winson Chung
b3bd7b19bd Merge "Fix regression in updating gesture exclusion rects" into qt-qpr1-dev am: b85d750900
am: 368b3679d4

Change-Id: I0ec22203b34b8e6a2ede43c97fa8b9fdbfbc7456
2019-09-04 00:49:17 -07:00
Winson Chung
368b3679d4 Merge "Fix regression in updating gesture exclusion rects" into qt-qpr1-dev
am: b85d750900

Change-Id: Ib2c690f0b0528edabcae3a3ccd0f1ffc89bb52f9
2019-09-04 00:35:46 -07:00
TreeHugger Robot
b85d750900 Merge "Fix regression in updating gesture exclusion rects" into qt-qpr1-dev 2019-09-04 07:17:54 +00:00
Tarandeep Singh
7baee5c357 Merge "Skip updateCursorAnchorInfo when matrix is null" into qt-qpr1-dev am: 79243ed6c6
am: bfca446d1e

Change-Id: I6fc0dc17fea95def12ecc0e2e0090d0dc6cd9f87
2019-09-03 18:41:39 -07:00
Tarandeep Singh
bfca446d1e Merge "Skip updateCursorAnchorInfo when matrix is null" into qt-qpr1-dev
am: 79243ed6c6

Change-Id: I319544ee792e1caa96d9dded7ede543ca4b28492
2019-09-03 18:27:45 -07:00
TreeHugger Robot
79243ed6c6 Merge "Skip updateCursorAnchorInfo when matrix is null" into qt-qpr1-dev 2019-09-04 01:01:31 +00:00
Ember Rose
997dae601f Update Ember's name and email
Test: N/A
Bug: 140430299
Change-Id: Ibce843d4c206ccb7b2cb2bbc1d7d41c9b8fde3df
2019-09-03 15:57:33 -04:00
Winson Chung
05a36465b4 Fix regression in updating gesture exclusion rects
- Use the precalculated aggregate visibility instead of traversing
  hierarchy again in isShown()

Bug: 140157754
Test: atest SystemGestureExclusionRectsTest
Change-Id: Ica58de4ff43da75cfcdac3f359fc915f65608e78
2019-09-03 12:15:08 -07:00
Tiger Huang
7c58be4eae Merge "Window Manager Flag Migration (1/n)" 2019-09-02 15:35:03 +00:00
Aurimas Liutikas
488d37b2d0 Merge "Add missing nullability annotations." into stage-aosp-master am: 85c0a5a2be am: ed5beec21b
am: de0ebb082e

Change-Id: I60c55b6706e8d43121e8b2c7a35efff38668f66b
2019-08-30 08:54:38 -07:00
Aurimas Liutikas
de0ebb082e Merge "Add missing nullability annotations." into stage-aosp-master am: 85c0a5a2be
am: ed5beec21b

Change-Id: I202951d51820be47b9195734601830553215bdd7
2019-08-30 08:43:01 -07:00
Aurimas Liutikas
ed5beec21b Merge "Add missing nullability annotations." into stage-aosp-master
am: 85c0a5a2be

Change-Id: Ic9ea2b9840fbb678bbb6ab77038415581feba918
2019-08-30 08:35:52 -07:00
Aurimas Liutikas
7da04d64ba Adding nullability annotations on ViewNode/AssistStructure.
This is in an effort to enable MissingNullability check in metalava to flag
all the new APIs that are missing nullability for APIs added since API 29.

Bug: 124515653
Test: make -j checkapi
Change-Id: I582ae992b78d738a5866c9890ef00d5b30ae7cb7
2019-08-30 15:34:03 +00:00
Jorim Jaggi
b7848b730b Window Manager Flag Migration (1/n)
Creates 2 APIs for apps to control system bars:

setSystemBarsAppearance - controls the appearance of system bars

setSystemBarsBehavior - determines how the bars behave when being hidden
                        by the application

Bug: 118118435
Test: manual - check if the appearance and behavior can be printed as
               expected with dumpsys
      (plan to add automatic tests later)
Change-Id: Ia6fe5f594960f218ff4e94ff481f514660dd5066
2019-08-30 19:39:41 +08:00
Aurimas Liutikas
4d1699da48 Add missing nullability annotations.
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.

This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi

Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
2019-08-29 17:15:44 -07:00
Aurimas Liutikas
00be951a08 Add missing nullability annotations.
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.

This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi

Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Merged-In: I109260842cfc25f06e40694997fcbb4afa02c867
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
2019-08-30 00:14:44 +00:00
TreeHugger Robot
37f7faebf3 Merge "Update CollectionInfo comment to indicate -1 is ambiguous count." 2019-08-29 23:19:50 +00:00
Ian Kasprzak
1a5bb83588 [DO NOT MERGE] Cleanup TEST_MAPPING disables from ag/9285495
- Moved exclude filters to existing stanzas
- Removed new stanzas added w/ filters
- Removed un-needed filters because existing "include-filter"
  already excludes failing tests.

Disabling in preparation for merge to aosp-master (Q release).

Disabling the following tests:
FrameworksCoreTests:android.view.textclassifier.TextClassifierTest#testSuggetsConversationActions_deduplicate
CtsAppTestCases:android.app.cts.ServiceTest#testAppZygoteServices
CtsAppTestCases:android.app.cts.SystemFeaturesTest#testLocationFeatures
CtsProviderTestCases:android.provider.cts.MediaStore_Images_ThumbnailsTest

Test: Forrest
Exempt-From-Owner-Approval: Disabling known failing TEST_MAPPING tests
for AOSP push to Q.

Change-Id: I4dc2408c5bc6d421654f871c5d63d402c1d96d91
2019-08-29 10:38:56 -07:00
Tony Mak
1fb3554b08 Merge "Add OWNERS file to textclassifier directory" am: c55eedf2a3 am: 1fdf6d4599 am: 8b8774696b am: 4b7b37eada
am: a955377af6

Change-Id: I9c06cb7a68636b05b4ea88725928f4166c1cff92
2019-08-28 17:33:34 -07:00
Raman Tenneti
f997c75d69 [DO NOT MERGE] Disabled the following tests in TEST_MAPPING:
FrameworksCoreTests:android.view.textclassifier.TextClassifierTest#testSuggetsConversationActions_deduplicate
CtsAppTestCases:android.app.cts.ServiceTest#testAppZygoteServices
CtsAppTestCases:android.app.cts.SystemFeaturesTest#testLocationFeatures
CtsProviderTestCases:android.provider.cts.MediaStore_Images_ThumbnailsTest

Disabling in preparation for merge to aosp-master (Q release).

Test: Forrest (atest)
L55600000358896983, L81400000359164936
BUG: 139704630
BUG: 139535570
BUG: 139536812
BUG: 139535125
BUG: 139305203
Change-Id: I9be2efd464fe031a0269fa5a3913ddb4959ba05d
Exempt-From-Owner-Approval: Disabling known failing TEST_MAPPING tests for AOSP push to Q.
2019-08-28 23:48:13 +00:00
Tony Mak
a955377af6 Merge "Add OWNERS file to textclassifier directory" am: c55eedf2a3 am: 1fdf6d4599 am: 8b8774696b
am: 4b7b37eada

Change-Id: Idb7207749cf60a422d45fe2544f332243ad1fef0
2019-08-28 15:20:10 -07:00
Tony Mak
4b7b37eada Merge "Add OWNERS file to textclassifier directory" am: c55eedf2a3 am: 1fdf6d4599
am: 8b8774696b

Change-Id: I9de798e7083b032aa1a830ece58de7cc36b0adf9
2019-08-28 14:31:24 -07:00
Tony Mak
8b8774696b Merge "Add OWNERS file to textclassifier directory" am: c55eedf2a3
am: 1fdf6d4599

Change-Id: Iade103a1962ae8894e000d963b09904c448291c5
2019-08-28 13:57:38 -07:00
Tony Mak
1fdf6d4599 Merge "Add OWNERS file to textclassifier directory"
am: c55eedf2a3

Change-Id: If4bdea01cd276630ab77050db583496be2878a28
2019-08-28 13:16:19 -07:00
Tony Mak
a14d1dd67c Add OWNERS file to textclassifier directory
Test: None

Change-Id: I95613d36b19d34889d9747b21c65e3ddc54a8474
2019-08-28 15:52:49 +00:00
Tony Mak
33e979cc99 Merge "Add TYPE_LINKS_GENERATED and make ... TextClassificationSessionId.flattenToString() public" 2019-08-28 11:03:48 +00:00
Winson Chung
e4d98cd157 Merge "Ignore hidden views when computing exclusion rects" into qt-qpr1-dev am: b5b3a58173
am: 6ff8b5d1fe

Change-Id: I30cfe658327833232871dcd0a3bb895d5453026f
2019-08-27 16:04:24 -07:00
Winson Chung
6ff8b5d1fe Merge "Ignore hidden views when computing exclusion rects" into qt-qpr1-dev
am: b5b3a58173

Change-Id: Ibd8f15a0fbb380efa8989a09ecdcf1baa66fb201
2019-08-27 15:38:28 -07:00
Taran Singh
d332901cde Merge "IME transitions without pre-rendering." 2019-08-27 20:57:59 +00:00
Robert Carr
3e722b146b WindowlessViewRoot: Add transparency and SurfaceInset support
Bug: 138676533
Test: Builds
Change-Id: I6398fc0ff654886973e6dbe2035d2cd69a56111b
2019-08-27 13:39:58 -07:00
Tony Mak
a2ffa37d38 Add TYPE_LINKS_GENERATED and make ...
TextClassificationSessionId.flattenToString() public

TextClassificationSessionId.flattenToString() is public, so that
text classifiers can log the session ID as a string.

Also, fix toString() method in TextClassifierEvent.

Bug: 124437773

Test: Added CTS for flattenToString().
Test: Checked toString output.

Change-Id: If615703a0bdb3762b05da504b3883f85daf17afe
2019-08-27 15:23:08 +00:00
Tarandeep Singh
92d2dd36cd IME transitions without pre-rendering.
Support new IME inset api transitions without using pre-rendering.
This would be the default behavior when ViewRootImpl#sNewInsetsMode > 0
and pre-rendering is not enabled.

Bug: 111084606
Bug: 118599175
Test: Manually verify by just enabling Insets API and keeping
    pre-rendering off.
     1. Build and flash
     2. adb shell setprop persist.wm.new_insets 1
     3. adb reboot
     4. Make sure tapping on edit text brings keyboard up with new
     transition and back closes IME with various apps.
     5. Make sure IME behavior is unchanged for apps with
        ADJUST_RESIZE like whatsapp.
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases

Change-Id: If33e9dd45e549e49757237fa66051351b858875d
2019-08-26 12:44:10 -07:00
bohu
677595fdc7 View Renderer: remove emulator hack
BUG: 139998916
Change-Id: Icae145fe19f37da71ea30eabbe57c011dddeae66
2019-08-26 13:13:01 +00:00
TreeHugger Robot
2941abbc9b Merge "Revert "The source of subtree chagnes should be the viewParent"" 2019-08-24 10:41:25 +00:00