/system/chre/host/common/include/chre_host/ |
D | log.h | 35 #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/ |
D | metadata_helpers_test.py | 167 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/chre/platform/include/chre/platform/ |
D | log.h | 69 #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/ |
D | BacktraceAsyncSafeLog.h | 25 #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
|
D | BacktraceLog.h | 25 #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/ |
D | README | 17 ALOG(android_priority, tag, format, ...) 19 LOG_PRI(priority, tag, format, ...) 20 LOG_PRI_VA(priority, tag, format, args) 22 ALOGV(format, ...) 23 SLOGV(format, ...) 24 RLOGV(format, ...) 25 ALOGV_IF(cond, format, ...) 26 SLOGV_IF(cond, format, ...) 27 RLOGV_IF(cond, format, ...) 29 ALOGD(format, ...) [all …]
|
/system/media/audio_utils/include/audio_utils/ |
D | SimpleLog.h | 66 [[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()
|
D | power.h | 45 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/extras/libfec/ |
D | fec_private.h | 147 #define __log(func, type, format, args...) \ argument 148 fprintf(stderr, "fec: <%d> " type ": %s: " format "\n", \ 153 #define __log(func, type, format, args...) \ argument 154 KLOG_##func("fec", "<%d> " type ": %s: " format "\n", \ 159 #define debug(format, args...) argument 161 #define debug(format, args...) __log(DEBUG, "debug", format, ##args) argument 164 #define warn(format, args...) __log(WARNING, "warning", format, ##args) argument 165 #define error(format, args...) __log(ERROR, "error", format, ##args) argument
|
/system/media/audio_utils/ |
D | tinysndfile.c | 79 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 …]
|
D | power.cpp | 34 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()
|
D | mono_blend.cpp | 26 void mono_blend(void *buf, audio_format_t format, size_t channelCount, size_t frames, bool limit) { in mono_blend() argument 30 switch (format) { in mono_blend() 65 ALOGE("mono_blend: invalid format %d", format); in mono_blend()
|
/system/core/base/ |
D | stringprintf.cpp | 26 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/alsa_utils/ |
D | alsa_device_proxy.c | 57 if (config->format != PCM_FORMAT_INVALID && profile_is_format_valid(profile, config->format)) { in proxy_prepare() 58 proxy->alsa_config.format = config->format; in proxy_prepare() 60 proxy->alsa_config.format = profile->default_config.format; in proxy_prepare() 62 config->format, profile->default_config.format); in proxy_prepare() 64 if (config->format != PCM_FORMAT_INVALID) { in proxy_prepare() 106 if (config->format >= 0 && (size_t)config->format < ARRAY_SIZE(format_byte_size_map)) { in proxy_prepare() 107 proxy->frame_size = format_byte_size_map[config->format] * proxy->alsa_config.channels; in proxy_prepare() 179 return proxy->alsa_config.format; in proxy_get_format() 261 dprintf(fd, " format: %d\n", proxy->alsa_config.format); in proxy_dump()
|
/system/tools/aidl/ |
D | code_writer.cpp | 37 bool Write(const char* format, ...) override { in Write() argument 39 va_start(ap, format); in Write() 40 android::base::StringAppendV(output_, format, ap); in Write() 62 bool Write(const char* format, ...) override { in Write() argument 65 va_start(ap, format); in Write() 66 success = vfprintf(output_, format, ap) >= 0; in Write()
|
/system/core/libunwindstack/ |
D | Log.cpp | 39 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/chre/platform/linux/ |
D | platform_audio.cc | 55 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/core/logd/ |
D | LogTags.cpp | 243 const char* format = cp; in ReadFileEventLogTags() local 253 while ((cp > format) && isspace(cp[-1])) { in ReadFileEventLogTags() 257 std::string Format(format, cp - format); in ReadFileEventLogTags() 440 uint32_t LogTags::nameToTag_locked(const std::string& name, const char* format, in nameToTag_locked() argument 444 bool write = format != NULL; in nameToTag_locked() 457 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 != NULL; in nameToTag() 684 bool updateFormat = format && *format; in nameToTag() 691 Tag = nameToTag_locked(Name, format, unique); in nameToTag() [all …]
|
/system/extras/simpleperf/ |
D | cmd_kmem.cpp | 137 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 …]
|
D | tracing.cpp | 192 for (const auto& format : ftrace_format_files) { in BinaryFormat() local 193 AppendFile(ret, format); in BinaryFormat() 237 std::string format; in LoadFromBinary() local 238 DetachFile(p, format); in LoadFromBinary() 239 event_format_files.push_back(std::make_pair(system, std::move(format))); in LoadFromBinary() 327 TracingFormat format; in LoadTracingFormatsFromEventFiles() local 328 format.system_name = pair.first; in LoadTracingFormatsFromEventFiles() 335 format.name = android::base::Trim(s.substr(pos + strlen("name:"))); in LoadTracingFormatsFromEventFiles() 341 format.id = in LoadTracingFormatsFromEventFiles() 349 format.fields.push_back(field); in LoadTracingFormatsFromEventFiles() [all …]
|
/system/extras/boottime_tools/bootanalyze/ |
D | bootanalyze.py | 113 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/bt/embdrv/sbc/decoder/include/ |
D | oi_utils.h | 202 void OI_Printf(const OI_CHAR* format, ...); 211 void OI_VPrintf(const OI_CHAR* format, va_list argp); 225 int32_t OI_SNPrintf(OI_CHAR* buffer, uint16_t bufLen, const OI_CHAR* format, 241 int32_t OI_VSNPrintf(OI_CHAR* buffer, uint16_t bufLen, const OI_CHAR* format,
|
/system/media/audio/include/system/ |
D | audio.h | 237 audio_format_t format; // audio format member 278 audio_format_t format; member 309 audio_format_t format; member 425 audio_format_t format; /* format if applicable */ member 862 static inline bool audio_is_valid_format(audio_format_t format) in audio_is_valid_format() argument 864 switch (format & AUDIO_FORMAT_MAIN_MASK) { in audio_is_valid_format() 866 switch (format) { in audio_is_valid_format() 924 static inline audio_format_t audio_get_main_format(audio_format_t format) in audio_get_main_format() argument 926 return (audio_format_t)(format & AUDIO_FORMAT_MAIN_MASK); in audio_get_main_format() 932 static inline bool audio_is_linear_pcm(audio_format_t format) in audio_is_linear_pcm() argument [all …]
|
/system/chre/util/nanoapp/ |
D | audio.cc | 21 const char *getChreAudioFormatString(uint8_t format) { in getChreAudioFormatString() argument 22 switch (format) { in getChreAudioFormatString()
|
/system/core/adf/libadf/tests/ |
D | adf_test.cpp | 127 void drawCheckerboard(uint32_t &w, uint32_t &h, uint32_t &format, in drawCheckerboard() argument 131 ASSERT_NO_FATAL_FAILURE(get8888Format(format, format_str)); in drawCheckerboard() 133 buf_fd = adf_interface_simple_buffer_alloc(intf, w, h, format, &offset, in drawCheckerboard() 310 uint32_t format; in TEST_F() local 312 ASSERT_NO_FATAL_FAILURE(get8888Format(format, format_str)); in TEST_F() 316 int buf_fd = adf_interface_simple_buffer_alloc(intf, w, h, format, &offset, in TEST_F() 333 uint32_t w, h, format, offset, pitch; in TEST_F() local 335 ASSERT_NO_FATAL_FAILURE(drawCheckerboard(w, h, format, format_str, in TEST_F() 341 int release_fence = adf_interface_simple_post(intf, eng_id, w, h, format, in TEST_F() 351 uint32_t w, h, format, offset, pitch; in TEST_F() local [all …]
|