Code cleanup.

Avoid repetetive boilerplate code by using helper methods.

Change-Id: Id3ce8d07d35d59c08cbc67fa35bbf6daa67c9608
Automatic translation import

Change-Id: If226d8f4684929f5515fafdc67b4013729206046
Merge "Code cleanup." into cm-11.0
Automatic translation import

Change-Id: I89a27c063e66fbf80664271e1564257cb8c233bb
Fix uncaught exception when no location provider available

Change-Id: I2625e6d219401a04a372a487d84edaaf3099f0d6
Dialer: Fix NPE in CallStats

Change-Id: I0eed1e66f803e072c58d85c78c253730f81f029d
See: https://jira.cyanogenmod.org/browse/BUGDUMP-114773?jql=text%20~%20%22Callstats%22
Automatic translation import

Change-Id: Id14aa2d86a1ca88b20d73a42e1de87041b253006
Dialer: Fix possible crash in call details

* VOIP calling when multi-SIM is active can result in subscription being
  -1 at this point, resulting in array out of bounds when fetching the
  SIM icon.

Change-Id: I1ce2c3bb0b27b26b61967dfe90b38cc9740a1f54
[2/2] Dialer: Add a non-intrusive dialoger for incoming calls

Change-Id: Ibbb9653b4a1da12fe3a7ad8f98ecbb8bffb13311
Dialer: add Incoming Call Background (2/2)

Change-Id: I9f494385b53918c755cd9b12a0ecba989e153ad8
Dialer: Allow enabling call recording (2/3)

Change-Id: I96b5b579301400762799d03c64a38bc27223382e
Dialer: Disable call recording in blacklisted area

Change-Id: I6c81ea80b540cfb32a062a41fcbcb3342d94506a