Home
last modified time | relevance | path

Searched refs:snprintf (Results 1 – 25 of 133) sorted by relevance

123456

/frameworks/native/cmds/installd/
Dinstalld.cpp77 snprintf(version_path, PATH_MAX, "%s.layout_version", android_data_dir.c_str()); in initialize_directories()
99 snprintf(misc_dir, PATH_MAX, "%smisc", android_data_dir.c_str()); in initialize_directories()
102 snprintf(keychain_added_dir, PATH_MAX, "%s/keychain/cacerts-added", misc_dir); in initialize_directories()
105 snprintf(keychain_removed_dir, PATH_MAX, "%s/keychain/cacerts-removed", misc_dir); in initialize_directories()
128 snprintf(misc_added_dir, PATH_MAX, "%s/user/%s/cacerts-added", misc_dir, name); in initialize_directories()
131 snprintf(misc_removed_dir, PATH_MAX, "%s/user/%s/cacerts-removed", misc_dir, name); in initialize_directories()
/frameworks/base/cmds/statsd/src/external/
DPerfetto.cpp56 snprintf(subscriptionId, sizeof(subscriptionId), "%" PRId64, subscription_id); in CollectPerfettoTraceAndUploadToDropbox()
57 snprintf(alertId, sizeof(alertId), "%" PRId64, alert_id); in CollectPerfettoTraceAndUploadToDropbox()
58 snprintf(configId, sizeof(configId), "%" PRId64, configKey.GetId()); in CollectPerfettoTraceAndUploadToDropbox()
59 snprintf(configUid, sizeof(configUid), "%d", configKey.GetUid()); in CollectPerfettoTraceAndUploadToDropbox()
/frameworks/av/media/libstagefright/foundation/
DAString.cpp212 int result = snprintf(s, sizeof(s), "%d", x); in append()
219 int result = snprintf(s, sizeof(s), "%u", x); in append()
226 int result = snprintf(s, sizeof(s), "%ld", x); in append()
233 int result = snprintf(s, sizeof(s), "%lu", x); in append()
240 int result = snprintf(s, sizeof(s), "%lld", x); in append()
247 int result = snprintf(s, sizeof(s), "%llu", x); in append()
254 int result = snprintf(s, sizeof(s), "%f", x); in append()
261 int result = snprintf(s, sizeof(s), "%f", x); in append()
268 int result = snprintf(s, sizeof(s), "%p", x); in append()
Dhexdump.cpp52 snprintf(tmp, sizeof(tmp), "%08lx: ", (unsigned long)offset); in hexdump()
63 snprintf(tmp, sizeof(tmp), "%02x ", data[offset + i]); in hexdump()
/frameworks/av/media/libaudiohal/impl/
DConversionHelperHidl.cpp116 snprintf(halAddress, sizeof(halAddress), "%02X:%02X:%02X:%02X:%02X:%02X", in deviceAddressToHal()
121 snprintf(halAddress, sizeof(halAddress), "%d.%d.%d.%d", address.address.ipv4[0], in deviceAddressToHal()
125 snprintf(halAddress, sizeof(halAddress), "card=%d;device=%d", address.address.alsa.card, in deviceAddressToHal()
129 snprintf(halAddress, sizeof(halAddress), "%s", address.busAddress.c_str()); in deviceAddressToHal()
132 snprintf(halAddress, sizeof(halAddress), "%s", address.rSubmixAddress.c_str()); in deviceAddressToHal()
134 snprintf(halAddress, sizeof(halAddress), "%s", address.busAddress.c_str()); in deviceAddressToHal()
190 snprintf(pDst->device_id, sizeof(pDst->device_id), in microphoneInfoToHal()
193 snprintf(pDst->address, sizeof(pDst->address), in microphoneInfoToHal()
/frameworks/av/media/libeffects/factory/
DEffectsFactoryState.c98 snprintf(str, maxLen, "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x", in uuidToString()
124 snprintf(s, sizeof(s), "%s%s / %s\n", idt, desc->name, desc->implementor); in dumpEffectDescriptor()
128 snprintf(ss, sizeof(ss), "%s UUID: %s\n", idt, s); in dumpEffectDescriptor()
132 snprintf(ss, sizeof(ss), "%s TYPE: %s\n", idt, s); in dumpEffectDescriptor()
/frameworks/av/media/libmediaplayerservice/
DStagefrightRecorder.cpp2315 snprintf(buffer, SIZE, " No file writer\n"); in dump()
2318 snprintf(buffer, SIZE, " Recorder: %p\n", this); in dump()
2319 snprintf(buffer, SIZE, " Output file (fd %d):\n", mOutputFd); in dump()
2321 snprintf(buffer, SIZE, " File format: %d\n", mOutputFormat); in dump()
2323 snprintf(buffer, SIZE, " Max file size (bytes): %" PRId64 "\n", mMaxFileSizeBytes); in dump()
2325 snprintf(buffer, SIZE, " Max file duration (us): %" PRId64 "\n", mMaxFileDurationUs); in dump()
2327 snprintf(buffer, SIZE, " File offset length (bits): %d\n", mUse64BitFileOffset? 64: 32); in dump()
2329 snprintf(buffer, SIZE, " Interleave duration (us): %d\n", mInterleaveDurationUs); in dump()
2331snprintf(buffer, SIZE, " Progress notification: %" PRId64 " us\n", mTrackEveryTimeDurationUs); in dump()
2333 snprintf(buffer, SIZE, " Audio\n"); in dump()
[all …]
/frameworks/av/services/mediaanalytics/
DMediaAnalyticsService.cpp247 snprintf(buffer, SIZE, "Permission Denial: " in dump()
333 snprintf(buffer, SIZE, "Dump of the %s process:\n", kServiceName); in dump()
364 snprintf(buffer, SIZE, "Protocol Version: %d\n", mDumpProto); in dumpHeaders()
369 snprintf(buffer, SIZE, "Metrics gathering: enabled\n"); in dumpHeaders()
371 snprintf(buffer, SIZE, "Metrics gathering: DISABLED via property\n"); in dumpHeaders()
375 snprintf(buffer, SIZE, in dumpHeaders()
380 snprintf(buffer, SIZE, in dumpHeaders()
386 snprintf(buffer, SIZE, in dumpHeaders()
404 snprintf(buffer, sizeof(buffer), "\nFinalized Metrics (oldest first):\n"); in dumpRecent()
/frameworks/native/cmds/dumpstate/
Dutils.cpp300 snprintf(cmdpath, sizeof(cmdpath), "/proc/%d/cmdline", pid); in __for_each_pid()
311 snprintf(cmdpath, sizeof(cmdpath), "/proc/%d/comm", pid); in __for_each_pid()
351 snprintf(taskpath, sizeof(taskpath), "/proc/%d/task", pid); in for_each_tid_helper()
379 snprintf(commpath, sizeof(commpath), "/proc/%d/comm", tid); in for_each_tid_helper()
419 snprintf(path, sizeof(path), "/proc/%d/wchan", tid); in show_wchan()
434 snprintf(name_buffer, sizeof(name_buffer), "%*s%s", in show_wchan()
459 snprintf(str, sizeof(str), " %llu.%02u", in snprcent()
462 snprintf(buffer + offset, (len > offset) ? len - offset : 0, in snprcent()
470 snprintf(str, sizeof(str), " %u.%u%%", permille / 10, permille % 10); in snprdec()
472 snprintf(buffer + offset, (len > offset) ? len - offset : 0, in snprdec()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_am_BatteryStatsService.cpp192 len = snprintf(mergedreasonpos, remainreasonlen, i == 0 ? "%d" : ":%d", irq); in nativeWaitWakeup()
203 len = snprintf(mergedreasonpos, remainreasonlen, i == 0 ? "Abort" : ":Abort"); in nativeWaitWakeup()
228 len = snprintf(mergedreasonpos, remainreasonlen, ":%s", pos); in nativeWaitWakeup()
438 int added = snprintf(offset, remaining, in getPowerStatsHalPlatformData()
495 int added = snprintf(offset, remaining, "SubsystemPowerState "); in getPowerStatsHalSubsystemData()
502 added = snprintf(offset, remaining, "subsystem_%zu name=%s ", in getPowerStatsHalSubsystemData()
519 added = snprintf(offset, remaining, in getPowerStatsHalSubsystemData()
693 added = snprintf(offset, remaining, in getPowerHalPlatformData()
709 added = snprintf(offset, remaining, in getPowerHalPlatformData()
770 int added = snprintf(offset, remaining, "SubsystemPowerState "); in getPowerHalSubsystemData()
[all …]
Dcom_android_server_UsbMidiDevice.cpp50 snprintf(path, sizeof(path), "/dev/snd/controlC%d", card); in android_server_UsbMidiDevice_get_subdevice_count()
89 snprintf(path, sizeof(path), "/dev/snd/midiC%dD%d", card, device); in android_server_UsbMidiDevice_open()
/frameworks/av/media/libmediametrics/
DMediaAnalyticsItem.cpp811 snprintf(buffer, sizeof(buffer), "[%d:", version); in toString()
819 snprintf(buffer, sizeof(buffer), "%" PRId64 ":", mSessionID); in toString()
822 snprintf(buffer, sizeof(buffer), "%d:", mUid); in toString()
827 snprintf(buffer, sizeof(buffer), ":%" PRId64 ":", mPkgVersionCode); in toString()
833 snprintf(buffer, sizeof(buffer), "%d", mPid); in toString()
835 snprintf(buffer, sizeof(buffer), "%d:", mPid); in toString()
839 snprintf(buffer, sizeof(buffer), "%d:", mFinalized); in toString()
841 snprintf(buffer, sizeof(buffer), "%" PRId64 ":", mTimestamp); in toString()
846 snprintf(buffer, sizeof(buffer), "%d:", count); in toString()
852 snprintf(buffer,sizeof(buffer), in toString()
[all …]
/frameworks/av/media/libmediaplayer2/nuplayer2/
DNuPlayer2CCDecoder.cpp76 snprintf(tmp, sizeof(tmp), "[%d]Basic: %c %c", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
80 snprintf(tmp, sizeof(tmp), "[%d]Special: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
84 snprintf(tmp, sizeof(tmp), "[%d]Spanish: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
88 snprintf(tmp, sizeof(tmp), "[%d]German: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
92 snprintf(tmp, sizeof(tmp), "[%d]Mid-row: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
99 snprintf(tmp, sizeof(tmp), "[%d]Ctrl: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
104 snprintf(tmp, sizeof(tmp), "[%d]PAC: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
106 snprintf(tmp, sizeof(tmp), "[%d]Invalid: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
DNuPlayer2Driver.cpp736 snprintf(buf, sizeof(buf), " state(%d), atEOS(%d), looping(%d), autoLoop(%d)\n", in dump()
740 snprintf(buf, sizeof(buf), " NPD(%p) lock is taken\n", this); in dump()
749 snprintf(buf, sizeof(buf), " mime(%s)\n", mime.c_str()); in dump()
755 snprintf(buf, sizeof(buf), " decoder(%s)\n", name.c_str()); in dump()
763 snprintf(buf, sizeof(buf), " resolution(%d x %d)\n", width, height); in dump()
772 snprintf(buf, sizeof(buf), " numFramesTotal(%lld), numFramesDropped(%lld), " in dump()
1002 snprintf(rawbuffer, sizeof(rawbuffer), "%d", state); in stateString()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerCCDecoder.cpp75 snprintf(tmp, sizeof(tmp), "[%d]Basic: %c %c", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
79 snprintf(tmp, sizeof(tmp), "[%d]Special: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
83 snprintf(tmp, sizeof(tmp), "[%d]Spanish: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
87 snprintf(tmp, sizeof(tmp), "[%d]German: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
91 snprintf(tmp, sizeof(tmp), "[%d]Mid-row: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
98 snprintf(tmp, sizeof(tmp), "[%d]Ctrl: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
103 snprintf(tmp, sizeof(tmp), "[%d]PAC: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
105 snprintf(tmp, sizeof(tmp), "[%d]Invalid: %02x %02x", cc->mType, cc->mData1, cc->mData2); in dumpBytePair()
DNuPlayerDriver.cpp929 snprintf(buf, sizeof(buf), " state(%d), atEOS(%d), looping(%d), autoLoop(%d)\n", in dump()
933 snprintf(buf, sizeof(buf), " NPD(%p) lock is taken\n", this); in dump()
942 snprintf(buf, sizeof(buf), " mime(%s)\n", mime.c_str()); in dump()
948 snprintf(buf, sizeof(buf), " decoder(%s)\n", name.c_str()); in dump()
956 snprintf(buf, sizeof(buf), " resolution(%d x %d)\n", width, height); in dump()
965 snprintf(buf, sizeof(buf), " numFramesTotal(%lld), numFramesDropped(%lld), " in dump()
1159 snprintf(rawbuffer, sizeof(rawbuffer), "%d", state); in stateString()
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dbenchmark.h47 snprintf(log_message, kLogMessageLength, "#btrace#%s", name); in Btrace()
68 snprintf(log_message, kLogMessageLength, "#btrace#%s|%" PRId64, name, data); in BtraceData()
/frameworks/av/services/mediaresourcemanager/
DResourceManagerService.cpp161 snprintf(buffer, SIZE, "ResourceManagerService: %p\n", this); in dump()
164 snprintf(buffer, SIZE, " SupportsMultipleSecureCodecs: %d\n", supportsMultipleSecureCodecs); in dump()
166 snprintf(buffer, SIZE, " SupportsSecureWithNonSecureCodec: %d\n", in dump()
172 snprintf(buffer, SIZE, " Pid: %d\n", mapCopy.keyAt(i)); in dump()
178 snprintf(buffer, SIZE, " Id: %lld\n", (long long)infos[j].clientId); in dump()
181 snprintf(buffer, SIZE, " Name: %s\n", infos[j].client->getName().string()); in dump()
187 snprintf(buffer, SIZE, " %s\n", resources[k].toString().string()); in dump()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/
Dstrutil_unittest.cc42 #define snprintf _snprintf macro
550 snprintf(first_equals, 6, " = = "); in TEST()
553 snprintf(first_equals, 6, " = "); in TEST()
566 snprintf(first_equals, 6, " = = "); in TEST()
569 snprintf(first_equals, 6, " = "); in TEST()
Dcommon.cc47 #define snprintf _snprintf // see comment in strutil.cc macro
98 snprintf(buffer, sizeof(buffer), "%d.%d.%d", major, minor, micro); in VersionString()
222 snprintf(buffer, sizeof(buffer), FORMAT, value); \
/frameworks/base/libs/hwui/
DGpuMemoryTracker.cpp112 snprintf(buf, 128, "hwui_%s", TYPE_NAMES[type]); in onFrameCompleted()
115 snprintf(buf, 128, "hwui_%s_count", TYPE_NAMES[type]); in onFrameCompleted()
/frameworks/base/libs/hwui/debug/
DNullGlesDriver.cpp81 *length = snprintf(infoLog, bufSize, "success"); in glGetProgramInfoLog_()
97 *length = snprintf(infoLog, bufSize, "success"); in glGetShaderInfoLog_()
/frameworks/av/media/libstagefright/rtsp/
DASessionDescription.cpp215 snprintf(key, sizeof(key), "a=rtpmap:%lu", x); in getFormatType()
217 snprintf(key, sizeof(key), "a=fmtp:%lu", x); in getFormatType()
234 snprintf(key, sizeof(key), "a=framesize:%lu", PT); in getDimensions()
/frameworks/base/libs/androidfw/
DBackupHelpers.cpp455 snprintf(buf + 148, buf_size - 148, "%06o", sum); // the trailing space is in calc_tar_checksum()
470 return snprintf(buf, buf_size, "%d %s=%s\n", len, key, value); in write_pax_header_entry()
575 snprintf(buf + 100, 8, "%06o ", s.st_mode & ~S_IFMT); in write_tarfile()
579 snprintf(buf + 108, 8, "0%lo", (unsigned long)s.st_uid); in write_tarfile()
580 snprintf(buf + 116, 8, "0%lo", (unsigned long)s.st_gid); in write_tarfile()
583 snprintf(buf + 124, 12, "%011llo", (isdir) ? 0LL : s.st_size); in write_tarfile()
586 snprintf(buf + 136, 12, "%0lo", (unsigned long)s.st_mtime); in write_tarfile()
645 snprintf(sizeStr, sizeof(sizeStr), "%lld", (long long)s.st_size); in write_tarfile()
659 snprintf(paxHeader, 100, "PaxHeader/%s", leaf.string()); in write_tarfile()
667 snprintf(paxHeader + 124, 12, "%011o", (unsigned int)paxLen); in write_tarfile()
/frameworks/av/camera/
DCameraParameters2.cpp120 snprintf(str, sizeof(str), "%g", value); in setFloat()
369 snprintf(buffer, 255, "CameraParameters2::dump: mMap.size = %zu\n", mMap.size()); in dump()
375 snprintf(buffer, 255, "\t%s: %s\n", k.string(), v.string()); in dump()

123456