/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/ |
D | ConfigFactory.java | 157 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/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/ |
D | MessageLiteToString.java | 91 String suffix = getter.replaceFirst("get", ""); in reflectivePrintWithIndent() local 92 if (suffix.endsWith(LIST_SUFFIX) && !suffix.endsWith(BUILDER_LIST_SUFFIX)) { in reflectivePrintWithIndent() 93 String camelCase = suffix.substring(0, 1).toLowerCase() in reflectivePrintWithIndent() 94 + suffix.substring(1, suffix.length() - LIST_SUFFIX.length()); in reflectivePrintWithIndent() 97 Method listMethod = nameToNoArgMethod.get("get" + suffix); in reflectivePrintWithIndent() 108 Method setter = nameToMethod.get("set" + suffix); in reflectivePrintWithIndent() 112 if (suffix.endsWith(BYTES_SUFFIX) in reflectivePrintWithIndent() 114 "get" + suffix.substring(0, suffix.length() - "Bytes".length()))) { in reflectivePrintWithIndent() 119 String camelCase = suffix.substring(0, 1).toLowerCase() + suffix.substring(1); in reflectivePrintWithIndent() 123 Method getMethod = nameToNoArgMethod.get("get" + suffix); in reflectivePrintWithIndent() [all …]
|
/frameworks/base/core/java/android/util/ |
D | DebugUtils.java | 136 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 …]
|
D | TimeUtils.java | 147 static private int accumField(int amt, int suffix, boolean always, int zeropad) { in accumField() argument 154 return num + suffix; in accumField() 157 return 3+suffix; in accumField() 160 return 2+suffix; in accumField() 163 return 1+suffix; in accumField() 169 static private int printFieldLocked(char[] formatStr, int amt, char suffix, int pos, in printFieldLocked() argument 203 formatStr[pos] = suffix; in printFieldLocked()
|
/frameworks/native/opengl/tools/glgen/src/ |
D | GenerateEGL.java | 87 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()
|
D | GenerateGLES.java | 86 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()
|
/frameworks/base/tools/aapt2/util/ |
D | Util_test.cpp | 132 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/ |
D | StringUtils.h | 45 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/ |
D | com_android_server_UsbAlsaJackDetector.cpp | 43 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/ |
D | BluetoothLeDeviceFilter.java | 263 String suffix = in.readString(); 271 builder.setRenameFromBytes(renamePrefix, suffix, bytesFrom, bytesTo, 274 builder.setRenameFromName(renamePrefix, suffix, nameFrom, nameTo); 369 public Builder setRenameFromBytes(@NonNull String prefix, @NonNull String suffix, in setRenameFromBytes() argument 376 return setRename(prefix, suffix); in setRenameFromBytes() 395 public Builder setRenameFromName(@NonNull String prefix, @NonNull String suffix, in setRenameFromName() argument 402 return setRename(prefix, suffix); in setRenameFromName() 414 private Builder setRename(@NonNull String prefix, @NonNull String suffix) { in setRename() argument 419 mRenameSuffix = suffix; in setRename()
|
/frameworks/base/core/java/android/text/format/ |
D | Formatter.java | 128 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/ |
D | DataUsageDetailView.java | 129 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/ |
D | MediaStoreSaver.java | 50 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/ |
D | MediaStoreSaver.java | 50 String suffix = ".png"; in save() local 53 suffix = ".jpg"; in save() 57 file = File.createTempFile(imageName, suffix, dir); in save()
|
/frameworks/base/core/proto/ |
D | README.md | 13 * 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/ |
D | util.cpp | 201 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/ |
D | AString.cpp | 341 bool AString::endsWith(const char *suffix) const { in endsWith() 342 size_t suffixLen = strlen(suffix); in endsWith() 348 return !strcmp(mData + mSize - suffixLen, suffix); in endsWith() 355 bool AString::endsWithIgnoreCase(const char *suffix) const { in endsWithIgnoreCase() 356 size_t suffixLen = strlen(suffix); in endsWithIgnoreCase() 362 return !strcasecmp(mData + mSize - suffixLen, suffix); in endsWithIgnoreCase()
|
/frameworks/base/core/java/android/webkit/ |
D | FindAddress.java | 276 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/ |
D | NBAIO_Tee.h | 237 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);
|
D | NBAIO_Tee.cpp | 99 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/libs/androidfw/ |
D | ZipFileRO.cpp | 149 bool ZipFileRO::startIteration(void** cookie, const char* prefix, const char* suffix) in startIteration() argument 153 ZipString se(suffix ? suffix : ""); in startIteration() 156 suffix ? &se : NULL); in startIteration()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/java/ |
D | java_helpers.h | 160 string AnnotationFileName(const Descriptor* descriptor, const string& suffix) { in AnnotationFileName() argument 161 return descriptor->name() + suffix + ".java.pb.meta"; in AnnotationFileName() 167 const string& suffix = "") { 170 AnnotationFileName(descriptor, suffix));
|
/frameworks/base/cmds/statsd/src/storage/ |
D | StorageManager.cpp | 339 void StorageManager::deleteSuffixedFiles(const char* path, const char* suffix) { in deleteSuffixedFiles() argument 353 size_t suffixLen = strlen(suffix); in deleteSuffixedFiles() 354 if (suffixLen <= nameLen && strncmp(name + nameLen - suffixLen, suffix, suffixLen) == 0) { in deleteSuffixedFiles() 388 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); in hasConfigMetricsReport() local 396 size_t suffixLen = suffix.length(); in hasConfigMetricsReport() 398 strncmp(name + nameLen - suffixLen, suffix.c_str(), suffixLen) == 0) { in hasConfigMetricsReport() 518 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); in readConfigFromDisk() local 526 size_t suffixLen = suffix.length(); in readConfigFromDisk() 529 strncmp(name + nameLen - suffixLen, suffix.c_str(), suffixLen) == 0) { in readConfigFromDisk()
|
/frameworks/native/opengl/libs/EGL/ |
D | Loader.cpp | 434 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/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/ |
D | strutil.h | 136 const string& suffix) { in HasSuffixString() argument 137 return str.size() >= suffix.size() && in HasSuffixString() 138 str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; in HasSuffixString() 141 inline string StripSuffixString(const string& str, const string& suffix) { in StripSuffixString() argument 142 if (HasSuffixString(str, suffix)) { in StripSuffixString() 143 return str.substr(0, str.size() - suffix.size()); in StripSuffixString()
|