Loading tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeAssetManager.java +3 −28 Original line number Diff line number Diff line Loading @@ -17,9 +17,6 @@ package com.android.layoutlib.bridge; import android.content.res.AssetManager; import android.content.res.Configuration; import java.util.Locale; public class BridgeAssetManager extends AssetManager { Loading Loading @@ -51,26 +48,4 @@ public class BridgeAssetManager extends AssetManager { private BridgeAssetManager() { } /** * Change the configuration used when retrieving resources. Not for use by applications. */ @Override public void setConfiguration(int mcc, int mnc, String locale, int orientation, int touchscreen, int density, int keyboard, int keyboardHidden, int navigation, int screenWidth, int screenHeight, int screenLayout, int uiMode, int version) { Configuration c = new Configuration(); c.mcc = mcc; c.mnc = mnc; c.locale = new Locale(locale); c.touchscreen = touchscreen; c.keyboard = keyboard; c.keyboardHidden = keyboardHidden; c.navigation = navigation; c.orientation = orientation; c.screenLayout = screenLayout; c.uiMode = uiMode; } } tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeContext.java +7 −9 Original line number Diff line number Diff line Loading @@ -66,14 +66,14 @@ import java.util.Map.Entry; */ public final class BridgeContext extends Context { private Resources mResources; private Theme mTheme; private HashMap<View, Object> mViewKeyMap = new HashMap<View, Object>(); private IStyleResourceValue mThemeValues; private final Resources mResources; private final Theme mTheme; private final HashMap<View, Object> mViewKeyMap = new HashMap<View, Object>(); private final IStyleResourceValue mThemeValues; private final Object mProjectKey; private Map<String, Map<String, IResourceValue>> mProjectResources; private Map<String, Map<String, IResourceValue>> mFrameworkResources; private Map<IStyleResourceValue, IStyleResourceValue> mStyleInheritanceMap; private final Map<String, Map<String, IResourceValue>> mProjectResources; private final Map<String, Map<String, IResourceValue>> mFrameworkResources; private final Map<IStyleResourceValue, IStyleResourceValue> mStyleInheritanceMap; // maps for dynamically generated id representing style objects (IStyleResourceValue) private Map<Integer, IStyleResourceValue> mDynamicIdToStyleMap; Loading Loading @@ -927,7 +927,6 @@ public final class BridgeContext extends Context { return null; } @Override public File getExternalCacheDir() { // TODO Auto-generated method stub return null; Loading Loading @@ -965,7 +964,6 @@ public final class BridgeContext extends Context { return null; } @Override public File getExternalFilesDir(String type) { // TODO Auto-generated method stub return null; Loading Loading
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeAssetManager.java +3 −28 Original line number Diff line number Diff line Loading @@ -17,9 +17,6 @@ package com.android.layoutlib.bridge; import android.content.res.AssetManager; import android.content.res.Configuration; import java.util.Locale; public class BridgeAssetManager extends AssetManager { Loading Loading @@ -51,26 +48,4 @@ public class BridgeAssetManager extends AssetManager { private BridgeAssetManager() { } /** * Change the configuration used when retrieving resources. Not for use by applications. */ @Override public void setConfiguration(int mcc, int mnc, String locale, int orientation, int touchscreen, int density, int keyboard, int keyboardHidden, int navigation, int screenWidth, int screenHeight, int screenLayout, int uiMode, int version) { Configuration c = new Configuration(); c.mcc = mcc; c.mnc = mnc; c.locale = new Locale(locale); c.touchscreen = touchscreen; c.keyboard = keyboard; c.keyboardHidden = keyboardHidden; c.navigation = navigation; c.orientation = orientation; c.screenLayout = screenLayout; c.uiMode = uiMode; } }
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeContext.java +7 −9 Original line number Diff line number Diff line Loading @@ -66,14 +66,14 @@ import java.util.Map.Entry; */ public final class BridgeContext extends Context { private Resources mResources; private Theme mTheme; private HashMap<View, Object> mViewKeyMap = new HashMap<View, Object>(); private IStyleResourceValue mThemeValues; private final Resources mResources; private final Theme mTheme; private final HashMap<View, Object> mViewKeyMap = new HashMap<View, Object>(); private final IStyleResourceValue mThemeValues; private final Object mProjectKey; private Map<String, Map<String, IResourceValue>> mProjectResources; private Map<String, Map<String, IResourceValue>> mFrameworkResources; private Map<IStyleResourceValue, IStyleResourceValue> mStyleInheritanceMap; private final Map<String, Map<String, IResourceValue>> mProjectResources; private final Map<String, Map<String, IResourceValue>> mFrameworkResources; private final Map<IStyleResourceValue, IStyleResourceValue> mStyleInheritanceMap; // maps for dynamically generated id representing style objects (IStyleResourceValue) private Map<Integer, IStyleResourceValue> mDynamicIdToStyleMap; Loading Loading @@ -927,7 +927,6 @@ public final class BridgeContext extends Context { return null; } @Override public File getExternalCacheDir() { // TODO Auto-generated method stub return null; Loading Loading @@ -965,7 +964,6 @@ public final class BridgeContext extends Context { return null; } @Override public File getExternalFilesDir(String type) { // TODO Auto-generated method stub return null; Loading