Home
last modified time | relevance | path

Searched refs:View (Results 1 – 25 of 2326) sorted by relevance

12345678910>>...94

/frameworks/support/compat/java/android/support/v4/view/
DViewCompat.java47 import android.view.View;
73 @IntDef({View.FOCUS_LEFT, View.FOCUS_UP, View.FOCUS_RIGHT, View.FOCUS_DOWN,
74 View.FOCUS_FORWARD, View.FOCUS_BACKWARD})
80 @IntDef({View.FOCUS_LEFT, View.FOCUS_UP, View.FOCUS_RIGHT, View.FOCUS_DOWN})
86 @IntDef({View.FOCUS_FORWARD, View.FOCUS_BACKWARD})
183 @IntDef({View.LAYER_TYPE_NONE, View.LAYER_TYPE_SOFTWARE, View.LAYER_TYPE_HARDWARE})
435 private static WeakHashMap<View, String> sTransitionNameMap;
439 WeakHashMap<View, ViewPropertyAnimatorCompat> mViewPropertyAnimatorCompatMap = null;
444 public void setAccessibilityDelegate(View v, in setAccessibilityDelegate()
449 public boolean hasAccessibilityDelegate(View v) { in hasAccessibilityDelegate()
[all …]
DAccessibilityDelegateCompat.java24 import android.view.View;
25 import android.view.View.AccessibilityDelegate;
54 public boolean dispatchPopulateAccessibilityEvent(View host, in newAccessibilityDelegateBridge()
60 public void onInitializeAccessibilityEvent(View host, AccessibilityEvent event) { in newAccessibilityDelegateBridge()
66 View host, AccessibilityNodeInfo info) { in newAccessibilityDelegateBridge()
72 public void onPopulateAccessibilityEvent(View host, AccessibilityEvent event) { in newAccessibilityDelegateBridge()
77 public boolean onRequestSendAccessibilityEvent(ViewGroup host, View child, in newAccessibilityDelegateBridge()
83 public void sendAccessibilityEvent(View host, int eventType) { in newAccessibilityDelegateBridge()
88 public void sendAccessibilityEventUnchecked(View host, AccessibilityEvent event) { in newAccessibilityDelegateBridge()
95 AccessibilityDelegate delegate, View host) { in getAccessibilityNodeProvider()
[all …]
DViewParentCompat.java24 import android.view.View;
38 public boolean onStartNestedScroll(ViewParent parent, View child, View target, in onStartNestedScroll()
47 public void onNestedScrollAccepted(ViewParent parent, View child, View target, in onNestedScrollAccepted()
55 public void onStopNestedScroll(ViewParent parent, View target) { in onStopNestedScroll()
61 public void onNestedScroll(ViewParent parent, View target, int dxConsumed, int dyConsumed, in onNestedScroll()
69 public void onNestedPreScroll(ViewParent parent, View target, int dx, int dy, in onNestedPreScroll()
76 public boolean onNestedFling(ViewParent parent, View target, float velocityX, in onNestedFling()
85 public boolean onNestedPreFling(ViewParent parent, View target, float velocityX, in onNestedPreFling()
94 public void notifySubtreeAccessibilityStateChanged(ViewParent parent, View child, in notifySubtreeAccessibilityStateChanged()
95 View source, int changeType) { in notifySubtreeAccessibilityStateChanged()
[all …]
DViewPropertyAnimatorCompat.java22 import android.view.View;
29 private WeakReference<View> mView;
37 ViewPropertyAnimatorCompat(View view) { in ViewPropertyAnimatorCompat()
38 mView = new WeakReference<View>(view); in ViewPropertyAnimatorCompat()
50 public void onAnimationStart(View view) { in onAnimationStart()
55 view.setLayerType(View.LAYER_TYPE_HARDWARE, null); in onAnimationStart()
73 public void onAnimationEnd(View view) { in onAnimationEnd()
99 public void onAnimationCancel(View view) { in onAnimationCancel()
121 View view; in setDuration()
136 View view; in alpha()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DViewInvalidateTest.java51 private static final int INVAL_TEST_FLAG_MASK = View.PFLAG_DIRTY
52 | View.PFLAG_DIRTY_OPAQUE
53 | View.PFLAG_DRAWN
54 | View.PFLAG_DRAWING_CACHE_VALID
55 | View.PFLAG_INVALIDATED
56 | View.PFLAG_DRAW_ANIMATION;
63 mChild = new View(getContext()); in setup()
72 validateInvalFlags(mChild, View.PFLAG_INVALIDATED); in setup()
92 private View mChild;
94 private static void validateInvalFlags(View view, int... expectedFlagArray) { in validateInvalFlags()
[all …]
DFocusFinderTest.java41 assertIsNotCandidate(View.FOCUS_UP, in testBelowNotCandidateForDirectionUp()
54 assertDirectionIsCandidate(View.FOCUS_UP, src, dest); in testAboveShareEdgeEdgeOkForDirectionUp()
60 View.FOCUS_DOWN, in testCompletelyContainedNotCandidate()
69 View.FOCUS_DOWN, in testContinaedWithCommonBottomNotCandidate()
78 View.FOCUS_DOWN, in testOverlappingIsCandidateWhenBothEdgesAreInDirection()
87 View.FOCUS_DOWN, in testTopEdgeOfDestAtOrAboveTopOfSrcNotCandidateForDown()
92 View.FOCUS_DOWN, in testTopEdgeOfDestAtOrAboveTopOfSrcNotCandidateForDown()
102 assertBeamsOverlap(View.FOCUS_LEFT, rect, rect); in testSameRectBeamsOverlap()
103 assertBeamsOverlap(View.FOCUS_RIGHT, rect, rect); in testSameRectBeamsOverlap()
104 assertBeamsOverlap(View.FOCUS_UP, rect, rect); in testSameRectBeamsOverlap()
[all …]
DVisibility.java23 import android.view.View;
51 View.OnClickListener mVisibleListener = new View.OnClickListener() {
52 public void onClick(View v) {
53 mVictim.setVisibility(View.VISIBLE);
57 View.OnClickListener mInvisibleListener = new View.OnClickListener() {
58 public void onClick(View v) {
59 mVictim.setVisibility(View.INVISIBLE);
63 View.OnClickListener mGoneListener = new View.OnClickListener() {
64 public void onClick(View v) {
65 mVictim.setVisibility(View.GONE);
[all …]
DVisibilityCallback.java27 import android.view.View;
59 View.OnClickListener mVisibleListener = new View.OnClickListener() {
60 public void onClick(View v) {
61 mVictim.setVisibility(View.VISIBLE);
65 View.OnClickListener mInvisibleListener = new View.OnClickListener() {
66 public void onClick(View v) {
67 mVictim.setVisibility(View.INVISIBLE);
71 View.OnClickListener mGoneListener = new View.OnClickListener() {
72 public void onClick(View v) {
73 mVictim.setVisibility(View.GONE);
[all …]
/frameworks/base/core/java/android/view/
DViewParent.java55 public void requestTransparentRegion(View child); in requestTransparentRegion()
71 default void onDescendantInvalidated(@NonNull View child, @NonNull View target) { in onDescendantInvalidated()
87 public void invalidateChild(View child, Rect r); in invalidateChild()
130 public void requestChildFocus(View child, View focused); in requestChildFocus()
138 public void recomputeViewAttributes(View child); in recomputeViewAttributes()
145 public void clearChildFocus(View child); in clearChildFocus()
167 public boolean getChildVisibleRect(View child, Rect r, android.graphics.Point offset); in getChildVisibleRect()
175 public View focusSearch(View v, int direction); in focusSearch()
188 View keyboardNavigationClusterSearch(View currentCluster, int direction); in keyboardNavigationClusterSearch()
201 public void bringChildToFront(View child); in bringChildToFront()
[all …]
DFocusFinder.java60 ? v.findUserSetNextFocus(r, View.FOCUS_FORWARD) : null);
63 ? v.findUserSetNextKeyboardNavigationCluster(r, View.FOCUS_FORWARD) : null);
66 private final ArrayList<View> mTempList = new ArrayList<View>();
79 public final View findNextFocus(ViewGroup root, View focused, int direction) { in findNextFocus()
91 public View findNextFocusFromRect(ViewGroup root, Rect focusedRect, int direction) { in findNextFocusFromRect()
96 private View findNextFocus(ViewGroup root, View focused, Rect focusedRect, int direction) { in findNextFocus()
97 View next = null; in findNextFocus()
105 ArrayList<View> focusables = mTempList; in findNextFocus()
126 private ViewGroup getEffectiveRoot(ViewGroup root, View focused) { in getEffectiveRoot()
157 public View findNextKeyboardNavigationCluster( in findNextKeyboardNavigationCluster()
[all …]
DGhostView.java32 public class GhostView extends View {
33 private final View mView;
37 private GhostView(View view) { in GhostView()
42 mView.setTransitionVisibility(View.INVISIBLE); in GhostView()
68 int inverseVisibility = (visibility == View.VISIBLE) ? View.INVISIBLE : View.VISIBLE; in setVisibility()
77 mView.setTransitionVisibility(View.VISIBLE); in onDetachedFromWindow()
86 public static void calculateMatrix(View view, ViewGroup host, Matrix matrix) { in calculateMatrix()
94 public static GhostView addGhost(View view, ViewGroup viewGroup, Matrix matrix) { in addGhost()
103 View oldParent = (View) ghostView.getParent(); in addGhost()
123 ArrayList<View> tempViews = new ArrayList<View>(); in addGhost()
[all …]
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
DViewBindingAdapter.java26 import android.view.View;
27 import android.view.View.OnAttachStateChangeListener;
31 …@BindingMethod(type = View.class, attribute = "android:backgroundTint", method = "setBackgroundTin…
32 …@BindingMethod(type = View.class, attribute = "android:fadeScrollbars", method = "setScrollbarFadi…
33 …@BindingMethod(type = View.class, attribute = "android:getOutline", method = "setOutlineProvider"),
34 …@BindingMethod(type = View.class, attribute = "android:nextFocusForward", method = "setNextFocusFo…
35 …@BindingMethod(type = View.class, attribute = "android:nextFocusLeft", method = "setNextFocusLeftI…
36 …@BindingMethod(type = View.class, attribute = "android:nextFocusRight", method = "setNextFocusRigh…
37 … @BindingMethod(type = View.class, attribute = "android:nextFocusUp", method = "setNextFocusUpId"),
38 …@BindingMethod(type = View.class, attribute = "android:nextFocusDown", method = "setNextFocusDownI…
[all …]
/frameworks/support/transition/tests/src/android/support/transition/
DExplodeTest.java29 import android.view.View;
44 final View redSquare = rule.getActivity().findViewById(R.id.redSquare); in testExplode()
45 final View greenSquare = rule.getActivity().findViewById(R.id.greenSquare); in testExplode()
46 final View blueSquare = rule.getActivity().findViewById(R.id.blueSquare); in testExplode()
47 final View yellowSquare = rule.getActivity().findViewById(R.id.yellowSquare); in testExplode()
53 redSquare.setVisibility(View.INVISIBLE); in testExplode()
54 greenSquare.setVisibility(View.INVISIBLE); in testExplode()
55 blueSquare.setVisibility(View.INVISIBLE); in testExplode()
56 yellowSquare.setVisibility(View.INVISIBLE); in testExplode()
61 assertEquals(View.VISIBLE, redSquare.getVisibility()); in testExplode()
[all …]
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/
DListenerBindingObject.java29 import android.view.View;
60 public void onMovedToScrapHeap(View view) { } in onMovedToScrapHeap()
71 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { } in onItemClick()
73 public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) { in onItemLongClick()
77 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { } in onItemSelected()
97 public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, in onChildClick()
102 public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) { in onGroupClick()
162 public void onClick(View view) { } in onClick()
176 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) { in onApplyWindowInsets()
180 public void onCreateContextMenu(ContextMenu menu, View v, in onCreateContextMenu()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListViewHeight.java21 import android.view.View;
30 private View mButton1;
31 private View mButton2;
32 private View mButton3;
34 private View mOuterLayout;
59 mButton1.setOnClickListener(new View.OnClickListener() { in onCreate()
60 public void onClick(View v) { in onCreate()
69 mOuterLayout.setVisibility(View.VISIBLE); in onCreate()
75 mButton2.setOnClickListener(new View.OnClickListener() { in onCreate()
76 public void onClick(View v) { in onCreate()
[all …]
/frameworks/base/test-runner/src/android/test/
DViewAsserts.java21 import android.view.View;
44 static public void assertOnScreen(View origin, View view) { in assertOnScreen()
66 static public void assertOffScreenBelow(View origin, View view) { in assertOffScreenBelow()
86 static public void assertOffScreenAbove(View origin, View view) { in assertOffScreenAbove()
106 static public void assertHasScreenCoordinates(View origin, View view, int x, int y) { in assertHasScreenCoordinates()
124 static public void assertBaselineAligned(View first, View second) { in assertBaselineAligned()
142 static public void assertRightAligned(View first, View second) { in assertRightAligned()
161 static public void assertRightAligned(View first, View second, int margin) { in assertRightAligned()
179 static public void assertLeftAligned(View first, View second) { in assertLeftAligned()
198 static public void assertLeftAligned(View first, View second, int margin) { in assertLeftAligned()
[all …]
/frameworks/support/design/tests/src/android/support/design/testutils/
DTestUtilsMatchers.java38 import android.view.View;
52 public static Matcher<View> isNotNarrowerThan(final int minWidth) { in isNotNarrowerThan()
53 return new BoundedMatcher<View, View>(View.class) { in isNotNarrowerThan()
62 public boolean matchesSafely(final View view) { in isNotNarrowerThan()
77 public static Matcher<View> isNotWiderThan(final int maxWidth) { in isNotWiderThan()
78 return new BoundedMatcher<View, View>(View.class) { in isNotWiderThan()
87 public boolean matchesSafely(final View view) { in isNotWiderThan()
103 return new BoundedMatcher<View, TextView>(TextView.class) {
128 return new BoundedMatcher<View, TextView>(TextView.class) {
170 return new BoundedMatcher<View, TextView>(TextView.class) {
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DVerticalFocusSearchTest.java24 import android.view.View;
49 View findNextFocus(ViewGroup root, View focused, int direction); in findNextFocus()
55 public View findNextFocus(ViewGroup root, View focused, int direction) { in findNextFocus()
89 mFocusFinder.findNextFocus(mLayout, mTopWide, View.FOCUS_UP)); in testSearchFromTopButton()
92 mFocusFinder.findNextFocus(mLayout, mTopWide, View.FOCUS_LEFT)); in testSearchFromTopButton()
95 mFocusFinder.findNextFocus(mLayout, mTopWide, View.FOCUS_RIGHT)); in testSearchFromTopButton()
100 .findNextFocus(mLayout, mTopWide, View.FOCUS_DOWN)); in testSearchFromTopButton()
105 mFocusFinder.findNextFocus(mLayout, mMidSkinny1Left, View.FOCUS_LEFT)); in testSearchFromMidLeft()
109 mFocusFinder.findNextFocus(mLayout, mMidSkinny1Left, View.FOCUS_RIGHT)); in testSearchFromMidLeft()
113 mFocusFinder.findNextFocus(mLayout, mMidSkinny1Left, View.FOCUS_UP)); in testSearchFromMidLeft()
[all …]
DFocusAfterRemoval.java25 import android.view.View;
42 topLeftButton.setOnClickListener(new View.OnClickListener() { in onCreate()
44 public void onClick(View v) { in onCreate()
45 left.setVisibility(View.GONE); in onCreate()
52 bottomLeftButton.setOnClickListener(new View.OnClickListener() { in onCreate()
54 public void onClick(View v) { in onCreate()
55 left.setVisibility(View.INVISIBLE); in onCreate()
61 topRightButton.setOnClickListener(new View.OnClickListener() { in onCreate()
63 public void onClick(View v) { in onCreate()
64 topRightButton.setVisibility(View.GONE); in onCreate()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DCrossFadeHelper.java19 import android.view.View;
30 public static void fadeOut(final View view, final Runnable endRunnable) { in fadeOut()
42 view.setVisibility(View.INVISIBLE); in fadeOut()
50 public static void fadeOut(View view, float fadeOutAmount) { in fadeOut()
65 public static void fadeOut(View view, float fadeOutAmount, boolean remap) { in fadeOut()
68 view.setVisibility(View.INVISIBLE); in fadeOut()
69 } else if (view.getVisibility() == View.INVISIBLE) { in fadeOut()
70 view.setVisibility(View.VISIBLE); in fadeOut()
87 private static void updateLayerType(View view, float alpha) { in updateLayerType()
89 view.setLayerType(View.LAYER_TYPE_HARDWARE, null); in updateLayerType()
[all …]
/frameworks/support/transition/src/android/support/transition/
DViewUtils.java27 import android.view.View;
60 static final Property<View, Float> TRANSITION_ALPHA =
61 new Property<View, Float>(Float.class, "translationAlpha") {
64 public Float get(View view) {
69 public void set(View view, Float alpha) {
75 static final Property<View, Rect> CLIP_BOUNDS =
76 new Property<View, Rect>(Rect.class, "clipBounds") {
79 public Rect get(View view) {
84 public void set(View view, Rect clipBounds) {
93 static ViewOverlayImpl getOverlay(@NonNull View view) { in getOverlay()
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/test/
DNestedScrollingParent2Adapter.java23 import android.view.View;
28 public boolean onStartNestedScroll(@NonNull View child, @NonNull View target, in onStartNestedScroll()
34 public void onNestedScrollAccepted(@NonNull View child, @NonNull View target, in onNestedScrollAccepted()
39 public void onStopNestedScroll(@NonNull View target, @ViewCompat.NestedScrollType int type) { in onStopNestedScroll()
43 public void onNestedScroll(@NonNull View target, int dxConsumed, int dyConsumed, in onNestedScroll()
48 public void onNestedPreScroll(@NonNull View target, int dx, int dy, in onNestedPreScroll()
53 public boolean onStartNestedScroll(View child, View target, int nestedScrollAxes) { in onStartNestedScroll()
58 public void onNestedScrollAccepted(View child, View target, int axes) { in onNestedScrollAccepted()
63 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { in onNestedPreScroll()
68 public void onNestedScroll(View target, int dxConsumed, int dyConsumed, int dxUnconsumed, in onNestedScroll()
[all …]
/frameworks/support/core-ui/tests/java/android/support/v4/testutils/
DTestUtilsMatchers.java23 import android.view.View;
40 return new BoundedMatcher<View, View>(View.class) { in backgroundColor()
51 public boolean matchesSafely(final View view) { in backgroundColor()
80 public static Matcher<View> isOfClass(final Class<? extends View> clazz) { in isOfClass()
84 return new TypeSafeMatcher<View>() { in isOfClass()
91 public boolean matchesSafely(View view) { in isOfClass()
101 public static Matcher<View> startAlignedToParent() {
102 return new BoundedMatcher<View, View>(View.class) {
111 public boolean matchesSafely(final View view) {
147 public static Matcher<View> endAlignedToParent() {
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
DLLOfTwoFocusableInTouchMode.java23 import android.view.View;
27 private View mButton1;
28 private View mButton2;
29 private View mButton3;
49 mButton1.setOnClickListener(new View.OnClickListener() { in onCreate()
50 public void onClick(View v) { in onCreate()
55 mButton2.setOnClickListener(new View.OnClickListener() { in onCreate()
56 public void onClick(View v) { in onCreate()
61 mButton3.setOnClickListener(new View.OnClickListener() { in onCreate()
62 public void onClick(View v) { in onCreate()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardPinBasedInputView.java24 import android.view.View;
30 implements View.OnKeyListener, View.OnTouchListener {
33 private View mOkButton;
34 private View mDeleteButton;
35 private View mButton0;
36 private View mButton1;
37 private View mButton2;
38 private View mButton3;
39 private View mButton4;
40 private View mButton5;
[all …]

12345678910>>...94