/frameworks/base/tests/CoreTests/android/core/ |
D | RegexTest.java | 174 String[] strings; in testSplit() local 176 strings = p.split("boo:and:foo"); in testSplit() 177 assertEquals(3, strings.length); in testSplit() 178 assertEquals("boo", strings[0]); in testSplit() 179 assertEquals("and", strings[1]); in testSplit() 180 assertEquals("foo", strings[2]); in testSplit() 182 strings = p.split("boo:and:foo", 2); in testSplit() 183 assertEquals(2, strings.length); in testSplit() 184 assertEquals("boo", strings[0]); in testSplit() 185 assertEquals("and:foo", strings[1]); in testSplit() [all …]
|
/frameworks/base/core/java/android/nfc/ |
D | Tag.java | 157 String[] strings = new String[size]; in generateTechStringList() local 161 strings[i] = IsoDep.class.getName(); in generateTechStringList() 164 strings[i] = MifareClassic.class.getName(); in generateTechStringList() 167 strings[i] = MifareUltralight.class.getName(); in generateTechStringList() 170 strings[i] = Ndef.class.getName(); in generateTechStringList() 173 strings[i] = NdefFormatable.class.getName(); in generateTechStringList() 176 strings[i] = NfcA.class.getName(); in generateTechStringList() 179 strings[i] = NfcB.class.getName(); in generateTechStringList() 182 strings[i] = NfcF.class.getName(); in generateTechStringList() 185 strings[i] = NfcV.class.getName(); in generateTechStringList() [all …]
|
D | TechListParcel.java | 27 public TechListParcel(String[]... strings) { in TechListParcel() argument 28 mTechLists = strings; in TechListParcel()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiConfiguration.java | 118 public static final String[] strings = { "NONE", "WPA_PSK", "WPA_EAP", "IEEE8021X", field in WifiConfiguration.KeyMgmt 135 public static final String[] strings = { "WPA", "RSN" }; field in WifiConfiguration.Protocol 153 public static final String[] strings = { "OPEN", "SHARED", "LEAP" }; field in WifiConfiguration.AuthAlgorithm 171 public static final String[] strings = { "NONE", "TKIP", "CCMP" }; field in WifiConfiguration.PairwiseCipher 197 public static final String[] strings = { "WEP40", "WEP104", "TKIP", "CCMP" }; field in WifiConfiguration.GroupCipher 211 public static final String[] strings = { "current", "disabled", "enabled" }; field in WifiConfiguration.Status 403 if (k < KeyMgmt.strings.length) { in toString() 404 sbuf.append(KeyMgmt.strings[k]); in toString() 414 if (p < Protocol.strings.length) { in toString() 415 sbuf.append(Protocol.strings[p]); in toString() [all …]
|
D | WifiConfigStore.java | 911 makeString(config.allowedKeyManagement, WifiConfiguration.KeyMgmt.strings); in addOrUpdateNetworkNative() 923 makeString(config.allowedProtocols, WifiConfiguration.Protocol.strings); in addOrUpdateNetworkNative() 935 makeString(config.allowedAuthAlgorithms, WifiConfiguration.AuthAlgorithm.strings); in addOrUpdateNetworkNative() 948 WifiConfiguration.PairwiseCipher.strings); in addOrUpdateNetworkNative() 960 makeString(config.allowedGroupCiphers, WifiConfiguration.GroupCipher.strings); in addOrUpdateNetworkNative() 1281 lookupString(val, WifiConfiguration.Protocol.strings); in readNetworkVariables() 1294 lookupString(val, WifiConfiguration.KeyMgmt.strings); in readNetworkVariables() 1307 lookupString(val, WifiConfiguration.AuthAlgorithm.strings); in readNetworkVariables() 1320 lookupString(val, WifiConfiguration.PairwiseCipher.strings); in readNetworkVariables() 1333 lookupString(val, WifiConfiguration.GroupCipher.strings); in readNetworkVariables() [all …]
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbAccessory.java | 70 public UsbAccessory(String[] strings) { in UsbAccessory() argument 71 mManufacturer = strings[0]; in UsbAccessory() 72 mModel = strings[1]; in UsbAccessory() 73 mDescription = strings[2]; in UsbAccessory() 74 mVersion = strings[3]; in UsbAccessory() 75 mUri = strings[4]; in UsbAccessory() 76 mSerial = strings[5]; in UsbAccessory()
|
/frameworks/base/tools/localize/ |
D | ValuesFile_test.cpp | 13 const set<StringResource>& strings = vf->GetStrings(); in ValuesFile_test() local 17 printf("Strings (%zd)\n", strings.size()); in ValuesFile_test() 18 for (set<StringResource>::const_iterator it=strings.begin(); in ValuesFile_test() 19 it!=strings.end(); it++) { in ValuesFile_test()
|
D | localize_test.cpp | 71 set<StringResource> const& strings = xliff->GetStringResources(); in delete_trans_units() local 72 printf("strings.size=%zd\n", strings.size()); in delete_trans_units() 73 for (set<StringResource>::iterator it=strings.begin(); it!=strings.end(); it++) { in delete_trans_units() 104 set<StringResource> const& strings = xliff->GetStringResources(); in filter_trans_units() local 105 printf("strings.size=%zd\n", strings.size()); in filter_trans_units() 106 for (set<StringResource>::iterator it=strings.begin(); it!=strings.end(); it++) { in filter_trans_units()
|
D | res_check.cpp | 39 set<StringResource> strings = file->GetStrings(); in check_file() local 40 for (set<StringResource>::iterator it=strings.begin(); it!=strings.end(); it++) { in check_file()
|
D | XLIFFFile_test.cpp | 15 set<StringResource> const& strings = xf->GetStringResources(); in Parse_test() local 18 for (set<StringResource>::iterator it=strings.begin(); it!=strings.end(); it++) { in Parse_test()
|
/frameworks/base/opengl/tools/glgen/stubs/gles11/ |
D | glShaderSource.cpp | 14 const char* strings[] = {nativeString}; in android_glShaderSource() local 15 glShaderSource(shader, 1, strings, 0); in android_glShaderSource()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | AutoCompleteTextViewSimple.java | 72 String[] strings = new String[numSuggestions]; in setStringAdapter() local 74 strings[i] = prefix + String.valueOf(i); in setStringAdapter() 79 android.R.layout.simple_dropdown_item_1line, strings); in setStringAdapter()
|
/frameworks/base/docs/html/guide/topics/resources/ |
D | localization.jd | 100 <p>Resources are text strings, layouts, sounds, graphics, and any other static 139 locale-specific text, Android will load the default strings from 140 <code>res/values/strings.xml</code>. If this default file is absent, or if it 146 <p>An application's Java code refers to just two strings, <code>text_a</code> and 148 (<code>res/values-en/strings.xml</code>) that defines <code>text_a</code> and 150 resource file (<code>res/values/strings.xml</code>) that includes a 157 <code>res/values-en/strings.xml</code> contains both of the needed text 158 strings.</li> 165 <p>To prevent this situation, make sure that a <code>res/values/strings.xml</code> 167 all types of resources, not just strings: You [all …]
|
D | string-resource.jd | 6 <p>A string resource provides text strings for your application 8 your application with strings:</p> 14 <dd>XML resource that provides an array of strings.</dd> 16 <dd>XML resource that carries different strings for different quantities 20 <p>All strings are capable of applying some styling markup and formatting arguments. For 21 information about styling and formatting strings, see the section about <a 75 quotation marks. For more information about how to properly style and format your strings see <a 89 <dd>XML file saved at <code>res/values/strings.xml</code>: 127 <p>An array of strings that can be referenced from the application.</p> 171 <dd>Defines an array of strings. Contains one or more {@code <item>} elements. [all …]
|
/frameworks/base/tools/aapt/ |
D | printapk.cpp | 105 const ResStringPool* strings = res.getTableStringBlock(tableIndex); in main() 106 size_t stringCount = strings->size(); in main() 109 const char16_t* ch = strings->stringAt(stringIndex, &len); in main()
|
D | StringPool.cpp | 269 uint8_t* strings = (uint8_t*)dat; in writeStringBlock() local 271 ENCODE_LENGTH(strings, sizeof(uint8_t), strSize) in writeStringBlock() 273 ENCODE_LENGTH(strings, sizeof(uint8_t), encSize) in writeStringBlock() 275 strncpy((char*)strings, encStr, encSize+1); in writeStringBlock() 277 uint16_t* strings = (uint16_t*)dat; in writeStringBlock() local 279 ENCODE_LENGTH(strings, sizeof(uint16_t), strSize) in writeStringBlock() 281 strcpy16_htod(strings, ent.value); in writeStringBlock()
|
D | XMLNode.cpp | 966 StringPool strings = StringPool(false, mUTF8); in flatten() local 973 collect_resid_strings(&strings, &resids); in flatten() 976 collect_strings(&strings, &resids, stripComments, stripRawValues); in flatten() 980 const size_t N = strings.size(); in flatten() 982 printf("%s\n", String8(strings.entryAt(i).string).string()); in flatten() 987 sp<AaptFile> stringPool = strings.createStringBlock(); in flatten() 1016 flatten_node(strings, dest, stripComments, stripRawValues); in flatten() 1331 status_t XMLNode::flatten_node(const StringPool& strings, const sp<AaptFile>& dest, in flatten_node() argument 1360 mComment.size() > 0 ? strings.offsetForString(mComment) : -1); in flatten_node() 1373 attrExt.ns.index = htodl(strings.offsetForString(mNamespaceUri)); in flatten_node() [all …]
|
/frameworks/base/docs/html/resources/tutorials/localization/ |
D | index.jd | 49 graphics, layout, and strings that we expect the application to use most often. 77 (<code>res/drawable/</code>), layouts (<code>res/layout/</code>) and strings 124 …<li>Create default text strings. To do this, open the <code>res/values/strings.xml</code> file and… 131 …t;This dialog box"'"s strings are not localised. For every locale, the text here will co… 136 German, French, and Japanese for some of the strings.</p> 189 within <code>res/values/strings.xml</code>. </li> 314 also calls for three sets of text strings other than the text that is in 315 <code>res/values/strings.xml</code>.</p> 317 <p>Table 2 shows where the needed text strings and flag icons will go, and 328 <th scope="col">Location of strings.xml</th> [all …]
|
/frameworks/base/keystore/java/android/security/ |
D | KeyStore.java | 118 String[] strings = new String[values.length]; in saw() local 120 strings[i] = toString(values[i]); in saw() 122 return strings; in saw()
|
/frameworks/base/core/java/android/preference/ |
D | MultiSelectListPreference.java | 245 String[] strings = source.readStringArray(); in SavedState() local 247 final int stringCount = strings.length; in SavedState() 249 values.add(strings[i]); in SavedState()
|
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/ |
D | PlaybackGraphs.java | 223 ArrayList<String> strings, Resources resources) { in draw() argument 248 for (int stringIndex = 0; stringIndex < strings.size(); stringIndex++) { in draw() 250 canvas.drawText(strings.get(stringIndex), 0, yPos, whiteLabels); in draw()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | TextUtilsTest.java | 216 List<String> strings = Lists.newArrayList(); in stringSplitterTestHelper() local 218 strings.add(s); in stringSplitterTestHelper() 220 MoreAsserts.assertEquals(expectedStrings, strings.toArray(new String[]{})); in stringSplitterTestHelper() 225 String[] strings = { "abc", " abc", " abc", "abc ", "abc ", in testTrim() local 228 for (String s : strings) { in testTrim()
|
/frameworks/base/docs/html/resources/tutorials/views/ |
D | hello-autocomplete.jd | 8 collection of strings associated with the widget through an {@link 138 application code should focus on behavior, not content. Application content such as strings 140 facilitate localization of the content. The hard-coded strings are used in this tutorial only to 143 with a {@code <string-array<} resource in your project {@code res/values/strings.xml} file. 159 <p>To use these resource strings for the {@link android.widget.ArrayAdapter}, replace the original
|
/frameworks/base/libs/usb/tests/AccessoryChat/ |
D | README.txt | 3 AccessoryChat - A Java app with a chat-like UI that sends and receives strings
|
/frameworks/base/cmds/am/src/com/android/commands/am/ |
D | Am.java | 176 String[] strings = value.split(","); in makeIntent() local 177 int[] list = new int[strings.length]; in makeIntent() 178 for (int i = 0; i < strings.length; i++) { in makeIntent() 179 list[i] = Integer.valueOf(strings[i]); in makeIntent() 191 String[] strings = value.split(","); in makeIntent() local 192 long[] list = new long[strings.length]; in makeIntent() 193 for (int i = 0; i < strings.length; i++) { in makeIntent() 194 list[i] = Long.valueOf(strings[i]); in makeIntent()
|