Searched refs:strings (Results 1 - 25 of 29) 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.cpp36 if (all) err |= test_filename("//device/samples/NotePad/res/values/strings.xml", "zz_ZZ",
37 "//device/samples/NotePad/res/values-zz-rZZ/strings.xml");
39 if (all) err |= test_filename("//device/samples/NotePad/res/values/strings.xml", "zz",
40 "//device/samples/NotePad/res/values-zz/strings.xml");
42 if (all) err |= test_filename("//device/samples/NotePad/res/values/strings.xml", "",
43 "//device/samples/NotePad/res/values/strings.xml");
71 set<StringResource> const& strings = xliff->GetStringResources(); local
72 printf("strings.size=%zd\n", strings.size());
73 for (set<StringResource>::iterator it=strings
104 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.cpp118 const set<StringResource>& strings = values->GetStrings(); local
119 for (set<StringResource>::const_iterator it=strings.begin(); it!=strings.end(); it++) {
168 * translation memory or tools to notice that the strings haven't changed, and populate the
323 // pull out the strings and add them to the XLIFFFile
409 " config files translate comments strings\n"
591 " --big Pad strings so they get longer.\n"
600 "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.java109 public static final String[] strings = { "NONE", "WPA_PSK", "WPA_EAP", "IEEE8021X" }; field in class:WifiConfiguration.KeyMgmt
125 public static final String[] strings = { "WPA", "RSN" }; field in class:WifiConfiguration.Protocol
143 public static final String[] strings = { "OPEN", "SHARED", "LEAP" }; field in class:WifiConfiguration.AuthAlgorithm
161 public static final String[] strings = { "NONE", "TKIP", "CCMP" }; field in class:WifiConfiguration.PairwiseCipher
187 public static final String[] strings = { "WEP40", "WEP104", "TKIP", "CCMP" }; field in class:WifiConfiguration.GroupCipher
201 public static final String[] strings = { "current", "disabled", "enabled" }; field in class:WifiConfiguration.Status
331 if (k < KeyMgmt.strings.length) {
332 sbuf.append(KeyMgmt.strings[k]);
342 if (p < Protocol.strings.length) {
343 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.cpp840 StringPool strings;
843 // First collect just the strings for attribute names that have a
847 collect_resid_strings(&strings, &resids);
849 // Next collect all remainibng strings.
850 collect_strings(&strings, &resids, stripComments, stripRawValues);
853 NOISY(printf("Found strings:\n");
854 const size_t N = strings.size();
856 printf("%s\n", String8(strings.entryAt(i).string).string());
861 sp<AaptFile> stringPool = strings.createStringBlock();
890 flatten_node(strings, des
[all...]
H A DXMLNode.h176 status_t flatten_node(const StringPool& strings, const sp<AaptFile>& dest,
H A DResourceTable.h296 status_t prepareFlatten(StringPool* strings, ResourceTable* table);
488 ResStringPool* strings,
H A DResourceTable.cpp1135 // Untranslatable strings must only exist in the default [empty] locale
1145 // Don't add untranslatable strings to the localization table; that
2322 // For all strings...
2328 // Look for strings with no default localization
2506 // Iterate through all data, collecting all values (strings,
2590 fprintf(stderr, "**** type strings: %d\n", amt);
2600 fprintf(stderr, "**** key strings: %d\n", amt);
2793 fprintf(stderr, "**** value strings: %d\n", amt);
2794 fprintf(stderr, "**** total strings: %d\n", strAmt);
2814 fprintf(stderr, "**** total resource table size: %d / %d%% strings\
3084 prepareFlatten(StringPool* strings, ResourceTable* table) argument
3476 setStrings(const sp<AaptFile>& data, ResStringPool* strings, DefaultKeyedVector<String16, uint32_t>* mappings) argument
[all...]
/frameworks/base/keystore/java/android/security/
H A DKeyStore.java104 String[] strings = new String[values.length];
106 strings[i] = new String(values[i]);
108 return strings;
/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.java627 lookupString(val, WifiConfiguration.Protocol.strings);
640 lookupString(val, WifiConfiguration.KeyMgmt.strings);
653 lookupString(val, WifiConfiguration.AuthAlgorithm.strings);
666 lookupString(val, WifiConfiguration.PairwiseCipher.strings);
679 lookupString(val, WifiConfiguration.GroupCipher.strings);
766 makeString(config.allowedKeyManagement, WifiConfiguration.KeyMgmt.strings);
780 makeString(config.allowedProtocols, WifiConfiguration.Protocol.strings);
794 makeString(config.allowedAuthAlgorithms, WifiConfiguration.AuthAlgorithm.strings);
808 makeString(config.allowedPairwiseCiphers, WifiConfiguration.PairwiseCipher.strings);
822 makeString(config.allowedGroupCiphers, WifiConfiguration.GroupCipher.strings);
942 makeString(BitSet set, String[] strings) argument
962 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.java1590 // count strings
1610 // count strings
1670 public void invokeOemRilRequestStrings(String[] strings, Message response) { argument
1676 rr.mp.writeStringArray(strings);
2250 String[] strings = (String[]) ret;
2251 length = strings.length;
2255 sb.append(strings[i++]);
2257 sb.append(", ").append(strings[i++]);
2863 String strings[] = (String [])responseStrings(p);
2866 if (strings
[all...]
H A DPhoneBase.java724 public void invokeOemRilRequestStrings(String[] strings, Message response) { argument
725 mCM.invokeOemRilRequestStrings(strings, response);
H A DPhoneProxy.java555 public void invokeOemRilRequestStrings(String[] strings, Message response) { argument
556 mActivePhone.invokeOemRilRequestStrings(strings, response);
H A DPhone.java1165 * @param strings The strings to make available as the request data.
1176 void invokeOemRilRequestStrings(String[] strings, Message response); argument
/frameworks/base/telephony/java/com/android/internal/telephony/test/
H A DSimulatedCommands.java1196 public void invokeOemRilRequestStrings(String[] strings, Message response) { argument
1199 AsyncResult.forMessage(response).result = strings;

Completed in 450 milliseconds

12