MCPcopy Create free account
hub / github.com/OneUIProject/oneui-core / max

Method max

core/src/main/java/androidx/core/graphics/Insets.java:112–116  ·  view source on GitHub ↗

Returns the component-wise maximum of two Insets. @param a The first Insets. @param b The second Insets. @return an Insets instance where the inset on each side is the larger of the insets on that side from a and b.

(@NonNull Insets a, @NonNull Insets b)

Source from the content-addressed store, hash-verified

110 * the insets on that side from {@code a} and {@code b}.
111 */
112 @NonNull
113 public static Insets max(@NonNull Insets a, @NonNull Insets b) {
114 return Insets.of(Math.max(a.left, b.left), Math.max(a.top, b.top),
115 Math.max(a.right, b.right), Math.max(a.bottom, b.bottom));
116 }
117
118 /**
119 * Returns the component-wise minimum of two Insets.

Callers 15

getInsetsMethod · 0.95
applyInsetTypesMethod · 0.95
onProgressMethod · 0.95
onLayoutMethod · 0.45
computeScrollMethod · 0.45
drawChildMethod · 0.45
majorAxisDistanceMethod · 0.45
moveToStateMethod · 0.45
computeExpectedStateMethod · 0.45
onPullMethod · 0.45

Calls 1

ofMethod · 0.95

Tested by

no test coverage detected