Home
last modified time | relevance | path

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

123

/AliOS-Things-master/components/SDL2/test/
A Dtestautomation_stdlib.c42 #undef SDL_snprintf
50 result = SDL_snprintf(text, sizeof(text), "%s", "foo"); in stdlib_snprintf()
56 result = SDL_snprintf(text, 2, "%s", "foo"); in stdlib_snprintf()
62 result = SDL_snprintf(NULL, 0, "%s", "foo"); in stdlib_snprintf()
65 result = SDL_snprintf(text, sizeof(text), "%f", 1.0); in stdlib_snprintf()
71 result = SDL_snprintf(text, sizeof(text), "%.f", 1.0); in stdlib_snprintf()
77 result = SDL_snprintf(text, sizeof(text), "%#.f", 1.0); in stdlib_snprintf()
83 result = SDL_snprintf(text, sizeof(text), "%f", 1.0 + 1.0 / 3.0); in stdlib_snprintf()
89 result = SDL_snprintf(text, sizeof(text), "%+f", 1.0 + 1.0 / 3.0); in stdlib_snprintf()
95 result = SDL_snprintf(text, sizeof(text), "%.2f", 1.0 + 1.0 / 3.0); in stdlib_snprintf()
[all …]
A Dtorturethread.c55 SDL_snprintf(name, sizeof (name), "Child%d_%d", tid, i); in ThreadFunc()
94 SDL_snprintf(name, sizeof (name), "Parent%d", i); in main()
A Dtestatomic.c633 SDL_snprintf(name, sizeof (name), "FIFOReader%d", i); in RunFIFOTest()
645 SDL_snprintf(name, sizeof (name), "FIFOWriter%d", i); in RunFIFOTest()
692 SDL_snprintf(textBuffer, sizeof(textBuffer), " { "); in RunFIFOTest()
696 SDL_snprintf(textBuffer + len, sizeof(textBuffer) - len, ", "); in RunFIFOTest()
699SDL_snprintf(textBuffer + len, sizeof(textBuffer) - len, "%d", readerData[i].counters[j]); in RunFIFOTest()
702 SDL_snprintf(textBuffer + len, sizeof(textBuffer) - len, " }\n"); in RunFIFOTest()
A Dcontrollermap.c662 SDL_snprintf(pszElement, sizeof(pszElement), "b%d", pBinding->value.button); in WatchJoystick()
667 SDL_snprintf(pszElement, sizeof(pszElement), "-a%d", pBinding->value.axis.axis); in WatchJoystick()
670 SDL_snprintf(pszElement, sizeof(pszElement), "+a%d", pBinding->value.axis.axis); in WatchJoystick()
672 SDL_snprintf(pszElement, sizeof(pszElement), "a%d", pBinding->value.axis.axis); in WatchJoystick()
680SDL_snprintf(pszElement, sizeof(pszElement), "h%d.%d", pBinding->value.hat.hat, pBinding->value.ha… in WatchJoystick()
A Dtestdisplayinfo.c83 SDL_snprintf(prefix, sizeof (prefix), " MODE %d", m); in main()
A Dtestsensor.c32 SDL_snprintf(unknown_type, sizeof(unknown_type), "UNKNOWN (%d)", type); in GetSensorTypeString()
A Dtestsem.c109 SDL_snprintf(name, sizeof (name), "Thread%u", (unsigned int) i); in main()
A Dtestlock.c120 SDL_snprintf(name, sizeof (name), "Worker%d", i); in main()
/AliOS-Things-master/components/SDL2/src/events/
A DSDL_events.c129 SDL_snprintf(plusstr, sizeof (plusstr), "+%u", ((uint) event->type) - SDL_USEREVENT); in SDL_LogEvent()
133SDL_snprintf(details, sizeof (details), "%s (timestamp=%u windowid=%u code=%d data1=%p data2=%p)", in SDL_LogEvent()
177SDL_snprintf(details, sizeof (details), " (timestamp=%u windowid=%u event=%s data1=%d data2=%d)", in SDL_LogEvent()
184SDL_snprintf(details, sizeof (details), " (timestamp=%u)", (uint) event->syswm.timestamp); in SDL_LogEvent()
237 SDL_snprintf(details, sizeof (details), " (timestamp=%u which=%d axis=%u value=%d)", in SDL_LogEvent()
243SDL_snprintf(details, sizeof (details), " (timestamp=%u which=%d ball=%u xrel=%d yrel=%d)", in SDL_LogEvent()
249 SDL_snprintf(details, sizeof (details), " (timestamp=%u which=%d hat=%u value=%u)", in SDL_LogEvent()
255 SDL_snprintf(details, sizeof (details), " (timestamp=%u which=%d button=%u state=%s)", \ in SDL_LogEvent()
268 SDL_snprintf(details, sizeof (details), " (timestamp=%u which=%d axis=%u value=%d)", in SDL_LogEvent()
274 SDL_snprintf(details, sizeof (details), " (timestamp=%u which=%d button=%u state=%s)", \ in SDL_LogEvent()
[all …]
/AliOS-Things-master/components/SDL2/src/joystick/windows/
A DSDL_xinputjoystick.c80 SDL_snprintf(name, sizeof(name), "X360 Controller #%u", 1 + userid); in GetXInputName()
84 SDL_snprintf(name, sizeof(name), "XInput Controller #%u", 1 + userid); in GetXInputName()
87 SDL_snprintf(name, sizeof(name), "XInput Wheel #%u", 1 + userid); in GetXInputName()
90 SDL_snprintf(name, sizeof(name), "XInput ArcadeStick #%u", 1 + userid); in GetXInputName()
93 SDL_snprintf(name, sizeof(name), "XInput FlightStick #%u", 1 + userid); in GetXInputName()
96 SDL_snprintf(name, sizeof(name), "XInput DancePad #%u", 1 + userid); in GetXInputName()
101 SDL_snprintf(name, sizeof(name), "XInput Guitar #%u", 1 + userid); in GetXInputName()
104 SDL_snprintf(name, sizeof(name), "XInput DrumKit #%u", 1 + userid); in GetXInputName()
107 SDL_snprintf(name, sizeof(name), "XInput ArcadePad #%u", 1 + userid); in GetXInputName()
110 SDL_snprintf(name, sizeof(name), "XInput Device #%u", 1 + userid); in GetXInputName()
A DSDL_mmjoystick.c88 SDL_snprintf(regkey, SDL_arraysize(regkey), in GetJoystickName()
107 SDL_snprintf(regvalue, SDL_arraysize(regvalue), "Joystick%d%s", index + 1, in GetJoystickName()
118 SDL_snprintf(regkey, SDL_arraysize(regkey), in GetJoystickName()
437 SDL_snprintf(errbuf, SDL_arraysize(errbuf), in SetMMerror()
444 SDL_snprintf(errbuf, SDL_arraysize(errbuf), "%s: %s", function, in SetMMerror()
/AliOS-Things-master/components/SDL2/src/filesystem/emscripten/
A DSDL_sysfilesystem.c65 SDL_snprintf(retval, len, "%s%s/%s/", append, org, app); in SDL_GetPrefPath()
67 SDL_snprintf(retval, len, "%s%s/", append, app); in SDL_GetPrefPath()
/AliOS-Things-master/components/SDL2/src/filesystem/unix/
A DSDL_sysfilesystem.c143 const int rc = SDL_snprintf(path, sizeof(path), in SDL_GetBasePath()
225 SDL_snprintf(retval, len, "%s%s%s/%s/", envr, append, org, app); in SDL_GetPrefPath()
227 SDL_snprintf(retval, len, "%s%s%s/", envr, append, app); in SDL_GetPrefPath()
/AliOS-Things-master/components/SDL2/src/filesystem/haiku/
A DSDL_sysfilesystem.cc98 SDL_snprintf(retval, len, "%s%s%s/%s/", home, append, org, app); in SDL_GetPrefPath()
100 SDL_snprintf(retval, len, "%s%s%s/", home, append, app); in SDL_GetPrefPath()
/AliOS-Things-master/components/SDL2/src/test/
A DSDL_test_compare.c107 SDL_snprintf(imageFilename, 127, "CompareSurfaces%04d_TestOutput.bmp", _CompareSurfaceCount); in SDLTest_CompareSurfaces()
109SDL_snprintf(referenceFilename, 127, "CompareSurfaces%04d_Reference.bmp", _CompareSurfaceCount); in SDLTest_CompareSurfaces()
A DSDL_test_memory.c253 SDL_snprintf(line, sizeof(line), "Allocation %d: %d bytes\n", count, (int)entry->size); in SDLTest_LogAllocations()
260SDL_snprintf(line, sizeof(line), "\t0x%"SDL_PRIx64": %s\n", entry->stack[stack_index], entry->stac… in SDLTest_LogAllocations()
267SDL_snprintf(line, sizeof(line), "Total: %.2f Kb in %d allocations\n", (float)total_allocated / 10… in SDLTest_LogAllocations()
/AliOS-Things-master/components/SDL2/src/filesystem/android/
A DSDL_sysfilesystem.c54 SDL_snprintf(fullpath, pathlen, "%s/", path); in SDL_GetPrefPath()
/AliOS-Things-master/components/SDL2/src/filesystem/cocoa/
A DSDL_sysfilesystem.m63 SDL_snprintf(retval, len, "%s/", base);
116 SDL_snprintf(retval, len, "%s/%s/%s/", base, org, app);
118 SDL_snprintf(retval, len, "%s/%s/", base, app);
/AliOS-Things-master/components/SDL2/src/
A DSDL_log.c370 SDL_snprintf(output, length, "%s: %s\r\n", SDL_priority_prefixes[priority], message); in SDL_LogOutput()
400 SDL_snprintf(tag, SDL_arraysize(tag), "SDL/%s", GetCategoryPrefix(category)); in SDL_LogOutput()
412SDL_snprintf(text, SDL_MAX_LOG_MESSAGE, "%s: %s", SDL_priority_prefixes[priority], message); in SDL_LogOutput()
/AliOS-Things-master/components/SDL2/src/stdlib/
A DSDL_getenv.c104 SDL_snprintf(new_variable, len, "%s=%s", name, value); in SDL_setenv()
134 SDL_snprintf(new_variable, len, "%s=%s", name, value); in SDL_setenv()
/AliOS-Things-master/components/SDL2/src/video/dummy/
A DSDL_nullframebuffer.c72 SDL_snprintf(file, sizeof(file), "SDL_window%d-%8.8d.bmp", in SDL_DUMMY_UpdateWindowFramebuffer()
/AliOS-Things-master/components/SDL2/src/video/offscreen/
A DSDL_offscreenframebuffer.c73 SDL_snprintf(file, sizeof(file), "SDL_window%d-%8.8d.bmp", in SDL_OFFSCREEN_UpdateWindowFramebuffer()
/AliOS-Things-master/components/SDL2/src/audio/
A DSDL_audiodev.c107 SDL_snprintf(audiopath, SDL_arraysize(audiopath), in SDL_EnumUnixAudioDevices_Internal()
A DSDL_wave.c201 … if (SDL_snprintf(channelstr, sizeof(channelstr), "%u channels", format->channels) >= 0) { in WaveDebugLogFormat()
268 …res = SDL_snprintf(dumpstr, bufsize, fmtstr1, rifflen, fmtlen, format->formattag, format->channels… in WaveDebugDumpFormat()
271 res = SDL_snprintf(dumpstr + dumppos, bufsize - dumppos, fmtstr2, format->bitspersample); in WaveDebugDumpFormat()
275 res = SDL_snprintf(dumpstr + dumppos, bufsize - dumppos, fmtstr3, format->extsize); in WaveDebugDumpFormat()
286 … res = SDL_snprintf(dumpstr + dumppos, bufsize - dumppos, fmtstr4a, format->validsamplebits); in WaveDebugDumpFormat()
291 … res = SDL_snprintf(dumpstr + dumppos, bufsize - dumppos, fmtstr4b, format->samplesperblock); in WaveDebugDumpFormat()
295 …res = SDL_snprintf(dumpstr + dumppos, bufsize - dumppos, fmtstr5, format->channelmask, g1, g2, g3,… in WaveDebugDumpFormat()
302 … res = SDL_snprintf(dumpstr + dumppos, bufsize - dumppos, fmtstr4b, format->samplesperblock); in WaveDebugDumpFormat()
309 res = SDL_snprintf(dumpstr + dumppos, bufsize - dumppos, fmtstr6, file->fact.samplelength); in WaveDebugDumpFormat()
312 res = SDL_snprintf(dumpstr + dumppos, bufsize - dumppos, fmtstr7, datalen); in WaveDebugDumpFormat()
/AliOS-Things-master/components/SDL2/src/locale/windows/
A DSDL_syslocale.c55 SDL_snprintf(buf, buflen, "%s%s%s", lang, ctryrc ? "_" : "", ctryrc ? country : ""); in SDL_SYS_GetPreferredLocales_winxp()

Completed in 25 milliseconds

123