Extracting ViewCapture into common Library

The ViewCapture functionality is extracted into a common Library accessible to the Launcher and SystemUi modules. I have changed a few things:
1. protobuf-nano is used instead of protobuf-lite mainly due to compatibility problems. The main difference is, that protobuf-nano does not have Builders. Therefore all Builders from the old ViewCapture.java class are replaced with constructors and direct field writes.
2. To avoid copying the Launcher internal MainThreadInitializedObject, the main thread initialization of ViewCapture is now implemented within the getInstance() function.
3. Context is not passed to the constructor anymore but only to the functions that depend on it as a parameter.
4. Added getDumpTask function.

Test: None
Change-Id: I1fdd73e17b4967bd71aed400bf39f7706c498d6d
8 files changed
tree: 3f28543cbae70fdedf162722c79ddf284d1ef1be
  1. iconloaderlib/
  2. searchuilib/
  3. viewcapturelib/