/frameworks/base/tools/aapt2/util/ |
H A D | Util_test.cpp | 132 StringPiece prefix, entry, suffix; local 133 ASSERT_TRUE(util::ExtractResFilePathParts("res/xml-sw600dp/entry.xml", &prefix, &entry, &suffix)); 136 EXPECT_THAT(suffix, Eq(".xml")); 138 ASSERT_TRUE(util::ExtractResFilePathParts("res/xml-sw600dp/entry.9.png", &prefix, &entry, &suffix)); 141 EXPECT_THAT(suffix, Eq(".9.png")); 143 ASSERT_TRUE(util::ExtractResFilePathParts("res//.", &prefix, &entry, &suffix)); 146 EXPECT_THAT(suffix, Eq(".")); 148 EXPECT_FALSE(util::ExtractResFilePathParts("AndroidManifest.xml", &prefix, &entry, &suffix)); 149 EXPECT_FALSE(util::ExtractResFilePathParts("res/.xml", &prefix, &entry, &suffix));
|
H A D | Util.cpp | 72 bool EndsWith(const StringPiece& str, const StringPiece& suffix) { argument 73 if (str.size() < suffix.size()) { 76 return str.substr(str.size() - suffix.size(), suffix.size()) == suffix;
|
/frameworks/support/room/runtime/src/main/java/androidx/room/ |
H A D | Room.java | 78 static <T, C> T getGeneratedImplementation(Class<C> klass, String suffix) { argument 84 final String implName = postPackageName.replace('.', '_') + suffix;
|
/frameworks/base/libs/hwui/utils/ |
H A D | StringUtils.h | 45 size_t suffix = 0; local 47 while (temp > 1024 && suffix < 2) { 49 suffix++; 51 stream << std::fixed << std::setprecision(2) << temp << SUFFIXES[suffix];
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_UsbAlsaJackDetector.cpp | 43 static struct mixer_ctl* find_mixer_with_suffix(struct mixer* card_mixer, const char* suffix) { argument 48 if (android::base::EndsWith(name, suffix)) { 55 static jboolean is_jack_connected(jint card, const char* suffix) { argument 60 struct mixer_ctl* ctl = find_mixer_with_suffix(card_mixer, suffix);
|
/frameworks/support/compat/src/main/java/androidx/core/util/ |
H A D | TimeUtils.java | 43 static private int accumField(int amt, int suffix, boolean always, int zeropad) { argument 45 return 3+suffix; 48 return 2+suffix; 51 return 1+suffix; 56 static private int printField(char[] formatStr, int amt, char suffix, int pos, argument 74 formatStr[pos] = suffix;
|
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/ |
H A D | ConfigFactory.java | 154 * except that the names are appended with the provided suffix. 157 List<MetricConditionLink> links, int suffix) { 161 .setCondition(link.getCondition() + suffix) 169 * with the provided suffix. Then adds that metric to the config. 171 private void addEventMetric(EventMetric template, int suffix, StatsdConfig.Builder config) { argument 173 .setId(template.getId() + suffix) 174 .setWhat(template.getWhat() + suffix); 176 metric.setCondition(template.getCondition() + suffix); 179 List<MetricConditionLink> links = getLinks(template.getLinksList(), suffix); 188 * with the provided suffix, an 156 getLinks( List<MetricConditionLink> links, int suffix) argument 190 addCountMetric(CountMetric template, int suffix, TimeUnit bucket, StatsdConfig.Builder config) argument 211 addDurationMetric(DurationMetric template, int suffix, TimeUnit bucket, StatsdConfig.Builder config) argument 232 addGaugeMetric(GaugeMetric template, int suffix, TimeUnit bucket, StatsdConfig.Builder config) argument 253 addValueMetric(ValueMetric template, int suffix, TimeUnit bucket, StatsdConfig.Builder config) argument 274 addPredicate(Predicate template, int suffix, StatsdConfig.Builder config) argument 301 addMatcher(AtomMatcher template, int suffix, StatsdConfig.Builder config) argument [all...] |
/frameworks/base/core/java/android/util/ |
H A D | TimeUtils.java | 101 static private int accumField(int amt, int suffix, boolean always, int zeropad) { argument 108 return num + suffix; 111 return 3+suffix; 114 return 2+suffix; 117 return 1+suffix; 123 static private int printFieldLocked(char[] formatStr, int amt, char suffix, int pos, argument 157 formatStr[pos] = suffix;
|
/frameworks/base/libs/hwui/tests/macrobench/ |
H A D | TestSceneRunner.cpp | 71 const char* suffix; member in struct:ReportInfo 98 reports[0].benchmark_name += ri.suffix;
|
/frameworks/base/cmds/statsd/src/config/ |
H A D | ConfigManager.cpp | 162 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); local 163 StorageManager::deleteSuffixedFiles(STATS_SERVICE_DIR, suffix.c_str());
|
/frameworks/base/cmds/statsd/src/storage/ |
H A D | StorageManager.cpp | 118 void StorageManager::deleteSuffixedFiles(const char* path, const char* suffix) { argument 132 size_t suffixLen = strlen(suffix); 133 if (suffixLen <= nameLen && strncmp(name + nameLen - suffixLen, suffix, suffixLen) == 0) { 170 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); local 178 size_t suffixLen = suffix.length(); 180 strncmp(name + nameLen - suffixLen, suffix.c_str(), suffixLen) == 0) { 198 string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); local 206 size_t suffixLen = suffix.length(); 208 strncmp(name + nameLen - suffixLen, suffix.c_str(), suffixLen) == 0) { 297 string suffix local [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | WebViewFactory.java | 133 static void setDataDirectorySuffix(String suffix) { argument 137 "Can't set data directory suffix: WebView already initialized"); 139 if (suffix.indexOf(File.separatorChar) >= 0) { 140 throw new IllegalArgumentException("Suffix " + suffix 143 sDataDirectorySuffix = suffix;
|
/frameworks/base/libs/androidfw/ |
H A D | ZipFileRO.cpp | 149 bool ZipFileRO::startIteration(void** cookie, const char* prefix, const char* suffix) argument 153 ZipString se(suffix ? suffix : ""); 156 suffix ? &se : NULL);
|
/frameworks/base/tools/aapt2/link/ |
H A D | TableMerger.cpp | 285 StringPiece prefix, entry, suffix; local 286 if (util::ExtractResFilePathParts(*file_ref.path, &prefix, &entry, &suffix)) { 288 std::string newPath = prefix.to_string() + mangled_entry + suffix.to_string();
|
/frameworks/base/tools/bit/ |
H A D | util.cpp | 201 ends_with(const string& str, const string& suffix) argument 203 if (str.length() < suffix.length()) { 206 return str.compare(str.length()-suffix.length(), suffix.length(), suffix) == 0;
|
/frameworks/rs/ |
H A D | rsScriptC.cpp | 263 const char *suffix, const uint8_t *bitcode, 269 f.append(suffix); 262 dumpBitcodeFile(const char *cacheDir, const char *resName, const char *suffix, const uint8_t *bitcode, size_t bitcodeLen) argument
|
/frameworks/base/core/java/android/companion/ |
H A D | BluetoothLeDeviceFilter.java | 261 String suffix = in.readString(); 269 builder.setRenameFromBytes(renamePrefix, suffix, bytesFrom, bytesTo, 272 builder.setRenameFromName(renamePrefix, suffix, nameFrom, nameTo); 351 * prefix/suffix around them 359 * @param suffix to be displayed after the byte data 367 public Builder setRenameFromBytes(@NonNull String prefix, @NonNull String suffix, argument 374 return setRename(prefix, suffix); 379 * as well as a custom prefix/suffix around them 387 * @param suffix to be displayed after the byte data 393 public Builder setRenameFromName(@NonNull String prefix, @NonNull String suffix, argument 412 setRename(@onNull String prefix, @NonNull String suffix) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSDetailItems.java | 103 public void setTagSuffix(String suffix) { argument 104 mTag = TAG + "." + suffix;
|
/frameworks/opt/vcard/java/com/android/vcard/ |
H A D | VCardUtils.java | 342 final String prefix, final String suffix) { 360 if (!TextUtils.isEmpty(suffix)) { 364 builder.append(suffix); 340 constructNameFromElements(final int nameOrder, final String familyName, final String middleName, final String givenName, final String prefix, final String suffix) argument
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/ |
H A D | FwdLockEngine.cpp | 201 bool FwdLockEngine::IsFileSuffixSupported(const String8& suffix) { argument 202 String8 tmp(suffix);
|
/frameworks/base/core/java/com/android/internal/util/function/pooled/ |
H A D | PooledLambdaImpl.java | 585 return prefix(type) + suffix(type); 597 private static String suffix(int type) { method in class:PooledLambdaImpl.LambdaType.ReturnType
|
/frameworks/base/services/core/java/com/android/server/job/ |
H A D | JobPackageTracker.java | 297 void printDuration(PrintWriter pw, long period, long duration, int count, String suffix) { argument 306 pw.print(suffix); 311 pw.print(suffix);
|
/frameworks/native/libs/vr/libpdx_uds/ |
H A D | service_endpoint.cpp | 379 const std::string suffix = "_endpoint_socket"; local 380 auto pos = channel_context.find(suffix); 382 channel_context.replace(pos, suffix.size(), "_channel_socket"); 387 channel_context.c_str(), suffix.c_str());
|
/frameworks/base/core/java/android/view/ |
H A D | ViewDebug.java | 1214 final String suffix = "()"; 1216 exportUnrolledArray(context, out, property, array, valuePrefix, suffix); 1306 final String suffix = ""; 1308 exportUnrolledArray(context, out, property, array, valuePrefix, suffix); 1342 String suffix, Object value) throws IOException { 1346 out.write(suffix); 1445 ExportedProperty property, int[] array, String prefix, String suffix) 1492 writeEntry(out, prefix, name, suffix, value); 1341 writeEntry(BufferedWriter out, String prefix, String name, String suffix, Object value) argument 1444 exportUnrolledArray(Context context, BufferedWriter out, ExportedProperty property, int[] array, String prefix, String suffix) argument
|
/frameworks/native/cmds/installd/ |
H A D | InstalldNativeService.cpp | 618 std::string suffix = ""; local 621 suffix = CACHE_DIR_POSTFIX; 624 suffix = CODE_CACHE_DIR_POSTFIX; 628 auto path = create_data_user_de_package_path(uuid_, userId, pkgname) + suffix; 2138 // Transform string /a/b/c.apk to (prefix)/a@b@c.apk@(suffix) 2140 static int flatten_path(const char *prefix, const char *suffix, argument 2152 const size_t len_suffix = strlen(suffix); 2162 snprintf(idmap_path, N, "%s%s%s", prefix, overlay_path + 1, suffix);
|