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

Commit b4238056 authored by Steve Pomeroy's avatar Steve Pomeroy
Browse files

Add NFC observe mode + auto-transact dumpsys logging

Bug: 345268190
Test: adb shell dumpsys nfc
Change-Id: I550709e9c81e5f2513589029768564a9905f97a7
parent 27165ad7
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -412,7 +412,7 @@ public final class ApduServiceInfo implements Parcelable {
                            false);
                    if (!mOnHost && !autoTransact) {
                        Log.e(TAG, "Ignoring polling-loop-filter " + plf
                                + " for offhost service that isn't autoTranact");
                                + " for offhost service that isn't autoTransact");
                    } else {
                        mAutoTransact.put(plf, autoTransact);
                    }
@@ -429,7 +429,7 @@ public final class ApduServiceInfo implements Parcelable {
                            false);
                    if (!mOnHost && !autoTransact) {
                        Log.e(TAG, "Ignoring polling-loop-filter " + plf
                                + " for offhost service that isn't autoTranact");
                                + " for offhost service that isn't autoTransact");
                    } else {
                        mAutoTransactPatterns.put(Pattern.compile(plf), autoTransact);
                    }
@@ -1028,6 +1028,9 @@ public final class ApduServiceInfo implements Parcelable {
        pw.println("    Settings Activity: " + mSettingsActivityName);
        pw.println("    Requires Device Unlock: " + mRequiresDeviceUnlock);
        pw.println("    Requires Device ScreenOn: " + mRequiresDeviceScreenOn);
        pw.println("    Should Default to Observe Mode: " + mShouldDefaultToObserveMode);
        pw.println("    Auto-Transact Mapping: " + mAutoTransact);
        pw.println("    Auto-Transact Patterns: " + mAutoTransactPatterns);
    }