/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewTest.java | 22 import android.view.View; 68 assertEquals(View.TEXT_DIRECTION_INHERIT, tv.getTextDirection()); in testTextDirectionDefault() 75 tv.setTextDirection(View.TEXT_DIRECTION_FIRST_STRONG); in testSetGetTextDirection() 76 assertEquals(View.TEXT_DIRECTION_FIRST_STRONG, tv.getTextDirection()); in testSetGetTextDirection() 78 tv.setTextDirection(View.TEXT_DIRECTION_ANY_RTL); in testSetGetTextDirection() 79 assertEquals(View.TEXT_DIRECTION_ANY_RTL, tv.getTextDirection()); in testSetGetTextDirection() 81 tv.setTextDirection(View.TEXT_DIRECTION_INHERIT); in testSetGetTextDirection() 82 assertEquals(View.TEXT_DIRECTION_INHERIT, tv.getTextDirection()); in testSetGetTextDirection() 84 tv.setTextDirection(View.TEXT_DIRECTION_LTR); in testSetGetTextDirection() 85 assertEquals(View.TEXT_DIRECTION_LTR, tv.getTextDirection()); in testSetGetTextDirection() [all …]
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | ViewCompat.java | 20 import android.view.View; 45 public boolean canScrollHorizontally(View v, int direction); in canScrollHorizontally() 46 public boolean canScrollVertically(View v, int direction); in canScrollVertically() 47 public int getOverScrollMode(View v); in getOverScrollMode() 48 public void setOverScrollMode(View v, int mode); in setOverScrollMode() 49 public void onInitializeAccessibilityEvent(View v, AccessibilityEvent event); in onInitializeAccessibilityEvent() 50 public void onPopulateAccessibilityEvent(View v, AccessibilityEvent event); in onPopulateAccessibilityEvent() 51 public void onInitializeAccessibilityNodeInfo(View v, AccessibilityNodeInfoCompat info); in onInitializeAccessibilityNodeInfo() 52 public void setAccessibilityDelegate(View v, AccessibilityDelegateCompat delegate); in setAccessibilityDelegate() 56 public boolean canScrollHorizontally(View v, int direction) { in canScrollHorizontally() [all …]
|
D | AccessibilityDelegateCompat.java | 21 import android.view.View; 33 public boolean dispatchPopulateAccessibilityEvent(Object delegate, View host, in dispatchPopulateAccessibilityEvent() 35 public void onInitializeAccessibilityEvent(Object delegate, View host, in onInitializeAccessibilityEvent() 37 public void onInitializeAccessibilityNodeInfo(Object delegate, View host, in onInitializeAccessibilityNodeInfo() 39 public void onPopulateAccessibilityEvent(Object delegate, View host, in onPopulateAccessibilityEvent() 41 public boolean onRequestSendAccessibilityEvent(Object delegate, ViewGroup host, View child, in onRequestSendAccessibilityEvent() 43 public void sendAccessibilityEvent(Object delegate, View host, int eventType); in sendAccessibilityEvent() 44 public void sendAccessibilityEventUnchecked(Object delegate, View host, in sendAccessibilityEventUnchecked() 57 public boolean dispatchPopulateAccessibilityEvent(Object delegate, View host, in dispatchPopulateAccessibilityEvent() 62 public void onInitializeAccessibilityEvent(Object delegate, View host, in onInitializeAccessibilityEvent() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | FocusFinderTest.java | 41 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 …]
|
D | Visibility.java | 23 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 …]
|
D | VisibilityCallback.java | 27 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 …]
|
D | VisibilityCallbackTest.java | 22 import android.view.View; 60 mVictim.setVisibility(View.INVISIBLE); in setUp() 77 assertEquals(View.INVISIBLE, mVictim.getVisibility()); in testSetUpConditions() 78 assertEquals(View.VISIBLE, mParent.getVisibility()); in testSetUpConditions() 84 mVictim.setVisibility(View.VISIBLE); in testDirect() 85 assertEquals(View.VISIBLE, mVictim.getLastChangedVisibility()); in testDirect() 88 mVictim.setVisibility(View.INVISIBLE); in testDirect() 89 assertEquals(View.INVISIBLE, mVictim.getLastChangedVisibility()); in testDirect() 92 mVictim.setVisibility(View.GONE); in testDirect() 93 assertEquals(View.GONE, mVictim.getLastChangedVisibility()); in testDirect() [all …]
|
/frameworks/base/core/java/android/view/ |
D | FocusFinder.java | 62 public final View findNextFocus(ViewGroup root, View focused, int direction) { in findNextFocus() 66 View userSetNextFocus = focused.findUserSetNextFocus(root, direction); in findNextFocus() 80 case View.FOCUS_RIGHT: in findNextFocus() 81 case View.FOCUS_DOWN: in findNextFocus() 82 case View.FOCUS_FORWARD: in findNextFocus() 88 case View.FOCUS_LEFT: in findNextFocus() 89 case View.FOCUS_UP: in findNextFocus() 90 case View.FOCUS_BACKWARD: in findNextFocus() 109 public View findNextFocusFromRect(ViewGroup root, Rect focusedRect, int direction) { in findNextFocusFromRect() 113 private View findNextFocus(ViewGroup root, View focused, Rect focusedRect, int direction) { in findNextFocus() [all …]
|
D | ViewParent.java | 53 public void requestTransparentRegion(View child); in requestTransparentRegion() 61 public void invalidateChild(View child, Rect r); in invalidateChild() 101 public void requestChildFocus(View child, View focused); in requestChildFocus() 109 public void recomputeViewAttributes(View child); in recomputeViewAttributes() 116 public void clearChildFocus(View child); in clearChildFocus() 118 public boolean getChildVisibleRect(View child, Rect r, android.graphics.Point offset); in getChildVisibleRect() 126 public View focusSearch(View v, int direction); in focusSearch() 133 public void bringChildToFront(View child); in bringChildToFront() 142 public void focusableViewAvailable(View v); in focusableViewAvailable() 155 public boolean showContextMenuForChild(View originalView); in showContextMenuForChild() [all …]
|
D | ViewGroup.java | 79 public abstract class ViewGroup extends View implements ViewParent, ViewManager { 89 protected ArrayList<View> mDisappearingChildren; 100 private View mFocused; 120 private View mCurrentDragView; 124 private HashSet<View> mDragNotifiedChildren; 343 private View[] mChildren; 363 private ArrayList<View> mTransitioningViews; 367 private ArrayList<View> mVisibilityChangingChildren; 405 mChildren = new View[ARRAY_INITIAL_CAPACITY]; in initViewGroup() 518 public void requestChildFocus(View child, View focused) { in requestChildFocus() [all …]
|
/frameworks/support/v4/ics/android/support/v4/view/ |
D | AccessibilityDelegateCompatIcs.java | 19 import android.view.View; 20 import android.view.View.AccessibilityDelegate; 31 public boolean dispatchPopulateAccessibilityEvent(View host, AccessibilityEvent event); in dispatchPopulateAccessibilityEvent() 32 public void onInitializeAccessibilityEvent(View host, AccessibilityEvent event); in onInitializeAccessibilityEvent() 33 public void onInitializeAccessibilityNodeInfo(View host, Object info); in onInitializeAccessibilityNodeInfo() 34 public void onPopulateAccessibilityEvent(View host, AccessibilityEvent event); in onPopulateAccessibilityEvent() 35 public boolean onRequestSendAccessibilityEvent(ViewGroup host, View child, in onRequestSendAccessibilityEvent() 37 public void sendAccessibilityEvent(View host, int eventType); in sendAccessibilityEvent() 38 public void sendAccessibilityEventUnchecked(View host, AccessibilityEvent event); in sendAccessibilityEventUnchecked() 48 public boolean dispatchPopulateAccessibilityEvent(View host, AccessibilityEvent event) { in newAccessibilityDelegateBridge() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListViewHeight.java | 21 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 …]
|
D | ListEmptyViewTest.java | 25 import android.view.View; 50 assertTrue("Empty view not shown", mListView.getVisibility() == View.GONE); in testPreconditions() 59 assertTrue("Empty view still shown", mActivity.getEmptyView().getVisibility() == View.GONE); in testZeroToOne() 60 assertTrue("List not shown", mActivity.getListView().getVisibility() == View.VISIBLE); in testZeroToOne() 69 assertTrue("Empty view still shown", mActivity.getEmptyView().getVisibility() == View.GONE); in testZeroToOneForwardBack() 70 assertTrue("List not shown", mActivity.getListView().getVisibility() == View.VISIBLE); in testZeroToOneForwardBack() 80 assertTrue("Empty view still shown", mActivity.getEmptyView().getVisibility() == View.GONE); in testZeroToOneForwardBack() 81 assertTrue("List not shown", mActivity.getListView().getVisibility() == View.VISIBLE); in testZeroToOneForwardBack() 95 mActivity.getEmptyView().getVisibility() == View.GONE); in testZeroToManyToZero() 96 assertTrue("List not shown", mActivity.getListView().getVisibility() == View.VISIBLE); in testZeroToManyToZero() [all …]
|
/frameworks/base/test-runner/src/android/test/ |
D | ViewAsserts.java | 21 import android.view.View; 36 static public void assertOnScreen(View origin, View view) { in assertOnScreen() 58 static public void assertOffScreenBelow(View origin, View view) { in assertOffScreenBelow() 78 static public void assertOffScreenAbove(View origin, View view) { in assertOffScreenAbove() 98 static public void assertHasScreenCoordinates(View origin, View view, int x, int y) { in assertHasScreenCoordinates() 116 static public void assertBaselineAligned(View first, View second) { in assertBaselineAligned() 134 static public void assertRightAligned(View first, View second) { in assertRightAligned() 153 static public void assertRightAligned(View first, View second, int margin) { in assertRightAligned() 171 static public void assertLeftAligned(View first, View second) { in assertLeftAligned() 190 static public void assertLeftAligned(View first, View second, int margin) { in assertLeftAligned() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NavigationBarView.java | 29 import android.view.View; 51 View mCurrentView = null; 52 View[] mRotatedViews = new View[4]; 60 public View getRecentsButton() { in getRecentsButton() 64 public View getMenuButton() { in getMenuButton() 68 public View getBackButton() { in getBackButton() 72 public View getHomeButton() { in getHomeButton() 92 View.OnTouchListener mLightsOutListener = new View.OnTouchListener() { 94 public boolean onTouch(View v, MotionEvent ev) { 119 final boolean disableHome = ((disabledFlags & View.STATUS_BAR_DISABLE_HOME) != 0); in setDisabledFlags() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | VerticalFocusSearchTest.java | 24 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 …]
|
D | HorizontalFocusSearchTest.java | 25 import android.view.View; 74 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_UP)); in testSearchFromLeftButton() 76 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_DOWN)); in testSearchFromLeftButton() 78 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_LEFT)); in testSearchFromLeftButton() 82 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_RIGHT)); in testSearchFromLeftButton() 87 mFocusFinder.findNextFocus(mLayout, mMidShort1Top, View.FOCUS_UP)); in TODO_testSearchFromMiddleLeftButton() 90 mFocusFinder.findNextFocus(mLayout, mMidShort1Top, View.FOCUS_DOWN)); in TODO_testSearchFromMiddleLeftButton() 93 mFocusFinder.findNextFocus(mLayout, mMidShort1Top, View.FOCUS_LEFT)); in TODO_testSearchFromMiddleLeftButton() 96 mFocusFinder.findNextFocus(mLayout, mMidShort1Top, View.FOCUS_RIGHT)); in TODO_testSearchFromMiddleLeftButton() 102 mFocusFinder.findNextFocus(mLayout, mMidShort2Bottom, View.FOCUS_UP)); in TODO_testSearchFromMiddleRightButton() [all …]
|
D | FocusAfterRemoval.java | 25 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/tablet/ |
D | NotificationPanel.java | 29 import android.view.View; 40 View.OnClickListener { 50 View mSettingsButton; 51 View mNotificationButton; 52 View mNotificationScroller; 55 View mSettingsView; 58 View mClearButton; 106 private View.OnClickListener mClearButtonListener = new View.OnClickListener() { 107 public void onClick(View v) { 112 public View getClearButton() { in getClearButton() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/ |
D | LLOfTwoFocusableInTouchMode.java | 23 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/systemui/statusbar/policy/ |
D | NotificationRowLayout.java | 31 import android.view.View; 55 HashMap<View, ValueAnimator> mAppearingViews = new HashMap<View, ValueAnimator>(); 56 HashMap<View, ValueAnimator> mDisappearingViews = new HashMap<View, ValueAnimator>(); 81 public void onChildViewAdded(View parent, View child) { in NotificationRowLayout() 85 public void onChildViewRemoved(View parent, View child) { in NotificationRowLayout() 115 public boolean canChildBeDismissed(View v) { in canChildBeDismissed() 116 final View veto = v.findViewById(R.id.veto); in canChildBeDismissed() 117 return (veto != null && veto.getVisibility() != View.GONE); in canChildBeDismissed() 120 public void onChildDismissed(View v) { in onChildDismissed() 121 final View veto = v.findViewById(R.id.veto); in onChildDismissed() [all …]
|
/frameworks/base/core/java/android/animation/ |
D | LayoutTransition.java | 19 import android.view.View; 186 private final HashMap<View, Animator> pendingAnimations = 187 new HashMap<View, Animator>(); 188 private final LinkedHashMap<View, Animator> currentChangingAnimations = 189 new LinkedHashMap<View, Animator>(); 190 private final LinkedHashMap<View, Animator> currentAppearingAnimations = 191 new LinkedHashMap<View, Animator>(); 192 private final LinkedHashMap<View, Animator> currentDisappearingAnimations = 193 new LinkedHashMap<View, Animator>(); 204 private final HashMap<View, View.OnLayoutChangeListener> layoutChangeListenerMap = [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
D | RecentsVerticalScrollView.java | 27 import android.view.View; 65 View old = null; in update() 68 old.setVisibility(View.VISIBLE); in update() 70 final View view = mAdapter.getView(i, old, mLinearLayout); in update() 79 public boolean onTouch(View v, MotionEvent event) { in update() 85 public void onClick(View v) { in update() 93 public void onClick(View v) { in update() 98 final View thumbnailView = view.findViewById(R.id.app_thumbnail); in update() 100 public boolean onLongClick(View v) { in update() 101 final View anchorView = view.findViewById(R.id.app_description); in update() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | TabHost.java | 32 import android.view.View; 59 private View mCurrentView = null; 131 public boolean onKey(View v, int keyCode, KeyEvent event) { in setup() 142 mTabContent.requestFocus(View.FOCUS_FORWARD); in setup() 152 mTabContent.requestFocus(View.FOCUS_FORWARD); in setup() 223 View tabIndicator = tabSpec.mIndicatorStrategy.createIndicatorView(); in addTab() 268 public View getCurrentTabView() { in getCurrentTabView() 275 public View getCurrentView() { in getCurrentView() 308 && (mCurrentView.findFocus().focusSearch(View.FOCUS_UP) == null)) { in dispatchKeyEvent() 404 View createTabContent(String tag); in createTabContent() [all …]
|
/frameworks/base/docs/html/guide/developing/debugging/ |
D | debugging-ui.jd | 17 <li><a href="#viewhierarchy">About the View Hierarchy window</a></li> 18 <li><a href="#indiView">Working with an individual View in Tree View</a></li> 19 <li><a href="#hvdebugging">Debugging with View Hierarchy</a></li> 20 <li><a href="#hvoptimize">Optimizing with View Hierarchy</a></li> 62 provides a visual representation of the layout's View hierarchy (the View Hierarchy window) 104 hierarchy using the View Hierarchy window, or look at a magnified image of the UI using 109 To learn how to use the View Hierarchy window, go to 110 <a href="#viewhierarchy">About the View Hierarchy window</a>. To learn how to use the 115 <h3 id="viewhierarchy">About the View Hierarchy window</h3> 117 The View Hierarchy window displays the View objects that form the UI of the [all …]
|