Home
last modified time | relevance | path

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

12345

/frameworks/native/libs/ftl/
Dstatic_vector_test.cpp55 ftl::StaticVector strings = ftl::init::list<std::string>("abc")("123456", 3u)(3u, '?'); in TEST() local
56 ASSERT_EQ(strings.size(), 3u); in TEST()
58 EXPECT_EQ(strings[0], "abc"); in TEST()
59 EXPECT_EQ(strings[1], "123"); in TEST()
60 EXPECT_EQ(strings[2], "???"); in TEST()
125 const char* strings[] = {"a", "b", "c", "d"}; in TEST() local
129 StaticVector<String, 3> vector(strings, strings + 3); in TEST()
137 StaticVector<String, 3> vector(ftl::kIteratorRange, strings, strings + 3); in TEST()
217 StaticVector strings = ftl::init::list<std::string>()()()("cake")("velvet")("red")(); in TEST() local
218 strings.pop_back(); in TEST()
[all …]
Dsmall_vector_test.cpp56 ftl::SmallVector strings = ftl::init::list<std::string>("abc")("123456", 3u)(3u, '?'); in TEST() local
57 ASSERT_EQ(strings.size(), 3u); in TEST()
58 EXPECT_FALSE(strings.dynamic()); in TEST()
60 EXPECT_EQ(strings[0], "abc"); in TEST()
61 EXPECT_EQ(strings[1], "123"); in TEST()
62 EXPECT_EQ(strings[2], "???"); in TEST()
219 SmallVector strings = ftl::init::list<std::string>()()()("cake")("velvet")("red")(); in TEST() local
220 strings.pop_back(); in TEST()
222 EXPECT_EQ(strings.max_size(), 7u); in TEST()
223 EXPECT_EQ(strings.size(), 6u); in TEST()
[all …]
/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/core/java/android/nfc/
DTag.java162 String[] strings = new String[size]; in generateTechStringList() local
166 strings[i] = IsoDep.class.getName(); in generateTechStringList()
169 strings[i] = MifareClassic.class.getName(); in generateTechStringList()
172 strings[i] = MifareUltralight.class.getName(); in generateTechStringList()
175 strings[i] = Ndef.class.getName(); in generateTechStringList()
178 strings[i] = NdefFormatable.class.getName(); in generateTechStringList()
181 strings[i] = NfcA.class.getName(); in generateTechStringList()
184 strings[i] = NfcB.class.getName(); in generateTechStringList()
187 strings[i] = NfcF.class.getName(); in generateTechStringList()
190 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()
DglCreateShaderProgramv.java5 String[] strings in glCreateShaderProgramv() argument
/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/MtpFfsHandleTest/
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/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/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/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/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/core/tests/coretests/src/android/os/
DParcelTest.java96 final String[] strings = { in testStrings() local
102 for (String string : strings) { in testStrings()
108 for (String string : strings) { in testStrings()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssSatelliteBlocklistHelper.java101 String[] strings = blocklist.split(BLOCKLIST_DELIMITER); in parseSatelliteBlocklist() local
102 List<Integer> parsed = new ArrayList<>(strings.length); in parseSatelliteBlocklist()
103 for (String string : strings) { in parseSatelliteBlocklist()
/frameworks/base/core/java/android/os/
DIncidentManager.java525 List<String> strings; in getPendingReports() local
527 strings = getCompanionServiceLocked().getPendingReports(); in getPendingReports()
531 final int size = strings.size(); in getPendingReports()
534 result.add(new PendingReport(Uri.parse(strings.get(i)))); in getPendingReports()
635 List<String> strings; in getIncidentReportList() local
637 strings = getCompanionServiceLocked().getIncidentReportList( in getIncidentReportList()
642 final int size = strings.size(); in getIncidentReportList()
645 result.add(Uri.parse(strings.get(i))); in getIncidentReportList()
/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/telecomm/java/android/telecom/
DAuthenticatorService.java63 String s, String s2, String[] strings, Bundle bundle) in addAccount() argument
96 Account account, String[] strings) in hasFeatures() argument
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DTransactionParcelTests.java488 String[] strings) throws RemoteException { in dumpService() argument
531 public void dispatchPackageBroadcast(int i, String[] strings) throws RemoteException { in dispatchPackageBroadcast() argument
540 String s, String[] strings) throws RemoteException { in dumpActivity() argument
567 boolean b4, String[] strings) throws RemoteException { in dumpMemInfo() argument
573 boolean b3, String[] strings) throws RemoteException { in dumpMemInfoProto() argument
577 public void dumpGfxInfo(ParcelFileDescriptor parcelFileDescriptor, String[] strings) in dumpGfxInfo() argument
582 public void dumpCacheInfo(ParcelFileDescriptor parcelFileDescriptor, String[] strings) in dumpCacheInfo() argument
588 String[] strings) throws RemoteException { in dumpProvider() argument
592 public void dumpDbInfo(ParcelFileDescriptor parcelFileDescriptor, String[] strings) in dumpDbInfo() argument
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DLineBreakBufferedWriterTest.java212 private List<String> strings = new ArrayList<String>(); field in LineBreakBufferedWriterTest.RecordingWriter
218 return strings; in getStrings()
223 strings.add(new String(cbuf, off, len)); in write()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/
DRvBoxAdapter.java49 public RvBoxAdapter(Context context, String[] strings) { in RvBoxAdapter() argument
57 Collections.addAll(mValues, strings); in RvBoxAdapter()
/frameworks/base/core/java/android/preference/
DMultiSelectListPreference.java264 String[] strings = source.readStringArray(); in SavedState() local
266 final int stringCount = strings.length; in SavedState()
268 values.add(strings[i]); in SavedState()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/cdc/
DRabinFingerprint64Test.java99 private byte[] getBytes(String... strings) { in getBytes() argument
101 for (String s : strings) { in getBytes()

12345