Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/util/
DDebugUtils.java140 String suffix = ""; in printSizeValue() local
142 suffix = "KB"; in printSizeValue()
146 suffix = "MB"; in printSizeValue()
150 suffix = "GB"; in printSizeValue()
154 suffix = "TB"; in printSizeValue()
158 suffix = "PB"; in printSizeValue()
172 pw.print(suffix); in printSizeValue()
181 String suffix = ""; in sizeValueToString() local
183 suffix = "KB"; in sizeValueToString()
187 suffix = "MB"; in sizeValueToString()
[all …]
DTimeUtils.java154 static private int accumField(int amt, int suffix, boolean always, int zeropad) { in accumField() argument
161 return num + suffix; in accumField()
164 return 3+suffix; in accumField()
167 return 2+suffix; in accumField()
170 return 1+suffix; in accumField()
176 static private int printFieldLocked(char[] formatStr, int amt, char suffix, int pos, in printFieldLocked() argument
210 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.java261 String suffix = in.readString();
269 builder.setRenameFromBytes(renamePrefix, suffix, bytesFrom, bytesTo,
272 builder.setRenameFromName(renamePrefix, suffix, nameFrom, nameTo);
367 public Builder setRenameFromBytes(@NonNull String prefix, @NonNull String suffix, in setRenameFromBytes() argument
374 return setRename(prefix, suffix); in setRenameFromBytes()
393 public Builder setRenameFromName(@NonNull String prefix, @NonNull String suffix, in setRenameFromName() argument
400 return setRename(prefix, suffix); in setRenameFromName()
412 private Builder setRename(@NonNull String prefix, @NonNull String suffix) { in setRename() argument
417 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/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/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/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/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/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/native/services/surfaceflinger/Scheduler/
DLayerInfoV2.cpp248 const std::string suffix = "Heuristic "; in makeHeuristicTraceTagData() local
249 return {.min = prefix + mName + suffix + "min", in makeHeuristicTraceTagData()
250 .max = prefix + mName + suffix + "max", in makeHeuristicTraceTagData()
251 .consistent = prefix + mName + suffix + "consistent", in makeHeuristicTraceTagData()
252 .average = prefix + mName + suffix + "average"}; in makeHeuristicTraceTagData()
/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/native/opengl/libs/EGL/
DLoader.cpp391 static void* load_system_driver(const char* kind, const char* suffix, const bool exact) { in load_system_driver() argument
454 if (suffix) { in load_system_driver()
455 libraryName += std::string("_") + suffix; in load_system_driver()
611 Loader::driver_t* Loader::attempt_to_load_system_driver(egl_connection_t* cnx, const char* suffix, in attempt_to_load_system_driver() argument
616 void* dso = load_system_driver("GLES", suffix, exact); in attempt_to_load_system_driver()
622 dso = load_system_driver("EGL", suffix, exact); in attempt_to_load_system_driver()
627 dso = load_system_driver("GLESv1_CM", suffix, exact); in attempt_to_load_system_driver()
631 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/base/cmds/statsd/src/storage/
DStorageManager.cpp438 void StorageManager::deleteSuffixedFiles(const char* path, const char* suffix) { in deleteSuffixedFiles() argument
452 size_t suffixLen = strlen(suffix); in deleteSuffixedFiles()
453 if (suffixLen <= nameLen && strncmp(name + nameLen - suffixLen, suffix, suffixLen) == 0) { in deleteSuffixedFiles()
487 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); in hasConfigMetricsReport() local
495 size_t suffixLen = suffix.length(); in hasConfigMetricsReport()
497 strncmp(name + nameLen - suffixLen, suffix.c_str(), suffixLen) == 0) { in hasConfigMetricsReport()
617 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); in readConfigFromDisk() local
625 size_t suffixLen = suffix.length(); in readConfigFromDisk()
628 strncmp(name + nameLen - suffixLen, suffix.c_str(), suffixLen) == 0) { in readConfigFromDisk()
/frameworks/base/core/tests/coretests/src/android/app/
DSuggestionProvider.java71 for (String suffix : suffixes) { in query()
72 addRow(cursor, query + suffix); in query()
/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/cmds/app_process/
DAndroid.bp9 suffix: "32",
13 suffix: "64",

1234