Commit Graph

16229 Commits

Author SHA1 Message Date
TreeHugger Robot
c04814ff76 Merge "Move drag event to InputDispatcher (4/n)" into sc-dev 2021-03-12 03:52:36 +00:00
mrenouf
70f4666558 Merge "Update OWNERS for long screenshots framework code" am: 4392dd9cb8 am: 695b9ee40e am: 85bf625569
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1619622

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ied18be7a63642d3303a50534cbe95e05e1336cc5
2021-03-12 00:50:34 +00:00
TreeHugger Robot
cdebbc764a Merge "Merge "Add OWNERS for long screenshots framework code" am: 79bed70aa2 am: 4df29fd76a" into sc-dev 2021-03-12 00:17:58 +00:00
mrenouf
85bf625569 Merge "Update OWNERS for long screenshots framework code" am: 4392dd9cb8 am: 695b9ee40e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1619622

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5fe8f6ed9302d560959f28d9ebd2f309fb6502ef
2021-03-12 00:05:22 +00:00
mrenouf
7b969ae133 Update OWNERS for long screenshots framework code
Adds OWNERS line for internal binder interfaces.

Test: n/a
Change-Id: Ib6cdef76c5c9444f7187e33588bb3fdfbf5f5787
2021-03-11 21:23:44 +00:00
TreeHugger Robot
80b9e3e504 Merge changes I4df9945c,I5706cb38 into sc-dev
* changes:
  Update device info on Display.getDeviceProductInfo()
  Display API: Do not expose internal locks
2021-03-11 21:22:40 +00:00
Marin Shalamanov
254351a6a7 Update device info on Display.getDeviceProductInfo()
Each getter of the Display class should first
call updateDisplayInfoLocked().

Test: presubmit
Bug: 179775994
Change-Id: I4df9945cd030296da0e170411af8c66c89f57adf
2021-03-11 16:04:54 +01:00
Marin Shalamanov
427b32900e Display API: Do not expose internal locks
Currently the display class synchronizes on this, which is
against the API guidelines.

Bug: 171240622
Test: presubmit
Change-Id: I5706cb38803c9868cc4bae0803aa3fd0c5991bde
2021-03-11 16:04:54 +01:00
Joanne Chung
9b316222ff Merge "Add debug logs to help clarify the issue" into sc-dev 2021-03-11 14:03:23 +00:00
Joanne Chung
3cda8bd49f Add debug logs to help clarify the issue
We receive translation doesn't work issues but we don't have enough
log information to help debugging the issue. To help clarify issue

- Add more information when dumpsys activity information
- We use Log.isLoggable() to control if the debug log need to be
printed. But for the development phase, we enable print log on the
debuggable ROM, we will delete it before platform release.

Bug: 181975692
Test: manual. adb shell dumpsys activity <myactivity> --translation
(Can find dumpsys result of sample app in bug 182433547)

Change-Id: I4a9a1667a544fc4d1654c5f297d365a8288b1f4a
2021-03-11 16:34:44 +08:00
Yuntao Zhou
4c8df0cb53 Merge "Fix minor typo in ContentCaptureManager Javadoc" am: 6305e68c6e am: 3ffbb1f042 am: 7c6ef98d3e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1619880

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2b8d6400d7d44b192be5ca2420d2a2e26c3be484
2021-03-11 03:07:56 +00:00
Yuntao Zhou
7c6ef98d3e Merge "Fix minor typo in ContentCaptureManager Javadoc" am: 6305e68c6e am: 3ffbb1f042
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1619880

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2b0b07498a0dcdf199825a3927776d9ab79090b6
2021-03-11 02:20:40 +00:00
Yuntao Zhou
538f58916a Fix minor typo in ContentCaptureManager Javadoc
Noticed on https://developer.android.com/reference/android/view/contentcapture/ContentCaptureManager

Change-Id: I7bb01264947b93e0784497cbad5a5609cb4296d3
2021-03-11 01:51:21 +00:00
Arthur Hung
28b0720cd4 Merge "Move drag event to InputDispatcher (2/n)" into sc-dev 2021-03-11 01:17:38 +00:00
TreeHugger Robot
3d28e460e1 Merge "Include whether in touch mode for WindowlessWindowManager" into rvc-qpr-dev am: 09b7b55659
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13828717

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I022ad77f205b88bf7c76b403b93b9f516cf85a20
2021-03-10 23:15:15 +00:00
Chris Li
0c603d91a7 Include whether in touch mode for WindowlessWindowManager
Fix: 179583920
Fix: 180530717
Test: manually with a windowless button
Change-Id: Ice37c3182a44c6284ffa8950996507025c59270b
Merged-In: Ice37c3182a44c6284ffa8950996507025c59270b
2021-03-10 21:11:34 +00:00
Taran Singh
dd7874a401 Merge "Avoid IME restart for configChanges" into sc-dev 2021-03-10 19:15:23 +00:00
Naomi Musgrave
c50df25a88 Merge changes from topic "sandboxing-display" into sc-dev
* changes:
  Temporarily exclude Launcher from sandboxing; to be reverted once bug is addressed.
  Sandbox letterbox and size compat apps
2021-03-10 17:00:01 +00:00
Taran Singh
9a2eed9f49 Avoid IME restart for configChanges
Handle onConfigurationChanged() in order to prevent restarting
InputMethodService everytime. We introduce a new API attribute
"configChanges" in InputMethod(attrs.xml) which when declared
by IME, will be responsible for handling mentioned
configuration changes.

This CL re-introduces [1] with fix: Use new Configuration instance for
IMS#mLastKnownConfig

[1] Iff88b768c6b06cf5cf1fe9e97ee97f8f78e6f0bd

Bug: 167948419
Test: atest InputMethodServiceTest
    Manually:
      1. Patch Ie91e7a8e06b80864ef9409031e8543858552d70d to use dual
         display area.
      2. Open applications with editors on both display areas.
      3. Attach a debug point for IMS#onConfigurationChanged().
      4. Make sure IMS#resetStateForNewConfiguration() is not called
         when IME moves between these two identical DisplayAreas

Change-Id: Ib94fddadb0dae648cf73a4c1642e51edebd19f50
2021-03-10 08:22:42 +00:00
Joanne Chung
2d60140ef0 Merge "Fix minor typo in TextClassificationConstants Javadoc" into sc-dev 2021-03-10 04:48:28 +00:00
Naomi Musgrave
6574e37f7c Temporarily exclude Launcher from sandboxing; to be reverted once
bug is addressed.

Bug: 181219241
Test: Manual
Change-Id: I468104a853908c5649359084fa9d683e7f1ce532
2021-03-09 22:49:52 +00:00
Naomi Musgrave
93281edad3 Sandbox letterbox and size compat apps
Sandbox Display#getRealSize and WindowManager
bounds when letterbox or size compat mode are
applied to the configuration. Display uses
this field to provide the sandboxed display
size.

This reverts commit 0ba6185639.

Test: atest WindowConfigurationTests
Test: atest FrameworksMockingCoreTests:android.view.DisplayTests
Test: atest WmTests:SizeCompatTests
Bug: 181219241

Change-Id: I86e8edb8368269da8e02cf34f429d245550666c6
2021-03-09 22:48:07 +00:00
TreeHugger Robot
b41c7af72c Merge "Deprecate Display#getRealSize / getRealMetrics, and direct users to WindowManager#getCurrentWindowMetrics instead" into sc-dev 2021-03-09 22:34:59 +00:00
Adam He
a47c17768c Merge "Full refactor of Translation APIs." into sc-dev 2021-03-09 19:05:54 +00:00
Joanne Chung
7686368ef3 Fix minor typo in TextClassificationConstants Javadoc
Bug: 169042855
Test: n/a
Change-Id: I1dc53b1d298aa9a628f847cc81207a95c2c0bd3d
2021-03-09 23:20:10 +08:00
Naomi Musgrave
4186191166 Deprecate Display#getRealSize / getRealMetrics, and direct users
to WindowManager#getCurrentWindowMetrics instead

Bug: 171386167
Test: manual
Change-Id: I8ebb08d514138f7f3a2b4aae29f59c8452c5aa0f
2021-03-09 14:09:41 +00:00
arthurhung
98fc6a134b Move drag event to InputDispatcher (4/n)
Currently, any window or windowless surface could receive drag event if
it is visible and touch-deliverable. But it's hard to tell if a surface
could receive this drag event in WM side because we didn't know the
final touch region of the surface that could be cropped by others.

- add isDragDrop to transferTouchFocus, true when called from drag/drop.
- ACTION_DRAG_EXITED/ACTION_DRAG_LOCATION will be sent from
  InputDispatcher to InputEventReceiver.

Bug: 158242495
Test: atest CrossAppDragAndDropTests DragDropTest
Test: atest WmTests:DragDropControllerTests

Change-Id: I111b6dbb6826fc77749fa2250ff4daced98979d2
2021-03-09 21:07:32 +08:00
arthurhung
cfde236281 Move drag event to InputDispatcher (2/n)
This CL adds the ability to receive a DRAG event through the
InputChannel, and adds the appropriate processing logic to
InputEventReceiver.

Bug: 158242495
Test: atest libinput_tests
Change-Id: I94d5fa545d920be52e03702d0d24712fd11c497c
2021-03-09 15:08:33 +08:00
TreeHugger Robot
14ff834581 Merge changes from topic "client_suggestions_fillrequest-sc-dev" into sc-dev
* changes:
  Implements Autofill fill request to support client suggestions
  Adds fill request APIs for the client suggestions
2021-03-09 04:55:55 +00:00
TreeHugger Robot
bc77f26761 Merge "Update TextServicesManager API." into sc-dev 2021-03-09 04:31:24 +00:00
Kohsuke Yatoh
f9fa524ff6 Update TextServicesManager API.
- Rename getCurrentSpellChecker to getCurrentSpellCheckerInfo.
- Rename getEnabledSpellCheckersList to getEnabledSpellCheckerInfos.
- Remove getCurrentSpellCheckerSubtype.

This CL is effectively rewriting I2bac96ddafe5e4ac583fc16bf155d67e3d45fc4f
to introduce the following two methods as official APIs.
- getCurrentSpellCheckerInfo()
- getEnabledSpellCheckerInfos()
This CL adds back @UnsupportedAppUsage that were removed in the commit
above.

Bug: 179804789
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Change-Id: Ibf5fbf5fe6f58f999c4af40ae937d68e71def766
2021-03-09 00:21:21 +00:00
Sally Yuen
8a070bb465 Merge "Revert "Service requests can interrupt node prefetching"" into sc-dev 2021-03-08 22:04:17 +00:00
Sally Yuen
373028a524 Revert "Service requests can interrupt node prefetching"
This reverts commit 327de4b45c.

Reason for revert: b/182016372

Change-Id: I67ec01fc2f47b05a2dc11e7951c11a708fdbeebf
2021-03-08 19:49:37 +00:00
Siarhei Vishniakou
6387cdfb91 Merge "Pass actual present time to ViewRootImpl" into sc-dev 2021-03-08 19:44:12 +00:00
Linus Tufvesson
4d67c4060f Merge "Fix javadoc links to permissions" into sc-dev 2021-03-08 09:06:47 +00:00
TYM Tsai
dee5a2b902 Adds fill request APIs for the client suggestions
Bug: 172024354
Test: atest CtsAutoFillServiceTestCases
Change-Id: I9d60361afb853568f92b88c9c1929b28195df836
2021-03-08 15:38:03 +08:00
Joanne Chung
944e6eb7fc Merge "Add TEST_MAPPING for translation." into sc-dev 2021-03-08 06:34:41 +00:00
Yiwei Zhang
83c17c18b8 Merge "Nudge SurfaceControlFpsListener api to use task ID" into sc-dev 2021-03-07 03:44:19 +00:00
TreeHugger Robot
10c0b8a7ae Merge "Pass InlineSuggestionsRequest via autofill auth intent extras" into sc-dev 2021-03-06 18:46:41 +00:00
Adam He
59716789f4 Full refactor of Translation APIs.
* Added ViewTranslationRequest/Response
* Added TranslationRequest/ResponseValue
* Removed single TranslationData.
* Moved service.TRequest -> view.TRequest.

Bug: 176208267
Bug: 177371091
Test: atst CtsTranslationTestCases
Change-Id: I25d4bce385d64a8eb9c2a316bd6b5a23e14fb14e
2021-03-05 17:51:03 -08:00
Siarhei Vishniakou
f0cf18d3ed Pass actual present time to ViewRootImpl
To measure end-to-end touch latency, we need to report the actual
present time to ViewRootImpl. ViewRootImpl, in turn, will report this
information to InputDispatcher. Finally, InputDispatcher will combine
all known information for a specific input event, and will report this
data to westworld.

In another patch, we will add a new call, 'reportLatencyInfo', to
InputPublisher. This call will allow the app to send this latency data
to InputDispatcher.

Bug: 169866723
Test: printed the input event present times inside ViewRootImpl
Change-Id: Ibd3a2cfeb1a340eb15cd2165071df1f8589634af
2021-03-05 21:42:32 +00:00
TreeHugger Robot
4379d99c29 Merge "Trace vsync id" into sc-dev 2021-03-05 21:37:02 +00:00
Alec Mouri
2b54c82cc5 Nudge SurfaceControlFpsListener api to use task ID
Bug: 174956756
Test: e2e test with dashboard cls
Change-Id: I463a7bffc02b371e41752912736d1a6bb9f73633
2021-03-05 12:20:18 -08:00
Jeff Sharkey
c5d9327df2 Merge "Add OWNERS for long screenshots framework code" am: 79bed70aa2 am: 4df29fd76a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1600453

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iab3982e777395a9579505ad90b143c3b6c04b6f3
2021-03-05 20:16:00 +00:00
Winson Chung
88c5179965 Merge "Revert "Add nav bar case to RemoteAnimationTarget of non-app window"" into sc-dev 2021-03-05 19:03:30 +00:00
Sally Yuen
515057f70d Merge "Service requests can interrupt node prefetching" into sc-dev 2021-03-05 17:27:51 +00:00
Joanne Chung
ffcd1fd11e Add TEST_MAPPING for translation.
Bug: 179047265
Test: atest --test-mapping
frameworks/base/core/java/android/view/translation

Change-Id: Ic33c60deea74ca58b1cc5a0c338f51245fac1293
2021-03-05 22:44:53 +08:00
Naomi Musgrave
ac754912ca Merge "Update WindowManager's WindowMetrics documentation" into sc-dev 2021-03-05 10:23:55 +00:00
Linus Tufvesson
ef39d52f56 Fix javadoc links to permissions
Test: Clicked the links in IDE
Change-Id: I9232f5d8e4263bf62b53bcda975b4a14bbee2633
2021-03-05 10:20:28 +00:00
Shawn Lin
2a13ab663e Revert "Add nav bar case to RemoteAnimationTarget of non-app window"
This reverts commit f17300e706.

Reason for revert: <Caused test failures>

Change-Id: Id199e36e189c586c92f994023f60f64be9f5f443
2021-03-05 09:05:31 +00:00