Cleanup some code

1) Extract PendingIntent.send() compat behavior into a helper class.
2) Catch only RuntimeExceptions from wakelocks, so that other exceptions
will cause crashes.

Test: presubmits

Change-Id: I8eda8282cdb1c390fb8026b066304f1a169b598b
1 file changed