Loading core/java/android/app/IUiModeManager.aidl +0 −15 Original line number Diff line number Diff line Loading @@ -52,21 +52,6 @@ interface IUiModeManager { */ int getNightMode(); /** * Sets whith theme overlays to use within /vendor/overlay. */ void setTheme(String theme); /** * Gets which theme overlays to use within /vendor/overlay. */ String getTheme(); /** * Gets the themes available in /vendor/overlay. */ String[] getAvailableThemes(); /** * Tells if UI mode is locked or not. */ Loading core/java/android/app/UiModeManager.java +0 −44 Original line number Diff line number Diff line Loading @@ -241,50 +241,6 @@ public class UiModeManager { } } /** * Sets the vendor theme overlay property, then triggers a reboot. * @hide */ public void setTheme(String theme) { if (mService != null) { try { mService.setTheme(theme); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } } /** * Gets the vendor theme overlay property. * @hide */ public String getTheme() { if (mService != null) { try { return mService.getTheme(); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } return null; } /** * Gets the valid inputs to {@link #setTheme(String)}. * @hide */ public String[] getAvailableThemes() { if (mService != null) { try { return mService.getAvailableThemes(); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } return null; } /** * Returns the currently configured night mode. * <p> Loading core/jni/android_util_AssetManager.cpp +1 −5 Original line number Diff line number Diff line Loading @@ -178,11 +178,7 @@ static void verifySystemIdmaps() // Directories to scan for overlays: if OVERLAY_THEME_DIR_PROPERTY is defined, // use OVERLAY_DIR/<value of OVERLAY_THEME_DIR_PROPERTY> in addition to OVERLAY_DIR. char subdir[PROP_VALUE_MAX]; int len = __system_property_get(AssetManager::OVERLAY_THEME_DIR_PERSIST_PROPERTY, subdir); if (len == 0) { len = __system_property_get(AssetManager::OVERLAY_THEME_DIR_PROPERTY, subdir); } int len = __system_property_get(AssetManager::OVERLAY_THEME_DIR_PROPERTY, subdir); if (len > 0) { String8 overlayPath = String8(AssetManager::OVERLAY_DIR) + "/" + subdir; if (stat(overlayPath.string(), &st) == 0) { Loading libs/androidfw/AssetManager.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,6 @@ const char* AssetManager::RESOURCES_FILENAME = "resources.arsc"; const char* AssetManager::IDMAP_BIN = "/system/bin/idmap"; const char* AssetManager::OVERLAY_DIR = "/vendor/overlay"; const char* AssetManager::OVERLAY_THEME_DIR_PROPERTY = "ro.boot.vendor.overlay.theme"; const char* AssetManager::OVERLAY_THEME_DIR_PERSIST_PROPERTY = "persist.vendor.overlay.theme"; const char* AssetManager::TARGET_PACKAGE_NAME = "android"; const char* AssetManager::TARGET_APK_PATH = "/system/framework/framework-res.apk"; const char* AssetManager::IDMAP_DIR = "/data/resource-cache"; Loading libs/androidfw/include/androidfw/AssetManager.h +0 −5 Original line number Diff line number Diff line Loading @@ -66,11 +66,6 @@ public: * OVERLAY_DIR. */ static const char* OVERLAY_THEME_DIR_PROPERTY; /** * If OVERLAY_THEME_DIR_PERSIST_PROPERTY, use it to override * OVERLAY_THEME_DIR_PROPERTY. */ static const char* OVERLAY_THEME_DIR_PERSIST_PROPERTY; static const char* TARGET_PACKAGE_NAME; static const char* TARGET_APK_PATH; static const char* IDMAP_DIR; Loading Loading
core/java/android/app/IUiModeManager.aidl +0 −15 Original line number Diff line number Diff line Loading @@ -52,21 +52,6 @@ interface IUiModeManager { */ int getNightMode(); /** * Sets whith theme overlays to use within /vendor/overlay. */ void setTheme(String theme); /** * Gets which theme overlays to use within /vendor/overlay. */ String getTheme(); /** * Gets the themes available in /vendor/overlay. */ String[] getAvailableThemes(); /** * Tells if UI mode is locked or not. */ Loading
core/java/android/app/UiModeManager.java +0 −44 Original line number Diff line number Diff line Loading @@ -241,50 +241,6 @@ public class UiModeManager { } } /** * Sets the vendor theme overlay property, then triggers a reboot. * @hide */ public void setTheme(String theme) { if (mService != null) { try { mService.setTheme(theme); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } } /** * Gets the vendor theme overlay property. * @hide */ public String getTheme() { if (mService != null) { try { return mService.getTheme(); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } return null; } /** * Gets the valid inputs to {@link #setTheme(String)}. * @hide */ public String[] getAvailableThemes() { if (mService != null) { try { return mService.getAvailableThemes(); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } return null; } /** * Returns the currently configured night mode. * <p> Loading
core/jni/android_util_AssetManager.cpp +1 −5 Original line number Diff line number Diff line Loading @@ -178,11 +178,7 @@ static void verifySystemIdmaps() // Directories to scan for overlays: if OVERLAY_THEME_DIR_PROPERTY is defined, // use OVERLAY_DIR/<value of OVERLAY_THEME_DIR_PROPERTY> in addition to OVERLAY_DIR. char subdir[PROP_VALUE_MAX]; int len = __system_property_get(AssetManager::OVERLAY_THEME_DIR_PERSIST_PROPERTY, subdir); if (len == 0) { len = __system_property_get(AssetManager::OVERLAY_THEME_DIR_PROPERTY, subdir); } int len = __system_property_get(AssetManager::OVERLAY_THEME_DIR_PROPERTY, subdir); if (len > 0) { String8 overlayPath = String8(AssetManager::OVERLAY_DIR) + "/" + subdir; if (stat(overlayPath.string(), &st) == 0) { Loading
libs/androidfw/AssetManager.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,6 @@ const char* AssetManager::RESOURCES_FILENAME = "resources.arsc"; const char* AssetManager::IDMAP_BIN = "/system/bin/idmap"; const char* AssetManager::OVERLAY_DIR = "/vendor/overlay"; const char* AssetManager::OVERLAY_THEME_DIR_PROPERTY = "ro.boot.vendor.overlay.theme"; const char* AssetManager::OVERLAY_THEME_DIR_PERSIST_PROPERTY = "persist.vendor.overlay.theme"; const char* AssetManager::TARGET_PACKAGE_NAME = "android"; const char* AssetManager::TARGET_APK_PATH = "/system/framework/framework-res.apk"; const char* AssetManager::IDMAP_DIR = "/data/resource-cache"; Loading
libs/androidfw/include/androidfw/AssetManager.h +0 −5 Original line number Diff line number Diff line Loading @@ -66,11 +66,6 @@ public: * OVERLAY_DIR. */ static const char* OVERLAY_THEME_DIR_PROPERTY; /** * If OVERLAY_THEME_DIR_PERSIST_PROPERTY, use it to override * OVERLAY_THEME_DIR_PROPERTY. */ static const char* OVERLAY_THEME_DIR_PERSIST_PROPERTY; static const char* TARGET_PACKAGE_NAME; static const char* TARGET_APK_PATH; static const char* IDMAP_DIR; Loading