/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/ |
H A D | CollapsibleActionView.java | 17 package androidx.appcompat.view; 20 * When a {@link android.view.View} implements this interface it will receive callbacks when expanded or 21 * collapsed as an action view alongside the optional, app-specified callbacks to {@link 22 * androidx.core.view.MenuItemCompat.OnActionExpandListener}. 24 * <p>See {@link androidx.core.view.MenuItemCompat} for more information about action views. 30 * Called when this view is expanded as an action view. See 31 * {@link android.view.MenuItem#expandActionView()}. 36 * Called when this view is collapsed as an action view [all...] |
/frameworks/support/wear/src/main/java/androidx/wear/widget/drawer/ |
H A D | FlingWatcherFactory.java | 19 import android.view.View; 41 * Listener that is notified when a fling completes and the view has settled. Polling may be 45 void onFlingComplete(View view); argument 49 * Watches a given {@code view} to detect the end of a fling. Will notify a {@link 71 FlingWatcher getFor(View view) { argument 72 FlingWatcher watcher = mWatchers.get(view); 74 watcher = createFor(view); 76 mWatchers.put(view, watcher); 87 private FlingWatcher createFor(View view) { argument 88 if (view [all...] |
/frameworks/support/compat/src/main/java/androidx/core/view/ |
H A D | NestedScrollingChild.java | 18 package androidx.core.view; 20 import android.view.MotionEvent; 21 import android.view.VelocityTracker; 22 import android.view.View; 23 import android.view.ViewConfiguration; 24 import android.view.ViewParent; 27 import androidx.core.view.ViewCompat.ScrollAxis; 30 * This interface should be implemented by {@link android.view.View View} subclasses that wish 32 * {@link android.view.ViewGroup ViewGroup}. 45 * Enable or disable nested scrolling for this view [all...] |
H A D | NestedScrollingChild2.java | 18 package androidx.core.view; 20 import android.view.MotionEvent; 21 import android.view.View; 22 import android.view.ViewParent; 25 import androidx.core.view.ViewCompat.NestedScrollType; 26 import androidx.core.view.ViewCompat.ScrollAxis; 31 * {@link android.view.ViewGroup ViewGroup}. 47 * <p>A view starting a nested scroll promises to abide by the following contract:</p> 49 * <p>The view will call startNestedScroll upon initiating a scroll operation. In the case 96 * Returns true if this view ha [all...] |
/frameworks/base/tests/testables/src/android/testing/ |
H A D | ViewUtils.java | 20 import android.view.View; 21 import android.view.WindowManager; 22 import android.view.WindowManager.LayoutParams; 30 * Causes the view (and its children) to have {@link View#onAttachedToWindow()} called. 32 * This is currently done by adding the view to a window. 34 public static void attachView(View view) { argument 36 view.getContext().getApplicationInfo().flags &= 42 view.getContext().getSystemService(WindowManager.class).addView(view, lp); 46 * Causes the view (an 50 detachView(View view) argument [all...] |
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/view/ |
H A D | ViewTest.kt | 17 package androidx.core.view 22 import android.view.LayoutInflater 23 import android.view.View 24 import android.view.ViewGroup 38 private val view = View(context) 43 view.doOnNextLayout { 46 view.layout(0, 0, 10, 10) 50 view.layout(0, 0, 10, 10) 57 view.doOnLayout { 60 view [all...] |
/frameworks/base/core/java/android/view/ |
H A D | ViewGroupOverlay.java | 16 package android.view; 24 * (the "host view") which is drawn after all other content in that view 25 * (including the view group's children). Interaction with the overlay 41 * Adds a {@code View} to the overlay. The bounds of the added view should be 42 * relative to the host view. Any view added to the overlay should be 50 * <p>If the view has a parent, the view will be removed from that parent 52 * in the current view hierarch 71 add(@onNull View view) argument 83 remove(@onNull View view) argument [all...] |
H A D | IRecentsAnimationRunner.aidl | 17 package android.view; 20 import android.view.RemoteAnimationTarget; 21 import android.view.IRecentsAnimationController;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | HeadsUpUtil.java | 19 import android.view.View; 30 * Set the given view as clicked or not-clicked. 31 * @param view The view to be set the flag to. 34 public static void setIsClickedHeadsUpNotification(View view, boolean clicked) { argument 35 view.setTag(TAG_CLICKED_NOTIFICATION, clicked ? true : null); 39 * Check if the given view has the flag of "clicked notification" 40 * @param view The view to be checked. 41 * @return True if the view ha 43 isClickedHeadsUpNotification(View view) argument [all...] |
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
H A D | ForegroundHelper.java | 5 import android.view.View; 9 * Returns true if view.setForeground() is supported. 15 static Drawable getForeground(View view) { argument 17 return view.getForeground(); 23 static void setForeground(View view, Drawable drawable) { argument 25 view.setForeground(drawable);
|
H A D | BackgroundHelper.java | 22 import android.view.View; 27 * Helper for view backgrounds. 32 public static void setBackgroundPreservingAlpha(View view, Drawable drawable) { argument 34 if (view.getBackground() != null) { 35 drawable.setAlpha(view.getBackground().getAlpha()); 37 view.setBackground(drawable); 40 view.setBackground(drawable);
|
H A D | RoundedRectHelper.java | 17 import android.view.View; 22 * Helper for setting rounded rectangle backgrounds on a view. 30 * Sets or removes a rounded rectangle outline on the given view. 32 static void setClipToRoundedOutline(View view, boolean clip, int radius) { argument 34 RoundedRectHelperApi21.setClipToRoundedOutline(view, clip, radius); 39 * Sets or removes a rounded rectangle outline on the given view. 41 static void setClipToRoundedOutline(View view, boolean clip) { argument 43 int radius = view.getResources().getDimensionPixelSize( 45 RoundedRectHelperApi21.setClipToRoundedOutline(view, clip, radius);
|
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
H A D | ItemTouchUIUtil.java | 20 import android.view.View; 41 void onDraw(Canvas c, RecyclerView recyclerView, View view, argument 48 void onDrawOver(Canvas c, RecyclerView recyclerView, View view, argument 55 void clearView(View view); argument 61 void onSelected(View view); argument
|
H A D | ItemTouchUIUtilImpl.java | 21 import android.view.View; 23 import androidx.core.view.ViewCompat; 34 public void onDraw(Canvas c, RecyclerView recyclerView, View view, float dX, float dY, argument 38 Object originalElevation = view.getTag(R.id.item_touch_helper_previous_elevation); 40 originalElevation = ViewCompat.getElevation(view); 41 float newElevation = 1f + findMaxElevation(recyclerView, view); 42 ViewCompat.setElevation(view, newElevation); 43 view.setTag(R.id.item_touch_helper_previous_elevation, originalElevation); 48 view.setTranslationX(dX); 49 view 69 onDrawOver(Canvas c, RecyclerView recyclerView, View view, float dX, float dY, int actionState, boolean isCurrentlyActive) argument 74 clearView(View view) argument 88 onSelected(View view) argument [all...] |
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/util/ |
H A D | MoreViewAssertions.java | 24 import android.view.View; 37 public void check(View view, NoMatchingViewException noViewException) { 38 assertThat("View left: " + HumanReadables.describe(view), view.getLeft(), matcher); 46 public void check(View view, NoMatchingViewException noViewException) { 47 assertThat("View top: " + HumanReadables.describe(view), ((double) view.getTop()), 56 public void check(View view, NoMatchingViewException noViewException) { 57 assertThat("View top: " + HumanReadables.describe(view), view [all...] |
/frameworks/support/fragment/src/main/java/androidx/fragment/app/ |
H A D | OneShotPreDrawListener.java | 19 import android.view.View; 20 import android.view.ViewTreeObserver; 26 * OneShotPreDrawListener.add(view, () -> { view.doSomething(); }) 31 * The listener will also remove itself from the ViewTreeObserver when the view 32 * is detached from the view hierarchy. In that case, the Runnable will never be 41 private OneShotPreDrawListener(View view, Runnable runnable) { argument 42 mView = view; 43 mViewTreeObserver = view.getViewTreeObserver(); 48 * Creates a OneShotPreDrawListener and adds it to view' 54 add(View view, Runnable runnable) argument [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | WebViewClient.java | 24 import android.view.InputEvent; 25 import android.view.KeyEvent; 26 import android.view.ViewRootImpl; 42 * @param view The WebView that is initiating the callback. 50 public boolean shouldOverrideUrlLoading(WebView view, String url) { argument 71 * @param view The WebView that is initiating the callback. 76 public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) { argument 77 return shouldOverrideUrlLoading(view, request.getUrl().toString()); 89 * @param view The WebView that is initiating the callback. 94 public void onPageStarted(WebView view, Strin argument 106 onPageFinished(WebView view, String url) argument 116 onLoadResource(WebView view, String url) argument 146 onPageCommitVisible(WebView view, String url) argument 182 shouldInterceptRequest(WebView view, String url) argument 217 shouldInterceptRequest(WebView view, WebResourceRequest request) argument 235 onTooManyRedirects(WebView view, Message cancelMsg, Message continueMsg) argument 305 onReceivedError(WebView view, int errorCode, String description, String failingUrl) argument 318 onReceivedError(WebView view, WebResourceRequest request, WebResourceError error) argument 336 onReceivedHttpError( WebView view, WebResourceRequest request, WebResourceResponse errorResponse) argument 349 onFormResubmission(WebView view, Message dontResend, Message resend) argument 361 doUpdateVisitedHistory(WebView view, String url, boolean isReload) argument 386 onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) argument 424 onReceivedClientCertRequest(WebView view, ClientCertRequest request) argument 440 onReceivedHttpAuthRequest(WebView view, HttpAuthHandler handler, String host, String realm) argument 457 shouldOverrideKeyEvent(WebView view, KeyEvent event) argument 471 onUnhandledKeyEvent(WebView view, KeyEvent event) argument 494 onUnhandledInputEvent(WebView view, InputEvent event) argument 502 onUnhandledInputEventInternal(WebView view, InputEvent event) argument 517 onScaleChanged(WebView view, float oldScale, float newScale) argument 530 onReceivedLoginRequest(WebView view, String realm, @Nullable String account, String args) argument 558 onRenderProcessGone(WebView view, RenderProcessGoneDetail detail) argument 578 onSafeBrowsingHit(WebView view, WebResourceRequest request, @SafeBrowsingThreat int threatType, SafeBrowsingResponse callback) argument [all...] |
/frameworks/base/core/java/android/text/method/ |
H A D | KeyListener.java | 20 import android.view.KeyEvent; 21 import android.view.View; 27 * {@link android.view.inputmethod.InputMethod}; it should only be used 63 public boolean onKeyDown(View view, Editable text, argument 71 public boolean onKeyUp(View view, Editable text, argument 79 public boolean onKeyOther(View view, Editable text, KeyEvent event); argument 84 public void clearMetaKeyState(View view, Editable content, int states); argument
|
/frameworks/support/car/src/main/java/androidx/car/utils/ |
H A D | ListItemBackgroundResolver.java | 19 import android.view.View; 32 * Sets the background on the given view so that the combination of all items looks like a 33 * rectangle with rounded corner. The view is assumed to have a non-rounded corner outline. 35 * <p>The view will be set with rounded backgrounds if it is the only card within the list. 36 * Or if it is the first or last view, it will have the top or bottom corners rounded 39 * @param view The view whose background to set. 44 public static void setBackground(View view, int currentPosition, int totalItems) { argument 57 view.setBackgroundResource(R.drawable.car_card_rounded_background); 60 view [all...] |
/frameworks/support/transition/src/main/java/androidx/transition/ |
H A D | ViewGroupOverlayApi14.java | 20 import android.view.View; 21 import android.view.ViewGroup; 36 public void add(@NonNull View view) { argument 37 mOverlayViewGroup.add(view); 41 public void remove(@NonNull View view) { argument 42 mOverlayViewGroup.remove(view);
|
H A D | ImageViewUtils.java | 36 * Starts animating the transformation of the image view. This has to be called before calling 39 static void startAnimateTransform(ImageView view) { argument 41 final ImageView.ScaleType scaleType = view.getScaleType(); 42 view.setTag(R.id.save_scale_type, scaleType); 44 view.setTag(R.id.save_image_matrix, view.getImageMatrix()); 46 view.setScaleType(ImageView.ScaleType.MATRIX); 48 view.setImageMatrix(MatrixUtils.IDENTITY_MATRIX); 53 * Sets the matrix to animate the content of the image view. 55 static void animateTransform(ImageView view, Matri argument 89 reserveEndAnimateTransform(final ImageView view, Animator animator) argument [all...] |
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/ |
H A D | AppCompatHintHelper.java | 19 import android.view.View; 20 import android.view.ViewParent; 21 import android.view.inputmethod.EditorInfo; 22 import android.view.inputmethod.InputConnection; 27 View view) { 31 ViewParent parent = view.getParent(); 26 onCreateInputConnection(InputConnection ic, EditorInfo outAttrs, View view) argument
|
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
H A D | TextViewBindingAdapter.java | 63 public static void setText(TextView view, CharSequence text) { argument 64 final CharSequence oldText = view.getText(); 75 view.setText(text); 79 public static String getTextString(TextView view) { argument 80 return view.getText().toString(); 84 public static void setAutoText(TextView view, boolean autoText) { argument 85 KeyListener listener = view.getKeyListener(); 97 view.setKeyListener(TextKeyListener.getInstance(autoText, capitalize)); 101 public static void setCapitalize(TextView view, TextKeyListener.Capitalize capitalize) { argument 102 KeyListener listener = view 110 setBufferType(TextView view, TextView.BufferType bufferType) argument 115 setDigits(TextView view, CharSequence digits) argument 124 setNumeric(TextView view, int numeric) argument 130 setPhoneNumber(TextView view, boolean phoneNumber) argument 145 setDrawableBottom(TextView view, Drawable drawable) argument 152 setDrawableLeft(TextView view, Drawable drawable) argument 159 setDrawableRight(TextView view, Drawable drawable) argument 167 setDrawableTop(TextView view, Drawable drawable) argument 175 setDrawableStart(TextView view, Drawable drawable) argument 186 setDrawableEnd(TextView view, Drawable drawable) argument 197 setImeActionLabel(TextView view, CharSequence value) argument 202 setImeActionLabel(TextView view, int value) argument 207 setInputMethod(TextView view, CharSequence inputMethod) argument 221 setLineSpacingExtra(TextView view, float value) argument 230 setLineSpacingMultiplier(TextView view, float value) argument 239 setMaxLength(TextView view, int value) argument 273 setPassword(TextView view, boolean password) argument 282 setShadowColor(TextView view, int color) argument 292 setShadowDx(TextView view, float dx) argument 302 setShadowDy(TextView view, float dy) argument 312 setShadowRadius(TextView view, float r) argument 322 setTextSize(TextView view, float size) argument 346 setTextWatcher(TextView view, final BeforeTextChanged before, final OnTextChanged on, final AfterTextChanged after, final InverseBindingListener textAttrChanged) argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/helper/ |
H A D | ItemTouchUIUtilImpl.java | 20 import android.view.View; 31 public void onDraw(Canvas c, RecyclerView recyclerView, View view, argument 34 Object originalElevation = view.getTag( 37 originalElevation = view.getElevation(); 38 float newElevation = 1f + findMaxElevation(recyclerView, view); 39 view.setElevation(newElevation); 40 view.setTag(R.id.item_touch_helper_previous_elevation, 44 view.setTranslationX(dX); 45 view.setTranslationY(dY); 65 public void clearView(View view) { argument 77 onSelected(View view) argument 81 onDrawOver(Canvas c, RecyclerView recyclerView, View view, float dX, float dY, int actionState, boolean isCurrentlyActive) argument [all...] |
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/adapter/ |
H A D | GenericAdapter.java | 30 public static <T> void setListText(TextView view, List<T> list) { argument 31 setText(view, list); 35 public static <T> void setCollectionText(TextView view, Collection<T> list) { argument 36 setText(view, list); 40 public static <T> void setArrayText(TextView view, T[] values) { argument 41 setText(view, Arrays.asList(values)); 45 public static <T> void setListAndArray(TextView view, List<T> list, T[] values) { argument 46 setText(view, list); 50 public static <T> void setGenericViewValue(GenericView<T> view, List<T> value) { argument 51 view 55 setGenericListAndArray(GenericView<T> view, List<T> list, T[] values) argument 60 setGenericList(TextView view, List<String> list) argument 65 setGenericIntegerList(TextView view, List<Integer> list) argument 68 setText(TextView view, Collection<T> collection) argument [all...] |