HomeSort by relevance Sort by last modified time
    Searched refs:plurals (Results 1 - 25 of 348) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /cts/tests/tests/content/src/android/content/res/cts/
PluralResourcesTest.java 54 cs = res.getQuantityText(R.plurals.plurals_test, 0);
60 cs = res.getQuantityText(R.plurals.plurals_test, 1);
66 cs = res.getQuantityText(R.plurals.plurals_test, 2);
69 cs = res.getQuantityText(R.plurals.plurals_test, 5);
72 cs = res.getQuantityText(R.plurals.plurals_test, 500);
81 cs = res.getQuantityText(R.plurals.plurals_test, 0);
87 cs = res.getQuantityText(R.plurals.plurals_test, 1);
93 cs = res.getQuantityText(R.plurals.plurals_test, 2);
99 cs = res.getQuantityText(R.plurals.plurals_test, 5);
102 cs = res.getQuantityText(R.plurals.plurals_test, 500)
    [all...]
  /development/tools/findunused/
findunusedtranslations 49 if (/<plurals [^>]*name="([^"]*)"/) {
50 $plurals{$1} = 1;
75 if (/<plurals [^>]*name="([^"]*)"/) {
76 if ($plurals{$1} == 0) {
90 if (/<\/plurals/) {
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/res/
PluralResourceLoaderTest.java 28 assertThat(pluralResourceLoader.getValue(R.plurals.beer, 0), equalTo("Howdy"));
29 assertThat(pluralResourceLoader.getValue(R.plurals.beer, 1), equalTo("One beer"));
30 assertThat(pluralResourceLoader.getValue(R.plurals.beer, 2), equalTo("Two beers"));
31 assertThat(pluralResourceLoader.getValue(R.plurals.beer, 3), equalTo("%d beers, yay!"));
  /external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
StaxPluralsLoader.java 11 private final List<Plural> plurals = new ArrayList<>(); field in class:StaxPluralsLoader
32 plurals.add(new Plural(quantity, buf.toString()));
49 resourceTable.addResource(attrType, name, new PluralRules(new ArrayList<>(plurals), resType, xmlContext));
50 plurals.clear();
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/
PluralResourceLoader.java 16 Map<String, PluralRules> plurals = new HashMap<String, PluralRules>(); field in class:PluralResourceLoader
20 super(resourceExtractor, "/resources/plurals");
26 PluralRules rules = plurals.get(name);
51 plurals.put("plurals/" + name, rules);
59 List<Plural> plurals = new ArrayList<Plural>(); field in class:PluralResourceLoader.PluralRules
62 for (Plural p : plurals) {
65 for (Plural p : plurals) {
72 plurals.add(p);
  /packages/apps/DocumentsUI/src/com/android/documentsui/ui/
MessageBuilder.java 69 R.plurals.delete_files_confirmation_message, docs.size());
73 R.plurals.delete_folders_confirmation_message, docs.size());
77 R.plurals.delete_items_confirmation_message, docs.size());
89 resourceId = R.plurals.copy_converted_warning_content;
95 resourceId = R.plurals.copy_failure_alert_content;
98 resourceId = R.plurals.compress_failure_alert_content;
101 resourceId = R.plurals.extract_failure_alert_content;
104 resourceId = R.plurals.delete_failure_alert_content;
107 resourceId = R.plurals.move_failure_alert_content;
Snackbars.java 34 activity, R.plurals.clipboard_files_clipped, docCount);
39 CharSequence message = Shared.getQuantityString(activity, R.plurals.move_begin, docCount);
44 CharSequence message = Shared.getQuantityString(activity, R.plurals.copy_begin, docCount);
49 CharSequence message = Shared.getQuantityString(activity, R.plurals.compress_begin, docCount);
54 CharSequence message = Shared.getQuantityString(activity, R.plurals.extract_begin, docCount);
59 CharSequence message = Shared.getQuantityString(activity, R.plurals.deleting, docCount);
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
ToastBarOperation.java 126 resId = R.plurals.conversation_deleted;
130 resId = R.plurals.conversation_folder_changed;
134 resId = R.plurals.conversation_archived;
136 resId = R.plurals.conversation_spammed;
138 resId = R.plurals.conversation_not_spam;
140 resId = R.plurals.conversation_not_important;
142 resId = R.plurals.conversation_muted;
144 resId = R.plurals.conversation_unstarred;
146 resId = R.plurals.conversation_phished;
  /packages/apps/Settings/src/com/android/settings/
MonitoringCertInfoActivity.java 52 ? R.plurals.ssl_ca_cert_settings_button // Check certificate
53 : R.plurals.ssl_ca_cert_dialog_title; // Trust or remove certificate
61 R.plurals.ssl_ca_cert_settings_button, numberOfCertificates) , this);
66 builder.setMessage(getResources().getQuantityString(R.plurals.ssl_ca_cert_info_message,
70 R.plurals.ssl_ca_cert_info_message_device_owner, numberOfCertificates,
  /frameworks/base/tools/aapt/tests/plurals/
run.sh 1 TEST_DIR=tools/aapt/tests/plurals
  /packages/apps/Settings/src/com/android/settings/accessibility/
ToggleAutoclickPreferenceFragment.java 53 R.plurals.accessibilty_autoclick_preference_subtitle_extremely_short_delay,
54 R.plurals.accessibilty_autoclick_preference_subtitle_very_short_delay,
55 R.plurals.accessibilty_autoclick_preference_subtitle_short_delay,
56 R.plurals.accessibilty_autoclick_preference_subtitle_long_delay,
57 R.plurals.accessibilty_autoclick_preference_subtitle_very_long_delay
  /packages/apps/DeskClock/src/com/android/deskclock/data/
TimerStringFormatter.java 70 final String minSeq = Utils.getNumberFormattedQuantityString(context, R.plurals.minutes,
72 final String hourSeq = Utils.getNumberFormattedQuantityString(context, R.plurals.hours,
74 final String secSeq = Utils.getNumberFormattedQuantityString(context, R.plurals.seconds,
  /packages/apps/Dialer/java/com/android/dialer/calllogutils/
CallLogDurations.java 66 String minutesString = res.getQuantityString(R.plurals.a11y_minutes, minutes);
67 String secondsString = res.getQuantityString(R.plurals.a11y_seconds, seconds);
72 String secondsString = res.getQuantityString(R.plurals.a11y_seconds, (int) elapsedSeconds);
  /packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
TestResources.java 42 public SparseArray<String> plurals; field in class:TestResources
53 res.plurals = new SparseArray<>();
98 return plurals.get(id);
  /packages/apps/Messaging/src/com/android/messaging/sms/
SmsReleaseStorage.java 96 R.plurals.week_count, duration.mCount, duration.mCount);
99 R.plurals.month_count, duration.mCount, duration.mCount);
102 R.plurals.year_count, duration.mCount, duration.mCount);
  /developers/build/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/
WelcomeActivity.java 43 (R.plurals.welcome_page_countdown, secondsRemaining, secondsRemaining));
  /developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/
WelcomeActivity.java 43 (R.plurals.welcome_page_countdown, secondsRemaining, secondsRemaining));
  /frameworks/base/core/java/android/widget/
DateTimeView.java 250 ? com.android.internal.R.plurals.duration_minutes_shortest
251 : com.android.internal.R.plurals.duration_minutes_shortest_future,
258 ? com.android.internal.R.plurals.duration_hours_shortest
259 : com.android.internal.R.plurals.duration_hours_shortest_future,
268 ? com.android.internal.R.plurals.duration_days_shortest
269 : com.android.internal.R.plurals.duration_days_shortest_future,
282 ? com.android.internal.R.plurals.duration_years_shortest
283 : com.android.internal.R.plurals.duration_years_shortest_future,
361 R.plurals.duration_minutes_relative
363 R.plurals.duration_minutes_relative_future
    [all...]
  /packages/apps/Settings/src/com/android/settings/applications/
SpecialAppAccessPreferenceController.java 51 R.plurals.special_access_summary, count, count));
  /packages/apps/Settings/src/com/android/settings/enterprise/
CaCertsPreferenceControllerBase.java 40 R.plurals.enterprise_privacy_number_ca_certs, certs, certs));
FailedPasswordWipePreferenceControllerBase.java 42 R.plurals.enterprise_privacy_number_failed_password_wipe,
  /packages/apps/Settings/src/com/android/settings/notification/
DeletedChannelsPreferenceController.java 56 R.plurals.deleted_channels, deletedChannelCount, deletedChannelCount));
  /packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
SpecialAppAccessPreferenceControllerTest.java 69 .getQuantityString(R.plurals.special_access_summary, 0, 0));
76 .getQuantityString(R.plurals.special_access_summary, 1, 1));
  /packages/apps/TV/src/com/android/tv/dvr/ui/
DvrSeriesScheduledFragment.java 162 R.plurals.dvr_series_scheduled_no_conflict,
172 R.plurals.dvr_series_scheduled_this_and_other_series_conflict,
180 R.plurals.dvr_series_recording_scheduled_only_this_series_conflict,
189 R.plurals.dvr_series_scheduled_only_other_series_one_conflict,
196 R.plurals.dvr_series_scheduled_only_other_series_many_conflicts,
  /packages/apps/DeskClock/src/com/android/deskclock/
AlarmUtils.java 81 String daySeq = Utils.getNumberFormattedQuantityString(context, R.plurals.days, days);
82 String minSeq = Utils.getNumberFormattedQuantityString(context, R.plurals.minutes, minutes);
83 String hourSeq = Utils.getNumberFormattedQuantityString(context, R.plurals.hours, hours);

Completed in 515 milliseconds

1 2 3 4 5 6 7 8 91011>>