Home
last modified time | relevance | path

Searched refs:BridgeContext (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/layoutlib/bridge/src/android/view/
DView_Delegate.java21 import com.android.layoutlib.bridge.android.BridgeContext;
44 Context baseContext = BridgeContext.getBaseContext(thisView.getContext()); in getWindowToken()
45 if (baseContext instanceof BridgeContext) { in getWindowToken()
46 return ((BridgeContext) baseContext).getBinder(); in getWindowToken()
104 Context context = BridgeContext.getBaseContext(thisView.getContext()); in dispatchDetachedFromWindow()
105 if (context instanceof BridgeContext) { in dispatchDetachedFromWindow()
106 … ((BridgeContext) context).warn("Exception while detaching " + thisView.getClass(), t); in dispatchDetachedFromWindow()
DBridgeInflater.java29 import com.android.layoutlib.bridge.android.BridgeContext;
58 import static com.android.layoutlib.bridge.android.BridgeContext.getBaseContext;
103 mLayoutlibCallback = (newContext instanceof BridgeContext) ? in BridgeInflater()
104 ((BridgeContext) newContext).getLayoutlibCallback() : in BridgeInflater()
114 public BridgeInflater(BridgeContext context, LayoutlibCallback layoutlibCallback) { in BridgeInflater()
198 private static Class<?> findCustomInflater(@NotNull BridgeContext bc, in findCustomInflater()
247 if (context instanceof BridgeContext) { in createViewFromCustomInflater()
248 BridgeContext bc = (BridgeContext) context; in createViewFromCustomInflater()
358 if (context instanceof BridgeContext) { in inflate()
359 BridgeContext bridgeContext = (BridgeContext)context; in inflate()
[all …]
DMenuInflater_Delegate.java25 import com.android.layoutlib.bridge.android.BridgeContext;
50 context = BridgeContext.getBaseContext(context); in registerMenu()
51 if (context instanceof BridgeContext) { in registerMenu()
53 attrs, ((BridgeContext) context), null, false); in registerMenu()
DViewGroup_Delegate.java19 import com.android.layoutlib.bridge.android.BridgeContext;
74 if (bridgeContext instanceof BridgeContext) { in drawShadow()
75 highQualityShadow = ((BridgeContext) bridgeContext).isHighQualityShadows(); in drawShadow()
76 enableShadow = ((BridgeContext) bridgeContext).isShadowsEnabled(); in drawShadow()
/frameworks/layoutlib/bridge/src/com/android/internal/view/menu/
DBridgeMenuItemImpl.java19 import com.android.layoutlib.bridge.android.BridgeContext;
35 private BridgeContext mContext;
44 context = BridgeContext.getBaseContext(context); in BridgeMenuItemImpl()
45 if (context instanceof BridgeContext) { in BridgeMenuItemImpl()
46 mContext = ((BridgeContext) context); in BridgeMenuItemImpl()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/impl/
DRenderActionTestUtil.java19 import com.android.layoutlib.bridge.android.BridgeContext;
25 public static BridgeContext setBridgeContext(@Nullable BridgeContext context) { in setBridgeContext()
26 BridgeContext oldContext = RenderAction.sCurrentContext; in setBridgeContext()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DCustomBar.java24 import com.android.layoutlib.bridge.android.BridgeContext;
64 protected CustomBar(BridgeContext context, int orientation, String layoutName, in CustomBar()
87 return SysUiResources.loadXml((BridgeContext) mContext, mSimulatedPlatformVersion, in loadXml()
148 BridgeContext bridgeContext = getContext(); in setStyle()
152 res.findItemInTheme(BridgeContext.createFrameworkAttrReference(themeEntryName)); in setStyle()
163 BridgeContext.createFrameworkAttrReference("background")); in setStyle()
176 BridgeContext.createFrameworkAttrReference("titleTextStyle")); in setStyle()
182 BridgeContext.createFrameworkAttrReference("textSize")); in setStyle()
195 BridgeContext.createFrameworkAttrReference("textColor")); in setStyle()
209 public BridgeContext getContext() { in getContext()
[all …]
DThemePreviewNavigationBar.java19 import com.android.layoutlib.bridge.android.BridgeContext;
42 super((BridgeContext) context, in ThemePreviewNavigationBar()
43 Density.getEnum(((BridgeContext) context).getMetrics().densityDpi), in ThemePreviewNavigationBar()
45 ((BridgeContext) context).getConfiguration().getLayoutDirection() == in ThemePreviewNavigationBar()
DNavigationBar.java19 import com.android.layoutlib.bridge.android.BridgeContext;
44 public NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, in NavigationBar()
50 protected NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, in NavigationBar()
84 private void setupNavBar(BridgeContext context, int orientation) { in setupNavBar()
101 private static void setSize(BridgeContext context, View view, int orientation, int size) { in setSize()
132 private static float getShortestWidth(BridgeContext context) { in getShortestWidth()
DStatusBar.java22 import com.android.layoutlib.bridge.android.BridgeContext;
59 this((BridgeContext) context, in StatusBar()
60 Density.getEnum(((BridgeContext) context).getMetrics().densityDpi), in StatusBar()
61 ((BridgeContext) context).getConfiguration().getLayoutDirection() == in StatusBar()
68 public StatusBar(BridgeContext context, Density density, boolean isRtl, boolean rtlEnabled, in StatusBar()
124 (BridgeContext) mContext, in loadIcon()
DBridgeActionBar.java24 import com.android.layoutlib.bridge.android.BridgeContext;
40 @NonNull protected final BridgeContext mBridgeContext;
51 public BridgeActionBar(@NonNull BridgeContext context, @NonNull SessionParams params) { in BridgeActionBar()
91 protected abstract ResourceValue getLayoutResource(BridgeContext context); in getLayoutResource()
93 protected LayoutInflater getInflater(BridgeContext context) { in getInflater()
DTitleBar.java19 import com.android.layoutlib.bridge.android.BridgeContext;
30 public TitleBar(BridgeContext context, String label, int simulatedPlatformVersion) { in TitleBar()
DFrameworkActionBarWrapper.java30 import com.android.layoutlib.bridge.android.BridgeContext;
58 @NonNull protected BridgeContext mContext;
67 public static FrameworkActionBarWrapper getActionBarWrapper(@NonNull BridgeContext context, in getActionBarWrapper()
81 FrameworkActionBarWrapper(@NonNull BridgeContext context, @NonNull ActionBarCallback callback, in FrameworkActionBarWrapper()
181 ToolbarWrapper(@NonNull BridgeContext context, @NonNull ActionBarCallback callback, in ToolbarWrapper()
249 public WindowActionBarWrapper(@NonNull BridgeContext context, in WindowActionBarWrapper()
DFrameworkActionBar.java24 import com.android.layoutlib.bridge.android.BridgeContext;
61 public FrameworkActionBar(@NonNull BridgeContext context, @NonNull SessionParams params) { in FrameworkActionBar()
88 protected ResourceValue getLayoutResource(BridgeContext context) { in getLayoutResource()
91 BridgeContext.createFrameworkAttrReference(LAYOUT_ATTR_NAME)); in getLayoutResource()
240 BridgeContext.createFrameworkAttrReference("actionBarSize")); in getActionBarHeight()
/frameworks/layoutlib/bridge/src/android/os/
DHandlerThread_Delegate.java19 import com.android.layoutlib.bridge.android.BridgeContext;
38 private static Map<BridgeContext, List<HandlerThread>> sThreads =
39 new HashMap<BridgeContext, List<HandlerThread>>();
41 public static void cleanUp(BridgeContext context) { in cleanUp()
58 BridgeContext context = RenderAction.getCurrentContext(); in run()
/frameworks/layoutlib/bridge/src/android/app/
DFragment_Delegate.java19 import com.android.layoutlib.bridge.android.BridgeContext;
62 if (context instanceof BridgeContext) { in instantiate()
63 BridgeContext bc = (BridgeContext) context; in instantiate()
/frameworks/layoutlib/bridge/src/android/preference/
DBridgePreferenceInflater.java19 import com.android.layoutlib.bridge.android.BridgeContext;
36 BridgeContext bc = null; in createItem()
39 if (context instanceof BridgeContext) { in createItem()
40 bc = (BridgeContext) context; in createItem()
DPreference_Delegate.java20 import com.android.layoutlib.bridge.android.BridgeContext;
43 BridgeContext bc = context instanceof BridgeContext ? ((BridgeContext) context) : null; in getView()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/
DBridgeContextTest.java57BridgeContext context = new BridgeContext(params.getProjectKey(), metrics, params.getResources(), in basic()
62 BridgeContext oldContext = RenderActionTestUtil.setBridgeContext(context); in basic()
104BridgeContext context = new BridgeContext(params.getProjectKey(), metrics, params.getResources(), in checkNoErrorWhenUsingDefaults()
109 BridgeContext oldContext = RenderActionTestUtil.setBridgeContext(context); in checkNoErrorWhenUsingDefaults()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DLayout.java26 import com.android.layoutlib.bridge.android.BridgeContext;
201 private static View createSysUiOverlay(@NonNull BridgeContext context) { in createSysUiOverlay()
256 public BridgeContext getContext() { in getContext()
257 return (BridgeContext) super.getContext(); in getContext()
266 private StatusBar createStatusBar(BridgeContext context, Density density, boolean isRtl, in createStatusBar()
280 private BridgeActionBar createActionBar(@NonNull BridgeContext context, in createActionBar()
324 private TitleBar createTitleBar(BridgeContext context, String title, in createTitleBar()
345 private NavigationBar createNavBar(BridgeContext context, Density density, boolean isRtl, in createNavBar()
396 private final BridgeContext mContext;
410 public Builder(@NonNull SessionParams params, @NonNull BridgeContext context) { in Builder()
[all …]
DResourceHelper.java30 import com.android.layoutlib.bridge.android.BridgeContext;
31 import com.android.layoutlib.bridge.android.BridgeContext.Key;
157 @NonNull BridgeContext context, @Nullable Theme theme, boolean allowGradients) { in getInternalComplexColor()
229 @NonNull BridgeContext context, @Nullable Resources.Theme theme) { in getColorStateList()
244 @NonNull BridgeContext context, @Nullable Resources.Theme theme) { in getComplexColor()
258 public static Drawable getDrawable(ResourceValue value, BridgeContext context) { in getDrawable()
267 public static BridgeXmlBlockParser getXmlBlockParser(@NonNull BridgeContext context, in getXmlBlockParser()
305 public static Drawable getDrawable(ResourceValue value, BridgeContext context, Theme theme) { in getDrawable()
405 private static AssetRepository getAssetRepository(@NonNull BridgeContext context) { in getAssetRepository()
414 public static Typeface getFont(String fontName, BridgeContext context, Theme theme, boolean in getFont()
[all …]
DRenderAction.java25 import com.android.layoutlib.bridge.android.BridgeContext;
72 static BridgeContext sCurrentContext = null;
76 private BridgeContext mContext;
130 mContext = new BridgeContext(mParams.getProjectKey(), metrics, resources, in init()
294 public static BridgeContext getCurrentContext() { in getCurrentContext()
302 protected BridgeContext getContext() { in getContext()
/frameworks/layoutlib/bridge/tests/src/android/util/
DBridgeXmlPullAttributesTest.java24 import com.android.layoutlib.bridge.android.BridgeContext;
53 BridgeContext context = mock(BridgeContext.class); in testGetAttributeIntValueForEnums()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/
DRecyclerViewUtil.java22 import com.android.layoutlib.bridge.android.BridgeContext;
55 public static void setAdapter(@NonNull View recyclerView, @NonNull BridgeContext context, in setAdapter()
81 @NonNull String layoutMgrClassName, @NonNull BridgeContext context, in setLayoutManager()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
DAdapterHelper.java25 import com.android.layoutlib.bridge.android.BridgeContext;
47 BridgeContext context = RenderAction.getCurrentContext(); in getView()
67 private static void fillView(BridgeContext context, View view, AdapterItem item, in fillView()

12