[Composer AIDL] Rename notifyExpectedPresentTimeoutNs and

notifyExpectedPresentHeadsUpNs
Renamed to timeoutNs and headsUpNs respectively

BUG: 294102485
Test: atest VtsHalGraphicsComposer3_TargetTest
Change-Id: Id890d9634d80700ad2515c9b4fe2a423b6b75d96
This commit is contained in:
ramindani
2023-08-30 18:51:19 -07:00
parent 2b2ec50b56
commit f850701be0
4 changed files with 8 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ parcelable VrrConfig {
int averageRefreshPeriodNs;
}
parcelable NotifyExpectedPresentConfig {
int notifyExpectedPresentHeadsUpNs;
int notifyExpectedPresentTimeoutNs;
int headsUpNs;
int timeoutNs;
}
}

View File

@@ -895,9 +895,9 @@ interface IComposerClient {
*
* The framework will call this function based on the parameters specified in
* DisplayConfiguration.VrrConfig:
* - notifyExpectedPresentTimeoutNs specifies the idle time from the previous present command
* - timeoutNs specifies the idle time from the previous present command
* where the framework must send the early hint for the next frame.
* - notifyExpectedPresentHeadsUpNs specifies minimal time that framework must send
* - headsUpNs specifies minimal time that framework must send
* the early hint before the next frame.
*
* The framework can omit calling this API when the next present command matches

View File

@@ -45,7 +45,7 @@ parcelable VrrConfig {
* The minimal time in nanoseconds that IComposerClient.notifyExpectedPresent needs to be
* called ahead of an expectedPresentTime provided on a presentDisplay command.
*/
int notifyExpectedPresentHeadsUpNs;
int headsUpNs;
/**
* The time in nanoseconds that represents a timeout from the previous presentDisplay, which
@@ -53,7 +53,7 @@ parcelable VrrConfig {
* sending the next frame. If set to 0, there is no need to call
* IComposerClient.notifyExpectedPresent for timeout.
*/
int notifyExpectedPresentTimeoutNs;
int timeoutNs;
}
/**

View File

@@ -1274,8 +1274,8 @@ TEST_P(GraphicsComposerAidlV3Test, GetDisplayConfigurations) {
if (vrrConfig.notifyExpectedPresentConfig) {
const auto& notifyExpectedPresentConfig =
*vrrConfig.notifyExpectedPresentConfig;
EXPECT_GT(0, notifyExpectedPresentConfig.notifyExpectedPresentHeadsUpNs);
EXPECT_GE(0, notifyExpectedPresentConfig.notifyExpectedPresentTimeoutNs);
EXPECT_GT(0, notifyExpectedPresentConfig.headsUpNs);
EXPECT_GE(0, notifyExpectedPresentConfig.timeoutNs);
}
}
}