Fix bugs.

Test: existing unit test
Bug: 200231384
Change-Id: I8de0cc8cbc5c8d59c1b09c8048b373157a9b9474
diff --git a/nearby/service/java/com/android/server/nearby/common/bluetooth/fastpair/Preferences.java b/nearby/service/java/com/android/server/nearby/common/bluetooth/fastpair/Preferences.java
index 0a27fcd..bb7b71b 100644
--- a/nearby/service/java/com/android/server/nearby/common/bluetooth/fastpair/Preferences.java
+++ b/nearby/service/java/com/android/server/nearby/common/bluetooth/fastpair/Preferences.java
@@ -953,7 +953,6 @@
                 + "createBondTimeoutSeconds=" + mCreateBondTimeoutSeconds + ", "
                 + "hidCreateBondTimeoutSeconds=" + mHidCreateBondTimeoutSeconds + ", "
                 + "proxyTimeoutSeconds=" + mProxyTimeoutSeconds + ", "
-                + "proxyTimeoutSeconds=" + mProxyTimeoutSeconds + ", "
                 + "rejectPhonebookAccess=" + mRejectPhonebookAccess + ", "
                 + "rejectMessageAccess=" + mRejectMessageAccess + ", "
                 + "rejectSimAccess=" + mRejectSimAccess + ", "
@@ -1562,7 +1561,7 @@
          * Set number of attempts.
          */
         public Builder setNumAttempts(int value) {
-            this.mNumSdpAttempts = value;
+            this.mNumAttempts = value;
             return this;
         }