Fix some unbind logic.

- Dont rebind to a Service if we already bound to it.
- Clean up mServiceConnection map when services disconnect.
- Unbind services which randomly disconnected.
- reuse unbind() method where possible.

Bug: 17354788
Change-Id: If31391b19da19d9da92270213641e8ba703d6ca1
1 file changed
tree: e4fc90e1da273fae3ea853bef9e706c0b7ca17fd
  1. libs/
  2. res/
  3. src/
  4. tests/
  5. .classpath
  6. .project
  7. Android.mk
  8. AndroidManifest.xml