Home
last modified time | relevance | path

Searched refs:suffix (Results 1 – 25 of 78) sorted by relevance

1234

/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/
DConfigFactory.java157 List<MetricConditionLink> links, int suffix) { in getLinks() argument
161 .setCondition(link.getCondition() + suffix) in getLinks()
171 private void addEventMetric(EventMetric template, int suffix, StatsdConfig.Builder config) { in addEventMetric() argument
173 .setId(template.getId() + suffix) in addEventMetric()
174 .setWhat(template.getWhat() + suffix); in addEventMetric()
176 metric.setCondition(template.getCondition() + suffix); in addEventMetric()
179 List<MetricConditionLink> links = getLinks(template.getLinksList(), suffix); in addEventMetric()
190 private void addCountMetric(CountMetric template, int suffix, TimeUnit bucket, in addCountMetric() argument
193 .setId(template.getId() + suffix) in addCountMetric()
194 .setWhat(template.getWhat() + suffix); in addCountMetric()
[all …]
/frameworks/base/core/java/android/util/
DDebugUtils.java136 String suffix = ""; in printSizeValue() local
138 suffix = "KB"; in printSizeValue()
142 suffix = "MB"; in printSizeValue()
146 suffix = "GB"; in printSizeValue()
150 suffix = "TB"; in printSizeValue()
154 suffix = "PB"; in printSizeValue()
168 pw.print(suffix); in printSizeValue()
177 String suffix = ""; in sizeValueToString() local
179 suffix = "KB"; in sizeValueToString()
183 suffix = "MB"; in sizeValueToString()
[all …]
DTimeUtils.java153 static private int accumField(int amt, int suffix, boolean always, int zeropad) { in accumField() argument
160 return num + suffix; in accumField()
163 return 3+suffix; in accumField()
166 return 2+suffix; in accumField()
169 return 1+suffix; in accumField()
175 static private int printFieldLocked(char[] formatStr, int amt, char suffix, int pos, in printFieldLocked() argument
209 formatStr[pos] = suffix; in printFieldLocked()
/frameworks/native/opengl/tools/glgen/src/
DGenerateGLES.java86 for(String suffix: new String[] {"GLES10", "GLES10Ext", in main()
92 + suffix + ".spec")); in main()
93 String gl11Filename = "android/opengl/" + suffix + ".java"; in main()
94 String gl11cFilename = "android_opengl_" + suffix + ".cpp"; in main()
99 copy("stubs/gles11/" + suffix + "Header.java-if", gl11Stream); in main()
100 copy("stubs/gles11/" + suffix + "cHeader.cpp", gl11cStream); in main()
103 "android/opengl/" + suffix, in main()
107 + suffix); in main()
DGenerateEGL.java87 for(String suffix: new String[] {"EGL14", "EGL15", "EGLExt"}) { in main()
89 "specs/egl/" + suffix + ".spec")); in main()
90 String egljFilename = "android/opengl/" + suffix + ".java"; in main()
91 String eglcFilename = "android_opengl_" + suffix + ".cpp"; in main()
96 copy("stubs/egl/" + suffix + "Header.java-if", egljStream); in main()
97 copy("stubs/egl/" + suffix + "cHeader.cpp", eglcStream); in main()
99 "android/opengl/" + suffix, in main()
103 "register_android_opengl_jni_" + suffix); in main()
/frameworks/base/tools/aapt2/util/
DUtil_test.cpp132 StringPiece prefix, entry, suffix; in TEST() local
133 ASSERT_TRUE(util::ExtractResFilePathParts("res/xml-sw600dp/entry.xml", &prefix, &entry, &suffix)); in TEST()
136 EXPECT_THAT(suffix, Eq(".xml")); in TEST()
138 …ASSERT_TRUE(util::ExtractResFilePathParts("res/xml-sw600dp/entry.9.png", &prefix, &entry, &suffix)… in TEST()
141 EXPECT_THAT(suffix, Eq(".9.png")); in TEST()
143 ASSERT_TRUE(util::ExtractResFilePathParts("res//.", &prefix, &entry, &suffix)); in TEST()
146 EXPECT_THAT(suffix, Eq(".")); in TEST()
148 EXPECT_FALSE(util::ExtractResFilePathParts("AndroidManifest.xml", &prefix, &entry, &suffix)); in TEST()
149 EXPECT_FALSE(util::ExtractResFilePathParts("res/.xml", &prefix, &entry, &suffix)); in TEST()
/frameworks/base/libs/hwui/utils/
DStringUtils.h45 size_t suffix = 0; member
47 while (temp > 1024 && suffix < 2) {
49 suffix++;
51 stream << std::fixed << std::setprecision(2) << temp << SUFFIXES[suffix];
/frameworks/base/services/core/jni/
Dcom_android_server_UsbAlsaJackDetector.cpp43 static struct mixer_ctl* find_mixer_with_suffix(struct mixer* card_mixer, const char* suffix) { in find_mixer_with_suffix() argument
48 if (android::base::EndsWith(name, suffix)) { in find_mixer_with_suffix()
55 static jboolean is_jack_connected(jint card, const char* suffix) { in is_jack_connected() argument
60 struct mixer_ctl* ctl = find_mixer_with_suffix(card_mixer, suffix); in is_jack_connected()
/frameworks/base/core/java/android/companion/
DBluetoothLeDeviceFilter.java265 String suffix = in.readString();
273 builder.setRenameFromBytes(renamePrefix, suffix, bytesFrom, bytesTo,
276 builder.setRenameFromName(renamePrefix, suffix, nameFrom, nameTo);
371 public Builder setRenameFromBytes(@NonNull String prefix, @NonNull String suffix, in setRenameFromBytes() argument
378 return setRename(prefix, suffix); in setRenameFromBytes()
397 public Builder setRenameFromName(@NonNull String prefix, @NonNull String suffix, in setRenameFromName() argument
404 return setRename(prefix, suffix); in setRenameFromName()
416 private Builder setRename(@NonNull String prefix, @NonNull String suffix) { in setRename() argument
421 mRenameSuffix = suffix; in setRename()
/frameworks/base/core/java/android/text/format/
DFormatter.java128 int suffix = com.android.internal.R.string.byteShort; in formatBytes() local
131 suffix = com.android.internal.R.string.kilobyteShort; in formatBytes()
136 suffix = com.android.internal.R.string.megabyteShort; in formatBytes()
141 suffix = com.android.internal.R.string.gigabyteShort; in formatBytes()
146 suffix = com.android.internal.R.string.terabyteShort; in formatBytes()
151 suffix = com.android.internal.R.string.petabyteShort; in formatBytes()
195 final String units = res.getString(suffix); in formatBytes()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DDataUsageDetailView.java129 String suffix; in formatBytes() local
132 suffix = "GB"; in formatBytes()
135 suffix = "MB"; in formatBytes()
138 suffix = "KB"; in formatBytes()
140 return FORMAT.format(val * (bytes < 0 ? -1 : 1)) + " " + suffix; in formatBytes()
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DMediaStoreSaver.java50 String suffix = ".png"; in save() local
53 suffix = ".jpg"; in save()
57 file = File.createTempFile(imageName, suffix, dir); in save()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
DMediaStoreSaver.java50 String suffix = ".png"; in save() local
53 suffix = ".jpg"; in save()
57 file = File.createTempFile(imageName, suffix, dir); in save()
/frameworks/base/tools/bit/
Dutil.cpp201 ends_with(const string& str, const string& suffix) in ends_with() argument
203 if (str.length() < suffix.length()) { in ends_with()
206 return str.compare(str.length()-suffix.length(), suffix.length(), suffix) == 0; in ends_with()
/frameworks/base/core/proto/
DREADME.md13 * Inner messages whose containing messages have the `Proto` suffix do not
14 need to have a `Proto` suffix. E.g:
35 its suffix. Please also include the full package path of the original object
/frameworks/av/media/libstagefright/foundation/
DAString.cpp344 bool AString::endsWith(const char *suffix) const { in endsWith()
345 size_t suffixLen = strlen(suffix); in endsWith()
351 return !strcmp(mData + mSize - suffixLen, suffix); in endsWith()
358 bool AString::endsWithIgnoreCase(const char *suffix) const { in endsWithIgnoreCase()
359 size_t suffixLen = strlen(suffix); in endsWithIgnoreCase()
365 return !strcasecmp(mData + mSize - suffixLen, suffix); in endsWithIgnoreCase()
/frameworks/base/core/java/android/webkit/
DFindAddress.java276 String suffix = suffixMatcher.group(2).toLowerCase(Locale.getDefault()); in checkHouseNumber() local
279 return suffix.equals(num % 100 == 11 ? "th" : "st"); in checkHouseNumber()
281 return suffix.equals(num % 100 == 12 ? "th" : "nd"); in checkHouseNumber()
283 return suffix.equals(num % 100 == 13 ? "th" : "rd"); in checkHouseNumber()
285 return suffix.equals("th"); in checkHouseNumber()
/frameworks/av/services/audioflinger/
DNBAIO_Tee.h237 std::string suffix; in dump() local
241 suffix = mId + reason; in dump()
244 dumpTee(fd, sinkSource, suffix); in dump()
258 static void dumpTee(int fd, const NBAIO_SinkSource& sinkSource, const std::string& suffix);
DNBAIO_Tee.cpp99 const std::string &suffix);
123 std::string generateFilename(const std::string &suffix) const { in generateFilename()
133 return mPrefix + fileTime + msec + suffix + ".wav"; in generateFilename()
190 int fd, const NBAIO_SinkSource &sinkSource, const std::string &suffix) in dumpTee() argument
218 suffix); in dumpTee()
259 const std::string &suffix) in create() argument
261 const std::string filename = generateFilename(suffix); in create()
/frameworks/base/cmds/statsd/src/storage/
DStorageManager.cpp337 void StorageManager::deleteSuffixedFiles(const char* path, const char* suffix) { in deleteSuffixedFiles() argument
351 size_t suffixLen = strlen(suffix); in deleteSuffixedFiles()
352 if (suffixLen <= nameLen && strncmp(name + nameLen - suffixLen, suffix, suffixLen) == 0) { in deleteSuffixedFiles()
386 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); in hasConfigMetricsReport() local
394 size_t suffixLen = suffix.length(); in hasConfigMetricsReport()
396 strncmp(name + nameLen - suffixLen, suffix.c_str(), suffixLen) == 0) { in hasConfigMetricsReport()
516 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); in readConfigFromDisk() local
524 size_t suffixLen = suffix.length(); in readConfigFromDisk()
527 strncmp(name + nameLen - suffixLen, suffix.c_str(), suffixLen) == 0) { in readConfigFromDisk()
/frameworks/native/opengl/libs/EGL/
DLoader.cpp434 static void* load_system_driver(const char* kind, const char* suffix, const bool exact) { in load_system_driver() argument
497 if (suffix) { in load_system_driver()
498 libraryName += std::string("_") + suffix; in load_system_driver()
697 Loader::driver_t* Loader::attempt_to_load_system_driver(egl_connection_t* cnx, const char* suffix, in attempt_to_load_system_driver() argument
702 void* dso = load_system_driver("GLES", suffix, exact); in attempt_to_load_system_driver()
708 dso = load_system_driver("EGL", suffix, exact); in attempt_to_load_system_driver()
713 dso = load_system_driver("GLESv1_CM", suffix, exact); in attempt_to_load_system_driver()
717 dso = load_system_driver("GLESv2", suffix, exact); in attempt_to_load_system_driver()
/frameworks/base/libs/androidfw/
DZipFileRO.cpp149 bool ZipFileRO::startIteration(void** cookie, const char* prefix, const char* suffix) in startIteration() argument
153 prefix ? prefix : "", suffix ? suffix : ""); in startIteration()
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DAString.h86 bool endsWith(const char *suffix) const;
88 bool endsWithIgnoreCase(const char *suffix) const;
/frameworks/base/core/tests/coretests/src/android/app/
DSuggestionProvider.java71 for (String suffix : suffixes) { in query()
72 addRow(cursor, query + suffix); in query()
/frameworks/base/cmds/app_process/
DAndroid.bp10 suffix: "32",
15 suffix: "64",

1234