Searched refs:strings (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/base/tests/CoreTests/android/core/
H A DRegexTest.java175 String[] strings;
177 strings = p.split("boo:and:foo");
178 assertEquals(3, strings.length);
179 assertEquals("boo", strings[0]);
180 assertEquals("and", strings[1]);
181 assertEquals("foo", strings[2]);
183 strings = p.split("boo:and:foo", 2);
184 assertEquals(2, strings.length);
185 assertEquals("boo", strings[0]);
186 assertEquals("and:foo", strings[
[all...]
H A DStringTest.java105 String[] strings = test.split("/");
106 assertEquals(4, strings.length);
/frameworks/base/tools/localize/
H A DValuesFile_test.cpp10 ValuesFile* vf = ValuesFile::ParseFile("testdata/values/strings.xml", config,
13 const set<StringResource>& strings = vf->GetStrings(); local
17 printf("Strings (%zd)\n", strings.size());
18 for (set<StringResource>::const_iterator it=strings.begin();
19 it!=strings.end(); it++) {
H A Dres_check.cpp39 set<StringResource> strings = file->GetStrings(); local
40 for (set<StringResource>::iterator it=strings.begin(); it!=strings.end(); it++) {
H A Dlocalize_test.cpp35 if (all) err |= test_filename("//device/samples/NotePad/res/values/strings.xml", "zz_ZZ",
36 "//device/samples/NotePad/res/values-zz-rZZ/strings.xml");
38 if (all) err |= test_filename("//device/samples/NotePad/res/values/strings.xml", "zz",
39 "//device/samples/NotePad/res/values-zz/strings.xml");
41 if (all) err |= test_filename("//device/samples/NotePad/res/values/strings.xml", "",
42 "//device/samples/NotePad/res/values/strings.xml");
70 set<StringResource> const& strings = xliff->GetStringResources(); local
71 printf("strings.size=%zd\n", strings.size());
72 for (set<StringResource>::iterator it=strings
103 set<StringResource> const& strings = xliff->GetStringResources(); local
[all...]
H A DXLIFFFile_test.cpp15 set<StringResource> const& strings = xf->GetStringResources(); local
18 for (set<StringResource>::iterator it=strings.begin(); it!=strings.end(); it++) {
H A Dlocalize.cpp117 const set<StringResource>& strings = values->GetStrings(); local
118 for (set<StringResource>::const_iterator it=strings.begin(); it!=strings.end(); it++) {
167 * translation memory or tools to notice that the strings haven't changed, and populate the
322 // pull out the strings and add them to the XLIFFFile
408 " config files translate comments strings\n"
590 " --big Pad strings so they get longer.\n"
599 "Reads the base strings and prints warnings about bad resources from the given files.\n"
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiConfiguration.java82 public static final String[] strings = { "NONE", "WPA_PSK", "WPA_EAP", "IEEE8021X" }; field in class:WifiConfiguration.KeyMgmt
98 public static final String[] strings = { "WPA", "RSN" }; field in class:WifiConfiguration.Protocol
116 public static final String[] strings = { "OPEN", "SHARED", "LEAP" }; field in class:WifiConfiguration.AuthAlgorithm
134 public static final String[] strings = { "NONE", "TKIP", "CCMP" }; field in class:WifiConfiguration.PairwiseCipher
160 public static final String[] strings = { "WEP40", "WEP104", "TKIP", "CCMP" }; field in class:WifiConfiguration.GroupCipher
174 public static final String[] strings = { "current", "disabled", "enabled" }; field in class:WifiConfiguration.Status
348 if (k < KeyMgmt.strings.length) {
349 sbuf.append(KeyMgmt.strings[k]);
359 if (p < Protocol.strings.length) {
360 sbuf.append(Protocol.strings[
[all...]
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/content/
H A DArrayTest.java66 checkStringArray(R.array.strings, new String[] {"zero", "1", "here"});
67 checkTextArray(R.array.strings, new String[] {"zero", "1", "here"});
74 checkIntArray(R.array.strings, new int[] {0, 0, 0});
/frameworks/base/tests/FrameworkTest/src/android/widget/
H A DAutoCompleteTextViewSimple.java68 * Set the autocomplete data to an adapter containing 0..n strings with a consistent prefix.
72 String[] strings = new String[numSuggestions];
74 strings[i] = prefix + String.valueOf(i);
79 android.R.layout.simple_dropdown_item_1line, strings);
/frameworks/base/tools/aapt/
H A Dprintapk.cpp105 const ResStringPool* strings = res.getTableStringBlock(tableIndex);
106 size_t stringCount = strings->size();
109 const char16_t* ch = strings->stringAt(stringIndex, &len);
H A DXMLNode.cpp834 StringPool strings;
837 // First collect just the strings for attribute names that have a
841 collect_resid_strings(&strings, &resids);
843 // Next collect all remainibng strings.
844 collect_strings(&strings, &resids, stripComments, stripRawValues);
847 NOISY(printf("Found strings:\n");
848 const size_t N = strings.size();
850 printf("%s\n", String8(strings.entryAt(i).string).string());
855 sp<AaptFile> stringPool = strings.createStringBlock();
884 flatten_node(strings, des
[all...]
H A DXMLNode.h176 status_t flatten_node(const StringPool& strings, const sp<AaptFile>& dest,
H A DResourceTable.h293 status_t prepareFlatten(StringPool* strings, ResourceTable* table);
480 ResStringPool* strings,
H A DResourceTable.cpp1104 // Untranslatable strings must only exist in the default [empty] locale
1114 // Don't add untranslatable strings to the localization table; that
2270 // For all strings...
2276 // Look for strings with no default localization
2455 // Iterate through all data, collecting all values (strings,
2539 fprintf(stderr, "**** type strings: %d\n", amt);
2549 fprintf(stderr, "**** key strings: %d\n", amt);
2742 fprintf(stderr, "**** value strings: %d\n", amt);
2743 fprintf(stderr, "**** total strings: %d\n", strAmt);
2763 fprintf(stderr, "**** total resource table size: %d / %d%% strings\
3033 prepareFlatten(StringPool* strings, ResourceTable* table) argument
3419 setStrings(const sp<AaptFile>& data, ResStringPool* strings, DefaultKeyedVector<String16, uint32_t>* mappings) argument
[all...]
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/
H A DStringTest.java529 /** Split a string into an array of strings* */
532 String[] strings;
535 strings = str1.split(str);
536 strings = str1.split(str);
537 strings = str1.split(str);
538 strings = str1.split(str);
539 strings = str1.split(str);
540 strings = str1.split(str);
541 strings = str1.split(str);
542 strings
[all...]
H A DTextUtilsTest.java222 List<String> strings = Lists.newArrayList();
224 strings.add(s);
226 MoreAsserts.assertEquals(expectedStrings, strings.toArray(new String[]{}));
231 String[] strings = { "abc", " abc", " abc", "abc ", "abc ",
234 for (String s : strings) {
309 // Are all normal output strings identical?
313 // Are preserved output strings identical?
320 // Did preserved output strings preserve length?
/frameworks/base/services/java/com/android/server/
H A DWifiService.java788 lookupString(val, WifiConfiguration.Protocol.strings);
801 lookupString(val, WifiConfiguration.KeyMgmt.strings);
814 lookupString(val, WifiConfiguration.AuthAlgorithm.strings);
827 lookupString(val, WifiConfiguration.PairwiseCipher.strings);
840 lookupString(val, WifiConfiguration.GroupCipher.strings);
927 makeString(config.allowedKeyManagement, WifiConfiguration.KeyMgmt.strings);
941 makeString(config.allowedProtocols, WifiConfiguration.Protocol.strings);
955 makeString(config.allowedAuthAlgorithms, WifiConfiguration.AuthAlgorithm.strings);
969 makeString(config.allowedPairwiseCiphers, WifiConfiguration.PairwiseCipher.strings);
983 makeString(config.allowedGroupCiphers, WifiConfiguration.GroupCipher.strings);
1186 makeString(BitSet set, String[] strings) argument
1206 lookupString(String string, String[] strings) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DArrayAdapter.java391 CharSequence[] strings = context.getResources().getTextArray(textArrayResId);
392 return new ArrayAdapter<CharSequence>(context, textViewResId, strings);
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DRIL.java1577 // count strings
1597 // count strings
1657 public void invokeOemRilRequestStrings(String[] strings, Message response) { argument
1663 rr.mp.writeStringArray(strings);
2237 String[] strings = (String[]) ret;
2238 length = strings.length;
2242 sb.append(strings[i++]);
2244 sb.append(", ").append(strings[i++]);
2895 String strings[] = (String [])responseStrings(p);
2898 if (strings
[all...]
H A DPhoneBase.java626 public void invokeOemRilRequestStrings(String[] strings, Message response) { argument
627 mCM.invokeOemRilRequestStrings(strings, response);
H A DPhoneProxy.java522 public void invokeOemRilRequestStrings(String[] strings, Message response) { argument
523 mActivePhone.invokeOemRilRequestStrings(strings, response);
H A DPhone.java1097 * @param strings The strings to make available as the request data.
1108 void invokeOemRilRequestStrings(String[] strings, Message response); argument
H A DCommandsInterface.java1172 void invokeOemRilRequestStrings(String[] strings, Message response); argument
/frameworks/base/telephony/java/com/android/internal/telephony/test/
H A DSimulatedCommands.java1226 public void invokeOemRilRequestStrings(String[] strings, Message response) { argument
1229 AsyncResult.forMessage(response).result = strings;

Completed in 1148 milliseconds

12