/frameworks/layoutlib/bridge/src/android/view/ |
D | View_Delegate.java | 21 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()
|
D | MenuInflater_Delegate.java | 24 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()
|
D | BridgeInflater.java | 30 import com.android.layoutlib.bridge.android.BridgeContext; 67 import static com.android.layoutlib.bridge.android.BridgeContext.getBaseContext; 112 mLayoutlibCallback = (newContext instanceof BridgeContext) ? in BridgeInflater() 113 ((BridgeContext) newContext).getLayoutlibCallback() : in BridgeInflater() 123 public BridgeInflater(BridgeContext context, LayoutlibCallback layoutlibCallback) { in BridgeInflater() 207 private static Class<?> findCustomInflater(@NotNull BridgeContext bc, in findCustomInflater() 259 if (context instanceof BridgeContext) { in createViewFromCustomInflater() 260 BridgeContext bc = (BridgeContext) context; in createViewFromCustomInflater() 370 if (context instanceof BridgeContext) { in inflate() 371 BridgeContext bridgeContext = (BridgeContext)context; in inflate() [all …]
|
D | Choreographer_Delegate.java | 21 import com.android.layoutlib.bridge.android.BridgeContext; 47 BridgeContext context = getCurrentContext(); in postCallbackDelayedInternal() 76 BridgeContext context = getCurrentContext(); in removeCallbacksInternal()
|
/frameworks/layoutlib/bridge/src/com/android/internal/view/menu/ |
D | BridgeMenuItemImpl.java | 19 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/src/com/android/layoutlib/bridge/bars/ |
D | CustomBar.java | 24 import com.android.layoutlib.bridge.android.BridgeContext; 57 protected CustomBar(BridgeContext context, int orientation, String layoutName, in CustomBar() 80 return SysUiResources.loadXml((BridgeContext) mContext, mSimulatedPlatformVersion, in loadXml() 112 BridgeContext bridgeContext = getContext(); in setStyle() 116 res.findItemInTheme(BridgeContext.createFrameworkAttrReference(themeEntryName)); in setStyle() 127 BridgeContext.createFrameworkAttrReference("background")); in setStyle() 140 BridgeContext.createFrameworkAttrReference("titleTextStyle")); in setStyle() 146 BridgeContext.createFrameworkAttrReference("textSize")); in setStyle() 159 BridgeContext.createFrameworkAttrReference("textColor")); in setStyle() 173 public BridgeContext getContext() { in getContext() [all …]
|
D | NavigationBar.java | 19 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()
|
D | BridgeActionBar.java | 24 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()
|
D | StatusBar.java | 23 import com.android.layoutlib.bridge.android.BridgeContext; 76 this((BridgeContext) context, in StatusBar() 77 Density.create(((BridgeContext) context).getMetrics().densityDpi), in StatusBar() 78 ((BridgeContext) context).getConfiguration().getLayoutDirection() == in StatusBar() 85 public StatusBar(BridgeContext context, Density density, boolean isRtl, boolean rtlEnabled, in StatusBar() 166 (BridgeContext) mContext, in loadIcon()
|
D | TitleBar.java | 19 import com.android.layoutlib.bridge.android.BridgeContext; 30 public TitleBar(BridgeContext context, String label, int simulatedPlatformVersion) { in TitleBar()
|
D | FrameworkActionBarWrapper.java | 30 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()
|
D | FrameworkActionBar.java | 24 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/tests/src/com/android/layoutlib/bridge/impl/ |
D | RenderActionTestUtil.java | 19 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/internal/lang/ |
D | System_Delegate.java | 18 import com.android.layoutlib.bridge.android.BridgeContext; 42 BridgeContext context = getCurrentContext(); in setNanosTime() 49 BridgeContext context = getCurrentContext(); in setBootTimeNanos() 56 BridgeContext context = getCurrentContext(); in nanoTime() 68 BridgeContext context = getCurrentContext(); in bootTime()
|
/frameworks/layoutlib/bridge/src/android/os/ |
D | HandlerThread_Delegate.java | 19 import com.android.layoutlib.bridge.android.BridgeContext; 38 private static final 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()
|
D | Handler_Delegate.java | 21 import com.android.layoutlib.bridge.android.BridgeContext; 45 BridgeContext context = getCurrentContext(); in sendMessageAtTime() 69 BridgeContext context = getCurrentContext(); in sendMessageAtFrontOfQueue() 88 BridgeContext context = getCurrentContext(); in executeCallbacks()
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/ |
D | BridgeContextTest.java | 76 … BridgeContext context = new BridgeContext(params.getProjectKey(), metrics, params.getResources(), in basic() 81 BridgeContext oldContext = RenderActionTestUtil.setBridgeContext(context); in basic() 123 … BridgeContext context = new BridgeContext(params.getProjectKey(), metrics, params.getResources(), in checkNoErrorWhenUsingDefaults() 128 BridgeContext oldContext = RenderActionTestUtil.setBridgeContext(context); in checkNoErrorWhenUsingDefaults() 156 … BridgeContext context = new BridgeContext(params.getProjectKey(), metrics, params.getResources(), in noExceptionForCustomService() 177 … BridgeContext context = new BridgeContext(params.getProjectKey(), metrics, params.getResources(), in dynamicTheming() 208 BridgeContext context = in noCrashInPowerManager() 209 …new BridgeContext(params.getProjectKey(), metrics, params.getResources(), params.getAssets(), para… in noCrashInPowerManager() 236 BridgeContext mContext = in testTypedValue() 237 new BridgeContext(params.getProjectKey(), metrics, params.getResources(), in testTypedValue() [all …]
|
D | BitmapTest.java | 96 … BridgeContext context = new BridgeContext(params.getProjectKey(), metrics, params.getResources(), in testImageDecoder() 101 BridgeContext oldContext = RenderActionTestUtil.setBridgeContext(context); in testImageDecoder()
|
/frameworks/layoutlib/bridge/src/android/app/ |
D | Fragment_Delegate.java | 19 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/ |
D | BridgePreferenceInflater.java | 20 import com.android.layoutlib.bridge.android.BridgeContext; 39 BridgeContext bc = null; in createItem() 42 if (context instanceof BridgeContext) { in createItem() 43 bc = (BridgeContext) context; in createItem()
|
D | Preference_Delegate.java | 20 import com.android.layoutlib.bridge.android.BridgeContext; 43 BridgeContext bc = context instanceof BridgeContext ? ((BridgeContext) context) : null; in getView()
|
/frameworks/layoutlib/bridge/src/android/view/accessibility/ |
D | AccessibilityManager_Delegate.java | 19 import com.android.layoutlib.bridge.android.BridgeContext; 46 Context baseContext = BridgeContext.getBaseContext(context); in getInstance() 47 return ((BridgeContext)baseContext).getAccessibilityManager(); in getInstance()
|
/frameworks/layoutlib/bridge/tests/src/android/util/ |
D | BridgeXmlPullAttributesTest.java | 25 import com.android.layoutlib.bridge.android.BridgeContext; 57 private static BridgeContext prepareContext() { in prepareContext() 58 BridgeContext context = mock(BridgeContext.class); in prepareContext() 76 private final BridgeContext context = prepareContext();
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 25 import com.android.layoutlib.bridge.android.BridgeContext; 91 static BridgeContext sCurrentContext = null; 95 private BridgeContext mContext; 98 private static final Set<BridgeContext> sContexts = 158 mContext = new BridgeContext(mParams.getProjectKey(), metrics, resources, in init() 321 public static BridgeContext getCurrentContext() { in getCurrentContext() 329 protected BridgeContext getContext() { in getContext() 452 private static ClassLoader findComposeClassLoader(@NotNull BridgeContext context) { in findComposeClassLoader() 463 public static BridgeContext findContextFor(@NotNull ClassLoader classLoader) { in findContextFor() 465 for (BridgeContext c : RenderAction.sContexts) { in findContextFor()
|
D | Layout.java | 25 import com.android.layoutlib.bridge.android.BridgeContext; 223 private static View createSysUiOverlay(@NonNull BridgeContext context) { in createSysUiOverlay() 278 public BridgeContext getContext() { in getContext() 279 return (BridgeContext) super.getContext(); in getContext() 288 private StatusBar createStatusBar(BridgeContext context, Density density, boolean isRtl, in createStatusBar() 302 private BridgeActionBar createActionBar(@NonNull BridgeContext context, in createActionBar() 346 private TitleBar createTitleBar(BridgeContext context, String title, in createTitleBar() 368 private View createNavBar(BridgeContext context, boolean useGestureNav, in createNavBar() 424 private final BridgeContext mContext; 439 public Builder(@NonNull SessionParams params, @NonNull BridgeContext context) { in Builder() [all …]
|