Searched defs:desired (Results 1 - 11 of 11) sorted by relevance

/frameworks/support/slices/view/src/androidTest/java/androidx/slice/
H A DSliceXmlTest.java156 private void assertEquivalent(Slice desired, Slice actual) { argument
157 assertEquals(desired.getUri(), actual.getUri());
158 assertEquals(desired.getHints(), actual.getHints());
159 assertEquals(desired.getItems().size(), actual.getItems().size());
161 for (int i = 0; i < desired.getItems().size(); i++) {
162 assertEquivalent(desired.getItems().get(i), actual.getItems().get(i));
166 private void assertEquivalent(SliceItem desired, SliceItem actual) { argument
167 boolean isSliceType = FORMAT_SLICE.equals(desired.getFormat())
168 || FORMAT_ACTION.equals(desired.getFormat());
173 assertEquals(desired
[all...]
H A DSliceMetadataTest.java641 private void assertEquivalent(androidx.slice.core.SliceAction desired, argument
643 assertEquals(desired.getTitle(), actual.getTitle());
644 assertEquals(desired.getContentDescription(), actual.getContentDescription());
645 assertEquals(desired.isToggle(), actual.isToggle());
646 assertEquals(desired.isDefaultToggle(), actual.isDefaultToggle());
647 assertEquals(desired.isChecked(), actual.isChecked());
648 assertEquals(desired.getPriority(), actual.getPriority());
649 assertEquals(desired.getIcon() == null, actual.getIcon() == null);
650 assertEquals(desired.getImageMode(), actual.getImageMode());
/frameworks/base/core/java/com/android/internal/inputmethod/
H A DLocaleUtils.java43 * Calculates a matching score for the single desired locale.
48 * @param desired The locale preferred by user.
53 @NonNull final ULocale desired) {
54 // Assuming supported/desired is fully expanded.
55 if (supported.equals(desired)) {
62 if (supportedScript.isEmpty() || !supportedScript.equals(desired.getScript())) {
68 if (supportedCountry.isEmpty() || !supportedCountry.equals(desired.getCountry())) {
52 calculateMatchingSubScore(@onNull final ULocale supported, @NonNull final ULocale desired) argument
/frameworks/base/core/java/android/os/
H A DLocaleList.java328 private static int matchScore(Locale supported, Locale desired) { argument
329 if (supported.equals(desired)) {
332 if (!supported.getLanguage().equals(desired.getLanguage())) {
335 if (isPseudoLocale(supported) || isPseudoLocale(desired)) {
347 supportedRegion.equals(desired.getCountry()))
350 final String desiredScr = getLikelyScript(desired);
/frameworks/support/compat/src/main/java/androidx/core/os/
H A DLocaleListHelper.java312 private static int matchScore(Locale supported, Locale desired) { argument
313 if (supported.equals(desired)) {
316 if (!supported.getLanguage().equals(desired.getLanguage())) {
319 if (isPseudoLocale(supported) || isPseudoLocale(desired)) {
330 return (supportedRegion.isEmpty() || supportedRegion.equals(desired.getCountry()))
334 final String desiredScr = getLikelyScript(desired);
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DTestedFrameLayout.java131 public static int chooseSize(int spec, int desired, int min) { argument
138 return Math.min(size, desired);
141 return Math.max(desired, min);
/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternView.java652 private int resolveMeasured(int measureSpec, int desired) argument
658 result = desired;
661 result = Math.max(specSize, desired);
H A DRecyclerView.java2237 * is not in the focus direction is still valid focus target which may not be the desired
7004 * Chooses a size from the given specs and parameters that is closest to the desired size
7008 * @param desired The preferred measurement
7013 public static int chooseSize(int spec, int desired, int min) { argument
7020 return Math.min(size, Math.max(desired, min));
7023 return Math.max(desired, min);
7052 * {@link RecyclerView#onMeasure(int, int)} call, then calculating desired dimensions based
7765 * any of the affected views; the LayoutManager is responsible for doing so if desired.
/frameworks/native/libs/binder/
H A DParcel.cpp2568 status_t Parcel::restartWrite(size_t desired) argument
2570 if (desired > INT32_MAX) {
2578 return continueWrite(desired);
2581 uint8_t* data = (uint8_t*)realloc(mData, desired);
2582 if (!data && desired > mDataCapacity) {
2590 LOG_ALLOC("Parcel %p: restart from %zu to %zu capacity", this, mDataCapacity, desired);
2592 gParcelGlobalAllocSize += desired;
2599 mDataCapacity = desired;
2618 status_t Parcel::continueWrite(size_t desired) argument
2620 if (desired > INT32_MA
[all...]
/frameworks/base/core/java/android/widget/
H A DTextView.java1685 * @param unit the desired dimension unit for all sizes above. See {@link TypedValue} for the
1730 * @param unit the desired dimension unit for the preset sizes above. See {@link TypedValue} for
3826 * @param unit The desired dimension unit.
3827 * @param size The desired size in the given units.
8010 * this to do their desired behavior.
8161 * The width passed in is now the desired layout width,
8412 private static int desired(Layout layout) { method in class:TextView
8497 des = desired(mLayout);
8530 hintDes = desired(mHintLayout);
8617 int desired
[all...]
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DRecyclerView.java1552 * @param index The index position of the desired ItemDecoration.
2513 * is not in the focus direction is still valid focus target which may not be the desired
7554 * Chooses a size from the given specs and parameters that is closest to the desired size
7558 * @param desired The preferred measurement
7563 public static int chooseSize(int spec, int desired, int min) { argument
7570 return Math.min(size, Math.max(desired, min));
7573 return Math.max(desired, min);
7625 * {@link RecyclerView#onMeasure(int, int)}, and then calculating desired dimensions based
8334 * any of the affected views; the LayoutManager is responsible for doing so if desired.

Completed in 2894 milliseconds