Don't allow conflicting interfaces.

For IBar extends IFoo if 1.0::IFoo/default is being registered, remove
IFoo/default. This makes sure the following two things are equivalent
1). IBar::castFrom(IFoo::getService(X))
2). IBar::getService(X)

Test: hidl_test, hidl_test_java, manually confirm that killing
  an interface can remove it from lshal.
Fixes: 62303973

Change-Id: Ic3e95e3d4ffb7eda5ac70b1c87dd83a2c5a187f5
2 files changed