Home
last modified time | relevance | path

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

12345678910>>...68

/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
DSgvAnimationHelper.java12 import android.view.View;
13 import android.view.WindowManager;
14 import android.view.animation.AnimationUtils;
15 import android.view.animation.Interpolator;
114 final View view, int startTranslation, final int endTranslation, int animationDelay, in addXTranslationAnimators() argument
118 view.setTranslationX(startTranslation); in addXTranslationAnimators()
119 final ObjectAnimator translateAnimatorX = ObjectAnimator.ofFloat(view, in addXTranslationAnimators()
135 final View view, int startTranslation, final int endTranslation, int animationDelay, in addYTranslationAnimators() argument
139 view.setTranslationY(startTranslation); in addYTranslationAnimators()
140 final ObjectAnimator translateAnimatorY = ObjectAnimator.ofFloat(view, in addYTranslationAnimators()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DFrameLayoutWithShadows.java29 import android.view.View;
30 import android.view.ViewGroup;
31 import android.view.ViewParent;
32 import android.view.ViewDebug.ExportedProperty;
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 …]
DScrollAdapterView.java32 import android.view.FocusFinder;
33 import android.view.accessibility.AccessibilityEvent;
34 import android.view.KeyEvent;
35 import android.view.MotionEvent;
36 import android.view.SoundEffectConstants;
37 import android.view.View;
38 import android.view.ViewGroup;
39 import android.view.ViewParent;
117 public void onItemSelected(View view, int position, int targetCenter); in onItemSelected() argument
134 public void onScrolled(View view, int position, float mainPosition, float secondPosition); in onScrolled() argument
[all …]
/packages/apps/Mms/src/com/android/mms/ui/
DSlideshowPresenter.java59 public SlideshowPresenter(Context context, ViewInterface view, Model model) { in SlideshowPresenter() argument
60 super(context, view, model); in SlideshowPresenter()
64 if (view instanceof AdaptableSlideViewInterface) { in SlideshowPresenter()
65 ((AdaptableSlideViewInterface) view).setOnSizeChangedListener( in SlideshowPresenter()
124 protected void presentSlide(SlideViewInterface view, SlideModel model) { in presentSlide() argument
125 view.reset(); in presentSlide()
129 presentRegionMedia(view, (RegionMediaModel) media, true); in presentSlide()
131 presentAudio(view, (AudioModel) media, true); in presentSlide()
139 protected void presentRegionMedia(SlideViewInterface view, in presentRegionMedia() argument
143 presentText(view, (TextModel) rMedia, r, dataChanged); in presentRegionMedia()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationItemViewCoordinates.java25 import android.support.v4.view.ViewCompat;
27 import android.view.LayoutInflater;
28 import android.view.View;
29 import android.view.View.MeasureSpec;
30 import android.view.ViewGroup;
166 public void put(final int layoutId, final View view) { in put() argument
167 mViewsCache.put(layoutId, view); in put()
251 ViewGroup view = (ViewGroup) cache.getView(layoutId); in ConversationItemViewCoordinates() local
252 if (view == null) { in ConversationItemViewCoordinates()
253 view = (ViewGroup) LayoutInflater.from(context).inflate(layoutId, null); in ConversationItemViewCoordinates()
[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/Browser/src/com/android/browser/
DTab.java45 import android.view.KeyEvent;
46 import android.view.LayoutInflater;
47 import android.view.View;
48 import android.view.ViewStub;
344 public void onPageStarted(WebView view, String url, Bitmap favicon) {
349 view.isPrivateBrowsingEnabled(), url, favicon);
376 mWebViewController.onPageStarted(Tab.this, view, favicon);
382 public void onPageFinished(WebView view, String url) {
388 syncCurrentState(view, url);
394 public boolean shouldOverrideUrlLoading(WebView view, String url) {
[all …]
/packages/apps/InCallUI/src/com/android/incallui/
DCallCardFragment.java36 import android.view.Display;
37 import android.view.LayoutInflater;
38 import android.view.View;
39 import android.view.View.OnLayoutChangeListener;
40 import android.view.ViewAnimationUtils;
41 import android.view.ViewGroup;
42 import android.view.ViewPropertyAnimator;
43 import android.view.ViewTreeObserver;
44 import android.view.ViewTreeObserver.OnGlobalLayoutListener;
45 import android.view.accessibility.AccessibilityEvent;
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DWindowLocationUtil.java22 import android.view.View;
23 import android.view.ViewParent;
41 public static void getLocationsInWindow(View view, float[] points) { in getLocationsInWindow() argument
47 Matrix matrix = view.getMatrix(); in getLocationsInWindow()
52 int deltax = view.getLeft(); in getLocationsInWindow()
53 int deltay = view.getTop(); in getLocationsInWindow()
61 ViewParent viewParent = view.getParent(); in getLocationsInWindow()
63 view = (View) viewParent; in getLocationsInWindow()
65 deltax = view.getScrollX(); in getLocationsInWindow()
66 deltay = view.getScrollY(); in getLocationsInWindow()
[all …]
DTransitionImageAnimation.java24 import android.view.View;
25 import android.view.ViewGroup;
26 import android.view.animation.DecelerateInterpolator;
27 import android.view.animation.Interpolator;
182 TransitionImageView view = new TransitionImageView(mRoot.getContext()); in addTransitionSource() local
183 mRoot.addView(view); in addTransitionSource()
184 view.setSourceTransition(src); in addTransitionSource()
185 mTransitions.add(view); in addTransitionSource()
216 TransitionImageView view = mTransitions.get(i); in setProgress() local
217 view.setProgress(progress); in setProgress()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DEditorAnimator.java24 import android.view.View;
25 import android.view.ViewGroup;
26 import android.view.ViewParent;
71 final View view = viewsToMove.get(i); in removeEditorView()
72 view.setTranslationY(0.0f); in removeEditorView()
118 public void showFieldFooter(final View view) { in showFieldFooter() argument
120 if (view.getVisibility() == View.VISIBLE) return; in showFieldFooter()
122 view.setVisibility(View.VISIBLE); in showFieldFooter()
123 view.setAlpha(0.0f); in showFieldFooter()
124 SchedulingUtils.doAfterLayout(view, new Runnable() { in showFieldFooter()
[all …]
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
DCallLogFragmentTest.java39 import android.view.View;
171 View view = mAdapter.newGroupView(getActivity(), mParentView); in testCallAndGroupViews_GroupView() local
172 mAdapter.bindGroupView(view, getActivity(), mCursor, 3, false); in testCallAndGroupViews_GroupView()
179 View view = mAdapter.newStandAloneView(getActivity(), mParentView); in testCallAndGroupViews_StandAloneView() local
180 mAdapter.bindViewForTest(view, getActivity(), mCursor); in testCallAndGroupViews_StandAloneView()
187 View view = mAdapter.newChildView(getActivity(), mParentView); in testCallAndGroupViews_ChildView() local
188 mAdapter.bindChildView(view, getActivity(), mCursor); in testCallAndGroupViews_ChildView()
195 View view = mAdapter.newStandAloneView(getActivity(), mParentView); in testBindView_NumberOnlyNoCache() local
196 mAdapter.bindViewForTest(view, getActivity(), mCursor); in testBindView_NumberOnlyNoCache()
198 CallLogListItemViews views = (CallLogListItemViews) view.getTag(); in testBindView_NumberOnlyNoCache()
[all …]
/packages/apps/Browser/tests/src/com/android/browser/
DTestWebViewClient.java22 import android.view.KeyEvent;
45 public boolean shouldOverrideUrlLoading(WebView view, String url) { in shouldOverrideUrlLoading() argument
46 return mWrappedClient.shouldOverrideUrlLoading(view, url); in shouldOverrideUrlLoading()
51 public void onPageStarted(WebView view, String url, Bitmap favicon) { in onPageStarted() argument
52 mWrappedClient.onPageStarted(view, url, favicon); in onPageStarted()
57 public void onPageFinished(WebView view, String url) { in onPageFinished() argument
58 mWrappedClient.onPageFinished(view, url); in onPageFinished()
63 public void onLoadResource(WebView view, String url) { in onLoadResource() argument
64 mWrappedClient.onLoadResource(view, url); in onLoadResource()
70 public void onTooManyRedirects(WebView view, Message cancelMsg, in onTooManyRedirects() argument
[all …]
DTestWebChromeClient.java22 import android.view.View;
48 public void onProgressChanged(WebView view, int newProgress) { in onProgressChanged() argument
49 mWrappedClient.onProgressChanged(view, newProgress); in onProgressChanged()
54 public void onReceivedTitle(WebView view, String title) { in onReceivedTitle() argument
55 mWrappedClient.onReceivedTitle(view, title); in onReceivedTitle()
60 public void onReceivedIcon(WebView view, Bitmap icon) { in onReceivedIcon() argument
61 mWrappedClient.onReceivedIcon(view, icon); in onReceivedIcon()
66 public void onReceivedTouchIconUrl(WebView view, String url, in onReceivedTouchIconUrl() argument
68 mWrappedClient.onReceivedTouchIconUrl(view, url, precomposed); in onReceivedTouchIconUrl()
73 public void onShowCustomView(View view, CustomViewCallback callback) { in onShowCustomView() argument
[all …]
/packages/apps/Calendar/src/com/android/calendar/event/
DEditEventView.java46 import android.view.KeyEvent;
47 import android.view.View;
48 import android.view.View.OnClickListener;
49 import android.view.ViewGroup;
50 import android.view.accessibility.AccessibilityEvent;
51 import android.view.accessibility.AccessibilityManager;
52 import android.view.inputmethod.EditorInfo;
236 public TimeListener(View view) { in TimeListener() argument
237 mView = view; in TimeListener()
241 public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute) { in onTimeSet() argument
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DSwipeHelper.java28 import android.view.MotionEvent;
29 import android.view.VelocityTracker;
30 import android.view.View;
31 import android.view.animation.DecelerateInterpolator;
146 private float getAlphaForOffset(View view) { in getAlphaForOffset() argument
147 float viewSize = getSize(view); in getAlphaForOffset()
150 float pos = view.getTranslationX(); in getAlphaForOffset()
160 private float getTextAlphaForOffset(View view) { in getTextAlphaForOffset() argument
161 float viewSize = getSize(view); in getTextAlphaForOffset()
164 float pos = view.getTranslationX(); in getTextAlphaForOffset()
[all …]
/packages/apps/Dialer/src/com/android/dialer/list/
DSwipeHelper.java29 import android.view.MotionEvent;
30 import android.view.VelocityTracker;
31 import android.view.View;
32 import android.view.animation.LinearInterpolator;
172 private float getAlphaForOffset(View view) { in getAlphaForOffset() argument
173 float viewSize = getSize(view); in getAlphaForOffset()
176 float pos = view.getTranslationX(); in getAlphaForOffset()
186 public static void invalidateGlobalRegion(View view) { in invalidateGlobalRegion() argument
188 view, in invalidateGlobalRegion()
189 new RectF(view.getLeft(), view.getTop(), view.getRight(), view.getBottom())); in invalidateGlobalRegion()
[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;
25 import android.view.animation.PathInterpolator;
124 public static void scaleIn(final View view, int durationMs, int startDelayMs) { in scaleIn() argument
128 view.setVisibility(View.VISIBLE); in scaleIn()
133 view.setScaleX(1); in scaleIn()
134 view.setScaleY(1); in scaleIn()
137 scaleInternal(view, 0 /* startScaleValue */, 1 /* endScaleValue */, durationMs, in scaleIn()
147 public static void scaleOut(final View view, int durationMs) { in scaleOut() argument
[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/ContactsCommon/src/com/android/contacts/common/list/
DPhoneNumberListAdapter.java34 import android.view.View;
35 import android.view.ViewGroup;
295 ContactListItemView view = super.newView(context, partition, cursor, position, parent); in newView() local
296 view.setUnknownNameText(mUnknownNameText); in newView()
297 view.setQuickContactEnabled(isQuickContactEnabled()); in newView()
298 view.setPhotoPosition(mPhotoPosition); in newView()
299 return view; in newView()
302 protected void setHighlight(ContactListItemView view, Cursor cursor) { in setHighlight() argument
303 view.setHighlightedPrefix(isSearchMode() ? getUpperCaseQueryString() : null); in setHighlight()
329 ContactListItemView view = (ContactListItemView)itemView; in bindView() local
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/
DContactPhotoManager.java53 import android.view.View;
54 import android.view.ViewGroup;
368 public abstract void applyDefaultImage(ImageView view, int extent, boolean darkTheme, in applyDefaultImage() argument
379 public void applyDefaultImage(ImageView view, int extent, boolean darkTheme, in applyDefaultImage() argument
381 final Drawable drawable = getDefaultImageForContact(view.getResources(), in applyDefaultImage()
383 view.setImageDrawable(drawable); in applyDefaultImage()
413 public void applyDefaultImage(ImageView view, int extent, boolean darkTheme, in applyDefaultImage() argument
416 Context context = view.getContext(); in applyDefaultImage()
420 view.setImageDrawable(sDrawable); in applyDefaultImage()
448 public abstract void loadThumbnail(ImageView view, long photoId, boolean darkTheme, in loadThumbnail() argument
[all …]
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/list/
DContactListItemViewTest.java58 ContactListItemView view = createView(); in testShowDisplayName_Simple() local
60 view.showDisplayName(cursor, 0, ContactsPreferences.DISPLAY_ORDER_PRIMARY); in testShowDisplayName_Simple()
62 assertEquals(view.getNameTextView().getText().toString(), "John Doe"); in testShowDisplayName_Simple()
67 ContactListItemView view = createView(); in testShowDisplayName_Unknown() local
69 view.setUnknownNameText("unknown"); in testShowDisplayName_Unknown()
70 view.showDisplayName(cursor, 0, ContactsPreferences.DISPLAY_ORDER_PRIMARY); in testShowDisplayName_Unknown()
72 assertEquals(view.getNameTextView().getText().toString(), "unknown"); in testShowDisplayName_Unknown()
77 ContactListItemView view = createView(); in testShowDisplayName_WithPrefix() local
79 view.setHighlightedPrefix("DOE"); in testShowDisplayName_WithPrefix()
80 view.showDisplayName(cursor, 0, ContactsPreferences.DISPLAY_ORDER_PRIMARY); in testShowDisplayName_WithPrefix()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DViewUtils.java23 import android.support.v4.view.ViewCompat;
24 import android.view.View;
25 import android.view.ViewParent;
26 import android.view.Window;
27 import android.view.accessibility.AccessibilityEvent;
28 import android.view.accessibility.AccessibilityManager;
40 public static boolean isViewRtl(View view) { in isViewRtl() argument
41 return ViewCompat.getLayoutDirection(view) == ViewCompat.LAYOUT_DIRECTION_RTL; in isViewRtl()
48 public static int getPaddingStart(View view) { in getPaddingStart() argument
49 return Utils.isRunningJBMR1OrLater() ? view.getPaddingStart() : view.getPaddingLeft(); in getPaddingStart()
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DPostalAddressListAdapter.java27 import android.view.View;
28 import android.view.ViewGroup;
117 ContactListItemView view = super.newView(context, partition, cursor, position, parent); in newView() local
118 view.setUnknownNameText(mUnknownNameText); in newView()
119 view.setQuickContactEnabled(isQuickContactEnabled()); in newView()
120 view.setIsSectionHeaderEnabled(isSectionHeaderDisplayEnabled()); in newView()
121 return view; in newView()
127 ContactListItemView view = (ContactListItemView)itemView; in bindView() local
128 bindSectionHeaderAndDivider(view, position); in bindView()
129 bindName(view, cursor); in bindView()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/
DPicker.java27 import android.view.KeyEvent;
28 import android.view.LayoutInflater;
29 import android.view.View;
30 import android.view.ViewGroup;
31 import android.view.ViewGroup.LayoutParams;
32 import android.view.animation.AccelerateInterpolator;
33 import android.view.animation.DecelerateInterpolator;
34 import android.view.animation.Interpolator;
86 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
393 private void setOrAnimateAlpha(View view, boolean selected, boolean focused, boolean animate, in setOrAnimateAlpha() argument
[all …]

12345678910>>...68