Skip to content

Commit

Permalink
Snap for 12378824 from 636cba8 to 24Q4-release
Browse files Browse the repository at this point in the history
Change-Id: I0f24d57ec7ff77211e4a628536aa27ee32bd539e
  • Loading branch information
Android Build Coastguard Worker committed Sep 17, 2024
2 parents 6f25be7 + 636cba8 commit b419327
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 37 deletions.
8 changes: 8 additions & 0 deletions automotive/vehicle/aidl/impl/default_config/TEST_MAPPING
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"ravenwood-presubmit": [
{
"name": "CarServiceHostUnitTest",
"host": true
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -3195,19 +3195,22 @@
}
},
{
"property": "VehicleProperty::DISPLAY_BRIGHTNESS",
"property": "VehicleProperty::PER_DISPLAY_BRIGHTNESS"
},
{
"property": "VehicleProperty::PER_DISPLAY_MAX_BRIGHTNESS",
"defaultValue": {
"int32Values": [
0,
100,
1,
100,
2,
100,
3,
100
]
},
"areas": [
{
"areaId": 0,
"minInt32Value": 0,
"maxInt32Value": 100
}
]
}
},
{
"property": "VehicleProperty::VALET_MODE_ENABLED",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,10 @@ VhalResult<void> FakeVehicleHardware::maybeSetSpecialValue(const VehiclePropValu
VhalResult<void> isAdasPropertyAvailableResult;
VhalResult<bool> isCruiseControlTypeStandardResult;
switch (propId) {
case toInt(VehicleProperty::DISPLAY_BRIGHTNESS):
case toInt(VehicleProperty::PER_DISPLAY_BRIGHTNESS):
ALOGD("DISPLAY_BRIGHTNESS: %s", value.toString().c_str());
return {};
case toInt(VehicleProperty::AP_POWER_STATE_REPORT):
*isSpecialValue = true;
return setApPowerStateReport(value);
Expand Down
35 changes: 15 additions & 20 deletions camera/provider/aidl/vts/VtsAidlHalCameraProvider_TargetTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,26 +165,21 @@ TEST_P(CameraAidlTest, getResourceCost) {

// Validate the integrity of manual flash strength control metadata
TEST_P(CameraAidlTest, validateManualFlashStrengthControlKeys) {
if (flags::camera_manual_flash_strength_control()) {
std::vector<std::string> cameraDeviceNames = getCameraDeviceNames(mProvider);
for (const auto& name : cameraDeviceNames) {
ALOGI("validateManualFlashStrengthControlKeys: Testing camera device %s", name.c_str());
CameraMetadata meta;
std::shared_ptr<ICameraDevice> cameraDevice;
openEmptyDeviceSession(name, mProvider, &mSession /*out*/, &meta /*out*/,
&cameraDevice /*out*/);
ndk::ScopedAStatus ret = cameraDevice->getCameraCharacteristics(&meta);
ASSERT_TRUE(ret.isOk());
const camera_metadata_t* staticMeta =
reinterpret_cast<const camera_metadata_t*>(meta.metadata.data());
verifyManualFlashStrengthControlCharacteristics(staticMeta);
ret = mSession->close();
mSession = nullptr;
ASSERT_TRUE(ret.isOk());
}
} else {
ALOGI("validateManualFlashStrengthControlKeys: Test skipped.\n");
GTEST_SKIP();
std::vector<std::string> cameraDeviceNames = getCameraDeviceNames(mProvider);
for (const auto& name : cameraDeviceNames) {
ALOGI("validateManualFlashStrengthControlKeys: Testing camera device %s", name.c_str());
CameraMetadata meta;
std::shared_ptr<ICameraDevice> cameraDevice;
openEmptyDeviceSession(name, mProvider, &mSession /*out*/, &meta /*out*/,
&cameraDevice /*out*/);
ndk::ScopedAStatus ret = cameraDevice->getCameraCharacteristics(&meta);
ASSERT_TRUE(ret.isOk());
const camera_metadata_t* staticMeta =
reinterpret_cast<const camera_metadata_t*>(meta.metadata.data());
verifyManualFlashStrengthControlCharacteristics(staticMeta);
ret = mSession->close();
mSession = nullptr;
ASSERT_TRUE(ret.isOk());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
#warn "ComposerCommandBuffer.h included without LOG_TAG"
#endif

#undef LOG_NDEBUG
#define LOG_NDEBUG 0
//#define LOG_NDEBUG 0

#include <algorithm>
#include <limits>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
#warn "ComposerCommandBuffer.h included without LOG_TAG"
#endif

#undef LOG_NDEBUG
#define LOG_NDEBUG 0
//#define LOG_NDEBUG 0

#include <algorithm>
#include <limits>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
#warn "ComposerCommandBuffer.h included without LOG_TAG"
#endif

#undef LOG_NDEBUG
#define LOG_NDEBUG 0
//#define LOG_NDEBUG 0

#include <android/hardware/graphics/composer/2.3/IComposer.h>
#include <android/hardware/graphics/composer/2.3/IComposerClient.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
#warn "ComposerCommandBuffer.h included without LOG_TAG"
#endif

#undef LOG_NDEBUG
#define LOG_NDEBUG 0
//#define LOG_NDEBUG 0

#include <android/hardware/graphics/composer/2.4/IComposer.h>
#include <android/hardware/graphics/composer/2.4/IComposerClient.h>
Expand Down

0 comments on commit b419327

Please sign in to comment.