use the device's default binder/passthrough mode in vts tests
Test: mma Change-Id: I3f2775873f5b6c091f70413adbdf7b7ae298ff44
This commit is contained in:
parent
c91e7fb95e
commit
b21bdc8b9f
6 changed files with 6 additions and 8 deletions
|
@ -38,8 +38,7 @@ using ::android::sp;
|
|||
class AudioEffectHidlTest : public ::testing::Test {
|
||||
public:
|
||||
virtual void SetUp() override {
|
||||
// currently test passthrough mode only
|
||||
effectsFactory = IEffectsFactory::getService("audio_effects_factory", true);
|
||||
effectsFactory = IEffectsFactory::getService("audio_effects_factory");
|
||||
ASSERT_NE(effectsFactory, nullptr);
|
||||
}
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ private:
|
|||
|
||||
void CameraHidlEnvironment::SetUp() {
|
||||
// TODO: test the binderized mode
|
||||
mProvider = ICameraProvider::getService(CAMERA_PASSTHROUGH_SERVICE_NAME, true);
|
||||
mProvider = ICameraProvider::getService(CAMERA_PASSTHROUGH_SERVICE_NAME);
|
||||
// TODO: handle the device doesn't have any camera case
|
||||
ALOGI_IF(mProvider, "provider is not nullptr, %p", mProvider.get());
|
||||
ASSERT_NE(mProvider, nullptr);
|
||||
|
|
|
@ -187,7 +187,7 @@ class GatekeeperHidlTest : public ::testing::Test {
|
|||
GatekeeperHidlTest() : uid_(0) {}
|
||||
virtual void SetUp() override {
|
||||
GatekeeperResponse rsp;
|
||||
gatekeeper_ = IGatekeeper::getService("gatekeeper", false);
|
||||
gatekeeper_ = IGatekeeper::getService("gatekeeper");
|
||||
ASSERT_NE(nullptr, gatekeeper_.get());
|
||||
doDeleteAllUsers(rsp);
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ using ::android::sp;
|
|||
class ThermalHidlTest : public ::testing::Test {
|
||||
public:
|
||||
virtual void SetUp() override {
|
||||
thermal_ = IThermal::getService(THERMAL_SERVICE_NAME, false);
|
||||
thermal_ = IThermal::getService(THERMAL_SERVICE_NAME);
|
||||
ASSERT_NE(thermal_, nullptr);
|
||||
baseSize_ = 0;
|
||||
names_.clear();
|
||||
|
|
|
@ -32,7 +32,7 @@ using ::android::sp;
|
|||
class VibratorHidlTest : public ::testing::Test {
|
||||
public:
|
||||
virtual void SetUp() override {
|
||||
vibrator = IVibrator::getService(false);
|
||||
vibrator = IVibrator::getService();
|
||||
ASSERT_NE(vibrator, nullptr);
|
||||
}
|
||||
|
||||
|
|
|
@ -32,8 +32,7 @@ using ::android::sp;
|
|||
class VrHidlTest : public ::testing::Test {
|
||||
public:
|
||||
void SetUp() override {
|
||||
// currently test passthrough mode only
|
||||
vr = IVr::getService(VR_SERVICE_NAME, true);
|
||||
vr = IVr::getService(VR_SERVICE_NAME);
|
||||
ASSERT_NE(vr, nullptr);
|
||||
ASSERT_TRUE(!vr->isRemote());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue