Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 346) sorted by relevance

12345678910>>...14

/system/chre/host/common/include/chre_host/
Dlog.h35 #define CHRE_LOG(level, format, ...) \ argument
37 ALOG(level, LOG_TAG, format, ##__VA_ARGS__); \
38 printf("%s:%d : " format "\n", __func__, __LINE__, ##__VA_ARGS__); \
41 #define LOGE(format, ...) CHRE_LOG(LOG_ERROR, format, ##__VA_ARGS__) argument
42 #define LOGW(format, ...) CHRE_LOG(LOG_WARN, format, ##__VA_ARGS__) argument
43 #define LOGI(format, ...) CHRE_LOG(LOG_INFO, format, ##__VA_ARGS__) argument
44 #define LOGD(format, ...) CHRE_LOG(LOG_DEBUG, format, ##__VA_ARGS__) argument
47 #define LOGV(format, ...) chreLogNull(format, ##__VA_ARGS__) argument
49 #define LOGV(format, ...) CHRE_LOG(LOG_VERBOSE, format, ##__VA_ARGS__) argument
/system/media/camera/docs/
Dmetadata_helpers_test.py167 self.assertEquals("word.{0}".format(wbr_string), wbr("word."))
168 self.assertEquals("word/{0}".format(wbr_string), wbr("word/"))
169 self.assertEquals("word_{0}".format(wbr_string), wbr("word_"))
171 self.assertEquals("word.{0}break".format(wbr_string), wbr("word.break"))
172 self.assertEquals("word/{0}break".format(wbr_string), wbr("word/break"))
173 self.assertEquals("word_{0}break".format(wbr_string), wbr("word_break"))
176 self.assertEquals("word_{0}break_{0}again".format(wbr_string),
178 self.assertEquals("word_{0}break_{0}again_{0}emphasis".format(wbr_string),
182 self.assertEquals("word_{0}breakIgnored".format(wbr_string),
184 self.assertEquals("wordIgnored".format(wbr_string),
[all …]
/system/tools/xsdc/src/com/android/xsdc/cpp/
DCppSimpleType.java30 this.fullName = list ? String.format("std::vector<%s>", name) : name; in CppSimpleType()
61 String.format("%s value;\n", getName())); in getParsingExpression()
63 expression.append(String.format("value.push_back(std::move(%s));\n", in getParsingExpression()
64 String.format(rawParsingExpression, "token"))); in getParsingExpression()
68 String.format("%s %svalue = %s;\n", getName(), in getParsingExpression()
70 String.format(rawParsingExpression, "raw"))); in getParsingExpression()
80 expression.append(String.format("for (const auto& v : %s) {\n", getValue)); in getWritingExpression()
83 value = String.format("%sToString(v)", this.name); in getWritingExpression()
94 expression.append(String.format("out << %s;\n}\n}\n", value)); in getWritingExpression()
97 expression.append(String.format("out << %sToString(%s);\n", this.name, getValue)); in getWritingExpression()
[all …]
/system/chre/platform/include/chre/platform/
Dlog.h69 #define LOGE(format, ...) chreLogNull(format, ##__VA_ARGS__) argument
74 #define LOGW(format, ...) chreLogNull(format, ##__VA_ARGS__) argument
79 #define LOGI(format, ...) chreLogNull(format, ##__VA_ARGS__) argument
84 #define LOGD(format, ...) chreLogNull(format, ##__VA_ARGS__) argument
/system/core/libbacktrace/
DBacktraceAsyncSafeLog.h25 #define BACK_ASYNC_SAFE_LOGW(format, ...) \ argument
26 async_safe_format_log(ANDROID_LOG_WARN, "libbacktrace", "%s: " format, __PRETTY_FUNCTION__, \
29 #define BACK_ASYNC_SAFE_LOGE(format, ...) \ argument
30 async_safe_format_log(ANDROID_LOG_ERROR, "libbacktrace", "%s: " format, __PRETTY_FUNCTION__, \
35 #define BACK_ASYNC_SAFE_LOGW(format, ...) argument
37 #define BACK_ASYNC_SAFE_LOGE(format, ...) argument
DBacktraceLog.h25 #define BACK_LOGW(format, ...) \ argument
26 ALOGW("%s: " format, __PRETTY_FUNCTION__, ##__VA_ARGS__)
28 #define BACK_LOGE(format, ...) \ argument
29 ALOGE("%s: " format, __PRETTY_FUNCTION__, ##__VA_ARGS__)
/system/core/liblog/
DREADME.md15 ALOG(android_priority, tag, format, ...)
17 LOG_PRI(priority, tag, format, ...)
18 LOG_PRI_VA(priority, tag, format, args)
20 ALOGV(format, ...)
21 SLOGV(format, ...)
22 RLOGV(format, ...)
23 ALOGV_IF(cond, format, ...)
24 SLOGV_IF(cond, format, ...)
25 RLOGV_IF(cond, format, ...)
27 ALOGD(format, ...)
[all …]
/system/tools/xsdc/src/com/android/xsdc/java/
DJavaSimpleType.java32 fullName = list ? String.format("java.util.List<%s>", nullableName) : name; in JavaSimpleType()
33 nullableFullName = list ? String.format("java.util.List<%s>", nullableName) : nullableName; in JavaSimpleType()
69 String.format("%s value = new java.util.ArrayList<>();\n", getName())); in getParsingExpression()
71 expression.append(String.format("value.add(%s);\n", in getParsingExpression()
72 String.format(rawParsingExpression, "token"))); in getParsingExpression()
76 String.format("%s value = %s;\n", getName(), in getParsingExpression()
77 String.format(rawParsingExpression, "raw"))); in getParsingExpression()
87 expression.append(String.format("for (%s v : %s) {\n", this.name, getValue)); in getWritingExpression()
94 expression.append(String.format("out.printf(\"%%s\", %s);\n", getValue)); in getWritingExpression()
/system/media/audio_utils/include/audio_utils/
DSimpleLog.h66 [[gnu::format(printf, 2 /* string-index */, 3 /* first-to-check */)]]
67 void log(const char *format, ...) in log() argument
70 va_start(args, format); in log()
72 logv(-1 /* nowNs */, format, args); in log()
87 [[gnu::format(printf, 3 /* string-index */, 4 /* first-to-check */)]]
88 void log(int64_t nowNs, const char *format, ...) in log() argument
91 va_start(args, format); in log()
92 logv(nowNs, format, args); in log()
105 void logv(int64_t nowNs, const char *format, va_list args) in logv() argument
109 int length = vsnprintf(buffer, sizeof(buffer), format, args); in logv()
Dpower.h45 float audio_utils_compute_power_mono(const void *buffer, audio_format_t format, size_t samples);
63 float audio_utils_compute_energy_mono(const void *buffer, audio_format_t format, size_t samples);
71 bool audio_utils_is_compute_power_format_supported(audio_format_t format);
/system/libbase/
Dstringprintf.cpp26 void StringAppendV(std::string* dst, const char* format, va_list ap) { in StringAppendV() argument
35 int result = vsnprintf(space, sizeof(space), format, backup_ap); in StringAppendV()
58 result = vsnprintf(buf, length, format, backup_ap); in StringAppendV()
77 void StringAppendF(std::string* dst, const char* format, ...) { in StringAppendF() argument
79 va_start(ap, format); in StringAppendF()
80 StringAppendV(dst, format, ap); in StringAppendF()
/system/media/audio_utils/
Dtinysndfile.c79 handle->info.format = SF_FORMAT_WAV; in sf_open_read()
152 unsigned format = little2u(&fmt[0]); in sf_open_read() local
154 switch (format) { in sf_open_read()
164 fprintf(stderr, "unsupported format %u\n", format); in sf_open_read()
214 handle->info.format |= SF_FORMAT_PCM_U8; in sf_open_read()
217 handle->info.format |= SF_FORMAT_PCM_16; in sf_open_read()
220 handle->info.format |= SF_FORMAT_PCM_24; in sf_open_read()
223 if (format == WAVE_FORMAT_IEEE_FLOAT) in sf_open_read()
224 handle->info.format |= SF_FORMAT_FLOAT; in sf_open_read()
226 handle->info.format |= SF_FORMAT_PCM_32; in sf_open_read()
[all …]
Dpower.cpp34 constexpr inline bool isFormatSupported(audio_format_t format) { in isFormatSupported() argument
35 switch (format) { in isFormatSupported()
242 float audio_utils_compute_energy_mono(const void *buffer, audio_format_t format, size_t samples) in audio_utils_compute_energy_mono() argument
244 switch (format) { in audio_utils_compute_energy_mono()
264 LOG_ALWAYS_FATAL("invalid format: %#x", format); in audio_utils_compute_energy_mono()
268 float audio_utils_compute_power_mono(const void *buffer, audio_format_t format, size_t samples) in audio_utils_compute_power_mono() argument
271 audio_utils_compute_energy_mono(buffer, format, samples) / samples); in audio_utils_compute_power_mono()
274 bool audio_utils_is_compute_power_format_supported(audio_format_t format) in audio_utils_is_compute_power_format_supported() argument
276 return isFormatSupported(format); in audio_utils_is_compute_power_format_supported()
/system/media/audio_utils/fuzz/format_fuzzer/
Dformat_fuzzer.cpp26 static bool is_common_src_format(audio_format_t format) { in is_common_src_format() argument
27 return format == AUDIO_FORMAT_PCM_16_BIT || format == AUDIO_FORMAT_PCM_FLOAT; in is_common_src_format()
30 static bool is_common_dst_format(audio_format_t format) { in is_common_dst_format() argument
31 return format == AUDIO_FORMAT_PCM_8_BIT // Allowed for HAL to AudioRecord conversion. in is_common_dst_format()
32 || format == AUDIO_FORMAT_PCM_16_BIT in is_common_dst_format()
33 || format == AUDIO_FORMAT_PCM_FLOAT; in is_common_dst_format()
/system/extras/libfec/
Dfec_private.h183 #define __log(func, type, format, args...) \ argument
184 fprintf(stderr, "fec: <%d> " type ": %s: " format "\n", \
189 #define __log(func, type, format, args...) \ argument
190 KLOG_##func("fec", "<%d> " type ": %s: " format "\n", \
195 #define debug(format, args...) argument
197 #define debug(format, args...) __log(DEBUG, "debug", format, ##args) argument
200 #define warn(format, args...) __log(WARNING, "warning", format, ##args) argument
201 #define error(format, args...) __log(ERROR, "error", format, ##args) argument
/system/media/audio_utils/tests/
Dformat_tests.cpp27 static bool is_common_src_format(audio_format_t format) { in is_common_src_format() argument
28 return format == AUDIO_FORMAT_PCM_16_BIT || format == AUDIO_FORMAT_PCM_FLOAT; in is_common_src_format()
31 static bool is_common_dst_format(audio_format_t format) { in is_common_dst_format() argument
32 return format == AUDIO_FORMAT_PCM_8_BIT // Allowed for HAL to AudioRecord conversion. in is_common_dst_format()
33 || format == AUDIO_FORMAT_PCM_16_BIT in is_common_dst_format()
34 || format == AUDIO_FORMAT_PCM_FLOAT; in is_common_dst_format()
/system/core/libunwindstack/
DLog.cpp39 void log(uint8_t indent, const char* format, ...) { in log() argument
42 real_format = android::base::StringPrintf("%*s%s", 2 * indent, " ", format); in log()
44 real_format = format; in log()
47 va_start(args, format); in log()
/system/media/alsa_utils/
Dalsa_device_proxy.c59 if (config->format != PCM_FORMAT_INVALID && profile_is_format_valid(profile, config->format)) { in proxy_prepare()
60 proxy->alsa_config.format = config->format; in proxy_prepare()
62 proxy->alsa_config.format = profile->default_config.format; in proxy_prepare()
64 config->format, profile->default_config.format); in proxy_prepare()
66 if (config->format != PCM_FORMAT_INVALID) { in proxy_prepare()
108 if (config->format >= 0 && (size_t)config->format < ARRAY_SIZE(format_byte_size_map)) { in proxy_prepare()
109 proxy->frame_size = format_byte_size_map[config->format] * proxy->alsa_config.channels; in proxy_prepare()
181 return proxy->alsa_config.format; in proxy_get_format()
289 dprintf(fd, " format: %d\n", proxy->alsa_config.format); in proxy_dump()
/system/libvintf/
DMatrixInstance.cpp37 MatrixInstance::MatrixInstance(HalFormat format, FqInstance&& fqInstance, VersionRange&& range, in MatrixInstance() argument
39 : mFormat(format), in MatrixInstance()
45 MatrixInstance::MatrixInstance(HalFormat format, const FqInstance fqInstance, in MatrixInstance() argument
47 : mFormat(format), in MatrixInstance()
65 HalFormat MatrixInstance::format() const { in format() function in android::vintf::MatrixInstance
105 switch (format()) { in interfaceDescription()
119 switch (format()) { in description()
/system/libvintf/include/vintf/
DHalGroup.h81 bool forEachInstance(HalFormat format, in forEachInstance()
84 if (e.format() == format) { in forEachInstance()
91 bool forEachInstanceOfPackage(HalFormat format, const std::string& package, in forEachInstanceOfPackage()
94 if (hal->format != format) { in forEachInstanceOfPackage()
114 HalFormat format, const std::string& package, const Version& expectVersion,
121 bool forEachInstanceOfInterface(HalFormat format, const std::string& package, in forEachInstanceOfInterface()
124 return forEachInstanceOfVersion(format, package, expectVersion, in forEachInstanceOfInterface()
/system/chre/platform/linux/
Dplatform_audio.cc55 if (dataEvent.format == CHRE_AUDIO_DATA_FORMAT_16_BIT_SIGNED_PCM) { in audioSourceCallback()
123 audioSource->format = source->dataEvent.format; in getAudioSource()
143 } else if ((audioInfo.format & SF_FORMAT_ULAW) == SF_FORMAT_ULAW) { in addAudioSource()
144 source->dataEvent.format = CHRE_AUDIO_DATA_FORMAT_8_BIT_U_LAW; in addAudioSource()
147 } else if ((audioInfo.format & SF_FORMAT_PCM_16) == SF_FORMAT_PCM_16) { in addAudioSource()
148 source->dataEvent.format = CHRE_AUDIO_DATA_FORMAT_16_BIT_SIGNED_PCM; in addAudioSource()
152 FATAL_ERROR("Invalid format 0x%08x", audioInfo.format); in addAudioSource()
/system/tools/sysprop/
DCodeWriter.cpp33 void CodeWriter::Write(const char* format, ...) { in Write() argument
35 va_start(ap, format); in Write()
38 int size = std::vsnprintf(nullptr, 0, format, ap); in Write()
47 if (std::vsnprintf(buf.data(), size + 1, format, apc) < 0) { in Write()
/system/core/logd/
DLogTags.cpp247 const char* format = cp; in ReadFileEventLogTags() local
257 while ((cp > format) && isspace(cp[-1])) { in ReadFileEventLogTags()
261 std::string Format(format, cp - format); in ReadFileEventLogTags()
428 uint32_t LogTags::nameToTag_locked(const std::string& name, const char* format, in nameToTag_locked() argument
432 bool write = format != nullptr; in nameToTag_locked()
445 if (*format) Key += std::string("+") + format; in nameToTag_locked()
680 uint32_t LogTags::nameToTag(uid_t uid, const char* name, const char* format) { in nameToTag() argument
682 bool write = format != nullptr; in nameToTag()
684 bool updateFormat = format && *format; in nameToTag()
691 Tag = nameToTag_locked(Name, format, unique); in nameToTag()
[all …]
/system/extras/boottime_tools/bootanalyze/
Dbootanalyze.py113 print "Run: {0}".format(it)
140 print "Failed to collect valid samples for run {0}".format(it)
174 print "\nshutdown events after {0} runs".format(args.iterate)
175 print '{0:30}: {1:<7} {2:<7} {3}'.format("Event", "Mean", "stddev", "#runs")
178 print '{0:30}: {1:<7.5} {2:<7.5} {3} {4}'.format(
182 print "\nshutdown timing events after {0} runs".format(args.iterate)
183 print '{0:30}: {1:<7} {2:<7} {3}'.format("Event", "Mean", "stddev", "#runs")
186 print '{0:30}: {1:<7.5} {2:<7.5} {3} {4}'.format(
192 print "ro.boottime.* after {0} runs".format(args.iterate)
193 print '{0:30}: {1:<7} {2:<7} {3}'.format("Event", "Mean", "stddev", "#runs")
[all …]
/system/extras/simpleperf/
Dcmd_kmem.cpp137 SlabFormat format) { in AddSlabFormat() argument
138 std::unique_ptr<SlabFormat> p(new SlabFormat(format)); in AddSlabFormat()
177 SlabFormat* format = it->second; in CreateSample() local
178 if (format->type == SlabFormat::KMEM_ALLOC) { in CreateSample()
179 uint64_t call_site = format->call_site.ReadFromData(raw_data); in CreateSample()
181 uint64_t ptr = format->ptr.ReadFromData(raw_data); in CreateSample()
182 uint64_t bytes_req = format->bytes_req.ReadFromData(raw_data); in CreateSample()
183 uint64_t bytes_alloc = format->bytes_alloc.ReadFromData(raw_data); in CreateSample()
184 uint64_t gfp_flags = format->gfp_flags.ReadFromData(raw_data); in CreateSample()
193 } else if (format->type == SlabFormat::KMEM_FREE) { in CreateSample()
[all …]

12345678910>>...14