From 99879b8ce8368264640702ddf85a24da1858fc07 Mon Sep 17 00:00:00 2001 From: "Liu, Kai1" Date: Tue, 6 Aug 2024 10:10:47 +0800 Subject: [PATCH] Add patch reducing POLL_INTERVAL_MS to 50ms to optimize cold boot Reduce POLL_INTERVAL_MS to 50ms and increase POLL_COUNT to 100 to optimize cold boot. Signed-off-by: Liu, Kai1 --- ...RVAL_MS-to-50ms-to-optimize-cold-boo.patch | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 aosp_diff/aaos_iasw/packages/providers/MediaProvider/0001-Reduce-POLL_INTERVAL_MS-to-50ms-to-optimize-cold-boo.patch diff --git a/aosp_diff/aaos_iasw/packages/providers/MediaProvider/0001-Reduce-POLL_INTERVAL_MS-to-50ms-to-optimize-cold-boo.patch b/aosp_diff/aaos_iasw/packages/providers/MediaProvider/0001-Reduce-POLL_INTERVAL_MS-to-50ms-to-optimize-cold-boo.patch new file mode 100644 index 0000000000..c64f4961e6 --- /dev/null +++ b/aosp_diff/aaos_iasw/packages/providers/MediaProvider/0001-Reduce-POLL_INTERVAL_MS-to-50ms-to-optimize-cold-boo.patch @@ -0,0 +1,32 @@ +From 46d11f0f9af9134c7f87b8b9c7f106d6869565ba Mon Sep 17 00:00:00 2001 +From: "Liu, Kai1" +Date: Tue, 6 Aug 2024 09:45:23 +0800 +Subject: [PATCH] Reduce POLL_INTERVAL_MS to 50ms to optimize cold boot + +Reduce POLL_INTERVAL_MS to 50ms and increase POLL_COUNT to 100 to +optimize cold boot. + +Tracked-On: OAM-123070 +Signed-off-by: Liu, Kai1 +--- + src/com/android/providers/media/fuse/FuseDaemon.java | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/com/android/providers/media/fuse/FuseDaemon.java b/src/com/android/providers/media/fuse/FuseDaemon.java +index 34836af41..ee996e13f 100644 +--- a/src/com/android/providers/media/fuse/FuseDaemon.java ++++ b/src/com/android/providers/media/fuse/FuseDaemon.java +@@ -36,8 +36,8 @@ import java.util.Objects; + */ + public final class FuseDaemon extends Thread { + public static final String TAG = "FuseDaemonThread"; +- private static final int POLL_INTERVAL_MS = 1000; +- private static final int POLL_COUNT = 5; ++ private static final int POLL_INTERVAL_MS = 50; ++ private static final int POLL_COUNT = 100; + + private final Object mLock = new Object(); + private final MediaProvider mMediaProvider; +-- +2.34.1 +