/frameworks/wilhelm/src/desktop/ |
D | SDL.cpp | 47 SDL_AudioSpec fmt; in SDL_open() local 48 fmt.freq = 44100; in SDL_open() 49 fmt.format = AUDIO_S16; in SDL_open() 50 fmt.channels = STEREO_CHANNELS; in SDL_open() 52 fmt.samples = SndFile_BUFSIZE; in SDL_open() 54 fmt.samples = SndFile_BUFSIZE / sizeof(short); in SDL_open() 56 fmt.callback = SDL_callback; in SDL_open() 57 fmt.userdata = (void *) thisEngine; in SDL_open() 59 if (SDL_OpenAudio(&fmt, NULL) < 0) { in SDL_open()
|
/frameworks/base/libs/hwui/utils/ |
D | TraceUtils.h | 21 #define ATRACE_FORMAT(fmt, ...) \ argument 23 (TraceUtils::atraceFormatBegin(fmt, ##__VA_ARGS__), TraceUtils::TraceEnder()) 25 #define ATRACE_FORMAT_BEGIN(fmt, ...) TraceUtils::atraceFormatBegin(fmt, ##__VA_ARGS__) argument 37 static void atraceFormatBegin(const char* fmt, ...) { in atraceFormatBegin() argument 44 va_start(ap, fmt); in atraceFormatBegin() 45 vsnprintf(buf, BUFFER_SIZE, fmt, ap); in atraceFormatBegin()
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | Result.cpp | 26 Error::Error(const char* fmt, ...) { in Error() argument 28 va_start(ap, fmt); in Error() 29 base::StringAppendV(&msg_, fmt, ap); in Error() 34 Error::Error(const Error& parent, const char* fmt, ...) : msg_(parent.msg_) { in Error() argument 38 va_start(ap, fmt); in Error() 39 base::StringAppendV(&msg_, fmt, ap); in Error()
|
D | RawPrintVisitor.cpp | 93 void RawPrintVisitor::print(uint16_t value, const char* fmt, ...) { in print() argument 95 va_start(ap, fmt); in print() 97 base::StringAppendV(&comment, fmt, ap); in print() 106 void RawPrintVisitor::print(uint32_t value, const char* fmt, ...) { in print() argument 108 va_start(ap, fmt); in print() 110 base::StringAppendV(&comment, fmt, ap); in print() 119 void RawPrintVisitor::print(const std::string& value, const char* fmt, ...) { in print() argument 121 va_start(ap, fmt); in print() 123 base::StringAppendV(&comment, fmt, ap); in print()
|
/frameworks/base/tools/aapt/ |
D | IndentPrinter.h | 20 void print(const char* fmt, ...) { in print() argument 23 va_start(args, fmt); in print() 24 vfprintf(mStream, fmt, args); in print() 28 void println(const char* fmt, ...) { in println() argument 31 va_start(args, fmt); in println() 32 vfprintf(mStream, fmt, args); in println()
|
D | SourcePos.cpp | 114 SourcePos::error(const char* fmt, ...) const in error() argument 117 va_start(ap, fmt); in error() 118 String8 msg = String8::formatV(fmt, ap); in error() 124 SourcePos::warning(const char* fmt, ...) const in warning() argument 127 va_start(ap, fmt); in warning() 128 String8 msg = String8::formatV(fmt, ap); in warning() 134 SourcePos::printf(const char* fmt, ...) const in printf() argument 137 va_start(ap, fmt); in printf() 138 String8 msg = String8::formatV(fmt, ap); in printf()
|
D | SourcePos.h | 20 void error(const char* fmt, ...) const; 21 void warning(const char* fmt, ...) const; 22 void printf(const char* fmt, ...) const;
|
/frameworks/av/media/libnblog/ |
D | Writer.cpp | 84 void Writer::logf(const char *fmt, ...) in logf() argument 90 va_start(ap, fmt); in logf() 91 Writer::logvf(fmt, ap); // the Writer:: is needed to avoid virtual dispatch for LockedWriter in logf() 106 void Writer::logFormat(const char *fmt, log_hash_t hash, ...) in logFormat() argument 113 Writer::logVFormat(fmt, hash, ap); in logFormat() 187 void Writer::logvf(const char *fmt, va_list ap) in logvf() argument 193 int length = vsnprintf(buffer, sizeof(buffer), fmt, ap); in logvf() 204 void Writer::logStart(const char *fmt) in logStart() argument 209 size_t length = strlen(fmt); in logStart() 213 log(EVENT_FMT_START, fmt, length); in logStart() [all …]
|
D | Reader.cpp | 313 const char* fmt = fmtEntry.formatString(); in handleFormat() local 317 if (fmt[fmt_offset] != '%') { in handleFormat() 318 body->append(&fmt[fmt_offset], 1); // TODO optimize to write consecutive strings at once in handleFormat() 322 if (fmt[++fmt_offset] == '%') { in handleFormat() 342 switch(fmt[fmt_offset]) in handleFormat() 375 ALOGW("NBLog Reader encountered unknown character %c", fmt[fmt_offset]); in handleFormat()
|
/frameworks/base/tools/validatekeymaps/ |
D | Main.cpp | 40 static void log(const char* fmt, ...) { in log() argument 45 va_start(args, fmt); in log() 46 vfprintf(stdout, fmt, args); in log() 50 static void error(const char* fmt, ...) { in error() argument 52 va_start(args, fmt); in error() 53 vfprintf(stderr, fmt, args); in error()
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/ |
D | NativeMuxer.cpp | 27 MUXER_OUTPUT_T getMuxerOutFormat(const char *fmt); 43 const char *fmt = env->GetStringUTFChars(jFormat, nullptr); in Java_com_android_media_benchmark_library_Native_Mux() local 44 MUXER_OUTPUT_T outputFormat = getMuxerOutFormat(fmt); in Java_com_android_media_benchmark_library_Native_Mux() 140 string muxFormat(fmt); in Java_com_android_media_benchmark_library_Native_Mux() 160 env->ReleaseStringUTFChars(jFormat, fmt); in Java_com_android_media_benchmark_library_Native_Mux() 167 MUXER_OUTPUT_T getMuxerOutFormat(const char *fmt) { in getMuxerOutFormat() argument 178 if (!strcmp(fmt, kFormatMap.name)) { in getMuxerOutFormat()
|
/frameworks/base/cmds/idmap/ |
D | inspect.cpp | 18 void printe(const char *fmt, ...); 115 void printe(const char *fmt, ...) { in printe() argument 118 va_start(ap, fmt); in printe() 120 vfprintf(stderr, fmt, ap); in printe() 128 void print(const char *section, const char *subsection, uint32_t value, const char *fmt, ...) { in print() argument 131 va_start(ap, fmt); in print() 133 vprintf(fmt, ap); in print() 138 void print_path(const char *section, const char *subsection, const char *fmt, ...) { in print_path() argument 141 va_start(ap, fmt); in print_path() 143 vprintf(fmt, ap); in print_path()
|
/frameworks/av/media/libnblog/include/media/nblog/ |
D | Writer.h | 57 void logf(const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); 59 void logFormat(const char *fmt, log_hash_t hash, ...); 95 void logvf(const char *fmt, va_list ap); 98 void logStart(const char *fmt); 100 void logVFormat(const char *fmt, log_hash_t hash, va_list ap);
|
/frameworks/av/media/libstagefright/omx/ |
D | OMXUtils.cpp | 216 const OMX_COLOR_FORMATTYPE fmt = params.eColorFormat; in DescribeDefaultColorFormat() local 221 if (fmt != OMX_COLOR_FormatYUV420Planar && in DescribeDefaultColorFormat() 222 fmt != OMX_COLOR_FormatYUV420PackedPlanar && in DescribeDefaultColorFormat() 223 fmt != OMX_COLOR_FormatYUV420SemiPlanar && in DescribeDefaultColorFormat() 224 fmt != OMX_COLOR_FormatYUV420PackedSemiPlanar && in DescribeDefaultColorFormat() 225 fmt != (OMX_COLOR_FORMATTYPE)HAL_PIXEL_FORMAT_YV12) { in DescribeDefaultColorFormat() 226 ALOGW("do not know color format 0x%x = %d", fmt, fmt); in DescribeDefaultColorFormat() 227 if (fmt == OMX_COLOR_FormatYUV420Planar16) { in DescribeDefaultColorFormat() 246 fmt, fmt, params.nStride, params.nSliceHeight); in DescribeDefaultColorFormat() 261 switch ((int)fmt) { in DescribeDefaultColorFormat()
|
D | OMXNodeInstance.cpp | 53 #define CLOGW(fmt, ...) ALOGW("[%p:%s] " fmt, mHandle, mName, ##__VA_ARGS__) argument 55 #define CLOG_ERROR_IF(cond, fn, err, fmt, ...) \ argument 56 ALOGE_IF(cond, #fn "(%p:%s, " fmt ") ERROR: %s(%#x)", \ 58 #define CLOG_ERROR(fn, err, fmt, ...) CLOG_ERROR_IF(true, fn, err, fmt, ##__VA_ARGS__) argument 59 #define CLOG_IF_ERROR(fn, err, fmt, ...) \ argument 60 CLOG_ERROR_IF((err) != OMX_ErrorNone, fn, err, fmt, ##__VA_ARGS__) 62 #define CLOGI_(level, fn, fmt, ...) \ argument 63 ALOGI_IF(DEBUG >= (level), #fn "(%p:%s, " fmt ")", mHandle, mName, ##__VA_ARGS__) 64 #define CLOGD_(level, fn, fmt, ...) \ argument 65 ALOGD_IF(DEBUG >= (level), #fn "(%p:%s, " fmt ")", mHandle, mName, ##__VA_ARGS__) [all …]
|
/frameworks/av/media/tests/benchmark/tests/ |
D | MuxerTest.cpp | 33 static MUXER_OUTPUT_T getMuxerOutFormat(string fmt) { in getMuxerOutFormat() argument 44 if (!fmt.compare(kFormatMaps[i].name)) { in getMuxerOutFormat() 58 string fmt = GetParam().second; in TEST_P() local 59 MUXER_OUTPUT_T outputFormat = getMuxerOutFormat(fmt); in TEST_P() 116 muxerObj->dumpStatistics(GetParam().first + "." + fmt.c_str(), fmt, gEnv->getStatsFile()); in TEST_P()
|
/frameworks/ex/framesequence/jni/utils/ |
D | log.h | 258 #define LOG_PRI_VA(priority, tag, fmt, args) \ argument 259 __android_log_vprint(priority, NULL, tag, fmt, args) 280 #define android_printAssert(cond, tag, fmt...) \ argument 282 __android_second(0, ## fmt, NULL) __android_rest(fmt))
|
/frameworks/base/cmds/idmap2/include/idmap2/ |
D | RawPrintVisitor.h | 44 void print(uint16_t value, const char* fmt, ...); 45 void print(uint32_t value, const char* fmt, ...); 46 void print(const std::string& value, const char* fmt, ...);
|
/frameworks/av/services/mediaanalytics/ |
D | statsd_extractor.cpp | 59 std::string fmt; in statsd_extractor() local 60 if (item->getString("android.media.mediaextractor.fmt", &fmt)) { in statsd_extractor() 61 metrics_proto.set_format(std::move(fmt)); in statsd_extractor()
|
/frameworks/av/services/camera/libcameraservice/utils/ |
D | LatencyHistogram.cpp | 72 void CameraLatencyHistogram::log(const char* fmt, ...) { in log() argument 78 va_start(args, fmt); in log() 79 String8 histogramName = String8::formatV(fmt, args); in log()
|
/frameworks/rs/cpu_ref/ |
D | rsCpuCore.cpp | 561 FormatBuf fmt; in walk_1d_reduce() local 563 format_bytes(&fmt, accumPtr, mtls->accumSize); in walk_1d_reduce() 565 fmt[0] = 0; in walk_1d_reduce() 568 mtls->accumFunc, idx, xStart, xEnd, fmt); in walk_1d_reduce() 600 FormatBuf fmt; in walk_2d_reduce() local 602 format_bytes(&fmt, accumPtr, mtls->accumSize); in walk_2d_reduce() 604 fmt[0] = 0; in walk_2d_reduce() 607 mtls->accumFunc, idx, yStart, yEnd, fmt); in walk_2d_reduce() 635 FormatBuf fmt; in walk_3d_reduce() local 637 format_bytes(&fmt, accumPtr, mtls->accumSize); in walk_3d_reduce() [all …]
|
/frameworks/native/vulkan/libvulkan/ |
D | debug_report.h | 101 #define DEBUG_REPORT_LOGGER_PRINTF(fmt, args) \ argument 102 __attribute__((format(printf, (fmt) + 1, (args) + 1))) 151 #define DEBUG_REPORT_LOGGER_VPRINTF(fmt) \ argument 152 __attribute__((format(printf, (fmt) + 1, 0)))
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | DateIntervalFormatTest.java | 628 BiFunction<Long, Long, String> fmt = (from, to) -> formatDateRange( in testEndAtMidnight_dateAndTime() local 632 assertEquals("February 27, 2007, 04:00 – 00:00", fmt.apply(1172548800000L, 1172620800000L)); in testEndAtMidnight_dateAndTime() 635 fmt.apply(1172534400000L, 1172620800000L)); in testEndAtMidnight_dateAndTime() 639 fmt.apply(1172548800000L, 1172620800001L)); in testEndAtMidnight_dateAndTime() 641 fmt.apply(1172548800000L, 1172707200000L)); in testEndAtMidnight_dateAndTime() 646 fmt.apply(1172534459999L, 1172620800000L)); in testEndAtMidnight_dateAndTime() 648 assertEquals("February 27, 2007, 00:01 – 00:00", fmt.apply(1172534460000L, 1172620800000L)); in testEndAtMidnight_dateAndTime() 654 BiFunction<Long, Long, String> fmt = (from, to) -> formatDateRange( in testEndAtMidnight_dateOnly() local 659 assertEquals("February 27 – March 1, 2007", fmt.apply(1172534400000L, 1172793600000L)); in testEndAtMidnight_dateOnly() 660 assertEquals("February 27 – March 1, 2007", fmt.apply(1172548800000L, 1172793600000L)); in testEndAtMidnight_dateOnly() [all …]
|
/frameworks/av/media/ndk/ |
D | NdkImage.cpp | 243 int32_t fmt = mLockedBuffer->flexFormat; in getPlanePixelStride() local 244 switch (fmt) { in getPlanePixelStride() 279 ALOGE("Pixel format: 0x%x is unsupported", fmt); in getPlanePixelStride() 303 int32_t fmt = mLockedBuffer->flexFormat; in getPlaneRowStride() local 304 switch (fmt) { in getPlaneRowStride() 362 ALOGE("%s Pixel format: 0x%x is unsupported", __FUNCTION__, fmt); in getPlaneRowStride() 426 int32_t fmt = mLockedBuffer->flexFormat; in getPlaneData() local 428 switch (fmt) { in getPlaneData() 576 ALOGE("Pixel format: 0x%x is unsupported", fmt); in getPlaneData()
|
/frameworks/native/cmds/installd/ |
D | installd.cpp | 174 static int log_callback(int type, const char *fmt, ...) { // NOLINT in log_callback() argument 189 va_start(ap, fmt); in log_callback() 190 LOG_PRI_VA(priority, "SELinux", fmt, ap); in log_callback()
|