use of com.android.ide.common.rendering.api.LayoutLog in project android_frameworks_base by AOSPA.
the class RenderAction method setUp.
/**
* Sets up the session for rendering.
* <p/>
* The counterpart is {@link #tearDown()}.
*/
private void setUp() {
// setup the ParserFactory
ParserFactory.setParserFactory(mParams.getLayoutlibCallback().getParserFactory());
// make sure the Resources object references the context (and other objects) for this
// scene
mContext.initResources();
sCurrentContext = mContext;
// create an InputMethodManager
InputMethodManager.getInstance();
LayoutLog currentLog = mParams.getLog();
Bridge.setLog(currentLog);
mContext.getRenderResources().setFrameworkResourceIdProvider(this);
mContext.getRenderResources().setLogger(currentLog);
}
use of com.android.ide.common.rendering.api.LayoutLog in project android_frameworks_base by crdroidandroid.
the class RenderAction method setUp.
/**
* Sets up the session for rendering.
* <p/>
* The counterpart is {@link #tearDown()}.
*/
private void setUp() {
// setup the ParserFactory
ParserFactory.setParserFactory(mParams.getLayoutlibCallback().getParserFactory());
// make sure the Resources object references the context (and other objects) for this
// scene
mContext.initResources();
sCurrentContext = mContext;
// create an InputMethodManager
InputMethodManager.getInstance();
LayoutLog currentLog = mParams.getLog();
Bridge.setLog(currentLog);
mContext.getRenderResources().setFrameworkResourceIdProvider(this);
mContext.getRenderResources().setLogger(currentLog);
}
Aggregations