OSDN Git Service

Propagate StartInputReason to attachNewInputLocked
authorYohei Yukawa <yukawa@google.com>
Tue, 7 Feb 2017 08:13:14 +0000 (00:13 -0800)
committerYohei Yukawa <yukawa@google.com>
Tue, 7 Feb 2017 08:13:14 +0000 (00:13 -0800)
commit87ca8406d4dc711e9c9dba7a5ffccedc9e212021
tree96dc3a43a47ede3fc39dc77d81e28b535b38b149
parentfd62c58ede768be5830a052ee2d5ee6ade787839
Propagate StartInputReason to attachNewInputLocked

As a preaparation to work on Bug 35079353, this CL makes it clear that
IMS#startInput()/IMS#restartInput() can be also be triggered by
IMMS#onSessionCreated().

By doing this, we can now assume that each
IMS#startInput()/IMS#restartInput() event has always one corresponding
StartInputReason. In a subsequent CL, we will pass this to the IME
process (and to the app process) for further traceability.

Test: no behavior change.
Bug: 35079353
Change-Id: I604e35b023d27b77126cd70fe068dc6b5edc2611
core/java/com/android/internal/view/InputMethodClient.java
services/core/java/com/android/server/InputMethodManagerService.java