/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | TextUtils.java | 38 String[] strings = new String[STRING_COUNT]; in buildSimpleStringList() local 40 for (int i = 0; i < strings.length; i++) { in buildSimpleStringList() 41 strings[i] = randomWord(random, SIMPLE_STRING_LENGTH); in buildSimpleStringList() 43 return strings; in buildSimpleStringList() 67 String[] strings = new String[STRING_COUNT]; in buildParagraphListWithHitPercentage() local 69 for (int i = 0; i < strings.length; i++) { in buildParagraphListWithHitPercentage() 86 strings[i] = result; in buildParagraphListWithHitPercentage() 89 return strings; in buildParagraphListWithHitPercentage()
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | MtpDatabase.java | 120 strings(COLUMN_DEVICE_ID), in queryRoots() 122 strings(ROW_STATE_VALID, ROW_STATE_INVALIDATED, DOCUMENT_TYPE_DEVICE), in queryRoots() 141 strings(ROW_STATE_VALID, in queryRoots() 154 strings(ROW_STATE_VALID, in queryRoots() 227 strings(ROW_STATE_VALID, ROW_STATE_INVALIDATED, DOCUMENT_TYPE_STORAGE), in queryRootDocuments() 244 strings(ROW_STATE_VALID, ROW_STATE_INVALIDATED, parentDocumentId), in queryChildDocuments() 264 strings(Document.COLUMN_DOCUMENT_ID), in getStorageDocumentIds() 268 strings(ROW_STATE_VALID, in getStorageDocumentIds() 294 strings(documentId), in queryDocument() 304 strings(Document.COLUMN_DOCUMENT_ID), in getDocumentIdForDevice() [all …]
|
D | Mapper.java | 36 import static com.android.mtp.MtpDatabase.strings; 76 strings(COLUMN_DEVICE_ID, COLUMN_MAPPING_KEY)); in putDeviceDocument() 115 strings(parentDocumentId), in putStorageDocuments() 116 strings(COLUMN_STORAGE_ID, Document.COLUMN_DISPLAY_NAME)); in putStorageDocuments() 158 strings(parentId), in putChildDocuments() 159 strings(COLUMN_OBJECT_HANDLE, Document.COLUMN_DISPLAY_NAME)); in putChildDocuments() 194 args = strings(parentDocumentId); in startAddingDocuments() 213 DatabaseUtils.appendSelectionArgs(args, strings(ROW_STATE_VALID))); in startAddingDocuments() 277 strings(rowId)); in putDocuments() 323 args = strings(parentId); in stopAddingDocuments() [all …]
|
/frameworks/native/cmds/installd/ |
D | string_helpers.h | 51 static inline std::string Join(const std::vector<StringT>& strings, char separator) { in Join() argument 52 if (strings.empty()) { in Join() 56 std::string result(strings[0]); in Join() 57 for (size_t i = 1; i < strings.size(); ++i) { in Join() 59 result += strings[i]; in Join()
|
/frameworks/base/core/java/android/nfc/ |
D | Tag.java | 159 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 …]
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbAccessory.java | 87 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/native/opengl/tools/glgen/stubs/gles11/ |
D | glCreateShaderProgramv.cpp | 4 (JNIEnv *_env, jobject _this, jint type, jobjectArray strings) { in android_glCreateShaderProgramv() argument 13 if (!strings) { in android_glCreateShaderProgramv() 20 _count = _env->GetArrayLength(strings); in android_glCreateShaderProgramv() 39 _jstrings[i] = (jstring) _env->GetObjectArrayElement(strings, i); in android_glCreateShaderProgramv()
|
D | glShaderSource.cpp | 14 const char* strings[] = {nativeString}; in android_glShaderSource() local 15 glShaderSource(shader, 1, strings, 0); in android_glShaderSource()
|
/frameworks/base/docs/html/guide/topics/resources/ |
D | localization.jd | 71 <p>For a short guide to localizing strings in your app, see the training lesson, 78 <p>Resources are text strings, layouts, sounds, graphics, and any other static 118 locale-specific text, Android will load the default strings from 119 <code>res/values/strings.xml</code>. If this default file is absent, or if it 126 <p>An application's Java code refers to just two strings, <code>text_a</code> and 128 (<code>res/values-en/strings.xml</code>) that defines <code>text_a</code> and 130 resource file (<code>res/values/strings.xml</code>) that includes a 135 <code>res/values-en/strings.xml</code> contains both of the needed text 136 strings.</li> 143 <p>To prevent this situation, make sure that a <code>res/values/strings.xml</code> [all …]
|
D | string-resource.jd | 7 <p>A string resource provides text strings for your application 9 your application with strings:</p> 15 <dd>XML resource that provides an array of strings.</dd> 17 <dd>XML resource that carries different strings for pluralization.</dd> 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 72 quotation marks. For more information about how to properly style and format your strings see <a 86 <dd>XML file saved at <code>res/values/strings.xml</code>: 124 <p>An array of strings that can be referenced from the application.</p> 168 <dd>Defines an array of strings. Contains one or more {@code <item>} elements. [all …]
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | Utils.java | 74 public static String joinStrings(String separator, List<String> strings) { in joinStrings() argument 75 switch(strings.size()) { in joinStrings() 79 return strings.get(0); in joinStrings() 83 for (String field : strings) { in joinStrings()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiConfiguration.java | 103 public static final String[] strings = { "NONE", "WPA_PSK", "WPA_EAP", "IEEE8021X", field in WifiConfiguration.KeyMgmt 124 public static final String[] strings = { "WPA", "RSN", "OSEN" }; field in WifiConfiguration.Protocol 142 public static final String[] strings = { "OPEN", "SHARED", "LEAP" }; field in WifiConfiguration.AuthAlgorithm 160 public static final String[] strings = { "NONE", "TKIP", "CCMP" }; field in WifiConfiguration.PairwiseCipher 190 public static final String[] strings = field in WifiConfiguration.GroupCipher 205 public static final String[] strings = { "current", "disabled", "enabled" }; field in WifiConfiguration.Status 1456 if (k < KeyMgmt.strings.length) { in toString() 1457 sbuf.append(KeyMgmt.strings[k]); in toString() 1467 if (p < Protocol.strings.length) { in toString() 1468 sbuf.append(Protocol.strings[p]); in toString() [all …]
|
D | WifiEnterpriseConfig.java | 308 public static final String[] strings = field in WifiEnterpriseConfig.Eap 329 public static final String[] strings = {EMPTY_VALUE, "PAP", "MSCHAP", field in WifiEnterpriseConfig.Phase2 384 if (!saver.saveValue(EAP_KEY, Eap.strings[mEapMethod])) { in saveToSupplicant() 391 String value = convertToQuotedString(prefix + Phase2.strings[mPhase2Method]); in saveToSupplicant() 418 mEapMethod = getStringIndex(Eap.strings, eapMethod, Eap.NONE); in loadFromSupplicant() 427 mPhase2Method = getStringIndex(Phase2.strings, phase2Method, Phase2.NONE); in loadFromSupplicant() 957 return Eap.strings[mEapMethod] + "_" + Phase2.strings[mPhase2Method]; in getKeyId() 1066 if (mEapMethod < 0 || mEapMethod >= Eap.strings.length) { in isEapMethodValid() 1070 if (mPhase2Method < 0 || mPhase2Method >= Phase2.strings.length) { in isEapMethodValid()
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | Tracer.java | 213 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/docs/html/training/basics/supporting-devices/ |
D | languages.jd | 3 page.tags=strings,localizing,localization,resources,formats,l10n 27 <p>It’s always a good practice to extract UI strings from your app code and keep them 35 types. There are also a few default files such as <code>res/values/strings.xml</code>, which holds 55 strings.xml 57 strings.xml 59 strings.xml 70 <p>English (default locale), <code>/values/strings.xml</code>:</p> 81 <p>Spanish, <code>/values-es/strings.xml</code>:</p> 92 <p>French, <code>/values-fr/strings.xml</code>:</p>
|
/frameworks/base/docs/html-intl/intl/ru/distribute/tools/ |
D | localization-checklist.jd | 15 <li><a href="#manage-strings">3. Управление строками для локализации</a></li> 16 <li><a href="#translate-strings">4. Перевод строк интерфейса и других ресурсов</a></li> 226 <h2 id="manage-strings"> 239 <strong>Переместите все строки в файл strings.xml</strong> 244 <em>все</em> строки в качестве ресурсов внутри файла strings.xml 245 – это упростит процессы обновления и локализации. Строки в файле strings.xml можно 252 strings.xml и создайте изображения заново после перевода. 284 При декларации строк в файле strings.xml обязательно опишите контекст, 398 <h2 id="translate-strings"> 423 чтобы ваш файл strings.xml был хорошо организован, точен и снабжен [all …]
|
/frameworks/base/docs/html-intl/intl/ko/distribute/tools/ |
D | localization-checklist.jd | 15 <li><a href="#manage-strings">3. 현지화를 위한 문자열 관리</a></li> 16 <li><a href="#translate-strings">4. UI 문자열 및 기타 리소스 번역</a></li> 226 <h2 id="manage-strings"> 239 <strong>모든 문자열을 strings.xml로 이동</strong> 243 앱을 작성할 때 문자열을 하드코드하지 마십시오. 대신 <em>모든</em> 문자열을 기본 strings.xml 파일에서 리소스로 선언하여 업데이트 및 현지화를 쉽게 만드십시오. 245 strings.xml 파일의 문자열은 컴파일된 코드를 변경하지 않고 (적합한 한정자를 사용하여) 추출하여 번역해서 앱에 다시 통합할 수 있습니다. 251 텍스트를 포함한 이미지를 생성하는 경우 해당 문자열도 strings.xml에 넣고 번역 후에 이미지를 다시 생성하십시오. 284 strings.xml 파일에서 문자열을 선언할 때, 해당 문자열이 사용된 컨텍스트를 기술하십시오. 398 <h2 id="translate-strings"> 422 번역 품질은 부분적으로 원문의 품질에 의존하므로 strings.xml 파일이 체계적으로 구성되고 정확하고 주석이 충실한지 확인하십시오. [all …]
|
/frameworks/base/docs/html-intl/intl/ja/distribute/tools/ |
D | localization-checklist.jd | 15 <li><a href="#manage-strings">3.ローカライズ向けストリングの管理</a></li> 16 <li><a href="#translate-strings">4.UI ストリングとその他のリソースの翻訳</a></li> 159 <h2 id="manage-strings"> 171 <strong>すべてのストリングを strings.xml に移動する</strong> 175 …を忘れないでください。ハード コードせずに、<em>すべての</em>ストリングをデフォルトの strings.xml ファイルでリソースとして宣言し、アップデートとローカライズを容易にします。s… 179 テキスト付きの画像を作成している場合、そのストリングも同様に strings.xml に配置し、翻訳後に画像を再作成します。 203 …strings.xml ファイルにストリングを宣言する際には、ストリングが使用されるコンテキストを記述するようにしてください。この情報は翻訳者にとって非常に重要で、より高い品質の翻訳の実現につなが… 304 <h2 id="translate-strings"> 324 翻訳のアウトプット品質はその一部がインプットに左右されるため、strings.xml ファイルがきちんと整理され、適切なコメントが含まれており、正確である必要があります。 340 上記の<a href="#manage-strings">ローカライズ向けストリングの管理</a>に記載されているストリングの推奨事項に従います。 [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiConfigStore.java | 139 private static String makeString(BitSet set, String[] strings) { in makeString() argument 140 return makeStringWithException(set, strings, null); in makeString() 150 private static String makeStringWithException(BitSet set, String[] strings, String exception) { in makeStringWithException() argument 155 BitSet trimmedSet = set.get(0, strings.length); in makeStringWithException() 161 String currentName = strings[bit]; in makeStringWithException() 211 private int lookupString(String string, String[] strings) { in lookupString() argument 212 int size = strings.length; in lookupString() 217 if (string.equals(strings[i])) { in lookupString() 226 String[] strings) { in readNetworkBitsetVariable() argument 232 int index = lookupString(val, strings); in readNetworkBitsetVariable() [all …]
|
/frameworks/base/docs/html/distribute/tools/ |
D | localization-checklist.jd | 15 <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/ |
D | localization-checklist.jd | 15 <li><a href="#manage-strings">3. 管理本地化字符串</a></li> 16 <li><a href="#translate-strings">4. 翻译界面字符串和其他资源</a></li> 226 <h2 id="manage-strings"> 239 <strong>将所有字符串放入 strings.xml 中</strong> 243 在构建应用时,请注意不要硬编码任何字符串。而是在默认的 strings.xml 文件中将<em>所有</em>字符串声明为资源,这样便于更新和进行本地化。 251 如果您生成带有文本的图片,也请将这些字符串放入 strings.xml,并在翻译之后重新生成图片。 284 在 strings.xml 文件中声明字符串时,确保清楚说明使用该字符串的上下文。 398 <h2 id="translate-strings"> 422 翻译工作的质量在一定程度上取决于您的源资料,因此请确保您的 strings.xml 文件条理清晰、注释完善,而且完全准确。 440 遵循上文<a href="#manage-strings">管理本地化字符串</a>中列出的有关字符串的建议。 [all …]
|
/frameworks/base/docs/html-intl/intl/zh-tw/distribute/tools/ |
D | localization-checklist.jd | 15 <li><a href="#manage-strings">3.管理進行當地語系化的字串</a></li> 16 <li><a href="#translate-strings">4.翻譯 UI 字串與其他資源</a></li> 159 <h2 id="manage-strings"> 171 <strong>將所有字串移至 strings.xml 中</strong> 175 …建置應用程式時,請謹記不要將任何字串設為固定程式碼,而是將<em>所有</em>字串宣告為預設 strings.xml 檔案中的資源,藉此可輕鬆執行更新與當地語系化。可以擷取、翻譯 strings… 179 若您產生含文字的影像,也請將這些字串置於 strings.xml 中,在翻譯後重新產生影像。 203 宣告 strings.xml 檔案中的字串時,請確保描述該字串的使用背景資訊。該資訊對翻譯者而言極具價值,可產生品質更優的翻譯,並能協助您隨時間演進以更有效的方式管理字串。 304 <h2 id="translate-strings"> 324 翻譯輸出的品質一部分取決於輸入,因此請確保您的 strings.xml 檔案井然有序、註解充分且準確無誤。 340 請遵循上述<a href="#manage-strings">管理進行當地語系化的字串</a>中列示的字串建議。 [all …]
|
/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/compile/mclinker/lib/LD/ |
D | DebugString.cpp | 42 llvm::StringRef strings; in merge() local 47 strings = frag->getRegion().data(); in merge() 52 const char* str = strings.data(); in merge()
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | MtpDatabaseTest.java | 35 import static com.android.mtp.MtpDatabase.strings; 280 mDatabase.queryChildDocuments(strings(Document.COLUMN_FLAGS), "2")) { in testPutChildDocuments_operationsSupported() 297 mDatabase.queryChildDocuments(strings(Document.COLUMN_FLAGS), "2")) { in testPutChildDocuments_operationsSupported() 313 mDatabase.queryChildDocuments(strings(Document.COLUMN_FLAGS), "2")) { in testPutChildDocuments_operationsSupported() 767 mDatabase.queryRoots(resources, strings(Root.COLUMN_ROOT_ID))) { in testFailToReplaceExisitingUnmappedRoots() 785 strings(Document.COLUMN_DOCUMENT_ID), "1")) { in testFailToReplaceExisitingUnmappedRoots() 799 final Cursor cursor = mDatabase.queryDocument("2", strings(Document.COLUMN_DISPLAY_NAME)); in testQueryDocuments() 812 final Cursor cursor = mDatabase.queryRoots(resources, strings(Root.COLUMN_TITLE)); in testQueryRoots() 827 final Cursor cursor = mDatabase.queryRoots(resources, strings(Root.COLUMN_TITLE)); in testQueryRoots() 843 final Cursor cursor = mDatabase.queryRoots(resources, strings(Root.COLUMN_TITLE)); in testQueryRoots() [all …]
|