Lines Matching defs:state

137         // The state of the local variables are saved in an algorithmState to easily subdivide it
154 // Due to the overScroller, the stackscroller can have negative scroll state. This is
197 StackScrollState.ViewState state = resultState.getViewStateForView(child);
198 float newYTranslation = state.yTranslation + state.height * (1f - state.scale) / 2f;
199 float newHeight = state.height * state.scale;
216 float clippingCorrection = state.dimmed
218 : mRoundedRectCornerRadius * state.scale;
223 updateChildClippingAndBackground(state, newHeight, clipHeight,
229 previousNotificationStart = newYTranslation + state.clipTopAmount * state.scale;
239 * @param state the viewState to update
245 private void updateChildClippingAndBackground(StackScrollState.ViewState state,
249 state.topOverLap = (int) Math.floor((realHeight - clipHeight) / state.scale);
251 state.topOverLap = 0;
255 state.clipTopAmount = (int) Math.floor((realHeight - backgroundHeight) / state.scale);
257 state.clipTopAmount = 0;
288 * Handle the special state when views are being dragged
298 // only if the view is not dragged itself we modify its state to be fully
315 * Update the visible children on the state.
318 StackScrollAlgorithmState state) {
321 state.visibleChildren.clear();
322 state.visibleChildren.ensureCapacity(childCount);
327 viewState.notGoneIndex = state.visibleChildren.size();
328 state.visibleChildren.add(v);
336 * @param resultState The result state to update if a change to the properties of a child occurs
337 * @param algorithmState The state in which the current pass of the algorithm is currently in
445 * @param childViewState the view state of the child
457 * @param childViewState the view state of the child
470 * @param childViewState the view state of the child
593 * Find the number of items in the top stack and update the result state if needed.
595 * @param resultState The result state to update if a height change of an child occurs
596 * @param algorithmState The state in which the current pass of the algorithm is currently in
671 * @param resultState The result state to update the zTranslation values
672 * @param algorithmState The state in which the current pass of the algorithm is currently in