Home
last modified time | relevance | path

Searched refs:fmt (Results 1 – 25 of 66) sorted by relevance

123

/frameworks/wilhelm/src/desktop/
DSDL.cpp47 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/
DTraceUtils.h21 #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/tools/aapt/
DIndentPrinter.h20 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()
DSourcePos.cpp114 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()
DSourcePos.h20 void error(const char* fmt, ...) const;
21 void warning(const char* fmt, ...) const;
22 void printf(const char* fmt, ...) const;
/frameworks/base/libs/common_time/
Dutils.cpp67 void LogRing::log(int prio, const char* tag, const char* fmt, ...) { in log() argument
69 va_start(argp, fmt); in log()
70 internalLog(prio, tag, fmt, argp); in log()
74 void LogRing::log(const char* fmt, ...) { in log() argument
76 va_start(argp, fmt); in log()
77 internalLog(0, NULL, fmt, argp); in log()
83 const char* fmt, in internalLog() argument
87 String8 s(String8::formatV(fmt, argp)); in internalLog()
110 LOG_PRI_VA(prio, tag, fmt, argp); in internalLog()
Dutils.h54 void log(int prio, const char* tag, const char* fmt, ...);
57 void log(const char* fmt, ...);
78 void internalLog(int prio, const char* tag, const char* fmt, va_list va);
/frameworks/base/tools/validatekeymaps/
DMain.cpp41 static void log(const char* fmt, ...) { in log() argument
46 va_start(args, fmt); in log()
47 vfprintf(stdout, fmt, args); in log()
51 static void error(const char* fmt, ...) { in error() argument
53 va_start(args, fmt); in error()
54 vfprintf(stderr, fmt, args); in error()
/frameworks/base/cmds/idmap/
Dinspect.cpp18 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/libstagefright/omx/
DOMXUtils.cpp209 const OMX_COLOR_FORMATTYPE fmt = params.eColorFormat; in DescribeDefaultColorFormat() local
214 if (fmt != OMX_COLOR_FormatYUV420Planar && in DescribeDefaultColorFormat()
215 fmt != OMX_COLOR_FormatYUV420PackedPlanar && in DescribeDefaultColorFormat()
216 fmt != OMX_COLOR_FormatYUV420SemiPlanar && in DescribeDefaultColorFormat()
217 fmt != OMX_COLOR_FormatYUV420PackedSemiPlanar && in DescribeDefaultColorFormat()
218 fmt != (OMX_COLOR_FORMATTYPE)HAL_PIXEL_FORMAT_YV12) { in DescribeDefaultColorFormat()
219 ALOGW("do not know color format 0x%x = %d", fmt, fmt); in DescribeDefaultColorFormat()
220 if (fmt == OMX_COLOR_FormatYUV420Planar16) { in DescribeDefaultColorFormat()
239 fmt, fmt, params.nStride, params.nSliceHeight); in DescribeDefaultColorFormat()
254 switch ((int)fmt) { in DescribeDefaultColorFormat()
DOMXNodeInstance.cpp51 #define CLOGW(fmt, ...) ALOGW("[%p:%s] " fmt, mHandle, mName, ##__VA_ARGS__) argument
53 #define CLOG_ERROR_IF(cond, fn, err, fmt, ...) \ argument
54 ALOGE_IF(cond, #fn "(%p:%s, " fmt ") ERROR: %s(%#x)", \
56 #define CLOG_ERROR(fn, err, fmt, ...) CLOG_ERROR_IF(true, fn, err, fmt, ##__VA_ARGS__) argument
57 #define CLOG_IF_ERROR(fn, err, fmt, ...) \ argument
58 CLOG_ERROR_IF((err) != OMX_ErrorNone, fn, err, fmt, ##__VA_ARGS__)
60 #define CLOGI_(level, fn, fmt, ...) \ argument
61 ALOGI_IF(DEBUG >= (level), #fn "(%p:%s, " fmt ")", mHandle, mName, ##__VA_ARGS__)
62 #define CLOGD_(level, fn, fmt, ...) \ argument
63 ALOGD_IF(DEBUG >= (level), #fn "(%p:%s, " fmt ")", mHandle, mName, ##__VA_ARGS__)
[all …]
/frameworks/av/media/libnblog/
DNBLog.cpp350 void NBLog::Writer::logf(const char *fmt, ...) in logf() argument
356 va_start(ap, fmt); in logf()
357 Writer::logvf(fmt, ap); // the Writer:: is needed to avoid virtual dispatch for LockedWriter in logf()
361 void NBLog::Writer::logvf(const char *fmt, va_list ap) in logvf() argument
367 int length = vsnprintf(buffer, sizeof(buffer), fmt, ap); in logvf()
423 void NBLog::Writer::logStart(const char *fmt) in logStart() argument
428 size_t length = strlen(fmt); in logStart()
432 log(EVENT_START_FMT, fmt, length); in logStart()
467 void NBLog::Writer::logFormat(const char *fmt, log_hash_t hash, ...) in logFormat() argument
475 Writer::logVFormat(fmt, hash, ap); in logFormat()
[all …]
/frameworks/ex/framesequence/jni/utils/
Dlog.h258 #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/av/media/libstagefright/
DNdkUtils.cpp25 sp<MetaData> convertMediaFormatWrapperToMetaData(const sp<AMediaFormatWrapper> &fmt) { in convertMediaFormatWrapperToMetaData() argument
26 sp<AMessage> msg = fmt->toAMessage(); in convertMediaFormatWrapperToMetaData()
/frameworks/av/services/camera/libcameraservice/utils/
DLatencyHistogram.cpp72 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/av/include/media/nblog/
DNBLog.h335 virtual void logf(const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
336 virtual void logvf(const char *fmt, va_list ap);
342 virtual void logFormat(const char *fmt, log_hash_t hash, ...);
343 virtual void logVFormat(const char *fmt, log_hash_t hash, va_list ap);
344 virtual void logStart(const char *fmt);
389 virtual void logf(const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
390 virtual void logvf(const char *fmt, va_list ap);
396 virtual void logStart(const char *fmt);
/frameworks/av/media/libnblog/include/media/nblog/
DNBLog.h335 virtual void logf(const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
336 virtual void logvf(const char *fmt, va_list ap);
342 virtual void logFormat(const char *fmt, log_hash_t hash, ...);
343 virtual void logVFormat(const char *fmt, log_hash_t hash, va_list ap);
344 virtual void logStart(const char *fmt);
389 virtual void logf(const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
390 virtual void logvf(const char *fmt, va_list ap);
396 virtual void logStart(const char *fmt);
/frameworks/rs/cpu_ref/
DrsCpuCore.cpp561 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/
Ddebug_report.h101 #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/av/media/ndk/
DNdkImage.cpp257 int32_t fmt = mLockedBuffer->flexFormat; in getPlanePixelStride() local
258 switch (fmt) { in getPlanePixelStride()
293 ALOGE("Pixel format: 0x%x is unsupported", fmt); in getPlanePixelStride()
317 int32_t fmt = mLockedBuffer->flexFormat; in getPlaneRowStride() local
318 switch (fmt) { in getPlaneRowStride()
376 ALOGE("%s Pixel format: 0x%x is unsupported", __FUNCTION__, fmt); in getPlaneRowStride()
440 int32_t fmt = mLockedBuffer->flexFormat; in getPlaneData() local
442 switch (fmt) { in getPlaneData()
590 ALOGE("Pixel format: 0x%x is unsupported", fmt); in getPlaneData()
/frameworks/native/cmds/installd/
Dinstalld.cpp174 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()
/frameworks/ml/nn/tools/test_generator/
Dslicing.py94 fmt = op.PyDefinition()
97 if fmt is not None:
106 self.__all_formatted_ops.append("model = model.%s" % fmt)
/frameworks/av/services/audioflinger/
DTypedLogger.h88 #define LOGT(fmt, ...) do { NBLog::Writer *x = tlNBLogWriter; if (x != nullptr) \ argument
89 x->logFormat((fmt), hash(__FILE__, __LINE__), ##__VA_ARGS__); } \
/frameworks/base/core/java/android/hardware/camera2/params/
DStreamConfigurationMap.java138 int fmt = config.getFormat(); in StreamConfigurationMap() local
141 mAllOutputFormats.put(fmt, mAllOutputFormats.get(fmt) + 1); in StreamConfigurationMap()
145 if (configurationDuration.getFormat() == fmt && in StreamConfigurationMap()
158 map.put(fmt, map.get(fmt) + 1); in StreamConfigurationMap()
1298 int fmt = config.getFormat(); in getInternalFormatSizes() local
1299 if (fmt == format && config.isOutput() == output) { in getInternalFormatSizes()
1306 if (d.getFormat() == fmt && in getInternalFormatSizes()
/frameworks/base/services/net/java/android/net/util/
DSharedLog.java109 public void logf(String fmt, Object... args) { in logf() argument
110 log(String.format(fmt, args)); in logf()

123