Home
last modified time | relevance | path

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

12345678910>>...121

/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/util/
DViewUtils.java24 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/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/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;
176 removeView(viewWrapper.view); in bindAttachments()
195 if (viewWrapper.view instanceof AsyncImageView) { in setColorFilter()
196 ((AsyncImageView) viewWrapper.view).setColorFilter(color); in setColorFilter()
203 if (viewWrapper.view instanceof AsyncImageView) { in clearColorFilter()
204 ((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/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/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;
80 View view = inflater.inflate(R.layout.notification_fragment, container, false); in onCreateView() local
82 initCancelAllButton(view); in onCreateView()
84 initCarCategoriesButton(view); in onCreateView()
86 initImportanceHighBotton(view); in onCreateView()
87 initImportanceDefaultButton(view); in onCreateView()
88 initImportanceLowButton(view); in onCreateView()
89 initImportanceMinButton(view); in onCreateView()
[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/Notification/src/com/android/car/notification/
DCarNotificationViewAdapter.java25 import android.view.LayoutInflater;
26 import android.view.View;
27 import android.view.ViewGroup;
97 View view; in onCreateViewHolder() local
100 view = mInflater.inflate(R.layout.notification_header_template, parent, false); in onCreateViewHolder()
101 viewHolder = new CarNotificationHeaderViewHolder(view, mClickHandlerFactory); in onCreateViewHolder()
104 view = mInflater.inflate(R.layout.notification_footer_template, parent, false); in onCreateViewHolder()
105 viewHolder = new CarNotificationFooterViewHolder(view, mClickHandlerFactory); in onCreateViewHolder()
109 view = mInflater.inflate( in onCreateViewHolder()
111 viewHolder = new GroupNotificationViewHolder(view, mClickHandlerFactory); in onCreateViewHolder()
[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/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/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/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/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/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 …]
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DDetailsContentPresenter.java29 import android.view.LayoutInflater;
30 import android.view.View;
31 import android.view.ViewGroup;
32 import android.view.ViewTreeObserver;
33 import android.view.accessibility.AccessibilityManager;
79 && mSubtitle.getTop() > view.getHeight()
98 public void onClick(View view) {
103 view.getContext()
136 public ViewHolder(final View view) { in ViewHolder() argument
137 super(view); in ViewHolder()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioTestFragment.java37 import android.view.Display;
38 import android.view.DisplayAddress;
39 import android.view.LayoutInflater;
40 import android.view.View;
41 import android.view.ViewGroup;
215 View view = inflater.inflate(R.layout.audio, container, false); in onCreateView() local
217 setUpZoneSpinnerView(view); in onCreateView()
220 setUpDisplayLayoutView(view); in onCreateView()
228 view.findViewById(R.id.button_focus_request_selection), in onCreateView()
229 view.findViewById(R.id.button_audio_focus_request), in onCreateView()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DScheduleRowPresenter.java29 import android.view.LayoutInflater;
30 import android.view.View;
31 import android.view.View.OnFocusChangeListener;
32 import android.view.ViewGroup;
33 import android.view.animation.DecelerateInterpolator;
118 public void onFocusChange(View view, boolean focused) {
119 view.post(
121 if (view.isFocused()) {
122 mPresenter.mLastFocusedViewId = view.getId();
129 public ScheduleRowViewHolder(View view, ScheduleRowPresenter presenter) { in ScheduleRowViewHolder() argument
[all …]

12345678910>>...121