Implement Ims's VideoCallProvider, including a wrapper.
authorAndrew Lee <anwlee@google.com>
Fri, 8 Aug 2014 08:42:33 +0000 (01:42 -0700)
committerAndrew Lee <anwlee@google.com>
Fri, 8 Aug 2014 19:08:07 +0000 (12:08 -0700)
commit01b4ea445b5cdc6c1b32153d4f0216f429ede8af
tree3a426e205b4500d46f47068f75adddc0f815ca9c
parentf54a9cc3d97915245086cdbf32cc2fbe8bfaea8c
Implement Ims's VideoCallProvider, including a wrapper.

+ Implements ConnectionService.VideoCallProvider as
ImsVideoCallProviderWrapper. ConnectionService treats this as
the concrete implementation of VideoCallProvider. In detail though,
it is a wrapper around ImsVideoCallProvider which should be extended
in ImsService and implements the actual video call provider
functionality. This wrapper intermediates communication for commands
sent through Telephony and carried out in ImsService. It also
implements the callback class whose binder is provided to the
ImsVideoCallProvider.
+ ImsVideoCallProvider is an abstract class which defines
functionality which satisfies ConnectionService.VideoCallProvider.
We don't directly extend VideoCallProvider because of the
inter-process communication necessary across Telephony and
ImsService. This class provides a binder which is passed to the
ImsVideoCallProviderWrapper.
+ Implement getVideoCallProvider on ImsCallSession.

Bug: 16886403
Change-Id: I9b995baa74149b3c046789f797ab0ff49ae7165b
src/java/com/android/ims/internal/ImsCallSession.java
src/java/com/android/ims/internal/ImsVideoCallProvider.java [new file with mode: 0644]
src/java/com/android/ims/internal/ImsVideoCallProviderWrapper.java [new file with mode: 0644]