Home
last modified time | relevance | path

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

12345

/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DTextUtils.java79 String[] strings = new String[STRING_COUNT]; in buildSimpleStringList() local
81 for (int i = 0; i < strings.length; i++) { in buildSimpleStringList()
82 strings[i] = randomWord(random, stringLength); in buildSimpleStringList()
84 return strings; in buildSimpleStringList()
88 final String[] strings = new String[STRING_COUNT]; in buildStringListFromUnicodeSet() local
91 for (int i = 0; i < strings.length; i++) { in buildStringListFromUnicodeSet()
92 strings[i] = randomWordFromStringSet(random, stringLength, stringSet); in buildStringListFromUnicodeSet()
94 return strings; in buildStringListFromUnicodeSet()
107 final String[] strings = new String[STRING_COUNT]; in buildLongStringList() local
109 for (int i = 0; i < strings.length; i++) { in buildLongStringList()
[all …]
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpDatabase.java121 strings(COLUMN_DEVICE_ID), in queryRoots()
123 strings(ROW_STATE_VALID, ROW_STATE_INVALIDATED, DOCUMENT_TYPE_DEVICE), in queryRoots()
142 strings(ROW_STATE_VALID, in queryRoots()
155 strings(ROW_STATE_VALID, in queryRoots()
225 strings(ROW_STATE_VALID, ROW_STATE_INVALIDATED, DOCUMENT_TYPE_STORAGE), in queryRootDocuments()
242 strings(ROW_STATE_VALID, ROW_STATE_INVALIDATED, parentDocumentId), in queryChildDocuments()
262 strings(Document.COLUMN_DOCUMENT_ID), in getStorageDocumentIds()
266 strings(ROW_STATE_VALID, in getStorageDocumentIds()
292 strings(documentId), in queryDocument()
302 strings(Document.COLUMN_DOCUMENT_ID), in getDocumentIdForDevice()
[all …]
DMapper.java36 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/base/core/java/android/nfc/
DTag.java161 String[] strings = new String[size]; in generateTechStringList() local
165 strings[i] = IsoDep.class.getName(); in generateTechStringList()
168 strings[i] = MifareClassic.class.getName(); in generateTechStringList()
171 strings[i] = MifareUltralight.class.getName(); in generateTechStringList()
174 strings[i] = Ndef.class.getName(); in generateTechStringList()
177 strings[i] = NdefFormatable.class.getName(); in generateTechStringList()
180 strings[i] = NfcA.class.getName(); in generateTechStringList()
183 strings[i] = NfcB.class.getName(); in generateTechStringList()
186 strings[i] = NfcF.class.getName(); in generateTechStringList()
189 strings[i] = NfcV.class.getName(); in generateTechStringList()
[all …]
DTechListParcel.java27 public TechListParcel(String[]... strings) { in TechListParcel() argument
28 mTechLists = strings; in TechListParcel()
/frameworks/native/opengl/tools/glgen/stubs/gles11/
DglCreateShaderProgramv.cpp4 (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()
DglShaderSource.cpp14 const char* strings[] = {nativeString}; in android_glShaderSource() local
15 glShaderSource(shader, 1, strings, 0); in android_glShaderSource()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageBuilder.java95 private static ArrayList<String> arrayListOrNull(String... strings) { in arrayListOrNull() argument
96 if (strings == null || strings.length == 0) { in arrayListOrNull()
100 Collections.addAll(list, strings); in arrayListOrNull()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java167 public static final String[] strings = { "NONE", "WPA_PSK", "WPA_EAP", field in WifiConfiguration.KeyMgmt
192 public static final String[] strings = { "WPA", "RSN", "OSEN" }; field in WifiConfiguration.Protocol
213 public static final String[] strings = { "OPEN", "SHARED", "LEAP" }; field in WifiConfiguration.AuthAlgorithm
238 public static final String[] strings = { "NONE", "TKIP", "CCMP", "GCMP_256" }; field in WifiConfiguration.PairwiseCipher
279 public static final String[] strings = field in WifiConfiguration.GroupCipher
306 private static final String[] strings = { "BIP_CMAC_256", field in WifiConfiguration.GroupMgmtCipher
329 private static final String[] strings = { "ECDHE_ECDSA", "ECDHE_RSA" }; field in WifiConfiguration.SuiteBCipher
343 public static final String[] strings = { "current", "disabled", "enabled" }; field in WifiConfiguration.Status
1916 if (k < KeyMgmt.strings.length) { in toString()
1917 sbuf.append(KeyMgmt.strings[k]); in toString()
[all …]
DWifiEnterpriseConfig.java284 public static final String[] strings = field in WifiEnterpriseConfig.Eap
311 public static final String[] strings = {EMPTY_VALUE, "PAP", "MSCHAP", field in WifiEnterpriseConfig.Phase2
374 if (!saver.saveValue(EAP_KEY, Eap.strings[mEapMethod])) { in saveToSupplicant()
381 String value = convertToQuotedString(prefix + Phase2.strings[mPhase2Method]); in saveToSupplicant()
408 mEapMethod = getStringIndex(Eap.strings, eapMethod, Eap.NONE); in loadFromSupplicant()
417 mPhase2Method = getStringIndex(Phase2.strings, phase2Method, Phase2.NONE); in loadFromSupplicant()
1033 return Eap.strings[mEapMethod] + "_" + Phase2.strings[mPhase2Method]; in getKeyId()
1138 if (mEapMethod >= 0 && mEapMethod < Eap.strings.length) { in toString()
1139 sb.append("eap_method: ").append(Eap.strings[mEapMethod]).append("\n"); in toString()
1141 if (mPhase2Method > 0 && mPhase2Method < Phase2.strings.length) { in toString()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/util/perftests/
DLogPerfTest.java34 private final String[] strings = new String[] { field in LogPerfTest
50 Log.d("LogPerfTest", strings[(i++) % strings.length]); in testLogPerf()
/frameworks/av/media/mtp/tests/
DMtpFfsHandle_test.cpp101 struct functionfs_strings strings; in TYPED_TEST() local
103 EXPECT_EQ(read(this->control, &strings, sizeof(strings)), (long)sizeof(strings)); in TYPED_TEST()
105 EXPECT_TRUE(std::memcmp(&strings, &mtp_strings, sizeof(strings)) == 0); in TYPED_TEST()
111 struct functionfs_strings strings; in TYPED_TEST() local
113 EXPECT_EQ(read(this->control, &strings, sizeof(strings)), (long)sizeof(strings)); in TYPED_TEST()
115 EXPECT_TRUE(std::memcmp(&strings, &mtp_strings, sizeof(strings)) == 0); in TYPED_TEST()
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DUtils.java74 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/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/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
DUtils.java70 String[] strings = new String[paragraphCount]; in buildParagraphListWithHitPercentage() local
72 for (int i = 0; i < strings.length; i++) { in buildParagraphListWithHitPercentage()
89 strings[i] = result.toString(); in buildParagraphListWithHitPercentage()
92 return strings; in buildParagraphListWithHitPercentage()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiBackupDataV1Parser.java225 > WifiConfiguration.KeyMgmt.strings.length) { in clearAnyKnownIssuesInParsedConfiguration()
227 WifiConfiguration.KeyMgmt.strings.length, in clearAnyKnownIssuesInParsedConfiguration()
232 > WifiConfiguration.Protocol.strings.length) { in clearAnyKnownIssuesInParsedConfiguration()
234 WifiConfiguration.Protocol.strings.length, in clearAnyKnownIssuesInParsedConfiguration()
239 > WifiConfiguration.AuthAlgorithm.strings.length) { in clearAnyKnownIssuesInParsedConfiguration()
241 WifiConfiguration.AuthAlgorithm.strings.length, in clearAnyKnownIssuesInParsedConfiguration()
246 > WifiConfiguration.GroupCipher.strings.length) { in clearAnyKnownIssuesInParsedConfiguration()
248 WifiConfiguration.GroupCipher.strings.length, in clearAnyKnownIssuesInParsedConfiguration()
253 > WifiConfiguration.PairwiseCipher.strings.length) { in clearAnyKnownIssuesInParsedConfiguration()
255 WifiConfiguration.PairwiseCipher.strings.length, in clearAnyKnownIssuesInParsedConfiguration()
/frameworks/base/libs/androidfw/tests/data/sparse/
Dgen_strings.sh3 OUTPUT_default=res/values/strings.xml
4 OUTPUT_v26=res/values-v26/strings.xml
/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/core/java/android/os/
DIncidentManager.java490 List<String> strings; in getPendingReports() local
492 strings = getCompanionServiceLocked().getPendingReports(); in getPendingReports()
496 final int size = strings.size(); in getPendingReports()
499 result.add(new PendingReport(Uri.parse(strings.get(i)))); in getPendingReports()
544 List<String> strings; in getIncidentReportList() local
546 strings = getCompanionServiceLocked().getIncidentReportList( in getIncidentReportList()
551 final int size = strings.size(); in getIncidentReportList()
554 result.add(Uri.parse(strings.get(i))); in getIncidentReportList()
/frameworks/compile/mclinker/lib/LD/
DDebugString.cpp42 llvm::StringRef strings; in merge() local
47 strings = frag->getRegion().data(); in merge()
52 const char* str = strings.data(); in merge()
/frameworks/base/services/core/java/com/android/server/location/
DGnssSatelliteBlacklistHelper.java85 String[] strings = blacklist.split(BLACKLIST_DELIMITER); in parseSatelliteBlacklist() local
86 List<Integer> parsed = new ArrayList<>(strings.length); in parseSatelliteBlacklist()
87 for (String string : strings) { in parseSatelliteBlacklist()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiConfigurationTest.java172 for (int keyMgmt = 0; keyMgmt < WifiConfiguration.KeyMgmt.strings.length; keyMgmt++) { in testIsOpenNetwork_NotOpen_HasAuthType()
183 + WifiConfiguration.KeyMgmt.strings[keyMgmt], config.isOpenNetwork()); in testIsOpenNetwork_NotOpen_HasAuthType()
427 assertEquals(mSsid + KeyMgmt.strings[KeyMgmt.WPA_PSK], in testGetSsidAndSecurityTypeString()
432 assertEquals(mSsid + KeyMgmt.strings[KeyMgmt.WPA_EAP], in testGetSsidAndSecurityTypeString()
442 assertEquals(mSsid + KeyMgmt.strings[KeyMgmt.OWE], config.getSsidAndSecurityTypeString()); in testGetSsidAndSecurityTypeString()
446 assertEquals(mSsid + KeyMgmt.strings[KeyMgmt.SAE], config.getSsidAndSecurityTypeString()); in testGetSsidAndSecurityTypeString()
450 assertEquals(mSsid + KeyMgmt.strings[KeyMgmt.SUITE_B_192], in testGetSsidAndSecurityTypeString()
455 assertEquals(mSsid + KeyMgmt.strings[KeyMgmt.NONE], config.getSsidAndSecurityTypeString()); in testGetSsidAndSecurityTypeString()
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpDatabaseTest.java35 import static com.android.mtp.MtpDatabase.strings;
281 mDatabase.queryChildDocuments(strings(Document.COLUMN_FLAGS), "2")) { in testPutChildDocuments_operationsSupported()
298 mDatabase.queryChildDocuments(strings(Document.COLUMN_FLAGS), "2")) { in testPutChildDocuments_operationsSupported()
314 mDatabase.queryChildDocuments(strings(Document.COLUMN_FLAGS), "2")) { in testPutChildDocuments_operationsSupported()
768 mDatabase.queryRoots(resources, strings(Root.COLUMN_ROOT_ID))) { in testFailToReplaceExisitingUnmappedRoots()
786 strings(Document.COLUMN_DOCUMENT_ID), "1")) { in testFailToReplaceExisitingUnmappedRoots()
800 final Cursor cursor = mDatabase.queryDocument("2", strings(Document.COLUMN_DISPLAY_NAME)); in testQueryDocuments()
813 final Cursor cursor = mDatabase.queryRoots(resources, strings(Root.COLUMN_TITLE)); in testQueryRoots()
828 final Cursor cursor = mDatabase.queryRoots(resources, strings(Root.COLUMN_TITLE)); in testQueryRoots()
844 final Cursor cursor = mDatabase.queryRoots(resources, strings(Root.COLUMN_TITLE)); in testQueryRoots()
[all …]
/frameworks/base/tools/aapt2/jni/
Daapt2_jni.cpp68 static std::vector<StringPiece> extract_pieces(const std::vector<ScopedUtfChars> &strings) { in extract_pieces() argument
72 strings.begin(), strings.end(), in extract_pieces()
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DTransactionParcelTests.java451 String[] strings) throws RemoteException { in dumpService() argument
497 public void dispatchPackageBroadcast(int i, String[] strings) throws RemoteException { in dispatchPackageBroadcast() argument
506 String s, String[] strings) throws RemoteException { in dumpActivity() argument
533 boolean b4, String[] strings) throws RemoteException { in dumpMemInfo() argument
539 boolean b3, String[] strings) throws RemoteException { in dumpMemInfoProto() argument
543 public void dumpGfxInfo(ParcelFileDescriptor parcelFileDescriptor, String[] strings) in dumpGfxInfo() argument
549 String[] strings) throws RemoteException { in dumpProvider() argument
553 public void dumpDbInfo(ParcelFileDescriptor parcelFileDescriptor, String[] strings) in dumpDbInfo() argument

12345