/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | CrossFadeHelper.java | 19 import android.view.View; 31 public static void fadeOut(final View view) { in fadeOut() argument 32 fadeOut(view, null); in fadeOut() 35 public static void fadeOut(final View view, final Runnable endRunnable) { in fadeOut() argument 36 fadeOut(view, ANIMATION_DURATION_LENGTH, 0, endRunnable); in fadeOut() 39 public static void fadeOut(final View view, long duration, int delay, in fadeOut() argument 41 view.animate().cancel(); in fadeOut() 42 view.animate() in fadeOut() 53 if (view.getVisibility() != View.GONE) { in fadeOut() 54 view.setVisibility(View.INVISIBLE); in fadeOut() [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ScrollCaptureInternal.java | 17 package com.android.internal.view; 25 import android.view.ScrollCaptureCallback; 26 import android.view.View; 27 import android.view.ViewGroup; 76 private static int detectScrollingType(View view) { in detectScrollingType() argument 78 if (!(view.canScrollVertically(DOWN) || view.canScrollVertically(UP))) { in detectScrollingType() 89 if (!(view instanceof ViewGroup)) { in detectScrollingType() 100 if (((ViewGroup) view).getChildCount() > 1) { in detectScrollingType() 107 if (((ViewGroup) view).getChildCount() < 1) { in detectScrollingType() 117 if (view.getScrollY() != 0) { in detectScrollingType() [all …]
|
D | ScrollViewCaptureHelper.java | 17 package com.android.internal.view; 23 import android.view.View; 24 import android.view.ViewGroup; 25 import android.view.ViewParent; 49 public boolean onAcceptSession(@NonNull ViewGroup view) { in onAcceptSession() argument 50 return view.isVisibleToUser() in onAcceptSession() 51 && (view.canScrollVertically(UP) || view.canScrollVertically(DOWN)); in onAcceptSession() 54 public void onPrepareForStart(@NonNull ViewGroup view, Rect scrollBounds) { in onPrepareForStart() argument 55 mStartScrollY = view.getScrollY(); in onPrepareForStart() 56 mOverScrollMode = view.getOverScrollMode(); in onPrepareForStart() [all …]
|
D | WebViewCaptureHelper.java | 17 package com.android.internal.view; 44 public boolean onAcceptSession(@NonNull WebView view) { in onAcceptSession() argument 45 return view.isVisibleToUser() in onAcceptSession() 46 && (view.getContentHeight() * view.getScale()) > view.getHeight(); in onAcceptSession() 50 public void onPrepareForStart(@NonNull WebView view, @NonNull Rect scrollBounds) { in onPrepareForStart() argument 51 mOriginScrollX = view.getScrollX(); in onPrepareForStart() 52 mOriginScrollY = view.getScrollY(); in onPrepareForStart() 57 public void onScrollRequested(@NonNull WebView view, @NonNull Rect scrollBounds, in onScrollRequested() argument 61 int scrollDelta = view.getScrollY() - mOriginScrollY; in onScrollRequested() 68 mWebViewBounds.set(0, 0, view.getWidth(), view.getHeight()); in onScrollRequested() [all …]
|
D | ScrollCaptureViewHelper.java | 17 package com.android.internal.view; 22 import android.view.View; 23 import android.view.ViewGroup; 73 boolean onAcceptSession(@NonNull V view); in onAcceptSession() argument 81 @NonNull default Rect onComputeScrollBounds(@NonNull V view) { in onComputeScrollBounds() argument 82 Rect bounds = new Rect(0, 0, view.getWidth(), view.getHeight()); in onComputeScrollBounds() 83 if (view instanceof ViewGroup && ((ViewGroup) view).getClipToPadding()) { in onComputeScrollBounds() 84 bounds.inset(view.getPaddingLeft(), view.getPaddingTop(), in onComputeScrollBounds() 85 view.getPaddingRight(), view.getPaddingBottom()); in onComputeScrollBounds() 99 void onPrepareForStart(@NonNull V view, @NonNull Rect scrollBounds); in onPrepareForStart() argument [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | CachingIconViewTest.java | 29 import android.view.LayoutInflater; 52 CachingIconView view = (CachingIconView) LayoutInflater.from(mContext).inflate( in invalidIcon_skipsLoadSuccessfully() local 54 view.setImageIcon(Icon.createWithResource(mContext, 0x85743222)); in invalidIcon_skipsLoadSuccessfully() 55 Drawable drawable = view.getDrawable(); in invalidIcon_skipsLoadSuccessfully() 61 CachingIconView view = (CachingIconView) LayoutInflater.from(mContext).inflate( in customDrawable_setImageIcon_skipsResizeSuccessfully() local 63 view.setImageIcon(Icon.createWithResource(mContext, R.drawable.custom_drawable)); in customDrawable_setImageIcon_skipsResizeSuccessfully() 64 Drawable drawable = view.getDrawable(); in customDrawable_setImageIcon_skipsResizeSuccessfully() 70 CachingIconView view = (CachingIconView) LayoutInflater.from(mContext).inflate( in customDrawable_setImageIconAsync_skipsResizeSuccessfully() local 72 view.setImageIconAsync(Icon.createWithResource(mContext, R.drawable.custom_drawable)).run(); in customDrawable_setImageIconAsync_skipsResizeSuccessfully() 73 Drawable drawable = view.getDrawable(); in customDrawable_setImageIconAsync_skipsResizeSuccessfully() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/shared/ui/view/ |
D | ModernStatusBarViewTest.kt | 17 package com.android.systemui.statusbar.pipeline.shared.ui.view 41 val view = ModernStatusBarView(context, null) in initView_hasCorrectSlot() constant 44 view.initView("slotName") { binding } in initView_hasCorrectSlot() 46 assertThat(view.slot).isEqualTo("slotName") in initView_hasCorrectSlot() 51 val view = createAndInitView() in getVisibleState_icon_returnsIcon() constant 53 view.setVisibleState(STATE_ICON, /* animate= */ false) in getVisibleState_icon_returnsIcon() 55 assertThat(view.visibleState).isEqualTo(STATE_ICON) in getVisibleState_icon_returnsIcon() 60 val view = createAndInitView() in getVisibleState_dot_returnsDot() constant 62 view.setVisibleState(STATE_DOT, /* animate= */ false) in getVisibleState_dot_returnsDot() 64 assertThat(view.visibleState).isEqualTo(STATE_DOT) in getVisibleState_dot_returnsDot() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | OrientationHelper.java | 20 import android.view.View; 84 public abstract int getDecoratedStart(View view); in getDecoratedStart() argument 96 public abstract int getDecoratedEnd(View view); in getDecoratedEnd() argument 112 public abstract int getTransformedEndWithDecoration(View view); in getTransformedEndWithDecoration() argument 128 public abstract int getTransformedStartWithDecoration(View view); in getTransformedStartWithDecoration() argument 138 public abstract int getDecoratedMeasurement(View view); in getDecoratedMeasurement() argument 148 public abstract int getDecoratedMeasurementInOther(View view); in getDecoratedMeasurementInOther() argument 192 public abstract void offsetChild(View view, int offset); in offsetChild() argument 273 public int getDecoratedMeasurement(View view) { in createHorizontalHelper() argument 275 view.getLayoutParams(); in createHorizontalHelper() [all …]
|
D | MessagingPropertyAnimator.java | 23 import android.view.View; 24 import android.view.ViewGroup; 25 import android.view.animation.Interpolator; 26 import android.view.animation.PathInterpolator; 43 view -> view.getId() == com.android.internal.R.id.notification_messaging; 69 private static boolean isFirstLayout(View view) { in isFirstLayout() argument 70 Boolean tag = (Boolean) view.getTag(TAG_FIRST_LAYOUT); in isFirstLayout() 77 public static void recycle(View view) { in recycle() argument 78 setFirstLayout(view, true /* first */); in recycle() 81 private static void setFirstLayout(View view, boolean first) { in setFirstLayout() argument [all …]
|
/frameworks/base/core/java/android/webkit/ |
D | WebViewClient.java | 24 import android.view.InputEvent; 25 import android.view.KeyEvent; 26 import android.view.ViewRootImpl; 57 public boolean shouldOverrideUrlLoading(WebView view, String url) { in shouldOverrideUrlLoading() argument 82 public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) { in shouldOverrideUrlLoading() argument 83 return shouldOverrideUrlLoading(view, request.getUrl().toString()); in shouldOverrideUrlLoading() 100 public void onPageStarted(WebView view, String url, Bitmap favicon) { in onPageStarted() argument 114 public void onPageFinished(WebView view, String url) { in onPageFinished() argument 124 public void onLoadResource(WebView view, String url) { in onLoadResource() argument 154 public void onPageCommitVisible(WebView view, String url) { in onPageCommitVisible() argument [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | KeyEventHandling.java | 20 import android.view.InputDevice; 21 import android.view.KeyEvent; 25 import static android.view.KeyEvent.KEYCODE_0; 26 import static android.view.KeyEvent.KEYCODE_1; 27 import static android.view.KeyEvent.KEYCODE_2; 28 import static android.view.KeyEvent.KEYCODE_3; 29 import static android.view.KeyEvent.KEYCODE_4; 30 import static android.view.KeyEvent.KEYCODE_5; 31 import static android.view.KeyEvent.KEYCODE_6; 32 import static android.view.KeyEvent.KEYCODE_7; [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/ |
D | KeyguardQuickAffordanceViewBinder.kt | 23 import android.view.View in <lambda>() 24 import android.view.ViewGroup in <lambda>() 28 import androidx.core.view.isInvisible in <lambda>() 29 import androidx.core.view.isVisible in <lambda>() 30 import androidx.core.view.updateLayoutParams in <lambda>() 37 import com.android.systemui.animation.view.LaunchableImageView in <lambda>() 74 view: LaunchableImageView, in <lambda>() 81 val button = view as ImageView in <lambda>() 82 val configurationBasedDimensions = MutableStateFlow(loadFromResources(view)) in <lambda>() 84 view.repeatWhenAttached { in <lambda>() [all …]
|
D | KeyguardBottomAreaViewBinder.kt | 24 import android.view.View in <lambda>() 25 import android.view.ViewGroup in <lambda>() 26 import android.view.ViewPropertyAnimator in <lambda>() 30 import androidx.core.view.isInvisible in <lambda>() 31 import androidx.core.view.isVisible in <lambda>() 32 import androidx.core.view.updateLayoutParams in <lambda>() 40 import com.android.systemui.animation.view.LaunchableLinearLayout in <lambda>() 108 view: ViewGroup, in <lambda>() 115 val ambientIndicationArea: View? = view.findViewById(R.id.ambient_indication_container) in <lambda>() 116 val startButton: ImageView = view.requireViewById(R.id.start_button) in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
D | ControlsAnimations.kt | 28 import android.view.View in <lambda>() 29 import android.view.ViewGroup in <lambda>() 30 import android.view.Window in <lambda>() 54 view: ViewGroup, in <lambda>() 65 view.setTransitionGroup(true) in <lambda>() 66 view.transitionAlpha = 0.0f in <lambda>() 70 translationY = view.context.resources.getDimensionPixelSize( in <lambda>() 82 enterTransition = enterWindowTransition(view.getId()) in <lambda>() 83 exitTransition = exitWindowTransition(view.getId()) in <lambda>() 84 reenterTransition = enterWindowTransition(view.getId()) in <lambda>() [all …]
|
/frameworks/base/core/java/android/view/ |
D | HandwritingInitiator.java | 17 package android.view; 26 import android.view.inputmethod.InputMethodManager; 250 public void onDelegateViewFocused(@NonNull View view) { in onDelegateViewFocused() argument 251 if (view == getConnectedView()) { in onDelegateViewFocused() 252 if (tryAcceptStylusHandwritingDelegation(view)) { in onDelegateViewFocused() 267 public void onInputConnectionCreated(@NonNull View view) { in onInputConnectionCreated() argument 268 if (!view.isAutoHandwritingEnabled()) { in onInputConnectionCreated() 274 if (connectedView == view) { in onInputConnectionCreated() 277 mConnectedView = new WeakReference<>(view); in onInputConnectionCreated() 281 if (view.isHandwritingDelegate() && tryAcceptStylusHandwritingDelegation(view)) { in onInputConnectionCreated() [all …]
|
D | ViewOutlineProvider.java | 17 package android.view; 35 public void getOutline(View view, Outline outline) { 36 Drawable background = view.getBackground(); 40 outline.setRect(0, 0, view.getWidth(), view.getHeight()); 54 public void getOutline(View view, Outline outline) { 55 outline.setRect(0, 0, view.getWidth(), view.getHeight()); 67 public void getOutline(View view, Outline outline) { 68 outline.setRect(view.getPaddingLeft(), 69 view.getPaddingTop(), 70 view.getWidth() - view.getPaddingRight(), [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/ui/view/ |
D | ModernStatusBarMobileViewTest.kt | 17 package com.android.systemui.statusbar.pipeline.mobile.ui.view 24 import android.view.View 99 val view = in setVisibleState_icon_iconShownDotHidden() constant 107 view.setVisibleState(StatusBarIconView.STATE_ICON, /* animate= */ false) in setVisibleState_icon_iconShownDotHidden() 109 ViewUtils.attachView(view) in setVisibleState_icon_iconShownDotHidden() 112 assertThat(view.getGroupView().visibility).isEqualTo(View.VISIBLE) in setVisibleState_icon_iconShownDotHidden() 113 assertThat(view.getDotView().visibility).isEqualTo(View.GONE) in setVisibleState_icon_iconShownDotHidden() 115 ViewUtils.detachView(view) in setVisibleState_icon_iconShownDotHidden() 120 val view = in setVisibleState_dot_iconHiddenDotShown() constant 127 view.setVisibleState(StatusBarIconView.STATE_DOT, /* animate= */ false) in setVisibleState_dot_iconHiddenDotShown() [all …]
|
/frameworks/base/core/java/com/android/internal/dynamicanimation/animation/ |
D | DynamicAnimation.java | 28 import android.view.View; 62 public void setValue(View view, float value) { 63 view.setTranslationX(value); 67 public Float get(View view) { 68 return view.getTranslationX(); 77 public void setValue(View view, float value) { 78 view.setTranslationY(value); 82 public Float get(View view) { 83 return view.getTranslationY(); 92 public void setValue(View view, float value) { [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/wifi/ui/view/ |
D | ModernStatusBarWifiViewTest.kt | 17 package com.android.systemui.statusbar.pipeline.wifi.ui.view 24 import android.view.View 25 import android.view.ViewGroup 120 val view = ModernStatusBarWifiView.constructAndBind(context, SLOT_NAME, viewModel) in setVisibleState_icon_iconShownDotHidden() constant 122 view.setVisibleState(STATE_ICON, /* animate= */ false) in setVisibleState_icon_iconShownDotHidden() 124 ViewUtils.attachView(view) in setVisibleState_icon_iconShownDotHidden() 127 assertThat(view.getIconGroupView().visibility).isEqualTo(View.VISIBLE) in setVisibleState_icon_iconShownDotHidden() 128 assertThat(view.getDotView().visibility).isEqualTo(View.GONE) in setVisibleState_icon_iconShownDotHidden() 130 ViewUtils.detachView(view) in setVisibleState_icon_iconShownDotHidden() 135 val view = ModernStatusBarWifiView.constructAndBind(context, SLOT_NAME, viewModel) in setVisibleState_dot_iconHiddenDotShown() constant [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/ |
D | NotificationPanelUnfoldAnimationControllerTest.kt | 20 import android.view.View 21 import android.view.ViewGroup 92 val view = View(context) in whenInKeyguardState_viewDoesNotMove() constant 93 whenever(parent.findViewById<View>(R.id.quick_settings_panel)).thenReturn(view) in whenInKeyguardState_viewDoesNotMove() 96 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() 112 val view = View(context) in whenInShadeState_viewDoesMove() constant 113 whenever(parent.findViewById<View>(R.id.quick_settings_panel)).thenReturn(view) in whenInShadeState_viewDoesMove() [all …]
|
/frameworks/base/core/java/android/transition/ |
D | Slide.java | 24 import android.view.Gravity; 25 import android.view.View; 26 import android.view.ViewGroup; 27 import android.view.animation.AccelerateInterpolator; 28 import android.view.animation.DecelerateInterpolator; 61 float getGoneX(ViewGroup sceneRoot, View view, float fraction); in getGoneX() argument 64 float getGoneY(ViewGroup sceneRoot, View view, float fraction); in getGoneY() argument 70 public float getGoneY(ViewGroup sceneRoot, View view, float fraction) { in getGoneY() argument 71 return view.getTranslationY(); in getGoneY() 78 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) { in getGoneX() argument [all …]
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/animation/ |
D | UnfoldMoveFromCenterAnimator.kt | 19 import android.view.Surface in <lambda>() 20 import android.view.Surface.Rotation in <lambda>() 21 import android.view.View in <lambda>() 22 import android.view.WindowManager in <lambda>() 78 animatedView.view.get()?.let { in updateViewPositions() 90 fun registerViewForAnimation(view: View) { in registerViewForAnimation() 91 val animatedView = createAnimatedView(view) in registerViewForAnimation() 112 view.get()?.let { view -> in AnimatedView() method 114 view = view, in AnimatedView() 123 view.get()?.alpha = alphaProvider.getAlpha(progress) in AnimatedView() [all …]
|
/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/ |
D | MyAutofillCallback.java | 16 package android.view.autofill; 18 import android.view.View; 19 import android.view.autofill.AutofillManager.AutofillCallback; 30 import static android.view.autofill.AutofillManager.AutofillCallback.EVENT_INPUT_HIDDEN; 31 import static android.view.autofill.AutofillManager.AutofillCallback.EVENT_INPUT_SHOWN; 32 import static android.view.autofill.AutofillManager.AutofillCallback.EVENT_INPUT_UNAVAILABLE; 51 public void onAutofillEvent(View view, int event) { in onAutofillEvent() argument 54 offered = mEvents.offer(new MyEvent(view, event), TIMEOUT_MS, TimeUnit.MILLISECONDS); in onAutofillEvent() 59 String error = "could not offer " + toString(view, event) + " in " + TIMEOUT_MS + "ms"; in onAutofillEvent() 68 public void expectEvent(@NonNull View view, int event) { in expectEvent() argument [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/animation/ |
D | UnfoldMoveFromCenterAnimatorTest.kt | 20 import android.view.Display 21 import android.view.Surface.ROTATION_0 22 import android.view.Surface.ROTATION_90 23 import android.view.View 24 import android.view.WindowManager 59 val view = createView(x = 20, width = 10, height = 10) in testRegisterViewOnTheLeftOfVerticalFold_halfProgress_viewTranslatedToTheRight() constant 60 animator.registerViewForAnimation(view) in testRegisterViewOnTheLeftOfVerticalFold_halfProgress_viewTranslatedToTheRight() 69 assertThat(view.translationX).isWithin(0.01f).of(1.0f) in testRegisterViewOnTheLeftOfVerticalFold_halfProgress_viewTranslatedToTheRight() 75 val view = createView(x = 20, width = 10, height = 10) in testRegisterViewOnTheLeftOfVerticalFold_zeroProgress_viewTranslatedToTheRight() constant 76 animator.registerViewForAnimation(view) in testRegisterViewOnTheLeftOfVerticalFold_zeroProgress_viewTranslatedToTheRight() [all …]
|
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/util/ |
D | LinkAccessibilityHelper.java | 24 import androidx.core.view.AccessibilityDelegateCompat; 25 import androidx.core.view.accessibility.AccessibilityNodeInfoCompat; 26 import androidx.core.view.accessibility.AccessibilityNodeProviderCompat; 32 import android.view.MotionEvent; 33 import android.view.View; 34 import android.view.ViewGroup; 35 import android.view.accessibility.AccessibilityEvent; 74 public LinkAccessibilityHelper(TextView view) { in LinkAccessibilityHelper() argument 80 : new PreOLinkAccessibilityHelper(view)); in LinkAccessibilityHelper() 149 private final TextView view; field in LinkAccessibilityHelper.PreOLinkAccessibilityHelper [all …]
|