mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 20:24:19 +00:00
Merge "bug fix: restore support for broken flag" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
40aad4e988
@@ -761,7 +761,7 @@ TEST_F(AudioDecHidlTest, DecodeTest) {
|
||||
eleInfo >> flags;
|
||||
eleInfo >> timestamp;
|
||||
Info.push_back({bytesCount, flags, timestamp});
|
||||
if (flags != OMX_BUFFERFLAG_CODECCONFIG)
|
||||
if (timestampDevTest && (flags != OMX_BUFFERFLAG_CODECCONFIG))
|
||||
timestampUslist.push_back(timestamp);
|
||||
}
|
||||
eleInfo.close();
|
||||
@@ -803,7 +803,7 @@ TEST_F(AudioDecHidlTest, DecodeTest) {
|
||||
packedArgs audioArgs = {eEncoding, compName};
|
||||
testEOS(omxNode, observer, &iBuffer, &oBuffer, false, eosFlag, nullptr,
|
||||
portReconfiguration, kPortIndexInput, kPortIndexOutput, &audioArgs);
|
||||
EXPECT_EQ(timestampUslist.empty(), true);
|
||||
if (timestampDevTest) EXPECT_EQ(timestampUslist.empty(), true);
|
||||
// set state to idle
|
||||
changeStateExecutetoIdle(omxNode, observer, &iBuffer, &oBuffer);
|
||||
// set state to executing
|
||||
|
||||
@@ -896,7 +896,7 @@ TEST_F(VideoDecHidlTest, DecodeTest) {
|
||||
eleInfo >> flags;
|
||||
eleInfo >> timestamp;
|
||||
Info.push_back({bytesCount, flags, timestamp});
|
||||
if (flags != OMX_BUFFERFLAG_CODECCONFIG)
|
||||
if (timestampDevTest && (flags != OMX_BUFFERFLAG_CODECCONFIG))
|
||||
timestampUslist.push_back(timestamp);
|
||||
if (maxBytesCount < bytesCount) maxBytesCount = bytesCount;
|
||||
}
|
||||
@@ -970,7 +970,7 @@ TEST_F(VideoDecHidlTest, DecodeTest) {
|
||||
kPortIndexInput, kPortIndexOutput, portMode[1]);
|
||||
testEOS(omxNode, observer, &iBuffer, &oBuffer, false, eosFlag, portMode,
|
||||
portReconfiguration, kPortIndexInput, kPortIndexOutput, nullptr);
|
||||
EXPECT_EQ(timestampUslist.empty(), true);
|
||||
if (timestampDevTest) EXPECT_EQ(timestampUslist.empty(), true);
|
||||
// set state to idle
|
||||
changeStateExecutetoIdle(omxNode, observer, &iBuffer, &oBuffer);
|
||||
// set state to executing
|
||||
|
||||
@@ -1286,7 +1286,7 @@ TEST_F(VideoEncHidlTest, EncodeTest) {
|
||||
eleStream.close();
|
||||
waitOnInputConsumption(omxNode, observer, &iBuffer, &oBuffer);
|
||||
testEOS(omxNode, observer, &iBuffer, &oBuffer, false, eosFlag);
|
||||
EXPECT_EQ(timestampUslist.empty(), true);
|
||||
if (timestampDevTest) EXPECT_EQ(timestampUslist.empty(), true);
|
||||
|
||||
// set state to idle
|
||||
changeStateExecutetoIdle(omxNode, observer, &iBuffer, &oBuffer);
|
||||
|
||||
Reference in New Issue
Block a user