Update TIS logs to narrow down duplicate service creation
Bug: 353903219 Test: Manual, force multiple registrations of the input consumer Flag: EXEMPT bugfix Change-Id: Ie42f4b2335f8264fe2dbdb99ca4472c5035346a2
This commit is contained in:
1 parent
bfe4d6b469
commit
dd4145b917
1 file changed
+10
-4
@@ -655,6 +655,8 @@ public class TouchInteractionService extends Service {
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
Log.d(TAG, "onCreate: user=" + getUserId()
|
||||
+ " instance=" + System.identityHashCode(this));
|
||||
// Initialize anything here that is needed in direct boot mode.
|
||||
// Everything else should be initialized in onUserUnlocked() below.
|
||||
mMainChoreographer = Choreographer.getInstance();
|
||||
@@ -688,7 +690,8 @@ public class TouchInteractionService extends Service {
|
||||
}
|
||||
|
||||
private void disposeEventHandlers(String reason) {
|
||||
Log.d(TAG, "disposeEventHandlers: Reason: " + reason);
|
||||
Log.d(TAG, "disposeEventHandlers: Reason: " + reason
|
||||
+ " instance=" + System.identityHashCode(this));
|
||||
if (mInputEventReceiver != null) {
|
||||
mInputEventReceiver.dispose();
|
||||
mInputEventReceiver = null;
|
||||
@@ -725,7 +728,8 @@ public class TouchInteractionService extends Service {
|
||||
|
||||
@UiThread
|
||||
public void onUserUnlocked() {
|
||||
Log.d(TAG, "onUserUnlocked: userId=" + getUserId());
|
||||
Log.d(TAG, "onUserUnlocked: userId=" + getUserId()
|
||||
+ " instance=" + System.identityHashCode(this));
|
||||
mTaskAnimationManager = new TaskAnimationManager(this, mRecentsWindowManager);
|
||||
mOverviewComponentObserver = new OverviewComponentObserver(this, mDeviceState);
|
||||
mOverviewCommandHelper = new OverviewCommandHelper(this,
|
||||
@@ -811,7 +815,8 @@ public class TouchInteractionService extends Service {
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
Log.d(TAG, "Touch service destroyed: user=" + getUserId());
|
||||
Log.d(TAG, "onDestroy: user=" + getUserId()
|
||||
+ " instance=" + System.identityHashCode(this));
|
||||
sIsInitialized = false;
|
||||
if (LockedUserState.get(this).isUserUnlocked()) {
|
||||
mInputConsumer.unregisterInputConsumer();
|
||||
@@ -840,7 +845,8 @@ public class TouchInteractionService extends Service {
|
||||
|
||||
@Override
|
||||
public IBinder onBind(Intent intent) {
|
||||
Log.d(TAG, "Touch service connected: user=" + getUserId());
|
||||
Log.d(TAG, "onBind: user=" + getUserId()
|
||||
+ " instance=" + System.identityHashCode(this));
|
||||
return mTISBinder;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user