/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewInvalidateTest.java | 57 private static final int INVAL_TEST_FLAG_MASK = View.PFLAG_DIRTY 58 | View.PFLAG_DRAWN 59 | View.PFLAG_DRAWING_CACHE_VALID 60 | View.PFLAG_INVALIDATED 61 | View.PFLAG_DRAW_ANIMATION; 68 mChild = new View(getContext()); in setup() 77 validateInvalFlags(mChild, View.PFLAG_INVALIDATED); in setup() 97 private View mChild; 99 private static void validateInvalFlags(View view, int... expectedFlagArray) { in validateInvalFlags() 110 private static ViewRootImpl getViewRoot(View view) { in getViewRoot() [all …]
|
D | FocusFinderTest.java | 42 assertIsNotCandidate(View.FOCUS_UP, in testBelowNotCandidateForDirectionUp() 55 assertDirectionIsCandidate(View.FOCUS_UP, src, dest); in testAboveShareEdgeEdgeOkForDirectionUp() 61 View.FOCUS_DOWN, in testCompletelyContainedNotCandidate() 70 View.FOCUS_DOWN, in testContinaedWithCommonBottomNotCandidate() 79 View.FOCUS_DOWN, in testOverlappingIsCandidateWhenBothEdgesAreInDirection() 88 View.FOCUS_DOWN, in testTopEdgeOfDestAtOrAboveTopOfSrcNotCandidateForDown() 93 View.FOCUS_DOWN, in testTopEdgeOfDestAtOrAboveTopOfSrcNotCandidateForDown() 103 assertBeamsOverlap(View.FOCUS_LEFT, rect, rect); in testSameRectBeamsOverlap() 104 assertBeamsOverlap(View.FOCUS_RIGHT, rect, rect); in testSameRectBeamsOverlap() 105 assertBeamsOverlap(View.FOCUS_UP, rect, rect); in testSameRectBeamsOverlap() [all …]
|
D | Visibility.java | 50 View.OnClickListener mVisibleListener = new View.OnClickListener() { 51 public void onClick(View v) { 52 mVictim.setVisibility(View.VISIBLE); 56 View.OnClickListener mInvisibleListener = new View.OnClickListener() { 57 public void onClick(View v) { 58 mVictim.setVisibility(View.INVISIBLE); 62 View.OnClickListener mGoneListener = new View.OnClickListener() { 63 public void onClick(View v) { 64 mVictim.setVisibility(View.GONE); 68 private View mVictim;
|
D | VisibilityCallback.java | 58 View.OnClickListener mVisibleListener = new View.OnClickListener() { 59 public void onClick(View v) { 60 mVictim.setVisibility(View.VISIBLE); 64 View.OnClickListener mInvisibleListener = new View.OnClickListener() { 65 public void onClick(View v) { 66 mVictim.setVisibility(View.INVISIBLE); 70 View.OnClickListener mGoneListener = new View.OnClickListener() { 71 public void onClick(View v) { 72 mVictim.setVisibility(View.GONE); 77 private View mLastVisChangedView; [all …]
|
/frameworks/base/core/java/android/view/ |
D | ViewParent.java | 56 public void requestTransparentRegion(View child); in requestTransparentRegion() 72 default void onDescendantInvalidated(@NonNull View child, @NonNull View target) { in onDescendantInvalidated() 88 public void invalidateChild(View child, Rect r); in invalidateChild() 131 public void requestChildFocus(View child, View focused); in requestChildFocus() 139 public void recomputeViewAttributes(View child); in recomputeViewAttributes() 146 public void clearChildFocus(View child); in clearChildFocus() 168 public boolean getChildVisibleRect(View child, Rect r, android.graphics.Point offset); in getChildVisibleRect() 176 public View focusSearch(View v, int direction); in focusSearch() 189 View keyboardNavigationClusterSearch(View currentCluster, int direction); in keyboardNavigationClusterSearch() 202 public void bringChildToFront(View child); in bringChildToFront() [all …]
|
D | FocusFinder.java | 60 ? 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 …]
|
D | GhostView.java | 36 public class GhostView extends View { 37 private final View mView; 41 private GhostView(View view) { in GhostView() 46 mView.setTransitionVisibility(View.INVISIBLE); in GhostView() 72 int inverseVisibility = (visibility == View.VISIBLE) ? View.INVISIBLE : View.VISIBLE; in setVisibility() 81 mView.setTransitionVisibility(View.VISIBLE); in onDetachedFromWindow() 90 public static void calculateMatrix(View view, ViewGroup host, Matrix matrix) { in calculateMatrix() 99 public static GhostView addGhost(View view, ViewGroup viewGroup, Matrix matrix) { in addGhost() 108 View oldParent = (View) ghostView.getParent(); in addGhost() 128 ArrayList<View> tempViews = new ArrayList<View>(); in addGhost() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
D | FindViewByIdTest.java | 24 import android.view.View; 54 View child1 = new View(getContext()); in testFindViewById() 55 View child2 = new View(getContext()); in testFindViewById() 56 child1.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES); in testFindViewById() 57 child2.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES); in testFindViewById() 61 View result = AccessibilityNodeIdManager.getInstance().findView( in testFindViewById() 71 View child1 = new View(getContext()); in testFindViewByIdReturnNullIfRemovedFromHierarchy() 72 View child2 = new View(getContext()); in testFindViewByIdReturnNullIfRemovedFromHierarchy() 75 child1.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES); in testFindViewByIdReturnNullIfRemovedFromHierarchy() 76 child2.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES); in testFindViewByIdReturnNullIfRemovedFromHierarchy() [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 …]
|
/frameworks/base/test-runner/src/android/test/ |
D | ViewAsserts.java | 21 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/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | CrossFadeHelper.java | 19 import android.view.View; 31 public static void fadeOut(final View view, final Runnable endRunnable) { in fadeOut() 35 public static void fadeOut(final View view, long duration, int delay, in fadeOut() 49 view.setVisibility(View.INVISIBLE); in fadeOut() 57 public static void fadeOut(View view, float fadeOutAmount) { in fadeOut() 72 public static void fadeOut(View view, float fadeOutAmount, boolean remap) { in fadeOut() 75 view.setVisibility(View.INVISIBLE); in fadeOut() 76 } else if (view.getVisibility() == View.INVISIBLE) { in fadeOut() 77 view.setVisibility(View.VISIBLE); in fadeOut() 94 private static void updateLayerType(View view, float alpha) { in updateLayerType() [all …]
|
D | StatusBarWifiView.java | 31 import android.view.View; 54 private View mInoutContainer; 55 private View mSignalSpacer; 56 private View mAirplaneSpacer; 124 mWifiGroup.setVisibility(View.VISIBLE); in setVisibleState() 125 mDotView.setVisibility(View.GONE); in setVisibleState() 128 mWifiGroup.setVisibility(View.GONE); in setVisibleState() 129 mDotView.setVisibility(View.VISIBLE); in setVisibleState() 133 mWifiGroup.setVisibility(View.GONE); in setVisibleState() 134 mDotView.setVisibility(View.GONE); in setVisibleState() [all …]
|
D | StatusBarMobileView.java | 32 import android.view.View; 55 private View mInoutContainer; 59 private View mMobileRoamingSpace; 132 requestLayout = getVisibility() != View.GONE; in applyMobileState() 133 setVisibility(View.GONE); in applyMobileState() 151 mMobileGroup.setVisibility(View.GONE); in initViewState() 153 mMobileGroup.setVisibility(View.VISIBLE); in initViewState() 159 mMobileType.setVisibility(View.VISIBLE); in initViewState() 161 mMobileType.setVisibility(View.GONE); in initViewState() 164 mMobileRoaming.setVisibility(mState.roaming ? View.VISIBLE : View.GONE); in initViewState() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | VerticalFocusSearchTest.java | 21 import android.view.View; 50 View findNextFocus(ViewGroup root, View focused, int direction); in findNextFocus() 56 public View findNextFocus(ViewGroup root, View focused, int direction) { in findNextFocus() 90 mFocusFinder.findNextFocus(mLayout, mTopWide, View.FOCUS_UP)); in testSearchFromTopButton() 93 mFocusFinder.findNextFocus(mLayout, mTopWide, View.FOCUS_LEFT)); in testSearchFromTopButton() 96 mFocusFinder.findNextFocus(mLayout, mTopWide, View.FOCUS_RIGHT)); in testSearchFromTopButton() 101 .findNextFocus(mLayout, mTopWide, View.FOCUS_DOWN)); in testSearchFromTopButton() 106 mFocusFinder.findNextFocus(mLayout, mMidSkinny1Left, View.FOCUS_LEFT)); in testSearchFromMidLeft() 110 mFocusFinder.findNextFocus(mLayout, mMidSkinny1Left, View.FOCUS_RIGHT)); in testSearchFromMidLeft() 114 mFocusFinder.findNextFocus(mLayout, mMidSkinny1Left, View.FOCUS_UP)); in testSearchFromMidLeft() [all …]
|
D | FocusAfterRemoval.java | 21 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 …]
|
D | HorizontalFocusSearchTest.java | 23 import android.view.View; 75 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_UP)); in testSearchFromLeftButton() 77 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_DOWN)); in testSearchFromLeftButton() 79 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_LEFT)); in testSearchFromLeftButton() 83 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_RIGHT)); in testSearchFromLeftButton() 88 mFocusFinder.findNextFocus(mLayout, mMidShort1Top, View.FOCUS_UP)); in TODO_testSearchFromMiddleLeftButton() 91 mFocusFinder.findNextFocus(mLayout, mMidShort1Top, View.FOCUS_DOWN)); in TODO_testSearchFromMiddleLeftButton() 94 mFocusFinder.findNextFocus(mLayout, mMidShort1Top, View.FOCUS_LEFT)); in TODO_testSearchFromMiddleLeftButton() 97 mFocusFinder.findNextFocus(mLayout, mMidShort1Top, View.FOCUS_RIGHT)); in TODO_testSearchFromMiddleLeftButton() 103 mFocusFinder.findNextFocus(mLayout, mMidShort2Bottom, View.FOCUS_UP)); in TODO_testSearchFromMiddleRightButton() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | MessagingPropertyAnimator.java | 23 import android.view.View; 33 public class MessagingPropertyAnimator implements View.OnLayoutChangeListener { 44 private static final IntProperty<View> TOP = 45 new IntProperty<View>("top") { 47 public void setValue(View object, int value) { 52 public Integer get(View object) { 58 public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, in onLayoutChange() 69 private static boolean isFirstLayout(View view) { in isFirstLayout() 77 public static void recycle(View view) { in recycle() 81 private static void setFirstLayout(View view, boolean first) { in setFirstLayout() [all …]
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/television/ |
D | UninstallAppProgressFragment.java | 26 import android.view.View; 34 public class UninstallAppProgressFragment extends Fragment implements View.OnClickListener, 43 public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, in onCreateView() 45 final View root = inflater.inflate(R.layout.uninstall_progress, container, false); in onCreateView() 47 View snippetView = root.findViewById(R.id.app_snippet); in onCreateView() 52 mDeviceManagerButton.setVisibility(View.GONE); in onCreateView() 53 mDeviceManagerButton.setOnClickListener(new View.OnClickListener() { in onCreateView() 55 public void onClick(View v) { in onCreateView() 64 mUsersButton.setVisibility(View.GONE); in onCreateView() 65 mUsersButton.setOnClickListener(new View.OnClickListener() { in onCreateView() [all …]
|
/frameworks/base/cmds/statsd/tools/dogfood/src/com/android/statsd/dogfood/ |
D | MainActivity.java | 29 import android.view.View; 54 new View.OnClickListener() { in onCreate() 56 public void onClick(View view) { in onCreate() 62 new View.OnClickListener() { in onCreate() 64 public void onClick(View view) { in onCreate() 70 new View.OnClickListener() { in onCreate() 72 public void onClick(View view) { in onCreate() 78 new View.OnClickListener() { in onCreate() 80 public void onClick(View view) { in onCreate() 86 new View.OnClickListener() { in onCreate() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/ |
D | LLOfTwoFocusableInTouchMode.java | 21 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/egg/ |
D | MLandActivity.java | 21 import android.view.View; 34 final View welcome = findViewById(R.id.welcome); in onCreate() 44 final View minus = findViewById(R.id.player_minus_button); in updateSplashPlayers() 45 final View plus = findViewById(R.id.player_plus_button); in updateSplashPlayers() 47 minus.setVisibility(View.INVISIBLE); in updateSplashPlayers() 48 plus.setVisibility(View.VISIBLE); in updateSplashPlayers() 51 minus.setVisibility(View.VISIBLE); in updateSplashPlayers() 52 plus.setVisibility(View.INVISIBLE); in updateSplashPlayers() 55 minus.setVisibility(View.VISIBLE); in updateSplashPlayers() 56 plus.setVisibility(View.VISIBLE); in updateSplashPlayers() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/ |
D | CrossFadeDarkController.java | 18 import android.view.View; 25 private final View mFadeInView; 26 private final View mFadeOutView; 34 CrossFadeDarkController(View fadeInView, View fadeOutView) { in CrossFadeDarkController() 47 mFadeInView.setVisibility(View.GONE); in setDarkAmount() 49 if (mFadeInView.getVisibility() == View.GONE) { in setDarkAmount() 50 mFadeInView.setVisibility(View.VISIBLE); in setDarkAmount() 55 mFadeOutView.setVisibility(View.GONE); in setDarkAmount() 57 if (mFadeOutView.getVisibility() == View.GONE) { in setDarkAmount() 58 mFadeOutView.setVisibility(View.VISIBLE); in setDarkAmount()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/ |
D | GlobalActionsLayoutTest.java | 29 import android.view.View; 93 public View getView(int position, View convertView, ViewGroup parent) { in getView() 99 ArrayList<View> mSeparatedViews = new ArrayList<>(); 100 ArrayList<View> mListViews = new ArrayList<>(); 123 protected void addToListView(View v, boolean reverse) { in addToListView() 132 protected void addToSeparatedView(View v, boolean reverse) { in addToSeparatedView() 175 View view1 = new View(mContext, null); in testOnUpdateList_oneSeparatedOneList() 176 View view2 = new View(mContext, null); in testOnUpdateList_oneSeparatedOneList() 197 View view1 = new View(mContext, null); in testOnUpdateList_twoSeparatedItems() 198 View view2 = new View(mContext, null); in testOnUpdateList_twoSeparatedItems() [all …]
|
/frameworks/base/packages/SettingsLib/EntityHeaderWidgets/src/com/android/settingslib/widget/ |
D | AppEntitiesHeaderController.java | 23 import android.view.View; 84 private final View mAppViewsContainer; 85 private final View[] mAppEntityViews; 94 private View.OnClickListener mDetailsOnClickListener; 103 @NonNull View appEntitiesHeaderView) { in newInstance() 107 private AppEntitiesHeaderController(Context context, View appEntitiesHeaderView) { in AppEntitiesHeaderController() 119 mAppEntityViews = new View[]{ in AppEntitiesHeaderController() 128 final View appView = mAppEntityViews[index]; in AppEntitiesHeaderController() 163 @Nullable View.OnClickListener clickListener) { in setHeaderDetailsClickListener() 240 TextUtils.isEmpty(titleText) ? View.GONE : View.VISIBLE); in bindHeaderTitleView() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardPinBasedInputView.java | 24 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 …]
|