From 9d744e58c8dc22e05f3fa82673310f3364431d2d Mon Sep 17 00:00:00 2001 From: Shu Chen Date: Wed, 22 Jan 2020 14:28:08 +0800 Subject: Adds more flags for cursor control features. - The delta height & opacity for the insertion handle. - The zoom factor & aspect ratio for the new magnifier. Test: m -j & manual tested. Bug: 145558249, 145550493, 145545591, 145555868 Change-Id: Ie69bd606ff738b19f3af166e7beeac2c32c705ba --- core/java/android/app/ActivityThread.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/java/android/app/ActivityThread.java') diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java index b82a67556fc0..2ca5b1d5c76f 100644 --- a/core/java/android/app/ActivityThread.java +++ b/core/java/android/app/ActivityThread.java @@ -7326,6 +7326,15 @@ public final class ActivityThread extends ClientTransactionHandler { } } + float getFloatCoreSetting(String key, float defaultValue) { + synchronized (mResourcesManager) { + if (mCoreSettings != null) { + return mCoreSettings.getFloat(key, defaultValue); + } + return defaultValue; + } + } + private static class AndroidOs extends ForwardingOs { /** * Install selective syscall interception. For example, this is used to -- cgit v1.2.3