Commit Graph

13269 Commits

Author SHA1 Message Date
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
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
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
Xin Li
a770df1d2e DO NOT MERGE - Merge build QP1A.190711.019 into stage-aosp-master
Bug: 139893257
Change-Id: I94fce9c5c0b35cbb88ee27fa4cd037927964d2cd
2019-08-24 05:22:23 +00:00
Qasid Sadiq
9a65d51435 Revert "The source of subtree chagnes should be the viewParent"
This reverts commit ed508280f9.

Reason for revert: Caused a performance regression: b/138853920

Change-Id: Ibc981ffca7aa0bf365eeea4d4e5e57259ce40f35
2019-08-23 19:52:41 +00:00
Winson Chung
61cfd71d39 Ignore hidden views when computing exclusion rects
Bug: 138806473
Test: atest SystemGestureExclusionRectsTest
Change-Id: I43629546af641d2b6347889e3ea10bd2cbbe9070
2019-08-22 16:36:18 -07:00
Joanne Chung
d38b888249 Merge "Log the error of TCS, TCMS and SysTC." 2019-08-22 02:03:14 +00:00
Tarandeep Singh
561a199ac7 Skip updateCursorAnchorInfo when matrix is null
Sometimes, the activityViewToScreenMatrix is null, we should skip
updateing cusor anchor info in such cases.
Fix: 139135335
Test: Manually using the steps in bug.

Change-Id: Ie58ad9a311a8f630b0a6d27d60ca017abc95ef45
2019-08-22 01:24:04 +00:00
Joanne Chung
0b7c2c4135 Log the error of TCS, TCMS and SysTC.
TextClassifierService passes the error message to onFailure() when it fails
to process the task. But the error message was dropped at TextClassifierService
right away which makes debugging hard. Log the error at the place where the
error happens to help debugging.

Bug: 139114128
Test: Manual. Use DefaultTCService to pass error message and make sure
the error log is printed.

Change-Id: I7c848a6e96db85d6e5b4f90ee9677dfe5b703149
2019-08-21 16:47:53 +08:00
Joanne Chung
14275a9388 Merge "Move disable autofill from AutofillManagerService to AutofillOptions." 2019-08-21 06:29:18 +00:00
Sally Yuen
b3d0111b46 Merge "Add more ScrollDeltaX/Y support to AccessibilityRecord." 2019-08-19 23:10:07 +00:00
Mihir Patel
7e2700d328 Merge "Fixing a bug where content capture sessions with child sessions could get stuck in a state where no event flushing other than forced flushes would occur" into qt-r1-dev am: 4aa0aeadff am: c1b765e744
am: 6b365322d4

Change-Id: Idcce863bc63e9fb38d5a54080dcd9b86e192941c
2019-08-19 14:38:34 -07:00
Mihir Patel
6b365322d4 Merge "Fixing a bug where content capture sessions with child sessions could get stuck in a state where no event flushing other than forced flushes would occur" into qt-r1-dev am: 4aa0aeadff
am: c1b765e744

Change-Id: Ie4ed8565ad223fb751dded6414288ae619cd8aaa
2019-08-19 13:58:27 -07:00
Mihir Patel
c1b765e744 Merge "Fixing a bug where content capture sessions with child sessions could get stuck in a state where no event flushing other than forced flushes would occur" into qt-r1-dev
am: 4aa0aeadff

Change-Id: I5fbd4bbc0d08b0a43c12d36b2b172e2df1edb64a
2019-08-19 13:37:01 -07:00
Mihir Patel
245fc50ce7 Merge "Fixing a bug where content capture sessions with child sessions could get stuck in a state where no event flushing other than forced flushes would occur" into qt-r1-dev
am: 4aa0aeadff

Change-Id: Iadf1c43fc5b38ab432e4bc2f47d50dd911f725ed
2019-08-19 13:34:24 -07:00
Qasid Ahmad Sadiq
209eb498c3 Update CollectionInfo comment to indicate -1 is ambiguous count.
REcyclerView falls into this, and talkback will start treating this that way.
Let's document it explicitly.

Bug: 137113167
Test: I can read it.
Change-Id: I8d540182ffb1deb20fdbc2e59fbcd7d0ac57ab9d
2019-08-14 17:43:31 -07:00
Joanne Chung
9e247b1564 Move disable autofill from AutofillManagerService to AutofillOptions.
Bug: 125007037
Test: atest CtsAutoFillServiceTestCases
Change-Id: Ib139cffaced15f5a458cb07e8b6cc1502492c9a5
2019-08-12 19:04:52 +08:00