/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 | 58 public void requestTransparentRegion(View child); in requestTransparentRegion() 74 default void onDescendantInvalidated(@NonNull View child, @NonNull View target) { in onDescendantInvalidated() 90 public void invalidateChild(View child, Rect r); in invalidateChild() 133 public void requestChildFocus(View child, View focused); in requestChildFocus() 141 public void recomputeViewAttributes(View child); in recomputeViewAttributes() 148 public void clearChildFocus(View child); in clearChildFocus() 170 public boolean getChildVisibleRect(View child, Rect r, android.graphics.Point offset); in getChildVisibleRect() 178 public View focusSearch(View v, int direction); in focusSearch() 191 View keyboardNavigationClusterSearch(View currentCluster, int direction); in keyboardNavigationClusterSearch() 204 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/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() 35 public static void fadeOut(final View view, final Runnable endRunnable) { in fadeOut() 39 public static void fadeOut(final View view, long duration, int delay, in fadeOut() 53 if (view.getVisibility() != View.GONE) { in fadeOut() 54 view.setVisibility(View.INVISIBLE); in fadeOut() 63 public static void fadeOut(View view, float fadeOutAmount) { in fadeOut() 78 public static void fadeOut(View view, float fadeOutAmount, boolean remap) { in fadeOut() 80 if (fadeOutAmount == 1.0f && view.getVisibility() != View.GONE) { in fadeOut() 81 view.setVisibility(View.INVISIBLE); in fadeOut() [all …]
|
D | StatusBarMobileView.java | 31 import android.view.View; 59 private View mInoutContainer; 63 private View mMobileRoamingSpace; 147 requestLayout = getVisibility() != View.GONE; in applyMobileState() 148 setVisibility(View.GONE); in applyMobileState() 166 mMobileGroup.setVisibility(View.GONE); in initViewState() 168 mMobileGroup.setVisibility(View.VISIBLE); in initViewState() 174 mMobileType.setVisibility(View.VISIBLE); in initViewState() 176 mMobileType.setVisibility(View.GONE); in initViewState() 178 mMobile.setVisibility(mState.showTriangle ? View.VISIBLE : View.GONE); in initViewState() [all …]
|
D | StatusBarWifiView.java | 30 import android.view.View; 53 private View mInoutContainer; 54 private View mSignalSpacer; 55 private View mAirplaneSpacer; 119 mWifiGroup.setVisibility(View.VISIBLE); in setVisibleState() 120 mDotView.setVisibility(View.GONE); in setVisibleState() 123 mWifiGroup.setVisibility(View.GONE); in setVisibleState() 124 mDotView.setVisibility(View.VISIBLE); in setVisibleState() 128 mWifiGroup.setVisibility(View.GONE); in setVisibleState() 129 mDotView.setVisibility(View.GONE); in setVisibleState() [all …]
|
D | NotificationGroupingUtil.java | 26 import android.view.View; 62 public boolean compare(View parent, View child, Object parentData, 69 public boolean compare(View parent, View child, Object parentData, 77 public void apply(View parent, View view, boolean apply, boolean reset) { 167 private void sanitizeChild(View child, ExpandableNotificationRow row) { in sanitizeChild() 178 View time = rowHeader.findViewById(com.android.internal.R.id.time); in sanitizeTopLine() 181 View child = rowHeader.getChildAt(i); in sanitizeTopLine() 183 && child.getVisibility() != View.GONE in sanitizeTopLine() 193 ? View.VISIBLE : View.GONE; in sanitizeTopLine() 195 View left = null; in sanitizeTopLine() [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/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | RadioButtonPreferenceTest.java | 27 import android.view.View; 43 private View mExtraWidgetContainer; 44 private View mExtraWidget; 47 private View.OnClickListener mClickListener = new View.OnClickListener() { 49 public void onClick(View v) { 59 View view = LayoutInflater.from(mContext) in setUp() 82 View summaryContainer = new View(mContext); in onBindViewHolder_withSummary_containerShouldBeVisible() 83 View view = mock(View.class); in onBindViewHolder_withSummary_containerShouldBeVisible() 90 assertEquals(View.VISIBLE, summaryContainer.getVisibility()); in onBindViewHolder_withSummary_containerShouldBeVisible() 96 View summaryContainer = new View(mContext); in onBindViewHolder_emptySummary_containerShouldBeGone() [all …]
|
D | SelectorWithWidgetPreferenceTest.java | 27 import android.view.View; 43 private View mExtraWidgetContainer; 44 private View mExtraWidget; 47 private View.OnClickListener mClickListener = new View.OnClickListener() { 49 public void onClick(View v) { 59 View view = LayoutInflater.from(mContext) in setUp() 96 View summaryContainer = new View(mContext); in onBindViewHolder_withSummary_containerShouldBeVisible() 97 View view = mock(View.class); in onBindViewHolder_withSummary_containerShouldBeVisible() 104 assertEquals(View.VISIBLE, summaryContainer.getVisibility()); in onBindViewHolder_withSummary_containerShouldBeVisible() 110 View summaryContainer = new View(mContext); in onBindViewHolder_emptySummary_containerShouldBeGone() [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/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/packages/SystemUI/tests/src/com/android/systemui/people/ |
D | PeopleTileViewHelperTest.java | 57 import android.view.View; 172 View result = views.apply(mContext, null); in testCreateRemoteViewsWithLastInteractionTimeUnderOneDayHidden() 175 assertEquals(View.GONE, result.findViewById(R.id.last_interaction).getVisibility()); in testCreateRemoteViewsWithLastInteractionTimeUnderOneDayHidden() 181 View largeResult = largeView.apply(mContext, null); in testCreateRemoteViewsWithLastInteractionTimeUnderOneDayHidden() 184 assertEquals(View.GONE, largeResult.findViewById(R.id.last_interaction).getVisibility()); in testCreateRemoteViewsWithLastInteractionTimeUnderOneDayHidden() 217 View result = views.apply(mContext, null); in testCreateRemoteViewsWithLastInteractionTime() 222 assertEquals(View.VISIBLE, result.findViewById(R.id.last_interaction).getVisibility()); in testCreateRemoteViewsWithLastInteractionTime() 226 assertEquals(View.GONE, result.findViewById(R.id.availability).getVisibility()); in testCreateRemoteViewsWithLastInteractionTime() 228 assertEquals(View.VISIBLE, result.findViewById(R.id.person_icon).getVisibility()); in testCreateRemoteViewsWithLastInteractionTime() 230 assertThat((View) result.findViewById(R.id.text_content)).isNull(); in testCreateRemoteViewsWithLastInteractionTime() [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/SystemUI/tests/src/com/android/systemui/media/dialog/ |
D | MediaOutputAdapterTest.java | 30 import android.view.View; 74 private View mDialogLaunchView = mock(View.class); 157 assertThat(mViewHolder.mTitleText.getVisibility()).isEqualTo(View.VISIBLE); in onBindViewHolder_bindPairNew_verifyView() 158 assertThat(mViewHolder.mTwoLineLayout.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindPairNew_verifyView() 159 assertThat(mViewHolder.mProgressBar.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindPairNew_verifyView() 160 assertThat(mViewHolder.mCheckBox.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindPairNew_verifyView() 172 assertThat(mViewHolder.mSeekBar.getVisibility()).isEqualTo(View.VISIBLE); in onBindViewHolder_bindGroup_withSessionName_verifyView() 173 assertThat(mViewHolder.mTwoLineLayout.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindGroup_withSessionName_verifyView() 174 assertThat(mViewHolder.mTitleText.getVisibility()).isEqualTo(View.VISIBLE); in onBindViewHolder_bindGroup_withSessionName_verifyView() 175 assertThat(mViewHolder.mProgressBar.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindGroup_withSessionName_verifyView() [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/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/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()
|