Searched refs:widgetState (Results 1 – 3 of 3) sorted by relevance
125 val widgetState = currentState.widgetStates.get(child.id) ?: continue in applyCurrentState() constant133 if (child is TextView && widgetState.width < widgetState.measureWidth) { in applyCurrentState()135 widgetState.measureWidth - widgetState.width in applyCurrentState()143 if (child.measuredWidth != widgetState.measureWidth || in applyCurrentState()144 child.measuredHeight != widgetState.measureHeight) { in applyCurrentState()145 val measureWidthSpec = MeasureSpec.makeMeasureSpec(widgetState.measureWidth, in applyCurrentState()147 val measureHeightSpec = MeasureSpec.makeMeasureSpec(widgetState.measureHeight, in applyCurrentState()153 val left = widgetState.x.toInt() + contentTranslationX - clipShift in applyCurrentState()154 val top = widgetState.y.toInt() + contentTranslationY in applyCurrentState()156 val boundsWidth = if (clipMode) widgetState.measureWidth else widgetState.width in applyCurrentState()[all …]
1003 byte[] widgetState = AppWidgetBackupBridge.getWidgetState(pkgName, mUserId); in writeWidgetPayloadIfAppropriate()1006 if (!priorStateExists && widgetState == null) { in writeWidgetPayloadIfAppropriate()1009 mReporter.onWriteWidgetData(priorStateExists, widgetState); in writeWidgetPayloadIfAppropriate()1016 if (widgetState != null) { in writeWidgetPayloadIfAppropriate()1017 newChecksum = SHA1Checksum(widgetState); in writeWidgetPayloadIfAppropriate()1034 if (widgetState != null) { in writeWidgetPayloadIfAppropriate()1042 out.writeEntityHeader(KEY_WIDGET_STATE, widgetState.length); in writeWidgetPayloadIfAppropriate()1043 out.writeEntityData(widgetState, widgetState.length); in writeWidgetPayloadIfAppropriate()
236 void onWriteWidgetData(boolean priorStateExists, @Nullable byte[] widgetState) { in onWriteWidgetData() argument241 + (widgetState != null) in onWriteWidgetData()