Home
last modified time | relevance | path

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

1234

/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/cmds/idmap2/libidmap2/
DResult.cpp26 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()
DRawPrintVisitor.cpp93 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/opt/gamesdk/third_party/protobuf-3.0.0/examples/
Dlist_people.go15 fmt.Fprintln(w, "Person ID:", p.Id)
16 fmt.Fprintln(w, " Name:", p.Name)
18 fmt.Fprintln(w, " E-mail address:", p.Email)
24 fmt.Fprint(w, " Mobile phone #: ")
26 fmt.Fprint(w, " Home phone #: ")
28 fmt.Fprint(w, " Work phone #: ")
30 fmt.Fprintln(w, pn.Number)
Dadd_person.go21 fmt.Print("Enter person ID number: ")
24 if _, err := fmt.Fscanf(rd, "%d\n", &p.Id); err != nil {
28 fmt.Print("Enter name: ")
38 fmt.Print("Enter email address (blank for none): ")
46 fmt.Print("Enter a phone number (or leave blank to finish): ")
64 fmt.Print("Is this a mobile, home, or work phone? ")
80 fmt.Printf("Unknown phone type %q. Using default.\n", ptype)
103 fmt.Printf("%s: File not found. Creating new file.\n", fname)
/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/av/media/libnblog/
DWriter.cpp84 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 …]
DReader.cpp313 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/
DMain.cpp40 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/libnblog/include/media/nblog/
DWriter.h57 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/services/mediaanalytics/
Dstatsd_extractor.cpp59 char *fmt = NULL; in statsd_extractor() local
60 if (item->getCString("android.media.mediaextractor.fmt", &fmt)) { in statsd_extractor()
61 metrics_proto.set_format(fmt); in statsd_extractor()
92 free(fmt); in statsd_extractor()
/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.cpp216 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()
DOMXNodeInstance.cpp53 #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/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/base/cmds/idmap2/include/idmap2/
DRawPrintVisitor.h44 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/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/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/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/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()

1234