Searched defs:fmt (Results 1 - 25 of 30) sorted by relevance

12

/frameworks/wilhelm/src/desktop/
H A DSDL.cpp47 SDL_AudioSpec fmt; local
48 fmt.freq = 44100;
49 fmt.format = AUDIO_S16;
50 fmt.channels = STEREO_CHANNELS;
52 fmt.samples = SndFile_BUFSIZE;
54 fmt.samples = SndFile_BUFSIZE / sizeof(short);
56 fmt.callback = SDL_callback;
57 fmt.userdata = (void *) thisEngine;
59 if (SDL_OpenAudio(&fmt, NULL) < 0) {
/frameworks/base/libs/hwui/utils/
H A DTraceUtils.h21 #define ATRACE_FORMAT(fmt, ...) \
22 TraceUtils::TraceEnder __traceEnder = (TraceUtils::atraceFormatBegin(fmt, ##__VA_ARGS__), TraceUtils::TraceEnder())
24 #define ATRACE_FORMAT_BEGIN(fmt, ...) \
25 TraceUtils::atraceFormatBegin(fmt, ##__VA_ARGS__)
37 static void atraceFormatBegin(const char* fmt, ...) { argument
44 va_start(ap, fmt);
45 vsnprintf(buf, BUFFER_SIZE, fmt, ap);
/frameworks/base/tools/aapt/
H A DIndentPrinter.h20 void print(const char* fmt, ...) { argument
23 va_start(args, fmt);
24 vfprintf(mStream, fmt, args);
28 void println(const char* fmt, ...) { argument
31 va_start(args, fmt);
32 vfprintf(mStream, fmt, args);
H A DSourcePos.cpp114 SourcePos::error(const char* fmt, ...) const argument
117 va_start(ap, fmt);
118 String8 msg = String8::formatV(fmt, ap);
124 SourcePos::warning(const char* fmt, ...) const argument
127 va_start(ap, fmt);
128 String8 msg = String8::formatV(fmt, ap);
134 SourcePos::printf(const char* fmt, ...) const argument
137 va_start(ap, fmt);
138 String8 msg = String8::formatV(fmt, ap);
/frameworks/av/services/camera/libcameraservice/utils/
H A DLatencyHistogram.cpp72 void CameraLatencyHistogram::log(const char* fmt, ...) { argument
78 va_start(args, fmt);
79 String8 histogramName = String8::formatV(fmt, args);
/frameworks/av/media/libstagefright/omx/
H A DOMXUtils.cpp206 const OMX_COLOR_FORMATTYPE fmt = params.eColorFormat; local
211 if (fmt != OMX_COLOR_FormatYUV420Planar &&
212 fmt != OMX_COLOR_FormatYUV420PackedPlanar &&
213 fmt != OMX_COLOR_FormatYUV420SemiPlanar &&
214 fmt != OMX_COLOR_FormatYUV420PackedSemiPlanar &&
215 fmt != (OMX_COLOR_FORMATTYPE)HAL_PIXEL_FORMAT_YV12) {
216 ALOGW("do not know color format 0x%x = %d", fmt, fmt);
233 fmt, fmt, param
[all...]
/frameworks/base/libs/common_time/
H A Dutils.cpp67 void LogRing::log(int prio, const char* tag, const char* fmt, ...) { argument
69 va_start(argp, fmt);
70 internalLog(prio, tag, fmt, argp);
74 void LogRing::log(const char* fmt, ...) { argument
76 va_start(argp, fmt);
77 internalLog(0, NULL, fmt, argp);
83 const char* fmt,
87 String8 s(String8::formatV(fmt, argp));
110 LOG_PRI_VA(prio, tag, fmt, argp);
81 internalLog(int prio, const char* tag, const char* fmt, va_list argp) argument
/frameworks/base/rs/java/android/renderscript/
H A DProgramFragmentFixedFunction.java244 * @param fmt specifies the format of the texture and how its
251 public Builder setTexture(EnvMode env, Format fmt, int slot) argument
256 mSlots[slot] = new Slot(env, fmt);
/frameworks/base/cmds/idmap/
H A Dinspect.cpp18 void printe(const char *fmt, ...);
115 void printe(const char *fmt, ...) { argument
118 va_start(ap, fmt);
120 vfprintf(stderr, fmt, ap);
128 void print(const char *section, const char *subsection, uint32_t value, const char *fmt, ...) { argument
131 va_start(ap, fmt);
133 vprintf(fmt, ap);
138 void print_path(const char *section, const char *subsection, const char *fmt, ...) { argument
141 va_start(ap, fmt);
143 vprintf(fmt, a
[all...]
/frameworks/base/core/jni/
H A Dandroid_os_SELinux.cpp337 static int log_callback(int type, const char *fmt, ...) { argument
352 va_start(ap, fmt);
353 LOG_PRI_VA(priority, "SELinux", fmt, ap);
H A Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp157 ALOGV("%s: Dequeue buffer from %p %dx%d (fmt=%x, size=%x)",
418 int32_t fmt = 0; local
419 status_t err = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &fmt);
425 return fmt;
435 int32_t fmt = 0; local
436 status_t err = anw->query(anw.get(), NATIVE_WINDOW_DEFAULT_DATASPACE, &fmt);
442 return fmt;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DPanelBar.java31 public static final void LOG(String fmt, Object... args) { argument
33 Log.v(TAG, String.format(fmt, args));
/frameworks/native/cmds/installd/
H A Dinstalld.cpp284 static int log_callback(int type, const char *fmt, ...) { argument
299 va_start(ap, fmt);
300 LOG_PRI_VA(priority, "SELinux", fmt, ap);
H A Dotapreopt.cpp1111 static int log_callback(int type, const char *fmt, ...) { argument
1126 va_start(ap, fmt);
1127 LOG_PRI_VA(priority, "SELinux", fmt, ap);
/frameworks/native/libs/gui/tests/
H A DSurfaceTextureClient_test.cpp713 int fmt = -1; local
716 ASSERT_EQ(OK, anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &fmt));
717 EXPECT_EQ(fmts[i], fmt);
/frameworks/av/media/ndk/
H A DNdkImage.cpp256 int32_t fmt = mLockedBuffer->flexFormat; local
257 switch (fmt) {
292 ALOGE("Pixel format: 0x%x is unsupported", fmt);
316 int32_t fmt = mLockedBuffer->flexFormat; local
317 switch (fmt) {
375 ALOGE("%s Pixel format: 0x%x is unsupported", __FUNCTION__, fmt);
439 int32_t fmt = mLockedBuffer->flexFormat; local
441 switch (fmt) {
589 ALOGE("Pixel format: 0x%x is unsupported", fmt);
/frameworks/base/media/java/android/media/
H A DImageReader.java1024 int fmt, int maxImgs, long consumerUsage);
1023 nativeInit(Object weakSelf, int w, int h, int fmt, int maxImgs, long consumerUsage) argument
/frameworks/av/media/libnbaio/
H A DNBLog.cpp71 // skip start fmt
84 // skip start fmt
91 // skip start fmt
105 // copy fmt start entry
271 void NBLog::Writer::logf(const char *fmt, ...) argument
277 va_start(ap, fmt);
278 Writer::logvf(fmt, ap); // the Writer:: is needed to avoid virtual dispatch for LockedWriter
282 void NBLog::Writer::logvf(const char *fmt, va_list ap) argument
288 int length = vsnprintf(buffer, sizeof(buffer), fmt, ap);
342 void NBLog::Writer::logStart(const char *fmt) argument
363 logFormat(const char *fmt, ...) argument
375 logVFormat(const char *fmt, va_list argp) argument
510 logf(const char *fmt, ...) argument
520 logvf(const char *fmt, va_list ap) argument
558 logStart(const char *fmt) argument
886 const char* fmt = fmtEntry.formatString(); local
[all...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A DvoAMRWBEnc.c1857 VO_AUDIO_FORMAT* fmt = (VO_AUDIO_FORMAT*)pData; local
1858 fmt->Channels = 1;
1859 fmt->SampleRate = 16000;
1860 fmt->SampleBits = 16;
/frameworks/av/services/camera/libcameraservice/api2/
H A DCameraDeviceClient.cpp538 "Camera %s: Error creating output stream (%d x %d, fmt %x, dataSpace %x): %s (%d)",
600 "Camera %s: Error creating output stream (%d x %d, fmt %x, dataSpace %x): %s (%d)",
901 int32_t fmt = streamConfigs.data.i32[i]; local
906 if (fmt == format) {
/frameworks/base/media/jni/
H A Dandroid_media_ImageReader.cpp785 int32_t fmt = applyFormatOverrides( local
792 if (isPossiblyYUV(fmt)) {
793 fmt = HAL_PIXEL_FORMAT_YCbCr_420_888;
796 fmt, buffer->mDataSpace);
H A Dandroid_media_Utils.cpp665 int32_t fmt = buffer->flexFormat; local
667 bool usingRGBAOverride = usingRGBAToJpegOverride(fmt, containerFormat);
668 fmt = applyFormatOverrides(fmt, containerFormat);
669 switch (fmt) {
/frameworks/rs/cpu_ref/
H A DrsCpuCore.cpp561 FormatBuf fmt; local
563 format_bytes(&fmt, accumPtr, mtls->accumSize);
565 fmt[0] = 0;
568 mtls->accumFunc, idx, xStart, xEnd, fmt);
600 FormatBuf fmt; local
602 format_bytes(&fmt, accumPtr, mtls->accumSize);
604 fmt[0] = 0;
607 mtls->accumFunc, idx, yStart, yEnd, fmt);
635 FormatBuf fmt; local
637 format_bytes(&fmt, accumPt
785 FormatBuf fmt; local
804 FormatBuf fmt; local
813 FormatBuf fmt; local
[all...]
/frameworks/rs/tests/java_api/RsTest/src/com/android/rs/test/
H A DUT_reduce.java128 result += "(" + fmt.format(inputCells) + " cells";
130 result += ", " + fmt.format(inputBytes) + " bytes";
136 private static java.text.DecimalFormat fmt; field in class:UT_reduce.timing
139 fmt = new java.text.DecimalFormat("###,###");
/frameworks/av/camera/
H A DCameraParameters.cpp500 char* fmt = strtok_r(prevFmts, ",", &savePtr); local
501 while (fmt) {
502 int actual = previewFormatToEnum(fmt);
506 fmt = strtok_r(NULL, ",", &savePtr);

Completed in 5223 milliseconds

12