Improve wiring of Phone Accounts

Change-Id: I891224e09a1d2bf81ffa887e1d077f6f64f73022
merge in lmp-release history after reset to 6965a807540276869427b70f04d3d4a8ad610e0e
Do not use stale PhoneAccounts when placing calls.

This is important in case the call log has a record of a phone account
which is no longer valid.  An example would be the emergency
PhoneAccount. That will always fail for non-emergency numbers...but if
it is the only account, then it will be used and fail. When the user
pops in a valid SIM, it will continue to fail because the phone account
saved into the call log was the stale emergency phoneAccount.

Without this fix, the user can get "Call not sent" frequently.

Bug: 16526102
Change-Id: Ic08768b85d374e6f7ab54f34b5caf501b061d49b
merge in lmp-release history after reset to 64c2a241fef2ae70c19943c75b617690074216ac
merge in lmp-release history after reset to 64c2a241fef2ae70c19943c75b617690074216ac
merge in lmp-release history after reset to 64c2a241fef2ae70c19943c75b617690074216ac
merge in lmp-release history after reset to 4746292f9158c53af35247916717592dde94c723
merge in lmp-release history after reset to af51ceb458f94b9a179145f222ae4ea84951e8be
merge in lmp-release history after reset to af51ceb458f94b9a179145f222ae4ea84951e8be
merge in lmp-release history after reset to 4c2fefd3291868f640a117e2b71e8eb3e732410f
merge in lmp-release history after reset to 614376a7f6155ccf194e589e675b35d6ca5bbf43
merge in lmp-release history after reset to 12d61825cd0d6aa06272db3f77b5e30dce379951
Add null checks to MissedCallNotifier.

Bug: 16782303
Change-Id: I1ffee114315c20db33512082f9c0d25db8010988
merge in lmp-release history after reset to 68f55b419fb0834c7257aa04b2b7cbcd4745f273
Clean up audio mode setting in telecomm.

Audio mode was being set too often by triggers which could come in
outside of a call: headset plugged in, bluetooth plugged in.
Do a check for focus before allowing these triggers to take effect.

Additionally, audio settings were updated for any added call, even
those which may not need audio yet (NEW calls which have not
transitioned to DIALING or RINGING...or anything else). Don't do that.

Bug: 15589644
Bug: 16132361
Change-Id: Id8425a15cd89233159323387b1e86f432c09016a
merge in lmp-release history after reset to a6e9d758f02ec0654f489725e9b9442796d0b03f
merge in lmp-release history after reset to 49db2803fd058fa8cac00571389f610e4ed01f7f
merge in lmp-release history after reset to 49db2803fd058fa8cac00571389f610e4ed01f7f
merge in lmp-release history after reset to 0dba3eb9ac6d0c1889a185b6d306ff5d47cefba8
merge in lmp-release history after reset to 9646ed98b4283a475862fca3df880524bedc9c1e