mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Support product specific VTS test configuration am: 7d03f49853
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3018625 Change-Id: Ib582c854a51f2f0f0016a473e1aa4caaf1870e67 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <android/binder_manager.h>
|
||||
#include <cutils/properties.h>
|
||||
|
||||
#include "DemuxTests.h"
|
||||
#include "DescramblerTests.h"
|
||||
@@ -29,6 +30,17 @@ using android::sp;
|
||||
namespace {
|
||||
|
||||
bool initConfiguration() {
|
||||
std::array<char, PROPERTY_VALUE_MAX> variant;
|
||||
auto res = property_get("ro.vendor.vts_tuner_configuration_variant", variant.data(), "");
|
||||
if (res <= 0) {
|
||||
ALOGE("[vts] failed to read system property ro.vendor.vts_tuner_configuration_variant");
|
||||
return false;
|
||||
}
|
||||
string configFilePath = "/vendor/etc/tuner_vts_config_aidl_V1";
|
||||
if (variant.size() != 0) {
|
||||
configFilePath = configFilePath + "." + variant.data();
|
||||
}
|
||||
configFilePath = configFilePath + ".xml";
|
||||
TunerTestingConfigAidlReader1_0::setConfigFilePath(configFilePath);
|
||||
if (!TunerTestingConfigAidlReader1_0::checkConfigFileExists()) {
|
||||
return false;
|
||||
|
||||
@@ -52,8 +52,6 @@ using namespace android::media::tuner::testing::configuration::V1_0;
|
||||
const int32_t FMQ_SIZE_4M = 0x400000;
|
||||
const int32_t FMQ_SIZE_16M = 0x1000000;
|
||||
|
||||
const string configFilePath = "/vendor/etc/tuner_vts_config_aidl_V1.xml";
|
||||
|
||||
#define FILTER_MAIN_TYPE_BIT_COUNT 5
|
||||
#define STATUS_CHECK_INTERVAL_MS 100L
|
||||
|
||||
|
||||
Reference in New Issue
Block a user