Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6350ff0b authored by Rachel Lee's avatar Rachel Lee
Browse files

Choreographer: new libandroid for CTS.

Bug: 198191651
Test: make, atest ChoreographerNativeTest
Change-Id: I5fd1bbefc77b45ec953e06b0ed5da8521dc08732
parent b4466eea
Loading
Loading
Loading
Loading
+29 −0
Original line number Diff line number Diff line
@@ -40,6 +40,11 @@ void AChoreographer_postFrameCallbackDelayed64(AChoreographer* choreographer,
    return AChoreographer_routePostFrameCallbackDelayed64(choreographer, callback, data,
                                                          delayMillis);
}
void AChoreographer_postExtendedFrameCallback(AChoreographer* choreographer,
                                              AChoreographer_extendedFrameCallback callback,
                                              void* data) {
    return AChoreographer_routePostExtendedFrameCallback(choreographer, callback, data);
}
void AChoreographer_registerRefreshRateCallback(AChoreographer* choreographer,
                                                AChoreographer_refreshRateCallback callback,
                                                void* data) {
@@ -50,3 +55,27 @@ void AChoreographer_unregisterRefreshRateCallback(AChoreographer* choreographer,
                                                  void* data) {
    return AChoreographer_routeUnregisterRefreshRateCallback(choreographer, callback, data);
}
int64_t AChoreographerFrameCallbackData_getFrameTimeNanos(
        const AChoreographerFrameCallbackData* data) {
    return AChoreographerFrameCallbackData_routeGetFrameTimeNanos(data);
}
size_t AChoreographerFrameCallbackData_getFrameTimelinesLength(
        const AChoreographerFrameCallbackData* data) {
    return AChoreographerFrameCallbackData_routeGetFrameTimelinesLength(data);
}
size_t AChoreographerFrameCallbackData_getPreferredFrameTimelineIndex(
        const AChoreographerFrameCallbackData* data) {
    return AChoreographerFrameCallbackData_routeGetPreferredFrameTimelineIndex(data);
}
int64_t AChoreographerFrameCallbackData_getFrameTimelineVsyncId(
        const AChoreographerFrameCallbackData* data, size_t index) {
    return AChoreographerFrameCallbackData_routeGetFrameTimelineVsyncId(data, index);
}
int64_t AChoreographerFrameCallbackData_getFrameTimelineExpectedPresentTime(
        const AChoreographerFrameCallbackData* data, size_t index) {
    return AChoreographerFrameCallbackData_routeGetFrameTimelineExpectedPresentTime(data, index);
}
int64_t AChoreographerFrameCallbackData_getFrameTimelineDeadline(
        const AChoreographerFrameCallbackData* data, size_t index) {
    return AChoreographerFrameCallbackData_routeGetFrameTimelineDeadline(data, index);
}
+7 −0
Original line number Diff line number Diff line
@@ -29,6 +29,13 @@ LIBANDROID {
    AChoreographer_postFrameCallbackDelayed64; # introduced=29
    AChoreographer_registerRefreshRateCallback; # introduced=30
    AChoreographer_unregisterRefreshRateCallback; # introduced=30
    AChoreographer_postExtendedFrameCallback;  # introduced=33
    AChoreographerFrameCallbackData_getFrameTimeNanos;  # introduced=33
    AChoreographerFrameCallbackData_getFrameTimelinesLength;  # introduced=33
    AChoreographerFrameCallbackData_getPreferredFrameTimelineIndex;  # introduced=33
    AChoreographerFrameCallbackData_getFrameTimelineVsyncId;  # introduced=33
    AChoreographerFrameCallbackData_getFrameTimelineExpectedPresentTime;  # introduced=33
    AChoreographerFrameCallbackData_getFrameTimelineDeadline;  # introduced=33
    AConfiguration_copy;
    AConfiguration_delete;
    AConfiguration_diff;