Home
last modified time | relevance | path

Searched refs:mSetupTextLayout (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/widget/
DDeferredAppWidgetHostView.java38 private Layout mSetupTextLayout; field in DeferredAppWidgetHostView
68 if (mSetupTextLayout != null && mSetupTextLayout.getText().equals(info.label) in onMeasure()
69 && mSetupTextLayout.getWidth() == availableWidth) { in onMeasure()
72 mSetupTextLayout = new StaticLayout(info.label, mPaint, availableWidth, in onMeasure()
78 if (mSetupTextLayout != null) { in onDraw()
80 (getHeight() - mSetupTextLayout.getHeight()) / 2); in onDraw()
81 mSetupTextLayout.draw(canvas); in onDraw()
DPendingAppWidgetHostView.java64 private Layout mSetupTextLayout; field in PendingAppWidgetHostView
238 mSetupTextLayout = null; in updateDrawableBounds()
242 mSetupTextLayout = new StaticLayout( in updateDrawableBounds()
245 int textHeight = mSetupTextLayout.getHeight(); in updateDrawableBounds()
258 mSetupTextLayout = null; in updateDrawableBounds()
272 if (mSetupTextLayout != null) { in updateDrawableBounds()
296 if (mSetupTextLayout != null) { in onDraw()
299 mSetupTextLayout.draw(canvas); in onDraw()