[go: nahoru, domu]

Searched refs:desired (Results 1 - 12 of 12) sorted by relevance

/frameworks/base/core/java/com/android/internal/inputmethod/
H A DLocaleUtils.java42 * Calculates a matching score for the single desired locale.
47 * @param desired The locale preferred by user.
52 @NonNull final ULocale desired) {
53 // Assuming supported/desired is fully expanded.
54 if (supported.equals(desired)) {
61 if (supportedScript.isEmpty() || !supportedScript.equals(desired.getScript())) {
67 if (supportedCountry.isEmpty() || !supportedCountry.equals(desired.getCountry())) {
76 * Calculates a matching score for the desired locale list.
79 * supported locale matches with the desired locale. The supported locale gets a matching
80 * score of 2 if the language and script of the supported locale matches with the desired
51 calculateMatchingSubScore(@onNull final ULocale supported, @NonNull final ULocale desired) argument
92 calculateMatchingScore(@onNull final ULocale supported, @NonNull final LocaleList desired, @NonNull byte[] out) argument
[all...]
/frameworks/native/libs/binder/
H A DParcel.cpp2324 status_t Parcel::restartWrite(size_t desired) argument
2326 if (desired > INT32_MAX) {
2334 return continueWrite(desired);
2337 uint8_t* data = (uint8_t*)realloc(mData, desired);
2338 if (!data && desired > mDataCapacity) {
2346 LOG_ALLOC("Parcel %p: restart from %zu to %zu capacity", this, mDataCapacity, desired);
2348 gParcelGlobalAllocSize += desired;
2355 mDataCapacity = desired;
2373 status_t Parcel::continueWrite(size_t desired) argument
2375 if (desired > INT32_MA
[all...]
/frameworks/base/core/java/android/os/
H A DLocaleList.java303 private static int matchScore(Locale supported, Locale desired) { argument
304 if (supported.equals(desired)) {
307 if (!supported.getLanguage().equals(desired.getLanguage())) {
310 if (isPseudoLocale(supported) || isPseudoLocale(desired)) {
322 supportedRegion.equals(desired.getCountry()))
325 final String desiredScr = getLikelyScript(desired);
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DTestedFrameLayout.java94 public static int chooseSize(int spec, int desired, int min) { argument
101 return Math.min(size, desired);
104 return Math.max(desired, min);
/frameworks/wilhelm/src/itf/
H A DIOutputMixExt.c210 unsigned desired = size; local
228 while (desired > 0) {
229 unsigned actual = desired;
269 desired -= actual;
311 // we need more data: desired > 0 but actual == 0
/frameworks/base/tools/aapt/
H A DBundle.h254 bool isMinSdkAtLeast(int desired) const {
272 if (minSdkNum < desired) {
/frameworks/base/core/java/android/widget/
H A DTextView.java2985 * @param unit The desired dimension unit.
2986 * @param size The desired size in the given units.
6608 * this to do their desired behavior.
6756 * The width passed in is now the desired layout width,
6985 private static int desired(Layout layout) { method in class:TextView
7065 des = desired(mLayout);
7097 hintDes = desired(mHintLayout);
7184 int desired = getDesiredHeight();
7186 height = desired;
7187 mDesiredHeightAtMeasure = desired;
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternView.java626 private int resolveMeasured(int measureSpec, int desired) argument
632 result = desired;
635 result = Math.max(specSize, desired);
/frameworks/native/include/binder/
H A DParcel.h370 status_t restartWrite(size_t desired);
371 status_t continueWrite(size_t desired);
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DStaggeredGridLayoutManager.java734 int desired = Math.round(maxSize * mSpanCount);
736 desired = Math.min(desired, mSecondaryOrientation.getTotalSpace());
738 updateMeasureSpecs(desired);
2206 // either could not find from the desired span or prev view is full span.
H A DRecyclerView.java2099 * is not in the focus direction is still valid focus target which may not be the desired
6429 * Chooses a size from the given specs and parameters that is closest to the desired size
6433 * @param desired The preferred measurement
6438 public static int chooseSize(int spec, int desired, int min) { argument
6445 return Math.min(size, Math.max(desired, min));
6448 return Math.max(desired, min);
6477 * {@link RecyclerView#onMeasure(int, int)} call, then calculating desired dimensions based
7098 * any of the affected views; the LayoutManager is responsible for doing so if desired.
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPackageManagerTests.java1162 boolean checkMediaState(String desired) { argument
1164 if (desired.equals(actual)) {

Completed in 1427 milliseconds