Add a NearbyScanRequest for requesting scan.

Currently only scan type and worksource are supported in the scan
request. More parameters will be added in the future.

Bug: 189355156
Test: atest NearbyUnitTests

Change-Id: I73d9e48865d33f5b13b29acac30eadc1a9eb9168
diff --git a/nearby/framework/Android.bp b/nearby/framework/Android.bp
index 5339551..8a09620 100644
--- a/nearby/framework/Android.bp
+++ b/nearby/framework/Android.bp
@@ -33,6 +33,9 @@
     srcs: [
         ":nearby-java-sources",
     ],
+    static_libs: [
+        "modules-utils-preconditions",
+    ],
 }
 
 // Defaults for SDK versions.
@@ -42,7 +45,6 @@
     target_sdk_version: "current",
 }
 
-
 // Nearby-service needs pre-jarjared version of framework-nearby so it can reference copied utility
 // classes before they are renamed.
 java_library {
@@ -55,6 +57,7 @@
     installable: false,
     visibility: [
         "//packages/modules/Nearby/service",
+        "//packages/modules/Nearby/tests",
     ],
 }
 
@@ -66,6 +69,7 @@
         "framework-nearby-defaults",
     ],
 
+    jarjar_rules: ":nearby-jarjar-rules",
     apex_available: [
         "com.android.nearby",
     ],
@@ -80,5 +84,6 @@
     ],
     permitted_packages: [
         "android.nearby",
+        "com.android.nearby",
     ],
 }