diff options
author | android-build-prod (mdb) <android-build-team-robot@google.com> | 2019-12-23 21:09:17 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-12-23 21:09:17 +0000 |
commit | faca7376c72a030b08f063d95ceefac452ba4894 (patch) | |
tree | 2adc52a4a59db6e888700cdefbf3bda5c0e45e3e | |
parent | e377b272429fef443b0f498568cbccf111950ba0 (diff) | |
parent | 47733979fd8ba0eda091292b63e0fac3cdf6d1bd (diff) | |
download | native-faca7376c72a030b08f063d95ceefac452ba4894.tar.gz |
Merge "Snap for 6092303 from f9e600c112fed39d09d62ec558a474621219efd5 to android10-tests-release" into android10-tests-releaseandroid-vts-10.0_r3android-cts-10.0_r3
-rw-r--r-- | cmds/installd/InstalldNativeService.cpp | 3 | ||||
-rw-r--r-- | libs/gui/BufferQueueProducer.cpp | 22 |
2 files changed, 14 insertions, 11 deletions
diff --git a/cmds/installd/InstalldNativeService.cpp b/cmds/installd/InstalldNativeService.cpp index caac2e89a7..695426a0a5 100644 --- a/cmds/installd/InstalldNativeService.cpp +++ b/cmds/installd/InstalldNativeService.cpp @@ -1996,6 +1996,9 @@ binder::Status InstalldNativeService::getExternalSize(const std::unique_ptr<std: auto obbPath = StringPrintf("%s/Android/obb", create_data_media_path(uuid_, userId).c_str()); calculate_tree_size(obbPath, &obbSize); + if (!(flags & FLAG_USE_QUOTA)) { + totalSize -= obbSize; + } ATRACE_END(); } diff --git a/libs/gui/BufferQueueProducer.cpp b/libs/gui/BufferQueueProducer.cpp index 9c311a314f..0354965a9b 100644 --- a/libs/gui/BufferQueueProducer.cpp +++ b/libs/gui/BufferQueueProducer.cpp @@ -972,6 +972,17 @@ status_t BufferQueueProducer::queueBuffer(int slot, item.mGraphicBuffer.clear(); } + // Update and get FrameEventHistory. + nsecs_t postedTime = systemTime(SYSTEM_TIME_MONOTONIC); + NewFrameEventsEntry newFrameEventsEntry = { + currentFrameNumber, + postedTime, + requestedPresentTimestamp, + std::move(acquireFenceTime) + }; + addAndGetFrameTimestamps(&newFrameEventsEntry, + getFrameTimestamps ? &output->frameTimestamps : nullptr); + // Call back without the main BufferQueue lock held, but with the callback // lock held so we can ensure that callbacks occur in order @@ -1001,17 +1012,6 @@ status_t BufferQueueProducer::queueBuffer(int slot, mCallbackCondition.notify_all(); } - // Update and get FrameEventHistory. - nsecs_t postedTime = systemTime(SYSTEM_TIME_MONOTONIC); - NewFrameEventsEntry newFrameEventsEntry = { - currentFrameNumber, - postedTime, - requestedPresentTimestamp, - std::move(acquireFenceTime) - }; - addAndGetFrameTimestamps(&newFrameEventsEntry, - getFrameTimestamps ? &output->frameTimestamps : nullptr); - // Wait without lock held if (connectedApi == NATIVE_WINDOW_API_EGL) { // Waiting here allows for two full buffers to be queued but not a |