Create screenshot directory if it doesn't exist

Change-Id: Iace92040b05869542cfd1038fea978617fba6f0d
Use index in SparseArray access properly

The original code was calling get() rather than valueAt(),
treating index as if it was a key.

Change-Id: I52539dfcb49b3d2ee3cb027d38c50b46f73b5ee7
Signed-off-by: Igor Chernyshev <igorc@google.com>
AudioService : Ensure uri is not null

Checks to make sure the uri is not null, otherwise the entire
subsystem crashes.

Change-Id: Iac04b6d11335236d527b8d5a1ccb48c1e09a4ac2
Revert "Fix NPE in ConnectivityService"

This reverts commit 235877d63b204f2e610d94097fc15005623c63b4.
Revert "Fix for the invalid Global Proxy Setting"

This reverts commit b213b5fcfa684b0625ebe4fe43f5e318c54a4e29.