Home
last modified time | relevance | path

Searched refs:isZero (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DNotificationPanelUnfoldAnimationControllerTest.kt96 assertThat(view.translationX).isZero() in whenInKeyguardState_viewDoesNotMove()
99 assertThat(view.translationX).isZero() in whenInKeyguardState_viewDoesNotMove()
102 assertThat(view.translationX).isZero() in whenInKeyguardState_viewDoesNotMove()
105 assertThat(view.translationX).isZero() in whenInKeyguardState_viewDoesNotMove()
116 assertThat(view.translationX).isZero() in whenInShadeState_viewDoesMove()
125 assertThat(view.translationX).isZero() in whenInShadeState_viewDoesMove()
136 assertThat(view.translationX).isZero() in whenInShadeLockedState_viewDoesMove()
145 assertThat(view.translationX).isZero() in whenInShadeLockedState_viewDoesMove()
156 assertThat(view.translationX).isZero() in whenInKeyguardState_statusBarViewDoesNotMove()
159 assertThat(view.translationX).isZero() in whenInKeyguardState_statusBarViewDoesNotMove()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUnfoldTransitionTest.kt95 assertThat(view.translationX).isZero() in onTransition_centeredViewDoesNotMove()
98 assertThat(view.translationX).isZero() in onTransition_centeredViewDoesNotMove()
101 assertThat(view.translationX).isZero() in onTransition_centeredViewDoesNotMove()
104 assertThat(view.translationX).isZero() in onTransition_centeredViewDoesNotMove()
117 assertThat(view.translationX).isZero() in whenInShadeState_viewDoesNotMove()
120 assertThat(view.translationX).isZero() in whenInShadeState_viewDoesNotMove()
123 assertThat(view.translationX).isZero() in whenInShadeState_viewDoesNotMove()
126 assertThat(view.translationX).isZero() in whenInShadeState_viewDoesNotMove()
140 assertThat(view.translationX).isZero() in whenInKeyguardState_viewDoesMove()
149 assertThat(view.translationX).isZero() in whenInKeyguardState_viewDoesMove()
/frameworks/native/libs/ui/include/ui/
DStretchEffect.h49 static bool isZero(float value) { in isZero() function
54 bool isNoOp() const { return isZero(vectorX) && isZero(vectorY); } in isNoOp()
60 if (width == 0.f || height == 0.f || isZero(maxAmountX) || in sanitize()
61 isZero(maxAmountY)) { in sanitize()
DTransform.h129 static bool isZero(float f);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarMoveFromCenterAnimationControllerTest.kt68 assertThat(view.translationX).isZero() in onTransitionProgressAndFinished_resetsTranslations()
77 assertThat(view.translationX).isZero() in onStatusBarWidthChangedWithNoTransitionBefore_noTranslation()
96 assertThat(view.translationX).isZero() in onTransitionProgress_whenDetached_doesNotUpdateTranslations()
106 assertThat(view.translationX).isZero() in detachedAfterProgress_resetsTranslations()
144 assertThat(view.translationX).isZero() in transitionFinished_viewReAttached_noChangesToTranslation()
/frameworks/native/libs/ui/
DTransform.cpp46 bool Transform::isZero(float f) { in isZero() function in android::ui::Transform
51 return isZero(fabs(f) - 1.0f); in absIsOne()
163 if (isZero(tx) && isZero(ty)) { in set()
193 H.mType |= isZero(w) ? IDENTITY : TRANSLATE; in set()
201 V.mType |= isZero(h) ? IDENTITY : TRANSLATE; in set()
210 R.mType |= isZero(original_w) ? IDENTITY : TRANSLATE; in set()
335 if (isZero(b) && isZero(c)) { in type()
341 } else if (isZero(a) && isZero(d)) { in type()
367 if (!isZero(x) || !isZero(y)) in type()
/frameworks/base/libs/hwui/effects/
DStretchEffect.h43 bool isEmpty() const { return isZero(mStretchDirection.x()) && isZero(mStretchDirection.y()); } in isEmpty()
122 inline static bool isZero(float value) { in isZero() function
/frameworks/base/libs/hwui/
DLayer.cpp60 return MathUtils::isZero(roundf(x) - x); in isIntegerAligned()
69 if (MathUtils::isZero(matrix.getScaleX()) && MathUtils::isZero(matrix.getScaleY())) { in shouldFilterRect()
DMatrix.cpp69 static bool isZero(float f) { in isZero() function
107 if ((isZero(m00) && isZero(m11) && !isZero(m01) && !isZero(m10)) || in getType()
108 (isZero(m01) && isZero(m10) && !isZero(m00) && !isZero(m11))) { in getType()
DRenderProperties.cpp145 if (mPrimitiveFields.mAlpha < 1 && !MathUtils::isZero(mPrimitiveFields.mAlpha)) { in debugOutputProperties()
206 if (MathUtils::isZero(getRotationX()) && MathUtils::isZero(getRotationY())) { in updateMatrix()
DRenderNode.cpp100 << (MathUtils::isZero(properties().getAlpha()) ? ", zero alpha" : "") in output()
545 bool applyTranslationZ = true3dTransform && !MathUtils::isZero(properties().getZ()); in applyViewPropertyTransforms()
/frameworks/base/libs/hwui/utils/
DMathUtils.h33 inline static bool isZero(float value) { in isZero() function
85 inline static bool areEqual(float valueA, float valueB) { return isZero(valueA - valueB); } in areEqual()
/frameworks/base/libs/hwui/pipeline/skia/
DLayerDrawable.cpp47 return MathUtils::isZero(roundf(x) - x); in isIntegerAligned()
56 if (MathUtils::isZero(matrix.getScaleX()) && MathUtils::isZero(matrix.getScaleY())) { in shouldFilterRect()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/common/
DCommonFoldingFeature.java19 import static androidx.window.util.ExtensionHelper.isZero;
186 if (isZero(featureRect)) { in parseFromString()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
DBaseModeRefreshRateVoteTest.kt67 assertThat(summary.appRequestBaseModeRefreshRate).isZero() in keeps summary with base mode refresh rate if vote refresh rate is negative()
DDisplayModeDirectorTest.java523 assertThat(modeSpecs.primary.render.min).isZero(); in testDisplayModeVoting()
531 assertThat(modeSpecs.appRequest.render.min).isZero(); in testDisplayModeVoting()
535 assertThat(modeSpecs.appRequest.physical.min).isZero(); in testDisplayModeVoting()
537 assertThat(modeSpecs.appRequest.render.min).isZero(); in testDisplayModeVoting()
2231 assertThat(desiredSpecs.primary.render.min).isZero(); in testAppRequestMaxRefreshRate()
2235 assertThat(desiredSpecs.appRequest.render.min).isZero(); in testAppRequestMaxRefreshRate()
2257 assertThat(desiredSpecs.primary.render.min).isZero(); in testAppRequestMaxRefreshRate()
2259 assertThat(desiredSpecs.appRequest.physical.min).isZero(); in testAppRequestMaxRefreshRate()
2261 assertThat(desiredSpecs.appRequest.render.min).isZero(); in testAppRequestMaxRefreshRate()
2471 assertThat(desiredSpecs.appRequest.render.min).isZero(); in testRefreshRateIsSubsetOfFrameRate()
[all …]
/frameworks/base/core/jni/
Dcom_android_internal_content_FileSystemUtils.cpp175 bool isZero = std::all_of(buffer.get(), buffer.get() + readLength, in punchHoles() local
177 if (!isZero) { in punchHoles()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/util/
DExtensionHelper.java114 public static boolean isZero(@NonNull Rect rect) { in isZero() method in ExtensionHelper
/frameworks/native/libs/ui/include_vndk/ui/
DTransform.h129 static bool isZero(float f);
/frameworks/native/include/ui/
DTransform.h129 static bool isZero(float f);
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/layout/
DWindowLayoutComponentImpl.java23 import static androidx.window.util.ExtensionHelper.isZero;
371 if (isZero(featureRect)) { in getDisplayFeatures()
/frameworks/base/core/java/android/util/
DRational.java205 public boolean isZero() { in isZero() method in Rational
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DLockscreenShadeQsTransitionControllerTest.kt73 assertThat(controller.qsTransitionFraction).isZero() in qsTransitionFraction_byDefault_returns0()
/frameworks/base/core/java/android/telephony/
DSubscriptionPlan.java281 if (period.isZero() || period.isNegative()) { in createRecurring()
/frameworks/av/media/libeffects/dynamicsproc/dsp/
DDPFrequency.cpp36 static inline bool isZero(float f) { in isZero() function
46 return isZero(a - b); in compareEquality()

12