Skip to content

Commit 97ec8a8

Browse files
author
Android Build Coastguard Worker
committed
Snap for 12765415 from 5058af6 to 25Q1-release
Change-Id: I2016a6602cb064a7bac19e04d07a2d62ba81e373
2 parents ad6246b + 5058af6 commit 97ec8a8

5 files changed

Lines changed: 16 additions & 22 deletions

File tree

libs/binder/include/binder/IInterface.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ constexpr const char* const kManualInterfaces[] = {
220220
"android.app.IActivityManager",
221221
"android.app.IUidObserver",
222222
"android.drm.IDrm",
223-
"android.dvr.IVsyncCallback",
224-
"android.dvr.IVsyncService",
225223
"android.gfx.tests.ICallback",
226224
"android.gfx.tests.IIPCTest",
227225
"android.gfx.tests.ISafeInterfaceTest",
@@ -264,17 +262,12 @@ constexpr const char* const kManualInterfaces[] = {
264262
"android.media.IResourceManagerService",
265263
"android.os.IComplexTypeInterface",
266264
"android.os.IPermissionController",
267-
"android.os.IPingResponder",
268265
"android.os.IProcessInfoService",
269266
"android.os.ISchedulingPolicyService",
270-
"android.os.IStringConstants",
271267
"android.os.storage.IObbActionListener",
272268
"android.os.storage.IStorageEventListener",
273269
"android.os.storage.IStorageManager",
274270
"android.os.storage.IStorageShutdownObserver",
275-
"android.service.vr.IPersistentVrStateCallbacks",
276-
"android.service.vr.IVrManager",
277-
"android.service.vr.IVrStateCallbacks",
278271
"android.ui.ISurfaceComposer",
279272
"android.utils.IMemory",
280273
"android.utils.IMemoryHeap",
@@ -286,9 +279,6 @@ constexpr const char* const kManualInterfaces[] = {
286279
"com.android.internal.os.IShellCallback",
287280
"drm.IDrmManagerService",
288281
"drm.IDrmServiceListener",
289-
"IAAudioClient",
290-
"IAAudioService",
291-
"VtsFuzzer",
292282
nullptr,
293283
};
294284

libs/binder/tests/binderLibTest.cpp

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#include <input/BlockingQueue.h>
4444
#include <processgroup/processgroup.h>
4545
#include <utils/Flattenable.h>
46+
#include <utils/SystemClock.h>
4647

4748
#include <linux/sched.h>
4849
#include <sys/epoll.h>
@@ -1837,14 +1838,6 @@ TEST_F(BinderLibTest, ThreadPoolStarted) {
18371838
EXPECT_TRUE(reply.readBool());
18381839
}
18391840

1840-
size_t epochMillis() {
1841-
using std::chrono::duration_cast;
1842-
using std::chrono::milliseconds;
1843-
using std::chrono::seconds;
1844-
using std::chrono::system_clock;
1845-
return duration_cast<milliseconds>(system_clock::now().time_since_epoch()).count();
1846-
}
1847-
18481841
TEST_F(BinderLibTest, HangingServices) {
18491842
Parcel data, reply;
18501843
sp<IBinder> server = addServer();
@@ -1853,7 +1846,7 @@ TEST_F(BinderLibTest, HangingServices) {
18531846
data.writeInt32(delay);
18541847
// b/266537959 - must take before taking lock, since countdown is started in the remote
18551848
// process there.
1856-
size_t epochMsBefore = epochMillis();
1849+
int64_t timeBefore = uptimeMillis();
18571850
EXPECT_THAT(server->transact(BINDER_LIB_TEST_PROCESS_TEMPORARY_LOCK, data, &reply), NO_ERROR);
18581851
std::vector<std::thread> ts;
18591852
for (size_t i = 0; i < kKernelThreads + 1; i++) {
@@ -1867,10 +1860,10 @@ TEST_F(BinderLibTest, HangingServices) {
18671860
for (auto &t : ts) {
18681861
t.join();
18691862
}
1870-
size_t epochMsAfter = epochMillis();
1863+
int64_t timeAfter = uptimeMillis();
18711864

18721865
// deadlock occurred and threads only finished after 1s passed.
1873-
EXPECT_GE(epochMsAfter, epochMsBefore + delay);
1866+
EXPECT_GE(timeAfter, timeBefore + delay);
18741867
}
18751868

18761869
TEST_F(BinderLibTest, BinderProxyCount) {

libs/nativewindow/AHardwareBuffer.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ static_assert(
112112
static_cast<int>(aidl::android::hardware::graphics::common::PixelFormat::RGBA_10101010) ==
113113
AHARDWAREBUFFER_FORMAT_R10G10B10A10_UNORM,
114114
"HAL and AHardwareBuffer pixel format don't match");
115+
static_assert(
116+
static_cast<int>(aidl::android::hardware::graphics::common::PixelFormat::YCBCR_P210) ==
117+
AHARDWAREBUFFER_FORMAT_YCbCr_P210,
118+
"HAL and AHardwareBuffer pixel format don't match");
115119

116120
static enum AHardwareBufferStatus filterStatus(status_t status) {
117121
switch (status) {
@@ -300,8 +304,10 @@ int AHardwareBuffer_lockPlanes(AHardwareBuffer* buffer, uint64_t usage,
300304
if (result == 0) {
301305
outPlanes->planeCount = 3;
302306
outPlanes->planes[0].data = yuvData.y;
303-
// P010 is word-aligned 10-bit semiplaner, and YCbCr_422_I is a single interleaved plane
307+
// P010 & P210 are word-aligned 10-bit semiplaner, and YCbCr_422_I is a single interleaved
308+
// plane
304309
if (format == AHARDWAREBUFFER_FORMAT_YCbCr_P010 ||
310+
format == AHARDWAREBUFFER_FORMAT_YCbCr_P210 ||
305311
format == AHARDWAREBUFFER_FORMAT_YCbCr_422_I) {
306312
outPlanes->planes[0].pixelStride = 2;
307313
} else {
@@ -724,6 +730,7 @@ bool AHardwareBuffer_formatIsYuv(uint32_t format) {
724730
case AHARDWAREBUFFER_FORMAT_YCrCb_420_SP:
725731
case AHARDWAREBUFFER_FORMAT_YCbCr_422_I:
726732
case AHARDWAREBUFFER_FORMAT_YCbCr_P010:
733+
case AHARDWAREBUFFER_FORMAT_YCbCr_P210:
727734
return true;
728735
default:
729736
return false;

libs/ui/include/ui/PublicFormat.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ enum class PublicFormat {
6060
JPEG_R = 0x1005,
6161
HEIC = 0x48454946,
6262
HEIC_ULTRAHDR = 0x1006,
63+
YCBCR_P210 = 0x3c,
6364
};
6465

6566
/* Convert from android.graphics.ImageFormat/PixelFormat enums to graphics.h HAL

services/surfaceflinger/SurfaceFlinger.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,9 @@ renderengine::RenderEngine::BlurAlgorithm chooseBlurAlgorithm(bool supportsBlur)
877877
} else if (algorithm == "kawase2") {
878878
return renderengine::RenderEngine::BlurAlgorithm::KAWASE_DUAL_FILTER;
879879
} else {
880+
if (FlagManager::getInstance().window_blur_kawase2()) {
881+
return renderengine::RenderEngine::BlurAlgorithm::KAWASE_DUAL_FILTER;
882+
}
880883
return renderengine::RenderEngine::BlurAlgorithm::KAWASE;
881884
}
882885
}

0 commit comments

Comments
 (0)