Home
last modified time | relevance | path

Searched refs:strings (Results 1 – 25 of 153) sorted by relevance

1234567

/frameworks/base/core/java/android/nfc/
DTag.java159 String[] strings = new String[size]; in generateTechStringList() local
163 strings[i] = IsoDep.class.getName(); in generateTechStringList()
166 strings[i] = MifareClassic.class.getName(); in generateTechStringList()
169 strings[i] = MifareUltralight.class.getName(); in generateTechStringList()
172 strings[i] = Ndef.class.getName(); in generateTechStringList()
175 strings[i] = NdefFormatable.class.getName(); in generateTechStringList()
178 strings[i] = NfcA.class.getName(); in generateTechStringList()
181 strings[i] = NfcB.class.getName(); in generateTechStringList()
184 strings[i] = NfcF.class.getName(); in generateTechStringList()
187 strings[i] = NfcV.class.getName(); in generateTechStringList()
[all …]
DTechListParcel.java27 public TechListParcel(String[]... strings) { in TechListParcel() argument
28 mTechLists = strings; in TechListParcel()
/frameworks/base/core/java/android/hardware/usb/
DUsbAccessory.java87 public UsbAccessory(String[] strings) { in UsbAccessory() argument
88 mManufacturer = strings[MANUFACTURER_STRING]; in UsbAccessory()
89 mModel = strings[MODEL_STRING]; in UsbAccessory()
90 mDescription = strings[DESCRIPTION_STRING]; in UsbAccessory()
91 mVersion = strings[VERSION_STRING]; in UsbAccessory()
92 mUri = strings[URI_STRING]; in UsbAccessory()
93 mSerial = strings[SERIAL_STRING]; in UsbAccessory()
/frameworks/base/docs/html/guide/topics/resources/
Dlocalization.jd66 <p>For a short guide to localizing strings in your app, see the training lesson, <a
72 <p>Resources are text strings, layouts, sounds, graphics, and any other static
111 locale-specific text, Android will load the default strings from
112 <code>res/values/strings.xml</code>. If this default file is absent, or if it
118 <p>An application's Java code refers to just two strings, <code>text_a</code> and
120 (<code>res/values-en/strings.xml</code>) that defines <code>text_a</code> and
122 resource file (<code>res/values/strings.xml</code>) that includes a
129 <code>res/values-en/strings.xml</code> contains both of the needed text
130 strings.</li>
137 <p>To prevent this situation, make sure that a <code>res/values/strings.xml</code>
[all …]
Dstring-resource.jd6 <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 pluralization.</dd>
19 <p>All strings are capable of applying some styling markup and formatting arguments. For
20 information about styling and formatting strings, see the section about <a
71 quotation marks. For more information about how to properly style and format your strings see <a
85 <dd>XML file saved at <code>res/values/strings.xml</code>:
123 <p>An array of strings that can be referenced from the application.</p>
167 <dd>Defines an array of strings. Contains one or more {@code &lt;item>} elements.
[all …]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DTracer.java213 private static String join(String separator, Object[] strings) { in join() argument
214 if (strings.length == 0) in join()
217 StringBuilder builder = new StringBuilder(objectToString(strings[0])); in join()
218 for (int i = 1; i < strings.length; i++) { in join()
220 builder.append(objectToString(strings[i])); in join()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java86 public static final String[] strings = { "NONE", "WPA_PSK", "WPA_EAP", "IEEE8021X", field in WifiConfiguration.KeyMgmt
103 public static final String[] strings = { "WPA", "RSN" }; field in WifiConfiguration.Protocol
121 public static final String[] strings = { "OPEN", "SHARED", "LEAP" }; field in WifiConfiguration.AuthAlgorithm
139 public static final String[] strings = { "NONE", "TKIP", "CCMP" }; field in WifiConfiguration.PairwiseCipher
165 public static final String[] strings = { "WEP40", "WEP104", "TKIP", "CCMP" }; field in WifiConfiguration.GroupCipher
179 public static final String[] strings = { "current", "disabled", "enabled" }; field in WifiConfiguration.Status
1081 if (k < KeyMgmt.strings.length) { in toString()
1082 sbuf.append(KeyMgmt.strings[k]); in toString()
1092 if (p < Protocol.strings.length) { in toString()
1093 sbuf.append(Protocol.strings[p]); in toString()
[all …]
DWifiEnterpriseConfig.java232 public static final String[] strings = { "PEAP", "TLS", "TTLS", "PWD", "SIM", "AKA" }; field in WifiEnterpriseConfig.Eap
251 public static final String[] strings = {EMPTY_VALUE, "PAP", "MSCHAP", field in WifiEnterpriseConfig.Phase2
282 mFields.put(EAP_KEY, Eap.strings[eapMethod]); in setEapMethod()
296 return getStringIndex(Eap.strings, eapMethod, Eap.NONE); in getEapMethod()
319 Phase2.PREFIX + Phase2.strings[phase2Method])); in setPhase2Method()
336 return getStringIndex(Phase2.strings, phase2Method, Phase2.NONE); in getPhase2Method()
/frameworks/base/docs/html/training/basics/supporting-devices/
Dlanguages.jd3 page.tags=strings,localizing,localization,resources,formats,l10n
26 <p>It’s always a good practice to extract UI strings from your app code and keep them
34 types. There are also a few default files such as <code>res/values/strings.xml</code>, which holds
54 strings.xml
56 strings.xml
58 strings.xml
69 <p>English (default locale), <code>/values/strings.xml</code>:</p>
80 <p>Spanish, <code>/values-es/strings.xml</code>:</p>
91 <p>French, <code>/values-fr/strings.xml</code>:</p>
/frameworks/native/opengl/tools/glgen/stubs/gles11/
DglShaderSource.cpp14 const char* strings[] = {nativeString}; in android_glShaderSource() local
15 glShaderSource(shader, 1, strings, 0); in android_glShaderSource()
DglCreateShaderProgramv.java5 String[] strings in glCreateShaderProgramv() argument
DglCreateShaderProgramv.cpp4 (JNIEnv *_env, jobject _this, jint type, jobjectArray strings) { in android_glCreateShaderProgramv() argument
/frameworks/base/core/tests/coretests/src/android/widget/
DAutoCompleteTextViewSimple.java72 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/distribute/tools/
Dlocalization-checklist.jd15 <li><a href="#manage-strings">3. Manage strings for localization</a></li>
16 <li><a href="#translate-strings">4. Translate UI strings and other resources</a></li>
122 accommodate variations in the width and height of UI strings or input text.
123 Your text strings shouldn’t overlap borders or the screen edge in any of your
221 store the associated layouts, drawables, and strings in default resource
233 <h2 id="manage-strings">
234 3. Manage strings for localization
241 It's important to manage your apps’ UI strings properly, so that you deliver
246 <strong>Move all strings into strings.xml</strong>
251 <em>all</em> of your strings as resources in a default strings.xml file which
[all …]
/frameworks/base/docs/html-intl/intl/zh-cn/distribute/tools/
Dlocalization-checklist.jd14 <li><a href="#manage-strings">3. 管理字符串本地化</a></li>
15 <li><a href="#translate-strings">4. 翻译界面字符串和其他资源</a></li>
157 <h2 id="manage-strings" style="margin-bottom:0px">
168 <strong>将所有字符串放入 strings.xml 中</strong>
172 …在构建应用时,请注意不要硬编码任何字符串,而是在默认的 strings.xml 文件中将所有字符串声明为资源,这样便于更新和进行本地化。<em></em>strings.xml 文件中的字符串可以…
176 如果你生成带有文字的图片,也请将这些字符串放入 strings.xml,并在翻译之后重新生成图片。
199strings.xml 文件中声明字符串时,确保清楚说明使用该字符串的上下文。此信息对翻译人员来说十分重要,有助于提高翻译质量,也有助于你始终有效地管理字符串。
295 <h2 id="translate-strings" style="margin-bottom:0px">
315 翻译工作的质量在一定程度上取决于你为翻译提供的源资料,因此请确保你的 strings.xml 文件条理清晰、注释完善,而且完全准确。
331 …遵循上文<a href="{@docRoot}distribute/tools/localization-checklist.html#manage-strings">管理字符串的本地化</a>中…
[all …]
/frameworks/base/tools/aapt/
Dprintapk.cpp105 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()
DXMLNode.cpp1061 StringPool strings(mUTF8); in flatten() local
1068 collect_resid_strings(&strings, &resids); in flatten()
1071 collect_strings(&strings, &resids, stripComments, stripRawValues); in flatten()
1075 const size_t N = strings.size(); in flatten()
1077 printf("%s\n", String8(strings.entryAt(i).string).string()); in flatten()
1082 sp<AaptFile> stringPool = strings.createStringBlock(); in flatten()
1111 flatten_node(strings, dest, stripComments, stripRawValues); in flatten()
1428 status_t XMLNode::flatten_node(const StringPool& strings, const sp<AaptFile>& dest, in flatten_node() argument
1458 mComment.size() > 0 ? strings.offsetForString(mComment) : -1); in flatten_node()
1471 attrExt.ns.index = htodl(strings.offsetForString(mNamespaceUri)); in flatten_node()
[all …]
DStringPool.cpp462 uint8_t* strings = (uint8_t*)dat; in writeStringBlock() local
464 ENCODE_LENGTH(strings, sizeof(uint8_t), strSize) in writeStringBlock()
466 ENCODE_LENGTH(strings, sizeof(uint8_t), encSize) in writeStringBlock()
468 strncpy((char*)strings, encStr, encSize+1); in writeStringBlock()
470 uint16_t* strings = (uint16_t*)dat; in writeStringBlock() local
472 ENCODE_LENGTH(strings, sizeof(uint16_t), strSize) in writeStringBlock()
474 strcpy16_htod(strings, ent.value); in writeStringBlock()
/frameworks/base/core/java/android/preference/
DMultiSelectListPreference.java256 String[] strings = source.readStringArray(); in SavedState() local
258 final int stringCount = strings.length; in SavedState()
260 values.add(strings[i]); in SavedState()
/frameworks/base/cmds/am/src/com/android/commands/am/
DAm.java437 String[] strings = value.split(","); in makeIntent() local
438 int[] list = new int[strings.length]; in makeIntent()
439 for (int i = 0; i < strings.length; i++) { in makeIntent()
440 list[i] = Integer.decode(strings[i]); in makeIntent()
450 String[] strings = value.split(","); in makeIntent() local
451 long[] list = new long[strings.length]; in makeIntent()
452 for (int i = 0; i < strings.length; i++) { in makeIntent()
453 list[i] = Long.valueOf(strings[i]); in makeIntent()
465 String[] strings = value.split(","); in makeIntent() local
466 float[] list = new float[strings.length]; in makeIntent()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java216 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/training/search/
Dsearch.jd135 String[] strings = TextUtils.split(line, "-");
136 if (strings.length &lt; 2) continue;
137 long id = addWord(strings[0].trim(), strings[1].trim());
139 Log.e(TAG, "unable to add word: " + strings[0].trim());
/frameworks/base/libs/usb/tests/AccessoryChat/
DREADME.txt3 AccessoryChat - A Java app with a chat-like UI that sends and receives strings
/frameworks/base/docs/html/guide/topics/manifest/
Dsupports-gl-texture-element.jd65 compression formats using the same set of well-known strings, as listed below.
66 The set of format strings may grow over time, as needed, and since the values
67 are strings, applications are free to declare other formats as needed.</p>
175 descriptor strings and a match must be exact.</p>
/frameworks/base/core/java/android/widget/
DArrayAdapter.java430 CharSequence[] strings = context.getResources().getTextArray(textArrayResId); in createFromResource() local
431 return new ArrayAdapter<CharSequence>(context, textViewResId, strings); in createFromResource()

1234567