Home
last modified time | relevance | path

Searched refs:quantity (Results 1 – 12 of 12) sorted by relevance

/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DResourcesWrapper.java59 public CharSequence getQuantityText(int id, int quantity) throws NotFoundException { in getQuantityText() argument
60 return mResources.getQuantityText(id, quantity); in getQuantityText()
74 public String getQuantityString(int id, int quantity, Object... formatArgs) in getQuantityString() argument
76 return mResources.getQuantityString(id, quantity, formatArgs); in getQuantityString()
80 public String getQuantityString(int id, int quantity) throws NotFoundException { in getQuantityString() argument
81 return mResources.getQuantityString(id, quantity); in getQuantityString()
/frameworks/base/test-runner/src/android/test/mock/
DMockResources.java56 public CharSequence getQuantityText(int id, int quantity) throws NotFoundException { in getQuantityText() argument
71 public String getQuantityString(int id, int quantity, Object... formatArgs) in getQuantityString() argument
77 public String getQuantityString(int id, int quantity) throws NotFoundException { in getQuantityString() argument
/frameworks/base/docs/html/guide/topics/resources/
Dstring-resource.jd219 <p>Different languages have different rules for grammatical agreement with quantity. In English,
220 for example, the quantity 1 is a special case. We write "1 book", but for any other quantity we'd
225 <p>The rules for deciding which case to use for a given language and quantity can be very complex,
230 <p>Although historically called "quantity strings" (and still called that in API), quantity
231 strings should <i>only</i> be used for plurals. It would be a mistake to use quantity strings to
233 example. It might seem convenient to use quantity strings instead of an {@code if} statement,
238 In English, a string for <code>zero</code> will be ignored even if the quantity is 0, because 0
244 the quantity 2: a language may require that 2, 12, 102 (and so on) are all treated like one
248 <p>It's often possible to avoid quantity strings by using quantity-neutral formulations such as
277 quantity=["zero" | "one" | "two" | "few" | "many" | "other"]
[all …]
/frameworks/base/core/java/android/content/res/
DResources.java336 public CharSequence getQuantityText(@PluralsRes int id, int quantity) in getQuantityText() argument
340 attrForQuantityCode(rule.quantityForInt(quantity))); in getQuantityText()
349 + " quantity=" + quantity in getQuantityText()
350 + " item=" + stringForQuantityCode(rule.quantityForInt(quantity))); in getQuantityText()
458 public String getQuantityString(@PluralsRes int id, int quantity, Object... formatArgs) in getQuantityString() argument
460 String raw = getQuantityText(id, quantity).toString(); in getQuantityString()
484 public String getQuantityString(@PluralsRes int id, int quantity) in getQuantityString() argument
486 return getQuantityText(id, quantity).toString(); in getQuantityString()
/frameworks/base/core/java/android/text/style/
DTtsSpan.java1273 public MoneyBuilder setQuantity(String quantity) { in setQuantity() argument
1274 return setStringArgument(TtsSpan.ARG_QUANTITY, quantity); in setQuantity()
/frameworks/base/docs/html/design/tv/
Dstyle.jd16 things at better quality, rather than greater quantity. For example, use your layouts to show
/frameworks/base/docs/html/training/displaying-bitmaps/
Dcache-bitmap.jd82 <li>Can you balance quality against quantity? Sometimes it can be more useful to store a larger
/frameworks/base/docs/html/tools/sdk/
Dtools-notes.jd965 JavaScript interfaces, {@link android.app.Service} casting, quantity strings, manifest
Declipse-adt.jd700 JavaScript interfaces, {@link android.app.Service} casting, quantity strings, manifest
/frameworks/base/docs/html/guide/practices/
Dscreens_support.jd117 <dd>The quantity of pixels within a physical area of the screen; usually referred to as dpi (dots
/frameworks/base/api/
Dcurrent.txt33269 field public static final java.lang.String ARG_QUANTITY = "android.arg.quantity";
Dsystem-current.txt35561 field public static final java.lang.String ARG_QUANTITY = "android.arg.quantity";