modules: camera: Hide HAL symbols DO NOT MERGE

Explicitly hide all symbols from being exported from the camera HAL
except the symbol required to load the module.

Change-Id: Ibf25d29f2fb3760e7f586e62732614f167d39674
am bb13a323: modules: camera: Hide HAL symbols DO NOT MERGE

* commit 'bb13a3231d24bf640e7060fee3a18643f7a9f0db':
  modules: camera: Hide HAL symbols DO NOT MERGE
am 819cfd87: modules: camera: Update to v2.1 camera module API

* commit '819cfd87bad560fbd89747371088ad35aaef8d43':
  modules: camera: Update to v2.1 camera module API
am a0ed4bea: modules: camera: Camera v3 Devices

* commit 'a0ed4bead4d7a9b9031f7cefe0ef49a951443461':
  modules: camera: Camera v3 Devices
am fefb3343: Initial version of BLE support for Bluedroid

* commit 'fefb3343906fe73c827d1b9d50cb3c451602c514':
  Initial version of BLE support for Bluedroid
am 1f8af678: modules: camera: make Camera object id const

* commit '1f8af678c9ef28090fad3dcb13eec84aab499ac7':
  modules: camera: make Camera object id const
am ca858143: Sensors HAL iterative update for jb-mr2

* commit 'ca8581433b778c60b074839baa6c3f2233c09614':
  Sensors HAL iterative update for jb-mr2
am 3ba9dcb1: Merge "Camera: Fix incorrect pointer types" into jb-mr2-dev

* commit '3ba9dcb180ac8e01c513b1790cd0cad0f46b887f':
  Camera: Fix incorrect pointer types
am 435e4a2b: Merge "Add significant motion description" into jb-mr2-dev

* commit '435e4a2b04d889d9f8505b755fbdfc84715e348a':
  Add significant motion description
am 2e7d3cd8: Minor fix in significant motion description

* commit '2e7d3cd8a8bc6c4d1b977d7b08da605da36c181b':
  Minor fix in significant motion description
am aa54f436: Merge "libhardware: Add camera_info typedef" into jb-mr2-dev

* commit 'aa54f436cdafec3594c93525339ca39c87c729d0':
  libhardware: Add camera_info typedef
am 0e9d232b: am 1d0c7e05: am 6e5236ee: am 5c8f84a1: am 3a18bccc: (-s ours) am 431cd416: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit '0e9d232b670f14e70e68ff43bc7154d95a757e0a':
am ad186ba6: Merge "Camera: Minor fixes to camera3 HAL interface" into jb-mr2-dev

* commit 'ad186ba61c77a4f978ee365ad5b063d69fd48c9a':
  Camera: Minor fixes to camera3 HAL interface
am bf94f90c: Merge "Initial version of RC HAL for AVRCP 1.3" into jb-mr2-dev

* commit 'bf94f90cdc53136d11d4722616ed032519501732':
  Initial version of RC HAL for AVRCP 1.3
am e1c3ff66: Merge "camera_common.h: Add STATUS_ENUMERATING enum" into jb-mr2-dev

* commit 'e1c3ff664170ecfb92dab4c2d064c5e3ac3c4fcc':
  camera_common.h: Add STATUS_ENUMERATING enum
am fb40d5de: camera2_test: Allow for HAL2 version >= 2.0 (i.e. 2.1, 3.0, etc)

* commit 'fb40d5de36fc93a1a3cab9c2cd73988ac52043a2':
  camera2_test: Allow for HAL2 version >= 2.0 (i.e. 2.1, 3.0, etc)
am 86b03c2f: Merge "Remove pid check in register/unregister" into jb-mr2-dev

* commit '86b03c2f6578bfd78580dc02fb1a167b21dbceaf':
  Remove pid check in register/unregister
Remove pid check in register/unregister

The register/unregister gralloc calls were avoiding
mmapping/munmapping the shared memory region if the buffer was created
by the current process. This is left over from the pmem-based
implementation, where trying to map the same region twice in the same
process would fail, or would reuse a single mapping without
refcounting.

This causes problems if a buffer is
- allocated in process A,
- transferred from A to process B and registered there
- unregistered/freed in A
- transferred back from B to A and re-registered

Process A then has a new handle to the buffer, but since it originally
created the buffer it will not be mmapped, so trying to read or write
the buffer will crash.

With ashmem, mmaping a region twice in the same process creates two
distinct mappings which can be used and munmapped independently. So
we no longer need to avoid mmapping again in the allocating process.

Bug: 8468756
Change-Id: I167bec5ca07e5534c5e2115630fe8386e481388e
Reconcile with jb-mr2-release - do not merge

Change-Id: I9b949862f875d719438a833d702dc17a356eac08
am d44e4a94: Merge "Gps geofence." into jb-mr2-dev

* commit 'd44e4a94de9708a5c0f648baf2309fe5fc0879bd':
  Gps geofence.