/frameworks/base/tests/CoreTests/android/core/ |
H A D | RegexTest.java | 175 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 D | StringTest.java | 105 String[] strings = test.split("/"); 106 assertEquals(4, strings.length);
|
/frameworks/base/tools/localize/ |
H A D | ValuesFile_test.cpp | 10 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 D | res_check.cpp | 39 set<StringResource> strings = file->GetStrings(); local 40 for (set<StringResource>::iterator it=strings.begin(); it!=strings.end(); it++) {
|
H A D | localize_test.cpp | 35 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 D | XLIFFFile_test.cpp | 15 set<StringResource> const& strings = xf->GetStringResources(); local 18 for (set<StringResource>::iterator it=strings.begin(); it!=strings.end(); it++) {
|
H A D | localize.cpp | 117 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 D | WifiConfiguration.java | 82 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 D | ArrayTest.java | 66 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 D | AutoCompleteTextViewSimple.java | 68 * 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 D | printapk.cpp | 105 const ResStringPool* strings = res.getTableStringBlock(tableIndex); 106 size_t stringCount = strings->size(); 109 const char16_t* ch = strings->stringAt(stringIndex, &len);
|
H A D | XMLNode.cpp | 834 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 D | XMLNode.h | 176 status_t flatten_node(const StringPool& strings, const sp<AaptFile>& dest,
|
H A D | ResourceTable.h | 293 status_t prepareFlatten(StringPool* strings, ResourceTable* table); 480 ResStringPool* strings,
|
H A D | ResourceTable.cpp | 1104 // 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 D | StringTest.java | 529 /** 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 D | TextUtilsTest.java | 222 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 D | WifiService.java | 788 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 D | ArrayAdapter.java | 391 CharSequence[] strings = context.getResources().getTextArray(textArrayResId); 392 return new ArrayAdapter<CharSequence>(context, textViewResId, strings);
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | RIL.java | 1577 // 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 D | PhoneBase.java | 626 public void invokeOemRilRequestStrings(String[] strings, Message response) { argument 627 mCM.invokeOemRilRequestStrings(strings, response);
|
H A D | PhoneProxy.java | 522 public void invokeOemRilRequestStrings(String[] strings, Message response) { argument 523 mActivePhone.invokeOemRilRequestStrings(strings, response);
|
H A D | Phone.java | 1097 * @param strings The strings to make available as the request data. 1108 void invokeOemRilRequestStrings(String[] strings, Message response); argument
|
H A D | CommandsInterface.java | 1172 void invokeOemRilRequestStrings(String[] strings, Message response); argument
|
/frameworks/base/telephony/java/com/android/internal/telephony/test/ |
H A D | SimulatedCommands.java | 1226 public void invokeOemRilRequestStrings(String[] strings, Message response) { argument 1229 AsyncResult.forMessage(response).result = strings;
|