Home
last modified time | relevance | path

Searched refs:view (Results 1 – 25 of 3280) sorted by relevance

12345678910>>...132

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DCrossFadeHelper.java19 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 view.setVisibility(View.INVISIBLE); in fadeOut()
56 if (view.hasOverlappingRendering()) { in fadeOut()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DOrientationHelper.java20 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 …]
DMessagingPropertyAnimator.java23 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/
DWebViewClient.java24 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/base/core/java/android/transition/
DSlide.java24 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 …]
DChangeTransform.java30 import android.view.GhostView;
31 import android.view.View;
32 import android.view.ViewGroup;
187 View view = transitionValues.view; in captureValues() local
188 if (view.getVisibility() == View.GONE) { in captureValues()
191 transitionValues.values.put(PROPNAME_PARENT, view.getParent()); in captureValues()
192 Transforms transforms = new Transforms(view); in captureValues()
194 Matrix matrix = view.getMatrix(); in captureValues()
203 ViewGroup parent = (ViewGroup) view.getParent(); in captureValues()
208 view.getTag(R.id.transitionTransform)); in captureValues()
[all …]
DChangeText.java25 import android.view.ViewGroup;
129 if (transitionValues.view instanceof TextView) { in captureValues()
130 TextView textview = (TextView) transitionValues.view; in captureValues()
158 !(startValues.view instanceof TextView) || !(endValues.view instanceof TextView)) { in createAnimator()
161 final TextView view = (TextView) endValues.view; in createAnimator() local
169 if (view instanceof EditText) { in createAnimator()
185 view.setText(startText); in createAnimator()
186 if (view instanceof EditText) { in createAnimator()
187 setSelection(((EditText) view), startSelectionStart, startSelectionEnd); in createAnimator()
197 if (startText.equals(view.getText())) { in createAnimator()
[all …]
DChangeBounds.java38 import android.view.View;
39 import android.view.ViewGroup;
117 public void set(View view, PointF bottomRight) {
118 int left = view.getLeft();
119 int top = view.getTop();
122 view.setLeftTopRightBottom(left, top, right, bottom);
126 public PointF get(View view) {
134 public void set(View view, PointF topLeft) {
137 int right = view.getRight();
138 int bottom = view.getBottom();
[all …]
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelper.java24 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 …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DViewState.java25 import android.view.View;
26 import android.view.animation.Interpolator;
140 public void initFrom(View view) { in initFrom() argument
141 alpha = view.getAlpha(); in initFrom()
142 xTranslation = view.getTranslationX(); in initFrom()
143 yTranslation = view.getTranslationY(); in initFrom()
144 zTranslation = view.getTranslationZ(); in initFrom()
145 gone = view.getVisibility() == View.GONE; in initFrom()
146 hidden = view.getVisibility() == View.INVISIBLE; in initFrom()
147 scaleX = view.getScaleX(); in initFrom()
[all …]
/frameworks/base/core/java/android/view/
DViewOutlineProvider.java17 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 …]
DViewDebug.java17 package android.view;
410 public static void trace(View view, RecyclerTraceType type, int... parameters) { in trace() argument
418 public static void startRecyclerTracing(String prefix, View view) { in startRecyclerTracing() argument
434 public static void trace(View view, HierarchyTraceType type) { in trace() argument
442 public static void startHierarchyTracing(String prefix, View view) { in startHierarchyTracing() argument
453 static void dispatchCommand(View view, String command, String parameters, in dispatchCommand() argument
457 view = view.getRootView(); in dispatchCommand()
460 dump(view, false, true, clientStream); in dispatchCommand()
462 dumpTheme(view, clientStream); in dispatchCommand()
464 captureLayers(view, new DataOutputStream(clientStream)); in dispatchCommand()
[all …]
DViewStub.java17 package android.view;
148 @android.view.RemotableViewMethod(asyncImpl = "setInflatedIdAsync")
188 @android.view.RemotableViewMethod(asyncImpl = "setLayoutResourceAsync")
238 @android.view.RemotableViewMethod(asyncImpl = "setVisibilityAsync")
241 View view = mInflatedViewRef.get(); in setVisibility() local
242 if (view != null) { in setVisibility()
243 view.setVisibility(visibility); in setVisibility()
272 final View view = factory.inflate(mLayoutResource, parent, false); in inflateViewNoAdd() local
275 view.setId(mInflatedId); in inflateViewNoAdd()
277 return view; in inflateViewNoAdd()
[all …]
/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/
DMyAutofillCallback.java16 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/src/com/android/systemui/statusbar/notification/
DPropertyAnimator.java24 import android.view.View;
25 import android.view.animation.Interpolator;
37 public static <T extends View> void setProperty(final T view, in setProperty() argument
41 ValueAnimator previousAnimator = ViewState.getChildTag(view, animatorTag); in setProperty()
43 startAnimation(view, animatableProperty, newEndValue, properties); in setProperty()
46 animatableProperty.getProperty().set(view, newEndValue); in setProperty()
50 public static <T extends View> void startAnimation(final T view, in startAnimation() argument
56 Float previousStartValue = ViewState.getChildTag(view, animationStartTag); in startAnimation()
57 Float previousEndValue = ViewState.getChildTag(view, animationEndTag); in startAnimation()
62 ValueAnimator previousAnimator = ViewState.getChildTag(view, animatorTag); in startAnimation()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java32 import com.android.internal.view.menu.ActionMenuItemView;
33 import com.android.internal.view.menu.BridgeMenuItemImpl;
34 import com.android.internal.view.menu.IconMenuItemView;
35 import com.android.internal.view.menu.ListMenuItemView;
36 import com.android.internal.view.menu.MenuItemImpl;
37 import com.android.internal.view.menu.MenuView;
60 import android.view.AttachInfo_Accessor;
61 import android.view.BridgeInflater;
62 import android.view.Choreographer_Delegate;
63 import android.view.View;
[all …]
/frameworks/base/services/core/java/com/android/server/policy/
DWindowManagerPolicy.java19 import static android.view.WindowManager.LayoutParams.FIRST_APPLICATION_WINDOW;
20 import static android.view.WindowManager.LayoutParams.LAST_APPLICATION_WINDOW;
21 import static android.view.WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY;
22 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_ABOVE_SUB_PANEL;
23 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_ATTACHED_DIALOG;
24 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA;
25 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA_OVERLAY;
26 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY;
27 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_PANEL;
28 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_SUB_PANEL;
[all …]
/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchUIUtilImpl.java20 import android.view.View;
31 public void onDraw(Canvas c, RecyclerView recyclerView, View view, in onDraw() argument
34 Object originalElevation = view.getTag( in onDraw()
37 originalElevation = view.getElevation(); in onDraw()
38 float newElevation = 1f + findMaxElevation(recyclerView, view); in onDraw()
39 view.setElevation(newElevation); in onDraw()
40 view.setTag(R.id.item_touch_helper_previous_elevation, in onDraw()
44 view.setTranslationX(dX); in onDraw()
45 view.setTranslationY(dY); in onDraw()
65 public void clearView(View view) { in clearView() argument
[all …]
/frameworks/base/core/tests/coretests/src/android/app/assist/
DAssistStructureTest.java19 import static android.view.View.AUTOFILL_TYPE_TEXT;
20 import static android.view.View.IMPORTANT_FOR_AUTOFILL_AUTO;
21 import static android.view.View.IMPORTANT_FOR_AUTOFILL_YES;
31 import android.view.autofill.AutofillId;
223 EditText view = new EditText(mContext); in newSmallView() local
224 view.setText("I AM GROOT"); in newSmallView()
225 view.setMinEms(MIN_TEXT_EMS); in newSmallView()
226 view.setMaxEms(MAX_TEXT_EMS); in newSmallView()
227 view.setAutofillId(AUTOFILL_ID); in newSmallView()
228 view.setAutofillHints(AUTOFILL_HINTS); in newSmallView()
[all …]
/frameworks/base/core/java/android/app/
DActivityTransitionCoordinator.java32 import android.view.GhostView;
33 import android.view.View;
34 import android.view.ViewGroup;
35 import android.view.ViewGroupOverlay;
36 import android.view.ViewParent;
37 import android.view.ViewRootImpl;
38 import android.view.ViewTreeObserver;
39 import android.view.Window;
42 import com.android.internal.view.OneShotPreDrawListener;
263 final View view = sharedElements.valueAt(i); in setSharedElements() local
[all …]
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/
DIllustrationVideoViewTest.java17 package com.android.setupwizardlib.view;
27 import android.view.View;
51 private IllustrationVideoView view; field in IllustrationVideoViewTest
70 view.start(); in testPausedWhenWindowFocusLost()
72 assertThat(view.mMediaPlayer).isNotNull(); in testPausedWhenWindowFocusLost()
73 assertThat(view.surface).isNotNull(); in testPausedWhenWindowFocusLost()
75 view.onWindowFocusChanged(false); in testPausedWhenWindowFocusLost()
84 view.onWindowFocusChanged(true); in testStartedWhenWindowFocusRegained()
91 view.start(); in testSurfaceReleasedWhenTextureDestroyed()
93 assertThat(view.mMediaPlayer).isNotNull(); in testSurfaceReleasedWhenTextureDestroyed()
[all …]
/frameworks/opt/chips/src/com/android/ex/chips/
DDropdownChipLayouter.java16 import androidx.core.view.MarginLayoutParamsCompat;
22 import android.view.LayoutInflater;
23 import android.view.View;
24 import android.view.View.OnClickListener;
25 import android.view.ViewGroup;
26 import android.view.ViewGroup.MarginLayoutParams;
225 protected void bindTextToView(CharSequence text, TextView view) { in bindTextToView() argument
226 if (view == null) { in bindTextToView()
231 view.setText(text); in bindTextToView()
232 view.setVisibility(View.VISIBLE); in bindTextToView()
[all …]
/frameworks/opt/chips/tests/src/com/android/ex/chips/
DChipsTest.java140 MockRecipientEditTextView view = new MockRecipientEditTextView(getContext()); in createViewForTesting() local
141 view.setAdapter(new TestBaseRecipientAdapter(getContext())); in createViewForTesting()
142 return view; in createViewForTesting()
146 RecipientEditTextView view = createViewForTesting(); in testCreateDisplayText() local
149 String testAddress = view.createAddressText(entry); in testCreateDisplayText()
150 String testDisplay = view.createChipDisplayText(entry); in testCreateDisplayText()
157 testAddress = view.createAddressText(alreadyFormatted); in testCreateDisplayText()
158 testDisplay = view.createChipDisplayText(alreadyFormatted); in testCreateDisplayText()
165 testAddress = view.createAddressText(alreadyFormattedNoSpace); in testCreateDisplayText()
171 testAddress = view.createAddressText(alreadyNamed); in testCreateDisplayText()
[all …]
/frameworks/layoutlib/bridge/src/android/view/
DAttachInfo_Accessor.java17 package android.view;
21 import android.view.View.AttachInfo;
30 public static void setAttachInfo(View view) { in setAttachInfo() argument
31 Context context = view.getContext(); in setAttachInfo()
42 view.dispatchAttachedToWindow(info, 0); in setAttachInfo()
45 public static void dispatchOnPreDraw(View view) { in dispatchOnPreDraw() argument
46 view.mAttachInfo.mTreeObserver.dispatchOnPreDraw(); in dispatchOnPreDraw()
49 public static void detachFromWindow(View view) { in detachFromWindow() argument
50 if (view != null) { in detachFromWindow()
51 view.dispatchDetachedFromWindow(); in detachFromWindow()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DViewGroupChildrenTest.java17 package android.view;
60 View view = createView("1"); in testAddChild() local
61 mGroup.addView(view); in testAddChild()
65 ViewAsserts.assertGroupContains(mGroup, view); in testAddChild()
73 View view = createView(String.valueOf(i + 1)); in testAddChildAtFront() local
74 mGroup.addView(view); in testAddChildAtFront()
77 View view = createView("X"); in testAddChildAtFront() local
78 mGroup.addView(view, 0); in testAddChildAtFront()
82 ViewAsserts.assertGroupContains(mGroup, view); in testAddChildAtFront()
83 assertSame(view, mGroup.getChildAt(0)); in testAddChildAtFront()
[all …]

12345678910>>...132