Home
last modified time | relevance | path

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

12345678910>>...97

/frameworks/base/core/tests/coretests/src/android/view/
DViewInvalidateTest.java57 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 …]
DFocusFinderTest.java42 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 …]
DVisibility.java50 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;
DVisibilityCallback.java58 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/
DViewParent.java59 public void requestTransparentRegion(View child); in requestTransparentRegion()
75 default void onDescendantInvalidated(@NonNull View child, @NonNull View target) { in onDescendantInvalidated()
91 public void invalidateChild(View child, Rect r); in invalidateChild()
134 public void requestChildFocus(View child, View focused); in requestChildFocus()
142 public void recomputeViewAttributes(View child); in recomputeViewAttributes()
149 public void clearChildFocus(View child); in clearChildFocus()
171 public boolean getChildVisibleRect(View child, Rect r, android.graphics.Point offset); in getChildVisibleRect()
179 public View focusSearch(View v, int direction); in focusSearch()
192 View keyboardNavigationClusterSearch(View currentCluster, int direction); in keyboardNavigationClusterSearch()
205 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.java36 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/
DCrossFadeHelper.java20 import android.view.View;
35 public static void fadeOut(final View view) { in fadeOut()
39 public static void fadeOut(final View view, final Runnable endRunnable) { in fadeOut()
43 public static void fadeOut(final View view, final Animator.AnimatorListener listener) { in fadeOut()
47 public static void fadeOut(final View view, long duration, int delay) { in fadeOut()
58 public static void fadeOut(final View view, long duration, int delay, in fadeOut()
70 if (view.getVisibility() != View.GONE) { in fadeOut()
71 view.setVisibility(View.INVISIBLE); in fadeOut()
79 public static void fadeOut(final View view, long duration, int delay, in fadeOut()
88 if (view.getVisibility() != View.GONE) { in fadeOut()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DFindViewByIdTest.java24 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/SystemUI/src/com/android/systemui/common/ui/view/
DViewExt.kt19 import android.view.View in <lambda>()
26 fun View.setImportantForAccessibilityYesNo(value: Boolean) { in <lambda>() method
28 if (value) View.IMPORTANT_FOR_ACCESSIBILITY_YES else View.IMPORTANT_FOR_ACCESSIBILITY_NO in <lambda>()
39 inline fun <reified T : View> View.getNearestParent(): T? { in getNearestParent()
41 while (view is View) { in getNearestParent()
49 fun View.onLayoutChanged(onLayoutChanged: (v: View) -> Unit): DisposableHandle = in onLayoutChanged() method
55 fun View.onLayoutChanged(listener: View.OnLayoutChangeListener): DisposableHandle { in onLayoutChanged() method
61 fun View.onApplyWindowInsets(listener: View.OnApplyWindowInsetsListener): DisposableHandle { in onApplyWindowInsets() method
67 fun View.onTouchListener(listener: View.OnTouchListener): DisposableHandle { in onTouchListener() method
/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/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DSelectorWithWidgetPreferenceTest.java27 import android.view.View;
45 private View mExtraWidgetContainer;
46 private View mExtraWidget;
49 private View.OnClickListener mClickListener = new View.OnClickListener() {
51 public void onClick(View v) {
61 View view = LayoutInflater.from(mContext) in setUp()
98 View summaryContainer = new View(mContext); in onBindViewHolder_withSummary_containerShouldBeVisible()
99 View view = mock(View.class); in onBindViewHolder_withSummary_containerShouldBeVisible()
106 assertEquals(View.VISIBLE, summaryContainer.getVisibility()); in onBindViewHolder_withSummary_containerShouldBeVisible()
112 View summaryContainer = new View(mContext); in onBindViewHolder_emptySummary_containerShouldBeGone()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DVerticalFocusSearchTest.java21 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 …]
DFocusAfterRemoval.java21 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 …]
DHorizontalFocusSearchTest.java23 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/media/dialog/
DMediaOutputAdapterTest.java39 import android.view.View;
86 private View mDialogLaunchView = mock(View.class);
154 assertThat(mViewHolder.mTitleText.getVisibility()).isEqualTo(View.VISIBLE); in onBindViewHolder_bindPairNew_verifyView()
155 assertThat(mViewHolder.mTwoLineLayout.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindPairNew_verifyView()
156 assertThat(mViewHolder.mProgressBar.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindPairNew_verifyView()
157 assertThat(mViewHolder.mCheckBox.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindPairNew_verifyView()
175 assertThat(mViewHolder.mSeekBar.getVisibility()).isEqualTo(View.VISIBLE); in onBindViewHolder_bindGroup_withSessionName_verifyView()
176 assertThat(mViewHolder.mTwoLineLayout.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindGroup_withSessionName_verifyView()
177 assertThat(mViewHolder.mTitleText.getVisibility()).isEqualTo(View.VISIBLE); in onBindViewHolder_bindGroup_withSessionName_verifyView()
178 assertThat(mViewHolder.mProgressBar.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindGroup_withSessionName_verifyView()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
DPeopleTileViewHelperTest.java56 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/
DMessagingPropertyAnimator.java23 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/
DUninstallAppProgressFragment.java25 import android.view.View;
35 public class UninstallAppProgressFragment extends Fragment implements View.OnClickListener,
44 public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, in onCreateView()
46 final View root = inflater.inflate(R.layout.uninstall_progress, container, false); in onCreateView()
48 View snippetView = root.findViewById(R.id.app_snippet); in onCreateView()
53 mDeviceManagerButton.setVisibility(View.GONE); in onCreateView()
54 mDeviceManagerButton.setOnClickListener(new View.OnClickListener() { in onCreateView()
56 public void onClick(View v) { in onCreateView()
65 mUsersButton.setVisibility(View.GONE); in onCreateView()
66 mUsersButton.setOnClickListener(new View.OnClickListener() { in onCreateView()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
DLLOfTwoFocusableInTouchMode.java21 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/PackageInstaller/src/com/android/packageinstaller/
DAlertController.java30 import android.view.View;
59 private View mView;
103 private final View.OnClickListener mButtonHandler = new View.OnClickListener() {
105 public void onClick(View v) {
186 static boolean canTextInput(View v) { in canTextInput()
283 mIconView.setVisibility(View.VISIBLE); in setIcon()
286 mIconView.setVisibility(View.GONE); in setIcon()
302 mIconView.setVisibility(View.VISIBLE); in setIcon()
305 mIconView.setVisibility(View.GONE); in setIcon()
343 private ViewGroup resolvePanel(@Nullable View customPanel, @Nullable View defaultPanel) { in resolvePanel()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/widgets/
DRoundedCornerEnforcement.kt24 import android.view.View
41 fun findBackground(appWidget: View): View? { in findBackground()
57 fun hasAppWidgetOptedOut(appWidget: View?, background: View): Boolean { in hasAppWidgetOptedOut()
70 fun computeRoundedRectangle(appWidget: View, background: View, outRect: Rect) { in computeRoundedRectangle()
78 background = background.parent as View in computeRoundedRectangle()
103 private fun findViewsWithId(view: View, @IdRes viewId: Int): List<View> { in findViewsWithId()
104 val output: MutableList<View> = ArrayList() in findViewsWithId()
110 private fun accumulateViewsWithId(view: View, @IdRes viewId: Int, output: MutableList<View>) { in accumulateViewsWithId()
123 private fun isViewVisible(view: View): Boolean { in isViewVisible()
124 return if (view.visibility != View.VISIBLE) { in isViewVisible()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DAnimatableProperty.java21 import android.view.View;
33 public static final AnimatableProperty X = AnimatableProperty.from(View.X,
36 public static final AnimatableProperty Y = AnimatableProperty.from(View.Y,
40 View.TRANSLATION_X, R.id.x_animator_tag, R.id.x_animator_tag_start_value,
44 View.SCALE_X, R.id.scale_x_animator_tag, R.id.scale_x_animator_start_value_tag,
48 View.SCALE_Y, R.id.scale_y_animator_tag, R.id.scale_y_animator_start_value_tag,
52 View.ALPHA, R.id.alpha_animator_tag, R.id.alpha_animator_start_value_tag,
61 new FloatProperty<View>("ViewAbsoluteX") {
63 public void setValue(View view, float value) {
65 View.X.set(view, value);
[all …]
/frameworks/base/packages/SettingsLib/EntityHeaderWidgets/src/com/android/settingslib/widget/
DAppEntitiesHeaderController.java23 import android.view.View;
86 private final View mAppViewsContainer;
87 private final View[] mAppEntityViews;
96 private View.OnClickListener mDetailsOnClickListener;
105 @NonNull View appEntitiesHeaderView) { in newInstance()
109 private AppEntitiesHeaderController(Context context, View appEntitiesHeaderView) { in AppEntitiesHeaderController()
121 mAppEntityViews = new View[]{ in AppEntitiesHeaderController()
130 final View appView = mAppEntityViews[index]; in AppEntitiesHeaderController()
165 @Nullable View.OnClickListener clickListener) { in setHeaderDetailsClickListener()
242 TextUtils.isEmpty(titleText) ? View.GONE : View.VISIBLE); in bindHeaderTitleView()
[all …]

12345678910>>...97