Home
last modified time | relevance | path

Searched refs:StringPrintf (Results 1 – 25 of 127) sorted by relevance

123456

/frameworks/base/startop/view_compiler/
Djava_lang_builder.cc21 using android::base::StringPrintf;
25 out_ << StringPrintf("package %s;\n", package_.c_str()) in Start()
54 << StringPrintf(" XmlResourceParser xml = res.getLayout(%s.R.layout.%s);\n", in Start()
79 << StringPrintf(" %s %s = createView(context, attrs, %s, \"%s\", factory, factory2);\n", in StartView()
84 << StringPrintf(" if (%s == null) %s = new %s(context, attrs);\n", in StartView()
89 out_ << StringPrintf(" ViewGroup.LayoutParams %s = %s.generateLayoutParams(attrs);\n", in StartView()
101 out_ << StringPrintf(" xml.next(); // </%s>\n", var.class_name.c_str()) in FinishView()
102 << StringPrintf(" %s.addView(%s, %s);\n", in FinishView()
107 out_ << StringPrintf(" return %s;\n", var.view_var.c_str()); in FinishView()
Dapk_layout_compiler.cc35 using android::base::StringPrintf;
100 dex_file.MakeClass(StringPrintf("%s.CompiledView", package_name.c_str()))}; in CompileApkAssetsLayouts()
105 auto path = StringPrintf("res/%s/", s.to_string().c_str()); in CompileApkAssetsLayouts()
107 auto layout_path = StringPrintf("%s%s", path.c_str(), layout_file.to_string().c_str()); in CompileApkAssetsLayouts()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/
Dstringprintf_unittest.cc50 EXPECT_EQ("", StringPrintf("")); in TEST()
52 EXPECT_EQ("", StringPrintf("%s", string().c_str())); in TEST()
53 EXPECT_EQ("", StringPrintf("%s", "")); in TEST()
59 EXPECT_EQ("123hello w", StringPrintf("%3$d%2$s %1$c", 'w', "hello", 123)); in TEST()
99 string value = StringPrintf("%.*s", 3, kInvalidCodePoint); in TEST()
113 value = StringPrintf("%.*s", n, buf); in TEST()
125 string value = StringPrintf("%.*s", 3, "\375\067s"); in TEST()
135 string value = StringPrintf("Hello, %s!", "World"); in TEST()
145 string value = StringPrintf("%s", buf); in TEST()
/frameworks/base/tools/aapt2/dump/
DDumpManifest.cpp31 using ::android::base::StringPrintf;
452 printer->Print(StringPrintf("package: name='%s' ", package.data())); in Print()
453 printer->Print(StringPrintf("versionCode='%s' ", in Print()
455 printer->Print(StringPrintf("versionName='%s'", versionName.data())); in Print()
458 printer->Print(StringPrintf(" split='%s'", split->data())); in Print()
461 printer->Print(StringPrintf(" platformBuildVersionName='%s'", platformVersionName->data())); in Print()
464 printer->Print(StringPrintf(" platformBuildVersionCode='%s'", platformVersionCode->data())); in Print()
467 printer->Print(StringPrintf(" compileSdkVersion='%d'", *compilesdkVersion)); in Print()
470 printer->Print(StringPrintf(" compileSdkVersionCodename='%s'", in Print()
549 printer->Print(StringPrintf("application-label:'%s'\n", in Print()
[all …]
/frameworks/base/tools/aapt2/util/
DFiles_test.cpp26 using ::android::base::StringPrintf;
56 std::string base = StringPrintf("hello%c", sTestDirSep); in TEST_F()
61 AppendPath(&base, StringPrintf("%cthere", sTestDirSep)); in TEST_F()
64 base = StringPrintf("hello%c", sTestDirSep); in TEST_F()
65 AppendPath(&base, StringPrintf("%cthere", sTestDirSep)); in TEST_F()
93 android::base::StringPrintf(R"(\\?\%s)", android::base::GetExecutableDirectory().data()), in TEST_F()
/frameworks/native/libs/ui/
DDebugUtils.cpp24 using android::base::StringPrintf;
88 return android::base::StringPrintf("Unknown deprecated dataspace code %d", in decodeStandard()
93 return android::base::StringPrintf("Unknown dataspace code %d", dataspaceSelect); in decodeStandard()
150 return android::base::StringPrintf("Unknown dataspace transfer %d", dataspaceTransfer); in decodeTransfer()
190 return android::base::StringPrintf("Unknown dataspace range %d", dataspaceRange); in decodeRange()
197 return android::base::StringPrintf("%s %s %s", decodeStandard(dataspace).c_str(), in dataspaceDetails()
247 return android::base::StringPrintf("Unknown color mode %d", colorMode); in decodeColorMode()
274 return android::base::StringPrintf("Unknown color transform %d", colorTransform); in decodeColorTransform()
306 return android::base::StringPrintf("Unknown %#08x", format); in decodePixelFormat()
325 return StringPrintf("(%4d,%4d,%4d,%4d)", rect.left, rect.top, rect.right, rect.bottom); in to_string()
/frameworks/av/media/codec2/vndk/util/
DC2Debug.cpp26 using android::base::StringPrintf;
69 return StringPrintf("%c%c%03x", in attribParamCoreIndex()
77 std::string v = StringPrintf("%c%c", in attribParamIndex()
82 v += StringPrintf("%02d", streamId); in attribParamIndex()
89 + StringPrintf("%c ", in attribParamIndex()
103 return os << StringPrintf("Param::Type(%08x: ", i.type()) in operator <<()
108 return os << StringPrintf("Param::Index(%08x: ", (uint32_t)i) in operator <<()
113 return StringPrintf("Field(@%02x+%02x)", in attribFieldId()
130 << StringPrintf("[%zu]", i.extent()); in operator <<()
136 << StringPrintf("::Field(@%02x+%02x)>", in operator <<()
[all …]
/frameworks/base/core/jni/
Dfd_utils.cpp199 fail_fn(android::base::StringPrintf("Unable to stat %d", fd)); in CreateFromFd()
211 fail_fn(android::base::StringPrintf("Socket name not whitelisted : %s (fd=%d)", in CreateFromFd()
242 fail_fn(android::base::StringPrintf("Unsupported st_mode for FD %d: %s", fd, mode.c_str())); in CreateFromFd()
246 const std::string fd_path = android::base::StringPrintf("/proc/self/fd/%d", fd); in CreateFromFd()
248 fail_fn(android::base::StringPrintf("Could not read fd link %s: %s", in CreateFromFd()
262 fail_fn(android::base::StringPrintf("Failed fcntl(%d, F_GETFD) (%s): %s", in CreateFromFd()
282 fail_fn(android::base::StringPrintf("Failed fcntl(%d, F_GETFL) (%s): %s", in CreateFromFd()
321 fail_fn(android::base::StringPrintf("Failed open(%s, %i): %s", in ReopenOrDetach()
329 fail_fn(android::base::StringPrintf("Failed fcntl(%d, F_SETFD, %d) (%s): %s", in ReopenOrDetach()
338 fail_fn(android::base::StringPrintf("Failed fcntl(%d, F_SETFL, %d) (%s): %s", in ReopenOrDetach()
[all …]
Dandroid_content_res_ApkAssets.cpp41 ATRACE_NAME(base::StringPrintf("LoadApkAssets(%s)", path.c_str()).c_str()); in NativeLoad()
53 std::string error_msg = base::StringPrintf("Failed to load asset path %s", path.c_str()); in NativeLoad()
67 ATRACE_NAME(base::StringPrintf("LoadApkAssetsFd(%s)", friendly_name_utf8.c_str()).c_str()); in NativeLoadFromFd()
85 std::string error_msg = base::StringPrintf("Failed to load asset path %s from fd %d", in NativeLoadFromFd()
/frameworks/base/libs/androidfw/
DIdmap.cpp34 using ::android::base::StringPrintf;
85 LOG(ERROR) << StringPrintf("Invalid Idmap file: bad magic value (was 0x%08x, expected 0x%08x)", in IsValidIdmapHeader()
93 LOG(ERROR) << StringPrintf("Version mismatch in Idmap (was 0x%08x, expected 0x%08x)", in IsValidIdmapHeader()
99 LOG(ERROR) << StringPrintf("Target package ID in Idmap is invalid: 0x%02x", in IsValidIdmapHeader()
105 LOG(ERROR) << StringPrintf("Idmap has too many type mappings (was %d, max 255)", in IsValidIdmapHeader()
142 LOG(ERROR) << StringPrintf("Invalid type map (0x%02x -> 0x%02x)", in Load()
151 LOG(ERROR) << StringPrintf("Idmap too small for the number of entries (%d)", in Load()
/frameworks/native/cmds/installd/
Dutils.cpp49 using android::base::StringPrintf;
85 auto resolved = StringPrintf("%s/%s", root_path.c_str(), ent->d_name); in resolve_ce_path_by_inode_or_fallback()
110 return StringPrintf("%s/%s", in create_data_app_package_path()
122 return StringPrintf("%s/%s", in create_data_user_ce_package_path()
137 return StringPrintf("%s/user/%u/%s", data.c_str(), userid, package_name); in create_data_user_ce_package_path_as_user_link()
152 return StringPrintf("%s/%s", in create_data_user_de_package_path()
164 return StringPrintf("/mnt/expand/%s", volume_uuid); in create_data_path()
172 return StringPrintf("%s/app", create_data_path(volume_uuid).c_str()); in create_data_app_path()
182 std::string legacy = StringPrintf("%s/data", data.c_str()); in create_data_user_ce_path()
189 return StringPrintf("%s/user/%u", data.c_str(), userid); in create_data_user_ce_path()
[all …]
Dotapreopt_utils.cpp28 using android::base::StringPrintf;
64 *error_msg = StringPrintf("Failed to execv(%s) because fork failed: %s", in Exec()
73 *error_msg = StringPrintf("Failed after fork for execv(%s) because waitpid failed: " in Exec()
79 *error_msg = StringPrintf("Failed execv(%s) because non-0 exit status", in Exec()
Dotapreopt.cpp62 using android::base::StringPrintf;
170 return StringPrintf("%s/%s", GetOtaDirectoryPrefix().c_str(), GetTargetSlot().c_str()); in GetOTADataDirectory()
306 environ_.push_back(StringPrintf("BOOTCLASSPATH=%s", boot_classpath_.c_str())); in PrepareEnvironment()
307 environ_.push_back(StringPrintf("ANDROID_DATA=%s", GetOTADataDirectory().c_str())); in PrepareEnvironment()
308 environ_.push_back(StringPrintf("ANDROID_ROOT=%s", android_root_.c_str())); in PrepareEnvironment()
359 std::string preopted_boot_art_path = StringPrintf("/system/framework/%s/boot.art", isa); in PrepareBootImage()
417 std::string file = StringPrintf("%s/%s", dir.c_str(), name); in ClearDirectory()
442 cmd.push_back(StringPrintf("--image=%s", art_path.c_str())); in Dex2oatBootImage()
444 cmd.push_back(StringPrintf("--dex-file=%s", boot_part.c_str())); in Dex2oatBootImage()
446 cmd.push_back(StringPrintf("--oat-file=%s", oat_path.c_str())); in Dex2oatBootImage()
[all …]
Dotapreopt_chroot.cpp40 using android::base::StringPrintf;
82 std::string partition_name = StringPrintf("%s%s", name, slot); in TryExtraMount()
103 std::string block_device = StringPrintf("/dev/block/by-name/%s", partition_name.c_str()); in TryExtraMount()
152 std::string trg = StringPrintf("/postinstall%s", kBindMounts[i]); in otapreopt_chroot()
Ddexopt.cpp63 using android::base::StringPrintf;
260 return StringPrintf(format.c_str(), prop.c_str()); in MapPropertyToArg()
343 bootclasspath = StringPrintf("-Xbootclasspath:%s", dex2oat_bootclasspath); in RunDex2Oat()
349 StringPrintf("dalvik.vm.isa.%s.features", instruction_set); in RunDex2Oat()
354 StringPrintf("dalvik.vm.isa.%s.variant", instruction_set); in RunDex2Oat()
406 boot_image = StringPrintf("-Ximage:%s", kApexImage); in RunDex2Oat()
413 std::string zip_fd_arg = StringPrintf("--zip-fd=%d", zip_fd); in RunDex2Oat()
414 std::string zip_location_arg = StringPrintf("--zip-location=%s", relative_input_file_name); in RunDex2Oat()
415 std::string input_vdex_fd_arg = StringPrintf("--input-vdex-fd=%d", input_vdex_fd); in RunDex2Oat()
416 std::string output_vdex_fd_arg = StringPrintf("--output-vdex-fd=%d", output_vdex_fd); in RunDex2Oat()
[all …]
/frameworks/native/cmds/installd/tests/
Dtest_utils.h105 using android::base::StringPrintf; in WriteBase64ToFile()
108 *error_msg = StringPrintf("Could not open file %s: %s", file.c_str(), strerror(errno)); in WriteBase64ToFile()
116 *error_msg = StringPrintf("Could not write file %s: %s", file.c_str(), strerror(errno)); in WriteBase64ToFile()
123 *error_msg = StringPrintf("Could not chown file %s: %s", file.c_str(), strerror(errno)); in WriteBase64ToFile()
127 *error_msg = StringPrintf("Could not chmod file %s: %s", file.c_str(), strerror(errno)); in WriteBase64ToFile()
Dinstalld_cache_test.cpp31 using android::base::StringPrintf;
70 const char* fullPath = StringPrintf("/data/local/tmp/user/0/%s", path).c_str(); in mkdir()
75 const char* fullPath = StringPrintf("/data/local/tmp/user/0/%s", path).c_str(); in touch()
85 const char* fullPath = StringPrintf("/data/local/tmp/user/0/%s", path).c_str(); in exists()
90 const char* fullPath = StringPrintf("/data/local/tmp/user/0/%s", path).c_str(); in size()
110 const char* fullPath = StringPrintf("/data/local/tmp/user/0/%s", path).c_str(); in setxattr()
/frameworks/base/services/core/jni/
Dcom_android_server_am_AppCompactor.cpp34 using android::base::StringPrintf;
59 std::string status_name = StringPrintf("/proc/%s/status", current->d_name); in com_android_server_am_AppCompactor_compactSystem()
72 std::string reclaim_path = StringPrintf("/proc/%s/reclaim", current->d_name); in com_android_server_am_AppCompactor_compactSystem()
/frameworks/base/tools/aapt2/
DDebug.cpp37 using ::android::base::StringPrintf;
55 printer_->Print(StringPrintf(" size=%zd", attr->symbols.size())); in Visit()
60 printer_->Print(StringPrintf("(style) size=%zd", style->entries.size())); in Visit()
92 printer_->Print(StringPrintf("(array) size=%zd", array->elements.size())); in Visit()
98 printer_->Print(StringPrintf("(plurals) size=%zd", count)); in Visit()
102 printer_->Println(StringPrintf("(styleable) size=%zd", styleable->entries.size())); in Visit()
146 printer_->Println(StringPrintf("=0x%08x", symbol.value)); in Visit()
202 printer_->Print(StringPrintf("%s=", kPluralNames[i])); in Visit()
262 printer->Print(StringPrintf(" id=%02x", package->id.value())); in PrintTable()
271 printer->Print(StringPrintf(" id=%02x", type->id.value())); in PrintTable()
[all …]
/frameworks/native/libs/gui/
DLayerMetadata.cpp21 using android::base::StringPrintf;
118 return StringPrintf("ownerUID%s%d", separator, getInt32(key, 0)); in itemToString()
120 return StringPrintf("windowType%s%d", separator, getInt32(key, 0)); in itemToString()
122 return StringPrintf("taskId%s%d", separator, getInt32(key, 0)); in itemToString()
124 return StringPrintf("%d%s%dbytes", key, separator, in itemToString()
/frameworks/native/services/inputflinger/
DInputReader.cpp68 using android::base::StringPrintf;
855 dump += StringPrintf(INDENT2 "VirtualKeyQuietTime: %0.1fms\n", in dump()
858 dump += StringPrintf(INDENT2 "PointerVelocityControlParameters: " in dump()
865 dump += StringPrintf(INDENT2 "WheelVelocityControlParameters: " in dump()
872 dump += StringPrintf(INDENT2 "PointerGesture:\n"); in dump()
873 dump += StringPrintf(INDENT3 "Enabled: %s\n", in dump()
875 dump += StringPrintf(INDENT3 "QuietInterval: %0.1fms\n", in dump()
877 dump += StringPrintf(INDENT3 "DragMinSwitchSpeed: %0.1fpx/s\n", in dump()
879 dump += StringPrintf(INDENT3 "TapInterval: %0.1fms\n", in dump()
881 dump += StringPrintf(INDENT3 "TapDragInterval: %0.1fms\n", in dump()
[all …]
/frameworks/base/cmds/idmap2/idmap2/
DLookup.cpp53 using android::base::StringPrintf;
101 out.append(StringPrintf("cookie=%d ", cookie)); in GetValue()
109 out.append(StringPrintf("%d", value.data)); in GetValue()
112 out.append(StringPrintf("0x%08x", value.data)); in GetValue()
129 out.append(StringPrintf("dataType=0x%02x data=0x%08x", value.dataType, value.data)); in GetValue()
/frameworks/native/include/input/
DDisplayViewport.h26 using android::base::StringPrintf;
129 return StringPrintf("Viewport %s: displayId=%d, uniqueId=%s, port=%s, orientation=%d, " in toString()
135 physicalPort ? StringPrintf("%" PRIu8, *physicalPort).c_str() : "<none>", in toString()
/frameworks/base/tools/aapt2/compile/
DPngChunkFilter.cpp25 using ::android::base::StringPrintf;
112 error_msg_ = StringPrintf("Not enough space for a PNG chunk @ byte %zu/%zu", window_end_, in Next()
122 error_msg_ = StringPrintf( in Next()
/frameworks/base/tools/aapt2/cmd/
DConvert.h32 AddOptionalFlag("--output-format", android::base::StringPrintf("Format of the output. " in ConvertCommand()
40 android::base::StringPrintf("Preserve raw attribute values in xml files when using the" in ConvertCommand()

123456