/aosp12/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/ |
H A D | SwipeButtonHelper.java | 156 if (targetView == null || (targetedView != null && targetedView != targetView)) { in onTouchEvent() 165 startSwiping(targetView); in onTouchEvent() 215 targetedView = targetView; in startSwiping() 300 targetedView = targetView; in startHintAnimationPhase1() 333 if (targetView == null) { in getAnimatorToRadius() 410 if (targetView != null) { in startFinishingCircleAnimation() 432 if (targetView != null) { in setTranslation() 435 targetView, in setTranslation() 444 targetView, in setTranslation() 478 updateIconAlpha(targetView, alpha + fadeOutAlpha * targetView.getRestingAlpha(), false); in updateIconsFromTranslation() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | KeyguardAffordanceHelper.java | 132 if (targetView == null || (mTargetedView != null && mTargetedView != targetView)) { in onTouchEvent() 141 startSwiping(targetView); in onTouchEvent() 187 private void startSwiping(View targetView) { in startSwiping() argument 190 mTargetedView = targetView; in startSwiping() 270 mTargetedView = targetView; in startHintAnimationPhase1() 303 updateIconsFromTranslation(targetView); in getAnimatorToRadius() 394 updateIcon(targetView, radius, alpha + fadeOutAlpha * targetView.getRestingAlpha(), in setTranslation() 397 updateIcon(targetView, 0.0f, fadeOutAlpha * targetView.getRestingAlpha(), in setTranslation() 417 updateIconAlpha(targetView, alpha + fadeOutAlpha * targetView.getRestingAlpha(), false); in updateIconsFromTranslation() 528 startSwiping(targetView); in launchAffordance() [all …]
|
/aosp12/frameworks/base/core/java/android/ddm/ |
H A D | DdmHandleViewDebug.java | 136 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() 279 private Chunk captureView(View rootView, View targetView) { in captureView() argument 282 ViewDebug.capture(rootView, b, targetView); in captureView() 297 ViewDebug.outputDisplayList(rootView, targetView); in dumpDisplayLists() 387 ViewDebug.invokeViewMethod(targetView, method, args); in invokeViewMethod() 405 ViewDebug.setLayoutParameter(targetView, param, value); in setLayoutParameter() [all …]
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
H A D | SurfaceTransactionApplier.java | 52 public SurfaceTransactionApplier(View targetView) { in SurfaceTransactionApplier() argument 53 mTargetViewRootImpl = targetView.getViewRootImpl(); in SurfaceTransactionApplier() 108 final View targetView, final Consumer<SurfaceTransactionApplier> callback) { in create() argument 109 if (targetView == null) { in create() 112 } else if (targetView.isAttachedToWindow()) { in create() 114 callback.accept(new SurfaceTransactionApplier(targetView)); in create() 117 targetView.addOnAttachStateChangeListener(new View.OnAttachStateChangeListener() { in create() 120 targetView.removeOnAttachStateChangeListener(this); in create() 121 callback.accept(new SurfaceTransactionApplier(targetView)); in create()
|
/aosp12/frameworks/base/core/java/android/view/ |
H A D | SyncRtSurfaceTransactionApplier.java | 50 public SyncRtSurfaceTransactionApplier(View targetView) { in SyncRtSurfaceTransactionApplier() argument 51 mTargetViewRootImpl = targetView != null ? targetView.getViewRootImpl() : null; in SyncRtSurfaceTransactionApplier() 136 public static void create(final View targetView, in create() argument 138 if (targetView == null) { in create() 141 } else if (targetView.getViewRootImpl() != null) { in create() 143 callback.accept(new SyncRtSurfaceTransactionApplier(targetView)); in create() 146 targetView.addOnAttachStateChangeListener(new View.OnAttachStateChangeListener() { in create() 149 targetView.removeOnAttachStateChangeListener(this); in create() 150 callback.accept(new SyncRtSurfaceTransactionApplier(targetView)); in create()
|
H A D | NotificationTopLineView.java | 419 OverflowAdjuster adjust(View targetView, View targetDivider, int minimumWidth) { in adjust() argument 420 if (mOverflow <= 0 || targetView == null || targetView.getVisibility() == View.GONE) { in adjust() 423 final int oldWidth = targetView.getMeasuredWidth(); in adjust() 430 && mRegrowView != null && mRegrowView != targetView) { in adjust() 437 targetView.measure(childWidthSpec, mHeightSpec); in adjust() 441 mViewsToDisappear.add(targetView); in adjust() 442 mOverflow -= getHorizontalMargins(targetView); in adjust() 464 mRegrowView = targetView; in adjust()
|
/aosp12/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
H A D | SyncRtSurfaceTransactionApplierCompat.java | 65 public SyncRtSurfaceTransactionApplierCompat(View targetView) { in SyncRtSurfaceTransactionApplierCompat() argument 66 mTargetViewRootImpl = targetView != null ? targetView.getViewRootImpl() : null; in SyncRtSurfaceTransactionApplierCompat() 165 public static void create(final View targetView, in create() argument 167 if (targetView == null) { in create() 170 } else if (targetView.getViewRootImpl() != null) { in create() 172 callback.accept(new SyncRtSurfaceTransactionApplierCompat(targetView)); in create() 175 targetView.addOnAttachStateChangeListener(new View.OnAttachStateChangeListener() { in create() 178 targetView.removeOnAttachStateChangeListener(this); in create() 179 callback.accept(new SyncRtSurfaceTransactionApplierCompat(targetView)); in create()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/magnetictarget/ |
H A D | MagnetizedObject.kt | 572 val targetAreaWidth = target.targetView.width * flingToTargetWidthPercent 591 ViewConfiguration.get(associatedTargets[0].targetView.context).scaledTouchSlop 604 val targetView: View, 612 targetView.post { 613 targetView.getLocationOnScreen(tempLoc) 618 tempLoc[0] + targetView.width / 2f - targetView.translationX, 619 tempLoc[1] + targetView.height / 2f - targetView.translationY)
|
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/magnetictarget/ |
H A D | MagnetizedObjectTest.kt | 55 private lateinit var targetView: View 95 targetView = mock(View::class.java) 96 `when`(targetView.context).thenReturn(context) 100 `when`(targetView.width).thenReturn(targetSize) // width = 200 101 `when`(targetView.height).thenReturn(targetSize) // height = 200 108 }.`when`(targetView).getLocationOnScreen(ArgumentMatchers.any()) 112 }.`when`(targetView).post(ArgumentMatchers.any()) 113 `when`(targetView.context).thenReturn(context) 115 magneticTarget = MagnetizedObject.MagneticTarget(targetView, magneticFieldRadius)
|
/aosp12/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/ |
H A D | PagedSnapHelper.java | 54 @NonNull LayoutManager layoutManager, @NonNull View targetView) { in calculateDistanceToFinalSnap() argument 57 out[0] = distanceToTopMargin(layoutManager, targetView, in calculateDistanceToFinalSnap() 64 out[1] = distanceToTopMargin(layoutManager, targetView, in calculateDistanceToFinalSnap() 91 @NonNull View targetView, OrientationHelper helper) { in distanceToTopMargin() argument 92 final int childTop = helper.getDecoratedStart(targetView); in distanceToTopMargin()
|
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/ |
H A D | CarUiSnapHelper.java | 70 @NonNull LayoutManager layoutManager, @NonNull View targetView) { in calculateDistanceToFinalSnap() argument 79 out[0] = distanceToTopMargin(targetView, getHorizontalHelper(layoutManager)); in calculateDistanceToFinalSnap() 83 out[1] = distanceToTopMargin(targetView, getVerticalHelper(layoutManager)); in calculateDistanceToFinalSnap() 185 private static int distanceToTopMargin(@NonNull View targetView, OrientationHelper helper) { in distanceToTopMargin() argument 186 final int childTop = helper.getDecoratedStart(targetView); in distanceToTopMargin()
|
H A D | CarUiSmoothScroller.java | 78 protected void onTargetFound(View targetView, RecyclerView.State state, Action action) { in onTargetFound() argument 79 int dy = calculateDyToMakeVisible(targetView, SNAP_TO_START); in onTargetFound()
|
/aosp12/packages/apps/Car/libs/car-ui-lib/referencedesign/plugin/src/main/java/com/chassis/car/ui/plugin/recyclerview/ |
H A D | SnapHelper.java | 70 @NonNull LayoutManager layoutManager, @NonNull View targetView) { in calculateDistanceToFinalSnap() argument 79 out[0] = distanceToTopMargin(targetView, getHorizontalHelper(layoutManager)); in calculateDistanceToFinalSnap() 83 out[1] = distanceToTopMargin(targetView, getVerticalHelper(layoutManager)); in calculateDistanceToFinalSnap() 185 private static int distanceToTopMargin(@NonNull View targetView, OrientationHelper helper) { in distanceToTopMargin() argument 186 final int childTop = helper.getDecoratedStart(targetView); in distanceToTopMargin()
|
H A D | SmoothScroller.java | 79 protected void onTargetFound(View targetView, RecyclerView.State state, Action action) { in onTargetFound() argument 80 int dy = calculateDyToMakeVisible(targetView, SNAP_TO_START); in onTargetFound()
|
/aosp12/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/util/ |
H A D | PagedSmoothScroller.java | 61 protected void onTargetFound(View targetView, RecyclerView.State state, Action action) { in onTargetFound() argument 62 int dy = calculateDyToMakeVisible(targetView, SNAP_TO_START); in onTargetFound()
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | EditorAnimator.java | 152 public void scrollViewToTop(final View targetView) { in scrollViewToTop() argument 153 final ScrollView scrollView = getParentScrollView(targetView); in scrollViewToTop() 157 ScrollView scrollView = getParentScrollView(targetView); in scrollViewToTop() 158 scrollView.smoothScrollTo(0, offsetFromTopOfViewGroup(targetView, scrollView) in scrollViewToTop()
|
/aosp12/frameworks/base/core/java/android/widget/ |
H A D | ZoomButtonsController.java | 557 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()
|
H A D | AdapterView.java | 441 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
|
H A D | ExpandableListView.java | 1265 public ExpandableListContextMenuInfo(View targetView, long packedPosition, long id) { in ExpandableListContextMenuInfo() argument 1266 this.targetView = targetView; in ExpandableListContextMenuInfo() 1275 public View targetView; field in ExpandableListView.ExpandableListContextMenuInfo
|
/aosp12/frameworks/base/core/java/com/android/internal/widget/ |
H A D | LinearSmoothScroller.java | 111 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()
|
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/ |
H A D | FocusManager.java | 302 View targetView = view.focusSearch(searchDir); in findTargetPosition() local 306 if (targetView != null) { in findTargetPosition() 308 if (targetView.getParent() == mScope.view) { in findTargetPosition() 309 return mScope.view.getChildAdapterPosition(targetView); in findTargetPosition()
|
/aosp12/packages/apps/Settings/src/com/android/settings/notification/app/ |
H A D | NotificationSettings.java | 244 private static AnimatorSet buildAnimatorSet(@NonNull View targetView, in buildAnimatorSet() argument 251 ObjectAnimator.ofFloat(targetView, View.TRANSLATION_Y, startY, endY), in buildAnimatorSet() 252 ObjectAnimator.ofFloat(targetView, View.ALPHA, startAlpha, endAlpha)); in buildAnimatorSet()
|
/aosp12/packages/apps/Car/libs/car-ui-lib/car-rotary-lib/src/main/java/com/android/car/ui/ |
H A D | FocusAreaHelper.java | 562 View targetView = getSpecifiedShortcut(direction); in nudgeToShortcutView() local 563 if (targetView == null) { in nudgeToShortcutView() 567 if (targetView.isFocused()) { in nudgeToShortcutView() 572 return ViewUtils.requestFocus(targetView); in nudgeToShortcutView()
|
/aosp12/frameworks/base/core/java/android/view/inputmethod/ |
H A D | BaseInputConnection.java | 79 public BaseInputConnection(View targetView, boolean fullEditor) { in BaseInputConnection() argument 80 mIMM = (InputMethodManager)targetView.getContext().getSystemService( in BaseInputConnection() 82 mTargetView = targetView; in BaseInputConnection()
|
/aosp12/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/ |
H A D | WalletCardCarousel.java | 336 protected void onTargetFound(View targetView, State state, Action action) { 337 int[] snapDistances = calculateDistanceToFinalSnap(layoutManager, targetView);
|