/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl_with_mp1/ |
VideoViewInterfaceWithMp1.java | 20 import android.view.View; 26 * Assigns the view's surface to the given MediaPlayer instance. 38 * Takes over oldView. It means that the MediaPlayer will start rendering on this view. 39 * The visibility of oldView will be set as {@link View.GONE}. If the view doesn't have a 45 * @param oldView The view that MediaPlayer is currently rendering on. 50 * Indicates if the view's surface is available. 61 void onSurfaceCreated(View view, int width, int height) [all...] |
/frameworks/support/transition/src/main/java/androidx/transition/ |
ViewGroupOverlayApi14.java | 20 import android.view.View; 21 import android.view.ViewGroup; 27 ViewGroupOverlayApi14(Context context, ViewGroup hostView, View requestingView) { 36 public void add(@NonNull View view) { 37 mOverlayViewGroup.add(view); 41 public void remove(@NonNull View view) { 42 mOverlayViewGroup.remove(view); [all...] |
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/ |
AddContactViewHolder.java | 21 import android.view.View; 22 import android.view.View.OnClickListener; 31 AddContactViewHolder(View view) { 32 super(view); 33 view.setOnClickListener(this); 34 context = view.getContext(); 38 public void onClick(View v) [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
HideFromAccessibilityHelper.java | 19 import android.view.View; 20 import android.view.ViewGroup; 21 import android.view.ViewGroup.OnHierarchyChangeListener; 26 private HashMap<View, Integer> mPreviousValues; 31 mPreviousValues = new HashMap<View, Integer>(); 35 public void setImportantForAccessibilityToNo(View v, boolean onlyAllApps) { 41 private void setImportantForAccessibilityToNoHelper(View v) { 43 v.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO); 50 View child = vg.getChildAt(i) [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
RadioButtonPreferenceTest.java | 27 import android.view.View; 62 View summaryContainer = new View(mContext); 63 View view = mock(View.class); local 64 when(view.findViewById(R.id.summary_container)).thenReturn(summaryContainer); 66 PreferenceViewHolder.createInstanceForTests(view); 68 assertEquals(View.VISIBLE, summaryContainer.getVisibility()) 75 View view = mock(View.class); local 87 View view = mock(View.class); local [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
AttachmentDeletionInterface.java | 4 import android.view.View.OnClickListener; 8 * attachments so that the larger attachments view can set 14 * Sets the onClickListener for the close button on the attachment view.
|
/packages/apps/UnifiedEmail/src/com/android/mail/text/ |
LinkStyleSpan.java | 22 import android.view.View; 38 final View.OnClickListener mOnClickListener; 40 public LinkStyleSpan(View.OnClickListener onClickListener) { 45 public void onClick(View widget) {
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
Visibility1.java | 17 package com.example.android.apis.view; 25 import android.view.View; 26 import android.view.View.OnClickListener; 31 * Demonstrates making a view VISIBLE, INVISIBLE and GONE 36 private View mVictim; 43 // Find the view whose visibility will change 58 public void onClick(View v) { 59 mVictim.setVisibility(View.VISIBLE) [all...] |
/development/samples/devbytes/animation/MultiPropertyAnimations/src/com/example/android/multipropertyanimations/ |
MultiPropertyAnimations.java | 25 import android.view.View; 52 public void runValueAnimator(final View view) { 58 view.setTranslationX(TX_START + fraction * (TX_END - TX_START)); 59 view.setTranslationY(TY_START + fraction * (TY_END - TY_START)); 67 * View properties, even when there are multiple properties to be animated 70 public void runViewPropertyAnimator(View view) { 71 view.animate().translationX(TX_END).translationY(TY_END) [all...] |
/frameworks/base/core/java/android/widget/ |
ViewSwitcher.java | 21 import android.view.View; 22 import android.view.ViewGroup; 62 public void addView(View child, int index, ViewGroup.LayoutParams params) { 75 * Returns the next view to be displayed. 77 * @return the view that will be displayed after the next views flip. 79 public View getNextView() { 84 private View obtainView() { 85 View child = mFactory.makeView(); 97 * {@link #addView(android.view.View, int, android.view.ViewGroup.LayoutParams) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
NotificationListContainer.java | 21 import android.view.View; 22 import android.view.ViewGroup; 42 * @param child the view to change the position for 45 void changeViewPosition(View child, int newIndex); 52 void notifyGroupChildAdded(View row); 60 void notifyGroupChildRemoved(View row, ViewGroup childrenContainer); 63 * Generate an animation for an added child view. 65 * @param child The view to be added. 68 void generateAddAnimation(View child, boolean fromMoreCard) [all...] |
/packages/apps/Car/Media/src/com/android/car/media/widgets/ |
ViewUtils.java | 6 import android.view.View; 13 * Hides a view using a fade-out animation 15 * @param view {@link View} to be hidden 18 public static void hideViewAnimated(@NonNull View view, int duration) { 19 if (view.getVisibility() == View.GONE) { 22 if (!view.isLaidOut()) [all...] |
/packages/apps/Contacts/src/com/android/contacts/widget/ |
TransitionAnimationView.java | 22 import android.view.View; 26 * A container that places a masking view on top of all other views. The masking view can be 27 * faded in and out. Currently, the masking view is solid color white. 30 private View mMaskingView; 48 mMaskingView = new View(getContext()); 49 mMaskingView.setVisibility(View.INVISIBLE); 59 mMaskingView.setVisibility(View.VISIBLE); 61 mMaskingView.setVisibility(View.INVISIBLE) [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
EmptyViewController.java | 23 import android.view.View; 24 import android.view.ViewGroup; 29 * Controller that displays empty view and handles animation appropriately. 38 private final View mContentView; 39 private final View mEmptyView; 45 * @param contentView The view that should be displayed when empty view is hidden. 46 * @param emptyView The view that should be displayed when main view is empty [all...] |
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
Views.java | 20 import android.view.View; 28 public static View createTestView() { 29 final View view = Mockito.mock(View.class); local 30 Mockito.doCallRealMethod().when(view).setTag(Mockito.anyInt(), Mockito.any()); 31 Mockito.doCallRealMethod().when(view).getTag(Mockito.anyInt()); 33 return view; 37 * Dummy View object with (x, y) coordinate 40 View view = createTestView(); local 48 View view = createTestView(); local [all...] |
/developers/build/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/ |
MainActivity.java | 23 import android.view.View; 52 loginEditTexts.setNavigationButtonClickListener(new View.OnClickListener() { 54 public void onClick(View view) { 58 loginCustomVirtual.setNavigationButtonClickListener(new View.OnClickListener() { 60 public void onClick(View view) { 64 creditCard.setNavigationButtonClickListener(new View.OnClickListener() { 66 public void onClick(View view) [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowListView.java | 7 import android.view.View; 21 private List<View> headerViews = new ArrayList<View>(); 22 private List<View> footerViews = new ArrayList<View>(); 29 public View findViewById(int id) { 30 View child = super.findViewById(id); 41 private View findView(List<View> views, int viewId) [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ |
RotateDialogController.java | 23 import android.view.LayoutInflater; 24 import android.view.View; 25 import android.view.ViewGroup; 26 import android.view.animation.Animation; 27 import android.view.animation.AnimationUtils; 39 private View mDialogRootLayout; 41 private View mRotateDialogTitleLayout; 42 private View mRotateDialogButtonLayout; 60 View v = inflater.inflate(mLayoutResourceID, layoutRoot) [all...] |
/packages/apps/Camera2/src/com/android/camera/app/ |
FilmstripBottomPanel.java | 22 import android.view.View; 23 import android.view.View.OnClickListener; 24 import android.view.ViewGroup; 44 private final View mControlLayout; 49 private final View mMiddleFiller; 50 private View mProgressLayout; 52 private View mProgressErrorLayout; 92 mLayout.setVisibility(View.VISIBLE) [all...] |
/frameworks/support/core/ktx/src/main/java/androidx/core/view/ |
View.kt | 19 package androidx.core.view 22 import android.view.View 23 import android.view.ViewGroup 24 import android.view.ViewTreeObserver 25 import android.view.accessibility.AccessibilityEvent 32 * Performs the given action when this view is next laid out. 36 inline fun View.doOnNextLayout(crossinline action: (view: View) -> Unit) [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/ |
ZenRadioLayout.java | 19 import android.view.View; 20 import android.view.ViewGroup; 26 * with the corresponding content in the second child of this view. 49 View lastView = null; 51 View radio = radioGroup.getChildAt(i); 52 View content = radioContent.getChildAt(i); 56 View contentClick = findFirstClickable(content); 70 private View findFirstClickable(View content) [all...] |
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
PhoneCallDetailsViews.java | 20 import android.view.View; 29 public final View callTypeView; 32 public final View transcriptionView; 35 public final View voicemailTranscriptionRatingView; 40 View callTypeView, 43 View transcriptionView, 46 View voicemailTranscriptionRatingView, 60 * Create a new instance by extracting the elements from the given view. 62 * <p>The view should contain three text views with identifiers {@code R.id.name}, {@cod [all...] |
/packages/apps/Dialer/java/com/android/incallui/video/impl/ |
SwitchOnHoldCallController.java | 21 import android.view.View; 22 import android.view.View.OnClickListener; 34 @NonNull private View switchOnHoldButton; 36 @NonNull private View onHoldBanner; 45 @NonNull View switchOnHoldButton, 46 @NonNull View onHoldBanner, 82 switchOnHoldButton.setVisibility(isVisible ? View.VISIBLE : View.INVISIBLE) [all...] |
/packages/apps/TV/src/com/android/tv/util/ |
ViewCache.java | 20 import android.view.LayoutInflater; 21 import android.view.View; 22 import android.view.ViewGroup; 27 private static final SparseArray<ArrayList<View>> mViews = new SparseArray(); 33 /** Returns an instance of the view cache. */ 41 /** Returns if the view cache is empty. */ 46 /** Stores a view into this view cache. */ 47 public void putView(int resId, View view) 66 View view = inflater.inflate(resId, fakeParent, false); local 75 View view = views.remove(views.size() - 1); local 87 View view = getView(resId); local [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
ConversationListFooterView.java | 24 import android.view.View; 31 public final class ConversationListFooterView extends LinearLayout implements View.OnClickListener { 37 private View mLoading; 38 private View mLoadMore; 60 public void onClick(View v) { 74 * Update the view to reflect the new folder status. 78 mLoading.setVisibility(View.GONE); 79 mLoadMore.setVisibility(View.GONE); 90 mLoading.setVisibility(View.VISIBLE) [all...] |