Home
last modified time | relevance | path

Searched refs:view (Results 1 – 25 of 3235) sorted by relevance

12345678910>>...130

/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/util/
DViewUtils.java23 import android.view.View;
43 public static void hideViewAnimated(@NonNull View view, int duration) { in hideViewAnimated() argument
46 view.animate().cancel(); in hideViewAnimated()
48 if (!view.isLaidOut()) { in hideViewAnimated()
50 view.setVisibility(View.GONE); in hideViewAnimated()
54 view.animate() in hideViewAnimated()
56 .setListener(hideViewAfterAnimation(view)) in hideViewAnimated()
61 public static Animator.AnimatorListener hideViewAfterAnimation(View view) { in hideViewAfterAnimation() argument
65 view.setVisibility(View.GONE); in hideViewAfterAnimation()
77 for (View view : views) {
[all …]
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/core/
DCheckCarUiComponents.java27 import android.view.View;
28 import android.view.ViewGroup;
126 viewHasChildMatching(v, view -> { in checkForCarUiComponents()
127 if (isCarUiRecyclerView(view)) { in checkForCarUiComponents()
130 if (viewHasChildMatching(view, CheckCarUiComponents::isCarUiPreference)) { in checkForCarUiComponents()
135 carUiComponents.mIsCarUiRecyclerViewUsingListItem = viewHasChildMatching(view, in checkForCarUiComponents()
140 if (isAndroidXRecyclerView(view)) { in checkForCarUiComponents()
144 if (isCarUiToolbar(view)) { in checkForCarUiComponents()
148 if (isCarUiBaseLayoutToolbar(view)) { in checkForCarUiComponents()
155 private static boolean viewHasChildMatching(View view, Predicate<View> p) { in viewHasChildMatching() argument
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DAnimatorUtils.java30 import androidx.interpolator.view.animation.FastOutSlowInInterpolator;
32 import android.view.View;
33 import android.view.animation.Interpolator;
54 public Integer get(View view) {
55 Drawable background = view.getBackground();
64 public void set(View view, Integer value) {
65 setBackgroundAlpha(view, value);
77 public static void setBackgroundAlpha(View view, Integer value) { in setBackgroundAlpha() argument
78 Drawable background = view.getBackground(); in setBackgroundAlpha()
89 public Integer get(ImageView view) {
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DPortraitPagedViewHandler.java28 import android.view.MotionEvent;
29 import android.view.Surface;
30 import android.view.VelocityTracker;
31 import android.view.View;
32 import android.view.accessibility.AccessibilityEvent;
67 public void getCurveProperties(PagedView view, Rect insets, CurveProperties out) { in getCurveProperties() argument
68 out.scroll = view.getScrollX(); in getCurveProperties()
69 out.halfPageSize = view.getNormalChildWidth() / 2; in getCurveProperties()
70 out.halfScreenSize = view.getMeasuredWidth() / 2; in getCurveProperties()
71 out.screenCenter = insets.left + view.getPaddingLeft() + out.scroll + out.halfPageSize; in getCurveProperties()
[all …]
DLandscapePagedViewHandler.java29 import android.view.MotionEvent;
30 import android.view.Surface;
31 import android.view.VelocityTracker;
32 import android.view.View;
33 import android.view.accessibility.AccessibilityEvent;
68 public void getCurveProperties(PagedView view, Rect insets, CurveProperties out) { in getCurveProperties() argument
69 out.scroll = view.getScrollY(); in getCurveProperties()
70 out.halfPageSize = view.getNormalChildHeight() / 2; in getCurveProperties()
71 out.halfScreenSize = view.getMeasuredHeight() / 2; in getCurveProperties()
72 out.screenCenter = insets.top + view.getPaddingTop() + out.scroll + out.halfPageSize; in getCurveProperties()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DFrameLayoutWithShadows.java29 import android.view.View;
30 import android.view.ViewDebug.ExportedProperty;
31 import android.view.ViewGroup;
32 import android.view.ViewParent;
210 View view = shadowView.shadowedView; in prune() local
211 if (this != findParentShadowsView(view)) { in prune()
212 view.setTag(R.id.ShadowView, null); in prune()
234 View view = shadowView.shadowedView; in layoutShadows() local
235 if (view != null) { in layoutShadows()
236 if (this != findParentShadowsView(view)) { in layoutShadows()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DKindSectionView.java26 import android.view.LayoutInflater;
27 import android.view.View;
28 import android.view.ViewGroup;
222 final View view = mEditors.getChildAt(i); in setGroupMetaData() local
223 if (view instanceof GroupMembershipView) { in setGroupMetaData()
224 ((GroupMembershipView) view).setGroupMetaData(cursor); in setGroupMetaData()
238 final View view = mEditors.getChildAt(i); in isEmptyName() local
239 if (view instanceof Editor) { in isEmptyName()
240 final Editor editor = (Editor) view; in isEmptyName()
262 final View view = mEditors.getChildAt(i); in getPhoneticEditorView() local
[all …]
DEditorAnimator.java24 import android.view.View;
25 import android.view.ViewGroup;
26 import android.view.ViewParent;
72 final View view = viewsToMove.get(i); in removeEditorView()
73 view.setTranslationY(0.0f); in removeEditorView()
119 public void showFieldFooter(final View view) { in showFieldFooter() argument
121 if (view.getVisibility() == View.VISIBLE) return; in showFieldFooter()
123 view.setVisibility(View.VISIBLE); in showFieldFooter()
124 view.setAlpha(0.0f); in showFieldFooter()
125 SchedulingUtils.doAfterLayout(view, new Runnable() { in showFieldFooter()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DMultiAttachmentLayout.java22 import android.view.LayoutInflater;
23 import android.view.View;
24 import android.view.animation.AnimationSet;
25 import android.view.animation.ScaleAnimation;
26 import android.view.animation.TranslateAnimation;
175 removeView(viewWrapper.view); in bindAttachments()
194 if (viewWrapper.view instanceof AsyncImageView) { in setColorFilter()
195 ((AsyncImageView) viewWrapper.view).setColorFilter(color); in setColorFilter()
202 if (viewWrapper.view instanceof AsyncImageView) { in clearColorFilter()
203 ((AsyncImageView) viewWrapper.view).clearColorFilter(); in clearColorFilter()
[all …]
/packages/apps/Dialer/java/com/android/incallui/video/impl/
DSurfaceViewVideoCallFragment.java31 import android.support.v4.view.animation.FastOutLinearInInterpolator;
32 import android.support.v4.view.animation.LinearOutSlowInInterpolator;
35 import android.view.LayoutInflater;
36 import android.view.Surface;
37 import android.view.SurfaceView;
38 import android.view.View;
39 import android.view.View.OnClickListener;
40 import android.view.View.OnSystemUiVisibilityChangeListener;
41 import android.view.ViewGroup;
42 import android.view.ViewGroup.MarginLayoutParams;
[all …]
DVideoCallFragment.java39 import android.support.v4.view.animation.FastOutLinearInInterpolator;
40 import android.support.v4.view.animation.LinearOutSlowInInterpolator;
43 import android.view.LayoutInflater;
44 import android.view.Surface;
45 import android.view.TextureView;
46 import android.view.View;
47 import android.view.View.OnClickListener;
48 import android.view.View.OnLayoutChangeListener;
49 import android.view.View.OnSystemUiVisibilityChangeListener;
50 import android.view.ViewGroup;
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DDayFragment.java26 import android.view.LayoutInflater;
27 import android.view.View;
28 import android.view.ViewGroup;
29 import android.view.ViewGroup.LayoutParams;
30 import android.view.animation.Animation;
31 import android.view.animation.AnimationUtils;
115 DayView view = new DayView(getActivity(), CalendarController in makeView() local
117 view.setId(VIEW_ID); in makeView()
118 view.setLayoutParams(new ViewSwitcher.LayoutParams( in makeView()
120 view.setSelected(mSelectedDay, false, false); in makeView()
[all …]
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
DFadeAndShortSlide.java26 import android.view.Gravity;
27 import android.view.View;
28 import android.view.ViewGroup;
29 import android.view.ViewParent;
30 import android.view.animation.AccelerateInterpolator;
31 import android.view.animation.DecelerateInterpolator;
51 ViewGroup sceneRoot, View view, int[] position, int distance); in getGoneX() argument
58 ViewGroup sceneRoot, View view, int[] position, int distance) {
63 x = view.getTranslationX() + distance;
65 x = view.getTranslationX() - distance;
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/
DNotificationFragment.java14 import android.view.LayoutInflater;
15 import android.view.View;
16 import android.view.ViewGroup;
81 View view = inflater.inflate(R.layout.notification_fragment, container, false); in onCreateView() local
83 initCancelAllButton(view); in onCreateView()
85 initCarCategoriesButton(view); in onCreateView()
87 initImportanceHighBotton(view); in onCreateView()
88 initImportanceDefaultButton(view); in onCreateView()
89 initImportanceLowButton(view); in onCreateView()
90 initImportanceMinButton(view); in onCreateView()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/list/
DContactListItemViewTest.java56 ContactListItemView view = createView(); in testShowDisplayName_Simple() local
58 view.showDisplayName(cursor, 0, ContactsPreferences.DISPLAY_ORDER_PRIMARY); in testShowDisplayName_Simple()
60 assertEquals(view.getNameTextView().getText().toString(), "John Doe"); in testShowDisplayName_Simple()
65 ContactListItemView view = createView(); in testShowDisplayName_Unknown() local
67 view.setUnknownNameText("unknown"); in testShowDisplayName_Unknown()
68 view.showDisplayName(cursor, 0, ContactsPreferences.DISPLAY_ORDER_PRIMARY); in testShowDisplayName_Unknown()
70 assertEquals(view.getNameTextView().getText().toString(), "unknown"); in testShowDisplayName_Unknown()
75 ContactListItemView view = createView(); in testShowDisplayName_WithPrefix() local
77 view.setHighlightedPrefix("DOE"); in testShowDisplayName_WithPrefix()
78 view.showDisplayName(cursor, 0, ContactsPreferences.DISPLAY_ORDER_PRIMARY); in testShowDisplayName_WithPrefix()
[all …]
/packages/apps/TV/src/com/android/tv/menu/
DMenuLayoutManager.java31 import android.view.View;
32 import android.view.ViewGroup.MarginLayoutParams;
34 import androidx.interpolator.view.animation.FastOutLinearInInterpolator;
35 import androidx.interpolator.view.animation.FastOutSlowInInterpolator;
36 import androidx.interpolator.view.animation.LinearOutSlowInInterpolator;
151 for (MenuRowView view : mMenuRowViews) { in layout()
152 if (view.getVisibility() == View.VISIBLE in layout()
153 && view.getContentsView().getVisibility() == View.INVISIBLE) { in layout()
154 view.onDeselected(); in layout()
175 for (MenuRowView view : mMenuRowViews) { in dumpChildren()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DAnimationManager.java22 import android.view.View;
45 public void startCaptureAnimation(final View view) { in startCaptureAnimation() argument
49 View parentView = (View) view.getParent(); in startCaptureAnimation()
50 float slideDistance = (float) (parentView.getWidth() - view.getLeft()); in startCaptureAnimation()
52 float scaleX = ((float) parentView.getWidth()) / ((float) view.getWidth()); in startCaptureAnimation()
53 float scaleY = ((float) parentView.getHeight()) / ((float) view.getHeight()); in startCaptureAnimation()
56 int centerX = view.getLeft() + view.getWidth() / 2; in startCaptureAnimation()
57 int centerY = view.getTop() + view.getHeight() / 2; in startCaptureAnimation()
59 ObjectAnimator slide = ObjectAnimator.ofFloat(view, "translationX", 0f, slideDistance) in startCaptureAnimation()
63 ObjectAnimator translateY = ObjectAnimator.ofFloat(view, "translationY", in startCaptureAnimation()
[all …]
/packages/apps/Dialer/java/com/android/dialer/animation/
DAnimUtils.java22 import android.view.View;
23 import android.view.ViewPropertyAnimator;
24 import android.view.animation.Interpolator;
25 import android.view.animation.PathInterpolator;
126 public static void scaleIn(final View view, int durationMs, int startDelayMs) { in scaleIn() argument
131 view.setVisibility(View.VISIBLE); in scaleIn()
136 view.setScaleX(1); in scaleIn()
137 view.setScaleY(1); in scaleIn()
141 view, in scaleIn()
156 public static void scaleOut(final View view, int durationMs) { in scaleOut() argument
[all …]
/packages/apps/Car/tests/RotaryPlayground/src/com/android/car/rotaryplayground/
DRotaryDirectManipulationWidgets.java20 import android.view.KeyEvent;
21 import android.view.LayoutInflater;
22 import android.view.MotionEvent;
23 import android.view.View;
24 import android.view.ViewGroup;
25 import android.view.ViewParent;
26 import android.view.accessibility.AccessibilityNodeInfo;
55 View view = inflater.inflate(R.layout.rotary_direct_manipulation, container, false); in onCreateView() local
57 DirectManipulationView dmv = view.findViewById(R.id.direct_manipulation_view); in onCreateView()
65 TimePicker spinnerTimePicker = view.findViewById(R.id.spinner_time_picker); in onCreateView()
[all …]
/packages/apps/PhoneCommon/src/com/android/phone/common/animation/
DAnimUtils.java22 import android.view.View;
23 import android.view.ViewPropertyAnimator;
24 import android.view.animation.Interpolator;
128 public static void scaleIn(final View view, int durationMs, int startDelayMs) { in scaleIn() argument
132 view.setVisibility(View.VISIBLE); in scaleIn()
137 view.setScaleX(1); in scaleIn()
138 view.setScaleY(1); in scaleIn()
141 scaleInternal(view, 0 /* startScaleValue */, 1 /* endScaleValue */, durationMs, in scaleIn()
151 public static void scaleOut(final View view, int durationMs) { in scaleOut() argument
155 view.setVisibility(View.GONE); in scaleOut()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
DGalleryGridItemViewTest.java20 import android.view.View;
49 protected void verifyClickedItem(final View view, final GalleryGridItemData data) { in verifyClickedItem() argument
50 Mockito.verify(mockHost).onItemClicked(view, data, false /* longClick */); in verifyClickedItem()
54 final GalleryGridItemView view, in verifyContent() argument
58 final AsyncImageView imageView = (AsyncImageView) view.findViewById(R.id.thumbnail); in verifyContent()
59 final CheckBox checkBox = (CheckBox) view.findViewById(R.id.checkbox); in verifyContent()
77 final GalleryGridItemView view = getView(); in testBind() local
81 view.bind(cursor, mockHost); in testBind()
82 verifyContent(view, UriUtil.getUriForResourceFile(path).toString(), in testBind()
90 final GalleryGridItemView view = getView(); in testBindMultiSelectUnSelected() local
[all …]
/packages/apps/Dialer/java/com/android/dialer/util/
DViewUtil.java28 import android.view.View;
29 import android.view.ViewGroup;
30 import android.view.ViewTreeObserver.OnGlobalLayoutListener;
31 import android.view.ViewTreeObserver.OnPreDrawListener;
42 void run(@NonNull View view); in run() argument
50 public static int getConstantPreLayoutWidth(View view) { in getConstantPreLayoutWidth() argument
52 final ViewGroup.LayoutParams p = view.getLayoutParams(); in getConstantPreLayoutWidth()
66 public static boolean isViewLayoutRtl(View view) { in isViewLayoutRtl() argument
67 return view.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; in isViewLayoutRtl()
90 @NonNull final View view, final boolean drawNextFrame, final Runnable runnable) { in doOnPreDraw()
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DPostalAddressListAdapter.java27 import android.view.View;
28 import android.view.ViewGroup;
115 ContactListItemView view = super.newView(context, partition, cursor, position, parent); in newView() local
116 view.setUnknownNameText(mUnknownNameText); in newView()
117 view.setQuickContactEnabled(isQuickContactEnabled()); in newView()
118 view.setIsSectionHeaderEnabled(isSectionHeaderDisplayEnabled()); in newView()
119 return view; in newView()
125 ContactListItemView view = (ContactListItemView)itemView; in bindView() local
126 bindSectionHeaderAndDivider(view, position); in bindView()
127 bindName(view, cursor); in bindView()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DFocusManager.java37 import android.view.KeyEvent;
38 import android.view.View;
138 if (hasFocus && mScope.isValid() && v.getParent() == mScope.view) { in onFocusChange()
139 mScope.lastFocusPosition = mScope.view.getChildAdapterPosition(v); in onFocusChange()
194 mScope.view.clearFocus(); in clearFocus()
212 if (pos != -1 && mScope.view.findViewHolderForAdapterPosition(pos) != null) { in focusDocument()
237 DocumentHolder holder = (DocumentHolder) mScope.view in getFocusModelId()
252 private int findTargetPosition(View view, int keyCode, KeyEvent event) { in findTargetPosition() argument
260 return findPagedTargetPosition(view, keyCode, event); in findTargetPosition()
275 int currentPosition = mScope.view.getChildAdapterPosition(view); in findTargetPosition()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/ui/contact/
DContactListItemViewTest.java21 import android.view.View;
49 final ContactListItemView view) { in verifyAddedContactForData() argument
50 Mockito.verify(mockHost).onContactListItemClicked(data, view); in verifyAddedContactForData()
54 final ContactListItemView view, in verifyContent() argument
59 final TextView contactNameView = (TextView) view.findViewById(R.id.contact_name); in verifyContent()
60 final TextView contactDetailView = (TextView) view.findViewById(R.id.contact_details); in verifyContent()
61 final ContactIconView avatarView = (ContactIconView) view.findViewById(R.id.contact_icon); in verifyContent()
78 final ContactListItemView view = getView(); in testBindFirstLevel() local
82 view.bind(cursor, mockHost, false, null); in testBindFirstLevel()
83 verifyContent(view, (String) cursor.getAt(Contacts.DISPLAY_NAME, row), in testBindFirstLevel()
[all …]

12345678910>>...130