Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b6acb1e authored by Joanne Chung's avatar Joanne Chung Committed by Automerger Merge Worker
Browse files

Merge "Add log to help debug bind TCS twice." into rvc-dev am: 392e4a9e am:...

Merge "Add log to help debug bind TCS twice." into rvc-dev am: 392e4a9e am: 3f55cca5 am: 1b8b34c6

Original change: undetermined

Change-Id: Ie48b4b250eb7b22b7b58d48677516c1cb60a1987
parents 93c45557 1b8b34c6
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -882,6 +882,9 @@ public final class TextClassificationManagerService extends ITextClassifierServi
                Slog.d(LOG_TAG, "Binding to " + serviceIntent.getComponent());
                Slog.d(LOG_TAG, "Binding to " + serviceIntent.getComponent());
                willBind = mContext.bindServiceAsUser(
                willBind = mContext.bindServiceAsUser(
                        serviceIntent, mConnection, mBindServiceFlags, UserHandle.of(mUserId));
                        serviceIntent, mConnection, mBindServiceFlags, UserHandle.of(mUserId));
                if (!willBind) {
                    Slog.e(LOG_TAG, "Could not bind to " + componentName);
                }
                mBinding = willBind;
                mBinding = willBind;
            } finally {
            } finally {
                Binder.restoreCallingIdentity(identity);
                Binder.restoreCallingIdentity(identity);
@@ -954,16 +957,19 @@ public final class TextClassificationManagerService extends ITextClassifierServi


            @Override
            @Override
            public void onServiceDisconnected(ComponentName name) {
            public void onServiceDisconnected(ComponentName name) {
                Slog.i(LOG_TAG, "onServiceDisconnected called with " + name);
                cleanupService();
                cleanupService();
            }
            }


            @Override
            @Override
            public void onBindingDied(ComponentName name) {
            public void onBindingDied(ComponentName name) {
                Slog.i(LOG_TAG, "onBindingDied called with " + name);
                cleanupService();
                cleanupService();
            }
            }


            @Override
            @Override
            public void onNullBinding(ComponentName name) {
            public void onNullBinding(ComponentName name) {
                Slog.i(LOG_TAG, "onNullBinding called with " + name);
                cleanupService();
                cleanupService();
            }
            }