Home
last modified time | relevance | path

Searched refs:targetView (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/back/
DBackTransformationTest.kt19 private val targetView: View = mock() constant in com.android.systemui.animation.back.BackTransformationTest
23 whenever(targetView.width).thenReturn(TARGET_VIEW_WIDTH) in setup()
24 whenever(targetView.height).thenReturn(TARGET_VIEW_HEIGHT) in setup()
40 transformation.applyTo(targetView = targetView) in applyTo_targetView_translateX_Y_Scale()
42 verify(targetView).translationX = 0f in applyTo_targetView_translateX_Y_Scale()
43 verify(targetView).translationY = 0f in applyTo_targetView_translateX_Y_Scale()
44 verify(targetView).scaleX = 1f in applyTo_targetView_translateX_Y_Scale()
45 verify(targetView).scaleY = 1f in applyTo_targetView_translateX_Y_Scale()
46 verifyNoMoreInteractions(targetView) in applyTo_targetView_translateX_Y_Scale()
53 transformation.applyTo(targetView = targetView) in applyTo_targetView_translateX()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DRoundableTest.kt21 private val targetView: View = mock() constant in com.android.systemui.statusbar.notification.RoundableTest
22 private val roundable = FakeRoundable(targetView = targetView)
36 verify(targetView, times(1)).invalidate() in applyRoundnessAndInvalidate_should_invalidate_targetView()
44 verify(targetView, times(1)).invalidate() in requestTopRoundness_update_and_invalidate_targetView()
52 verify(targetView, times(1)).invalidate() in requestBottomRoundness_update_and_invalidate_targetView()
61 verify(targetView, atLeastOnce()).invalidate() in requestRoundness_update_and_invalidate_targetView()
74 verify(targetView, atLeastOnce()).invalidate() in requestRoundnessReset_update_and_invalidate_targetView()
153 whenever(targetView.height).thenReturn(10) in getCornerRadii_radius_maxed_to_height()
162 whenever(targetView.height).thenReturn(5) in getCornerRadii_topRadius_maxed_to_height()
171 whenever(targetView.height).thenReturn(5) in getCornerRadii_bottomRadius_maxed_to_height()
[all …]
/frameworks/base/core/java/android/ddm/
DDdmHandleViewDebug.java136 final View targetView = getTargetView(rootView, in); in handleChunk() local
137 if (targetView == null) { in handleChunk()
144 return captureView(rootView, targetView); in handleChunk()
146 return dumpDisplayLists(rootView, targetView); in handleChunk()
148 return profileView(rootView, targetView); in handleChunk()
150 return invokeViewMethod(rootView, targetView, in); in handleChunk()
152 return setLayoutParameter(rootView, targetView, in); in handleChunk()
279 private Chunk captureView(View rootView, View targetView) { in captureView() argument
282 ViewDebug.capture(rootView, b, targetView); in captureView()
293 private Chunk dumpDisplayLists(final View rootView, final View targetView) { in dumpDisplayLists() argument
[all …]
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/back/
DBackTransformation.kt55 fun BackTransformation.applyTo(targetView: View) { in applyTo()
56 if (translateX.isFinite()) targetView.translationX = translateX in applyTo()
57 if (translateY.isFinite()) targetView.translationY = translateY in applyTo()
58 scalePivotPosition?.applyTo(targetView) in applyTo()
60 targetView.scaleX = scale in applyTo()
61 targetView.scaleY = scale in applyTo()
/frameworks/base/core/java/android/view/
DSyncRtSurfaceTransactionApplier.java50 public SyncRtSurfaceTransactionApplier(View targetView) { in SyncRtSurfaceTransactionApplier() argument
51 mTargetViewRootImpl = targetView != null ? targetView.getViewRootImpl() : null; in SyncRtSurfaceTransactionApplier()
138 public static void create(final View targetView, in create() argument
140 if (targetView == null) { in create()
143 } else if (targetView.getViewRootImpl() != null) { in create()
145 callback.accept(new SyncRtSurfaceTransactionApplier(targetView)); in create()
148 targetView.addOnAttachStateChangeListener(new View.OnAttachStateChangeListener() { in create()
151 targetView.removeOnAttachStateChangeListener(this); in create()
152 callback.accept(new SyncRtSurfaceTransactionApplier(targetView)); in create()
DNotificationTopLineView.java422 OverflowAdjuster adjust(View targetView, View targetDivider, int minimumWidth) { in adjust() argument
423 if (mOverflow <= 0 || targetView == null || targetView.getVisibility() == View.GONE) { in adjust()
426 final int oldWidth = targetView.getMeasuredWidth(); in adjust()
433 && mRegrowView != null && mRegrowView != targetView) { in adjust()
440 targetView.measure(childWidthSpec, mHeightSpec); in adjust()
444 mViewsToDisappear.add(targetView); in adjust()
445 mOverflow -= getHorizontalMargins(targetView); in adjust()
467 mRegrowView = targetView; in adjust()
DViewDebug.java1847 View targetView = findView(root, params[0]);
1848 if (targetView == null) {
1855 byte[] result = invokeViewMethod(targetView, method, args);
1879 public static byte[] invokeViewMethod(View targetView, String methodName, ByteBuffer params)
1896 method = targetView.getClass().getMethod(methodName, argTypes);
1905 FutureTask<Object> task = new FutureTask<>(() -> method.invoke(targetView, args));
1906 targetView.post(task);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DRoundable.kt126 animate = roundableState.targetView.isShown in <lambda>()
193 animate = roundableState.targetView.isShown in <lambda>()
245 animate = roundableState.targetView.isShown, in <lambda>()
273 requestRoundnessReset(sourceType = sourceType, animate = roundableState.targetView.isShown) in <lambda>()
278 roundableState.targetView.invalidate() in <lambda>()
316 internal val targetView: View, constant in com.android.systemui.statusbar.notification.RoundableState
384 internal fun isTopAnimating() = PropertyAnimator.isAnimating(targetView, topAnimatable) in isTopAnimating()
387 internal fun isBottomAnimating() = PropertyAnimator.isAnimating(targetView, bottomAnimatable) in isTopAnimating()
394 PropertyAnimator.setProperty(targetView, topAnimatable, value, DURATION, animated) in isTopAnimating()
402 PropertyAnimator.setProperty(targetView, bottomAnimatable, value, DURATION, animated) in setBottomRoundness()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/util/
DDialog.kt39 targetView: View, in <lambda>()
42 displayMetricsProvider = { targetView.resources.displayMetrics }, in <lambda>()
45 targetView.registerOnBackInvokedCallbackOnViewAttached(
50 displayMetrics = targetView.resources.displayMetrics,
51 onBackProgressed = { backTransformation -> backTransformation.applyTo(targetView) }, in backTransformation()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/magnetictarget/
DMagnetizedObject.kt572 val targetAreaWidth = target.targetView.width * flingToTargetWidthPercent in <lambda>()
591 ViewConfiguration.get(associatedTargets[0].targetView.context).scaledTouchSlop in <lambda>()
604 val targetView: View, in <lambda>() constant in com.android.wm.shell.common.magnetictarget.MagnetizedObject.MagneticTarget
628 targetView.post { in <lambda>()
629 targetView.getLocationOnScreen(tempLoc) in <lambda>()
634 tempLoc[0] + targetView.width / 2f - targetView.translationX, in <lambda>()
635 tempLoc[1] + targetView.height / 2f - targetView.translationY) in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/
DBaseBubblePinController.kt141 val targetView = getDropTargetView() ?: createDropTargetView().apply { alpha = 0f } in <lambda>() constant
142 if (targetView.alpha > 0) { in <lambda>()
143 targetView.animateOut { in <lambda>()
145 targetView.animateIn() in <lambda>()
149 targetView.animateIn() in <lambda>()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/magnetictarget/
DMagnetizedObjectTest.kt56 private lateinit var targetView: View in <lambda>() variable in com.android.wm.shell.common.magnetictarget.MagnetizedObjectTest
96 targetView = mock(View::class.java) in <lambda>()
97 `when`(targetView.context).thenReturn(context) in <lambda>()
101 `when`(targetView.width).thenReturn(targetSize) // width = 200 in <lambda>()
102 `when`(targetView.height).thenReturn(targetSize) // height = 200 in <lambda>()
109 }.`when`(targetView).getLocationOnScreen(ArgumentMatchers.any()) in <lambda>()
113 }.`when`(targetView).post(ArgumentMatchers.any()) in <lambda>()
114 `when`(targetView.context).thenReturn(context) in <lambda>()
116 magneticTarget = MagnetizedObject.MagneticTarget(targetView, magneticFieldRadius) in <lambda>()
/frameworks/base/core/java/com/android/internal/widget/
DLinearSmoothScroller.java111 protected void onTargetFound(View targetView, RecyclerView.State state, Action action) { in onTargetFound() argument
112 final int dx = calculateDxToMakeVisible(targetView, getHorizontalSnapPreference()); in onTargetFound()
113 final int dy = calculateDyToMakeVisible(targetView, getVerticalSnapPreference()); in onTargetFound()
/frameworks/base/core/java/android/widget/
DZoomButtonsController.java557 View targetView = mTouchTargetView; in onTouch() local
561 targetView = findViewForTouch((int) event.getRawX(), (int) event.getRawY()); in onTouch()
562 setTouchTargetView(targetView); in onTouch()
571 if (targetView != null) { in onTouch()
592 boolean retValue = targetView.dispatchTouchEvent(containerEvent); in onTouch()
DAdapterView.java441 public AdapterContextMenuInfo(View targetView, int position, long id) { in AdapterContextMenuInfo() argument
442 this.targetView = targetView; in AdapterContextMenuInfo()
451 public View targetView; field in AdapterView.AdapterContextMenuInfo
DExpandableListView.java1292 public ExpandableListContextMenuInfo(View targetView, long packedPosition, long id) { in ExpandableListContextMenuInfo() argument
1293 this.targetView = targetView; in ExpandableListContextMenuInfo()
1302 public View targetView; field in ExpandableListView.ExpandableListContextMenuInfo
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DSystemUIDialog.java272 View targetView = getWindow().getDecorView(); in onCreate() local
275 /* targetView = */ targetView, in onCreate()
277 () -> targetView.getResources().getDisplayMetrics()) in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/
DMediaViewController.kt1123 val targetView: View = in <lambda>() constant
1129 val width = targetView.width in <lambda>()
1130 val height = targetView.height in <lambda>()
1149 targetView.context.resources.displayMetrics.density, in <lambda>()
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DKeyButtonRipple.java93 KeyButtonRipple(Context ctx, View targetView, @DimenRes int maxWidthResource) { in KeyButtonRipple() argument
96 mTargetView = targetView; in KeyButtonRipple()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/
DWalletCardCarousel.java356 protected void onTargetFound(View targetView, State state, Action action) {
357 int[] snapDistances = calculateDistanceToFinalSnap(layoutManager, targetView);
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/navigationbar/
DKeyButtonRipple.java100 public KeyButtonRipple(Context ctx, View targetView, @DimenRes int maxWidthResource) { in KeyButtonRipple() argument
103 mTargetView = targetView; in KeyButtonRipple()
/frameworks/base/core/tests/coretests/src/android/view/
DListContextMenu.java127 String text = ((TextView) info.targetView).getText().toString(); in onCreateContextMenu()
/frameworks/base/core/java/android/view/inputmethod/
DBaseInputConnection.java87 public BaseInputConnection(@NonNull View targetView, boolean fullEditor) { in BaseInputConnection() argument
88 mIMM = (InputMethodManager)targetView.getContext().getSystemService( in BaseInputConnection()
90 mTargetView = targetView; in BaseInputConnection()
DInputMethodManager.java4164 public void dispatchKeyEventFromInputMethod(@Nullable View targetView, in dispatchKeyEventFromInputMethod() argument
4167 final InputMethodManager fallbackImm = getFallbackInputMethodManagerIfNecessary(targetView); in dispatchKeyEventFromInputMethod()
4169 fallbackImm.dispatchKeyEventFromInputMethod(targetView, event); in dispatchKeyEventFromInputMethod()
4174 ViewRootImpl viewRootImpl = targetView != null ? targetView.getViewRootImpl() : null; in dispatchKeyEventFromInputMethod()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DDialogTransitionAnimator.kt721 dialog.registerAnimationOnBackInvoked(targetView = dialogContentWithBackground) in start()

12