Home
last modified time | relevance | path

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

/frameworks/wilhelm/src/desktop/
DSDL.c47 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/services/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/core/jni/
Dandroid_net_wifi_Wifi.cpp52 static jint doIntCommand(const char *ifname, const char* fmt, ...) in doIntCommand() argument
56 va_start(args, fmt); in doIntCommand()
57 int byteCount = vsnprintf(buf, sizeof(buf), fmt, args); in doIntCommand()
69 static jboolean doBooleanCommand(const char *ifname, const char* expect, const char* fmt, ...) in doBooleanCommand() argument
73 va_start(args, fmt); in doBooleanCommand()
74 int byteCount = vsnprintf(buf, sizeof(buf), fmt, args); in doBooleanCommand()
87 static jstring doStringCommand(JNIEnv* env, const char *ifname, const char* fmt, ...) { in doStringCommand() argument
90 va_start(args, fmt); in doStringCommand()
91 int byteCount = vsnprintf(buf, sizeof(buf), fmt, args); in doStringCommand()
Dandroid_os_SELinux.cpp520 static int log_callback(int type, const char *fmt, ...) { in log_callback() argument
522 va_start(ap, fmt); in log_callback()
523 LOG_PRI_VA(ANDROID_LOG_ERROR, "SELinux", fmt, ap); in log_callback()
/frameworks/base/tools/aapt/
DSourcePos.cpp120 SourcePos::error(const char* fmt, ...) const in error() argument
125 va_start(ap, fmt); in error()
126 retval = vsnprintf(buf, sizeof(buf), fmt, ap); in error()
138 SourcePos::warning(const char* fmt, ...) const in warning() argument
143 va_start(ap, fmt); in warning()
144 retval = vsnprintf(buf, sizeof(buf), fmt, ap); in warning()
DSourcePos.h20 int error(const char* fmt, ...) const;
21 int warning(const char* fmt, ...) const;
DResourceTable.h251 virtual void reportError(void* accessorCookie, const char* fmt, ...);
DResourceTable.cpp2245 void ResourceTable::reportError(void* accessorCookie, const char* fmt, ...) in reportError() argument
2247 if (accessorCookie != NULL && fmt != NULL) { in reportError()
2252 va_start(ap, fmt); in reportError()
2253 retval = vsnprintf(buf, sizeof(buf), fmt, ap); in reportError()
/frameworks/compile/linkloader/
Dmain.cpp79 int stub_printf(char const *fmt, ...) { in stub_printf() argument
81 va_start(ap, fmt); in stub_printf()
82 int result = vprintf(fmt, ap); in stub_printf()
87 int stub_scanf(char const *fmt, ...) { in stub_scanf() argument
89 va_start(ap, fmt); in stub_scanf()
90 int result = vscanf(fmt, ap); in stub_scanf()
/frameworks/native/libs/utils/
DString8.cpp198 String8 String8::format(const char* fmt, ...) in format() argument
201 va_start(args, fmt); in format()
203 String8 result(formatV(fmt, args)); in format()
209 String8 String8::formatV(const char* fmt, va_list args) in formatV() argument
212 result.appendFormatV(fmt, args); in formatV()
301 status_t String8::appendFormat(const char* fmt, ...) in appendFormat() argument
304 va_start(args, fmt); in appendFormat()
306 status_t result = appendFormatV(fmt, args); in appendFormat()
312 status_t String8::appendFormatV(const char* fmt, va_list args) in appendFormatV() argument
315 int n = vsnprintf(NULL, 0, fmt, args); in appendFormatV()
[all …]
/frameworks/native/libs/gui/tests/
DSurface_test.cpp86 PixelFormat fmt=0; in TEST_F() local
89 ASSERT_EQ(NO_ERROR, sf->captureScreen(display, &heap, &w, &h, &fmt, 64, 64, 0, in TEST_F()
120 w = h = fmt = 0; in TEST_F()
121 ASSERT_EQ(NO_ERROR, sf->captureScreen(display, &heap, &w, &h, &fmt, in TEST_F()
DSurfaceTextureClient_test.cpp641 int fmt = -1; in TEST_F() local
643 ASSERT_EQ(OK, anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &fmt)); in TEST_F()
644 EXPECT_EQ(fmts[i], fmt); in TEST_F()
/frameworks/compile/mclinker/tools/mcld/include/alone/Support/
DLog.h15 #define ALOGE(fmt, args...) \ argument
16 printf("%s:%s:%d: "fmt, __FILE__, __FUNCTION__, __LINE__, args)
/frameworks/native/include/utils/
DString8.h54 static String8 format(const char* fmt, ...) __attribute__((format (printf, 1, 2)));
55 static String8 formatV(const char* fmt, va_list args);
78 status_t appendFormat(const char* fmt, ...)
80 status_t appendFormatV(const char* fmt, va_list args);
/frameworks/native/services/surfaceflinger/tests/
DTransaction_test.cpp58 PixelFormat fmt=0; in captureScreen() local
61 ASSERT_EQ(NO_ERROR, sf->captureScreen(display, &heap, &w, &h, &fmt, 0, 0, in captureScreen()
64 ASSERT_EQ(PIXEL_FORMAT_RGBA_8888, fmt); in captureScreen()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPanelBar.java31 public static final void LOG(String fmt, Object... args) { in LOG() argument
33 Slog.v(TAG, String.format(fmt, args)); in LOG()
DPanelView.java40 public final void LOG(String fmt, Object... args) { in LOG() argument
42 Slog.v(TAG, (mViewName != null ? (mViewName + ": ") : "") + String.format(fmt, args)); in LOG()
/frameworks/base/graphics/java/android/renderscript/
DProgramFragmentFixedFunction.java253 public Builder setTexture(EnvMode env, Format fmt, int slot) in setTexture() argument
258 mSlots[slot] = new Slot(env, fmt); in setTexture()
/frameworks/av/services/audioflinger/
Dtest-resample.cpp37 strncpy(fmt, "fmt ", 4); in HeaderWav()
52 char fmt[4]; // fmt\0 member
/frameworks/native/opengl/libs/EGL/
Dtrace.cpp89 void append(const char* fmt, ...) { in append() argument
91 va_start(argp, fmt); in append()
92 line_index += vsnprintf(line + line_index, lineSize-line_index, fmt, argp); in append()
/frameworks/av/services/camera/libcameraservice/camera2/
DParameters.cpp1855 const char *fmt; in formatEnumToString() local
1858 fmt = CameraParameters::PIXEL_FORMAT_YUV422SP; in formatEnumToString()
1861 fmt = CameraParameters::PIXEL_FORMAT_YUV420SP; in formatEnumToString()
1864 fmt = CameraParameters::PIXEL_FORMAT_YUV422I; in formatEnumToString()
1867 fmt = CameraParameters::PIXEL_FORMAT_YUV420P; in formatEnumToString()
1870 fmt = CameraParameters::PIXEL_FORMAT_RGB565; in formatEnumToString()
1873 fmt = CameraParameters::PIXEL_FORMAT_RGBA8888; in formatEnumToString()
1877 fmt = CameraParameters::PIXEL_FORMAT_BAYER_RGGB; in formatEnumToString()
1882 fmt = NULL; in formatEnumToString()
1885 return fmt; in formatEnumToString()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
DvoAMRWBEnc.c1849 VO_AUDIO_FORMAT* fmt = (VO_AUDIO_FORMAT*)pData; in voAMRWB_GetParam() local
1850 fmt->Channels = 1; in voAMRWB_GetParam()
1851 fmt->SampleRate = 16000; in voAMRWB_GetParam()
1852 fmt->SampleBits = 16; in voAMRWB_GetParam()
/frameworks/av/media/libstagefright/codecs/on2/dec/
DSoftVPX.cpp267 CHECK_EQ(img->fmt, IMG_FMT_I420); in onQueueFilled()
/frameworks/base/include/androidfw/
DResourceTypes.h1488 virtual void reportError(void* accessorCookie, const char* fmt, ...) = 0;