Home
last modified time | relevance | path

Searched refs:viewState (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DViewStateTest.kt33 private val viewState = ViewState() in <lambda>() constant
44 viewState.alpha = 0.1f in <lambda>()
45 viewState.xTranslation = 0f in <lambda>()
46 viewState.yTranslation = 10f in <lambda>()
47 viewState.zTranslation = 20f in <lambda>()
48 viewState.scaleX = 0.5f in <lambda>()
49 viewState.scaleY = 0.25f in <lambda>()
54 viewState.alpha = 0.0f / 0.0f in <lambda>()
56 Assert.assertEquals(viewState.alpha, 0.1f) in <lambda>()
58 viewState.xTranslation = Float.NaN in <lambda>()
[all …]
DStackScrollAlgorithmTest.kt74 whenever(notificationShelf.viewState).thenReturn(ExpandableViewState()) in <lambda>()
75 whenever(notificationRow.viewState).thenReturn(ExpandableViewState()) in <lambda>()
88 assertThat(notificationRow.viewState.yTranslation) in <lambda>()
104 assertThat(notificationRow.viewState.yTranslation).isEqualTo(minHeadsUpTranslation) in <lambda>()
120 assertThat(emptyShadeView.viewState?.yTranslation).isEqualTo(centeredY) in <lambda>()
132 assertThat(notificationRow.viewState.alpha).isEqualTo(1f) in <lambda>()
229 assertThat(notificationRow.viewState.alpha).isEqualTo(1f - ambientState.hideAmount) in <lambda>()
243 assertThat(emptyShadeView.viewState.alpha).isEqualTo(expected) in <lambda>()
256 assertThat(emptyShadeView.viewState.alpha).isEqualTo(1f) in <lambda>()
269 notificationShelf.viewState.hidden = true in <lambda>()
[all …]
DNotificationShelfTest.kt48 private val shelfState = shelf.viewState as NotificationShelf.ShelfState
415 assertEquals(expectedAlpha, shelf.viewState.alpha) in updateState_expansionChanging_shelfAlphaUpdated()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DStackStateAnimator.java143 ExpandableViewState viewState = child.getViewState(); in startAnimationForEvents() local
144 if (viewState == null || child.getVisibility() == View.GONE in startAnimationForEvents()
145 || applyWithoutAnimation(child, viewState)) { in startAnimationForEvents()
152 initAnimationProperties(child, viewState, animationStaggerCount); in startAnimationForEvents()
153 viewState.animateTo(child, mAnimationProperties); in startAnimationForEvents()
166 ExpandableViewState viewState, int animationStaggerCount) { in initAnimationProperties() argument
169 adaptDurationWhenGoingToFullShade(child, viewState, wasAdded, animationStaggerCount); in initAnimationProperties()
172 && (viewState.getYTranslation() != child.getTranslationY() in initAnimationProperties()
173 || viewState.getZTranslation() != child.getTranslationZ() in initAnimationProperties()
174 || viewState.getAlpha() != child.getAlpha() in initAnimationProperties()
[all …]
DStackScrollAlgorithm.java140 final ViewState viewState = view.getViewState(); in updateAlphaState() local
146 viewState.setAlpha(1f); in updateAlphaState()
149 viewState.setAlpha(1f - ambientState.getHideAmount()); in updateAlphaState()
154 viewState.setAlpha( in updateAlphaState()
157 viewState.setAlpha(interpolateFooterAlpha(ambientState)); in updateAlphaState()
159 viewState.setAlpha(interpolateNotificationContentAlpha(ambientState)); in updateAlphaState()
167 viewState.setAlpha(ShadeInterpolation.getContentAlpha(fractionToShade)); in updateAlphaState()
184 final float viewTop = viewState.getYTranslation(); in updateAlphaState()
186 viewState.setAlpha(0); in updateAlphaState()
443 ExpandableViewState viewState = v.getViewState(); in updateNotGoneIndex() local
[all …]
DNotificationChildrenContainer.java326 ExpandableViewState viewState = row.getViewState(); in addNotification()
327 if (viewState != null) { in addNotification()
328 viewState.cancelAnimations(row); in addNotification()
807 ExpandableViewState viewState = child.getViewState();
808 viewState.applyToView(child);
813 tmpState.setYTranslation(viewState.getYTranslation() - mDividerHeight);
814 float alpha = mChildrenExpanded && viewState.getAlpha() != 0 ? mDividerAlpha : 0;
815 if (mUserLocked && !showingAsLowPriority() && viewState.getAlpha() != 0) {
817 Math.min(viewState.getAlpha(), expandFraction));
942 ExpandableViewState viewState = child.getViewState();
[all …]
DViewState.java224 public void copyFrom(ViewState viewState) { in copyFrom() argument
225 mAlpha = viewState.mAlpha; in copyFrom()
226 mXTranslation = viewState.mXTranslation; in copyFrom()
227 mYTranslation = viewState.mYTranslation; in copyFrom()
228 mZTranslation = viewState.mZTranslation; in copyFrom()
229 gone = viewState.gone; in copyFrom()
230 hidden = viewState.hidden; in copyFrom()
231 mScaleX = viewState.mScaleX; in copyFrom()
232 mScaleY = viewState.mScaleY; in copyFrom()
DExpandableViewState.java125 public void copyFrom(ViewState viewState) { in copyFrom() argument
126 super.copyFrom(viewState); in copyFrom()
127 if (viewState instanceof ExpandableViewState) { in copyFrom()
128 ExpandableViewState svs = (ExpandableViewState) viewState; in copyFrom()
DNotificationStackScrollLayout.java3325 ExpandableViewState viewState = row.getViewState(); in generateHeadsUpAnimationEvents() local
3326 if (viewState == null) { in generateHeadsUpAnimationEvents()
3333 if (pinnedAndClosed || shouldHunAppearFromBottom(viewState)) { in generateHeadsUpAnimationEvents()
3360 private boolean shouldHunAppearFromBottom(ExpandableViewState viewState) { in shouldHunAppearFromBottom() argument
3361 return viewState.getYTranslation() + viewState.height in shouldHunAppearFromBottom()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DSession.java514 @Nullable Consumer<InlineSuggestionsRequest> newAutofillRequestLocked(ViewState viewState, in newAutofillRequestLocked() argument
527 viewState.resetState(ViewState.STATE_PENDING_CREATE_INLINE_REQUEST); in newAutofillRequestLocked()
628 final ViewState viewState = new ViewState(urlBarId, Session.this,
630 mViewStates.put(urlBarId, viewState);
851 final ViewState viewState = mViewStates.valueAt(i);
857 "fillContextWithAllowedValuesLocked(): no node for " + viewState.id);
862 final AutofillValue currentValue = viewState.getCurrentValue();
863 final AutofillValue filledValue = viewState.getAutofilledValue();
873 overlay.focused = mCurrentViewId.equals(viewState.id);
921 private void requestNewFillResponseLocked(@NonNull ViewState viewState, int newState,
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/
DMediaViewController.kt303 private fun setGutsViewState(viewState: TransitionViewState) { in <lambda>()
311 viewState.widgetStates.get(id)?.let { state -> in <lambda>()
318 viewState.widgetStates.get(id)?.let { state -> in <lambda>()
328 viewState: TransitionViewState, in <lambda>()
331 val squishedViewState = viewState.copy() in <lambda>()
450 val viewState = viewStates[cacheKey] in <lambda>() constant
451 if (viewState != null) { in <lambda>()
454 return squishViewState(viewState, state.squishFraction) in <lambda>()
456 return viewState in <lambda>()
537 val viewState = obtainViewState(hostState) ?: return null in <lambda>() constant
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationShelf.java208 ShelfState viewState = (ShelfState) getViewState(); in updateState() local
211 viewState.copyFrom(lastViewState); in updateState()
213 viewState.height = getIntrinsicHeight(); in updateState()
214 viewState.setZTranslation(ambientState.getBaseZHeight()); in updateState()
215 viewState.clipTopAmount = 0; in updateState()
220 viewState.setAlpha(aboutToShowBouncerProgress(expansion)); in updateState()
225 viewState.setAlpha(ShadeInterpolation.getContentAlpha(expansion)); in updateState()
229 viewState.setAlpha(interpolator.getNotificationContentAlpha(expansion)); in updateState()
233 viewState.setAlpha(1f - ambientState.getHideAmount()); in updateState()
235 viewState.belowSpeedBump = mHostLayoutController.getSpeedBumpIndex() == 0; in updateState()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/
DTransitionLayoutController.kt92 viewState: TransitionViewState, in getGoneState()
103 val result = viewState.copy(reusedState).apply { in getGoneState()
105 viewState.width.toFloat(), in getGoneState()
106 viewState.width * disappearParameters.disappearSize.x, in getGoneState()
109 viewState.height.toFloat(), in getGoneState()
110 viewState.height * disappearParameters.disappearSize.y, in getGoneState()
112 translation.x = (viewState.width - width) * disappearParameters.gonePivot.x in getGoneState()
113 translation.y = (viewState.height - height) * disappearParameters.gonePivot.y in getGoneState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DFooterView.java211 public void copyFrom(ViewState viewState) { in copyFrom() argument
212 super.copyFrom(viewState); in copyFrom()
213 if (viewState instanceof FooterViewState) { in copyFrom()
214 hideContent = ((FooterViewState) viewState).hideContent; in copyFrom()
DExpandableView.java816 ExpandableViewState viewState = getViewState(); in dump()
817 if (viewState == null) { in dump()
820 viewState.dump(pw, args); in dump()
/frameworks/base/core/java/android/util/
DStateSet.java87 final int viewState = R.styleable.ViewDrawableStates[i];
89 if (VIEW_STATE_IDS[j] == viewState) {
90 orderedIds[i * 2] = viewState;