Add HeadsetPiece.java

Test: unit test.
Bug: 200231384
Change-Id: I062cd00f7589ccf2195da01b796819a7f23ea283
diff --git a/nearby/service/Android.bp b/nearby/service/Android.bp
index b33d593..14a96d1 100644
--- a/nearby/service/Android.bp
+++ b/nearby/service/Android.bp
@@ -40,9 +40,12 @@
     ],
     static_libs: [
         "androidx.annotation_annotation",
+        "androidx.core_core",
+        "auto_value_annotations",
         "guava",
     ],
     sdk_version: "system_server_current",
+    plugins: ["auto_value_plugin"],
 
     installable: true,
     optimize: {