Cleanup Telecom API usage in Telephony for mainline support.

1. Moved some Connection#Listener callbacks to TelephonyConnection; these
were Telephony implementation details that leaked into the telecom API
class (example: conference participants stuff is IMS specific).
2. Use public Connection#putExtras API instead of using @hide putters on
the Connection class.
3. Cleanup code which used @hide Connection#getConnectionService to get
the current ConnectionService and track this in TelephonyConnection
instead.
4. Inline uses of Connection#can; its just simple bit math.
5. Fix break in TelephonyConnectionServiceTest related to emergency number
tracker (unrelated to this refactor but I was running the tests so might
as well fix it).

Test: Smoke test.
Test: Run unit tests
Test: Run CTS tests.
Change-Id: I83043caa19cdfb990f47e6b124c12e569a86e692
6 files changed