Use simulator to add in-call UI integration tests

This CL uses the simulator connection service to perform integration
tests for incallui.

The main pieces of this CL are:
  - DialerCallEvent - this is how we track changes to the incallui calls
  - Simulator.Event - this is how we track changes to a simulator
  connection

With the above two we can do things like:
  - block until a DialerCall switches from ACTIVE TO ONHOLD:
      - DialerCallEspresso.waitForNextEvent(tracker, call, new
      DialerCallEvent(STATE_CHANGE, "ACTIVE", "ONHOLD")
  - block for a connection to recive a particular DTMF code:
      - SimulatorConnectionEspresso.waitForNextEvent(call, Event.DTMF)

Future CLs will include things like:
  - fling to answer / reject
  - conference calls
  - screenshot diffing
  - video calling

Test: InCallActivityTest
PiperOrigin-RevId: 167211015
Change-Id: Ib013b10fe963092fad0816b07b1659efd69d9468
7 files changed
tree: bf94bb3fcbf38857e65c4637aa0dde6bd637868b
  1. assets/
  2. java/
  3. Android.mk
  4. AndroidManifest.xml
  5. CONTRIBUTING
  6. LICENSE