Each getter of the Display class should first
call updateDisplayInfoLocked().
Test: presubmit
Bug: 179775994
Change-Id: I4df9945cd030296da0e170411af8c66c89f57adf
Currently the display class synchronizes on this, which is
against the API guidelines.
Bug: 171240622
Test: presubmit
Change-Id: I5706cb38803c9868cc4bae0803aa3fd0c5991bde
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
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
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
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
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
- 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
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