Searched defs:format (Results 76 - 100 of 246) sorted by path

12345678910

/frameworks/base/core/java/android/service/wallpaper/
H A DWallpaperService.java479 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
581 + " format=" + formatChanged + " size=" + sizeChanged);
594 mLayout.format = mFormat;
/frameworks/base/core/java/android/speech/srec/
H A DWaveHeader.java24 * This class represents the header of a WAVE format audio file, which usually
27 * <li> format - usually PCM, ALAW or ULAW.
39 // follows WAVE format in http://ccrma.stanford.edu/courses/422/projects/WaveFormat
45 /** Indicates PCM format. */
47 /** Indicates ALAW format. */
49 /** Indicates ULAW format. */
66 * @param format format of audio data,
73 public WaveHeader(short format, short numChannels, int sampleRate, short bitsPerSample, int numBytes) { argument
74 mFormat = format;
96 setFormat(short format) argument
[all...]
/frameworks/base/core/java/android/text/format/
H A DDateFormat.java17 package android.text.format;
38 Most callers should avoid supplying their own format strings to this
39 class' {@code format} methods and rely on the correctly localized ones
43 of format strings, see {@link java.text.SimpleDateFormat}.
46 The format methods in this class takes as inputs a format string and a representation of a date/time.
47 The format string controls how the output is generated.
51 of that field. For instance, the format character &apos;M&apos; is used to
87 Text in the format string that should be copied verbatim rather that
133 This designator indicates the hour of the day in 12 hour format
424 public static CharSequence format(CharSequence inFormat, long inTimeInMillis) { method in class:DateFormat
435 public static CharSequence format(CharSequence inFormat, Date inDate) { method in class:DateFormat
512 public static CharSequence format(CharSequence inFormat, Calendar inDate) { method in class:DateFormat
[all...]
H A DDateUtils.java17 package android.text.format;
61 // The following FORMAT_* symbols are used for specifying the format of
99 // Date and time format strings that are constant and don't need to be
102 * This is not actually the preferred 24-hour date format in all locales.
121 // This table is used to lookup the resource string id of a format string
148 // This table is used to lookup the resource string id of a format string
457 String format = r.getQuantityString(resId, (int) count);
458 return String.format(format, count);
483 * Example output strings for the US date format
664 formatElapsedTime(StringBuilder recycle, String format, long hours, long minutes, long seconds) argument
689 formatElapsedTime(StringBuilder recycle, String format, long minutes, long seconds) argument
[all...]
H A DFormatter.java17 package android.text.format;
76 value = String.format("%.2f", result);
79 value = String.format("%.1f", result);
81 value = String.format("%.2f", result);
85 value = String.format("%.0f", result);
87 value = String.format("%.2f", result);
90 value = String.format("%.0f", result);
98 * Returns a string in the canonical IP format ###.###.###.### from a packed integer containing
99 * the IP address. The IP address is expected to be in little-endian format (LSB first). That
103 * @return string with canonical IP address format
[all...]
H A DTime.java17 package android.text.format;
314 * Print the current value given the format string provided. See man
317 * @param format a string containing the desired format.
320 public String format(String format) { argument
345 String result = format1(format);
353 native private String format1(String format); argument
372 * Return the current time in YYYYMMDDTHHMMSS<tz> format
378 * Parses a date-time string in either the RFC 2445 format o
[all...]
/frameworks/base/core/java/android/view/
H A DSurface.java141 * even if its pixel format is set to translucent. This can be useful if an
229 int w, int h, int format, int flags)
312 String name, int w, int h, int format, int flags)
333 nativeCreate(session, name, w, h, format, flags);
228 nativeCreate(SurfaceSession session, String name, int w, int h, int format, int flags) argument
311 Surface(SurfaceSession session, String name, int w, int h, int format, int flags) argument
H A DSurfaceHolder.java24 * control the surface size and format, edit the pixels in the surface, and
82 * This is called immediately after any structural changes (format or
88 * @param format The new PixelFormat of the surface.
92 public void surfaceChanged(SurfaceHolder holder, int format, int width, argument
180 * @param format A constant from PixelFormat.
184 public void setFormat(int format); argument
H A DViewRootImpl.java731 final boolean translucent = attrs.format != PixelFormat.OPAQUE;
1179 // PixelFormat.hasAlpha(lp.format) || lp.format == PixelFormat.RGBX_8888
1304 if (!PixelFormat.formatHasAlpha(params.format)) {
1305 params.format = PixelFormat.TRANSLUCENT;
1403 lp != null && !PixelFormat.formatHasAlpha(lp.format)) {
1593 lp.format, mWidth, mHeight);
1597 c.surfaceChanged(mSurfaceHolder, lp.format,
1904 // time around, to ensure the window has the correct format.
2250 // If this bitmap's format include
4785 setFormat(int format) argument
[all...]
H A DWindow.java642 * Set the format of window, as per the PixelFormat types. This overrides
643 * the default format that is selected by the Window based on its
646 * @param format The new window format (see PixelFormat). Use
648 * the format.
652 public void setFormat(int format) { argument
654 if (format != PixelFormat.UNKNOWN) {
655 attrs.format = format;
658 attrs.format
1209 setDefaultWindowFormat(int format) argument
[all...]
H A DWindowManager.java1120 * The desired bitmap format. May be one of the constants in
1123 public int format; field in class:WindowManager.LayoutParams
1284 format = PixelFormat.OPAQUE;
1290 format = PixelFormat.OPAQUE;
1297 format = PixelFormat.OPAQUE;
1304 format = _format;
1311 format = _format;
1321 format = _format;
1351 out.writeInt(format);
1392 format
[all...]
/frameworks/base/core/java/android/widget/
H A DChronometer.java25 import android.text.format.DateUtils;
44 * to format the timer value into an arbitrary string.
136 * Sets the format string used for display. The Chronometer will display
140 * If the format string is null, or if you never call setFormat(), the
144 * @param format the format string.
147 public void setFormat(String format) { argument
148 mFormat = format;
149 if (format != null && mFormatBuilder == null) {
150 mFormatBuilder = new StringBuilder(format
[all...]
H A DNumberPicker.java151 * format().
171 public String format(int value) { method in class:NumberPicker.TwoDigitFormatter
178 mFmt.format("%02d", mArgs);
520 * Interface used to format current value into a string for presentation.
530 public String format(int value); method in interface:NumberPicker.Formatter
1725 return (mFormatter != null) ? mFormatter.format(value) : formatNumberWithLocale(value);
1744 * will be used to format the number.
2545 return String.format(Locale.getDefault(), "%d", value);
H A DRemoteViews.java1849 * @param format The Chronometer format string, or null to
1853 public void setChronometer(int viewId, long base, String format, boolean started) { argument
1855 setString(viewId, "setFormat", format);
H A DTextClock.java30 import android.text.format.DateFormat;
46 * <p>This view honors the 24-hour format system setting. As such, it is
54 * <p>The rules used by this widget to decide how to format the date and
204 CharSequence format;
206 format = a.getText(R.styleable.TextClock_format12Hour);
207 mFormat12 = format == null ? DEFAULT_FORMAT_12_HOUR : format;
209 format = a.getText(R.styleable.TextClock_format24Hour);
210 mFormat24 = format == null ? DEFAULT_FORMAT_24_HOUR : format;
269 setFormat12Hour(CharSequence format) argument
311 setFormat24Hour(CharSequence format) argument
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DLoggingPrintStream.java168 public PrintStream format(String format, Object... args) { argument
169 return format(Locale.getDefault(), format, args);
173 public PrintStream printf(String format, Object... args) { argument
174 return format(format, args);
178 public PrintStream printf(Locale l, String format, Object... args) { argument
179 return format(l, format, arg
185 format( Locale l, String format, Object... args) argument
[all...]
/frameworks/base/core/java/com/android/internal/view/
H A DBaseSurfaceHolder.java130 public void setFormat(int format) { argument
131 if (mRequestedFormat != format) {
132 mRequestedFormat = format;
H A DRootViewSurfaceTaker.java10 void setSurfaceFormat(int format); argument
/frameworks/base/core/jni/
H A DAndroidRuntime.cpp314 static void runtime_vfprintf(FILE* fp, const char* format, va_list ap) argument
316 LOG_PRI_VA(ANDROID_LOG_INFO, "vm-printf", format, ap);
H A DTime.cpp88 Time::format(const char *format, const struct strftime_locale *locale) const argument
91 int n = strftime_tz(buf, 257, format, &(this->t), locale);
H A Dandroid_app_NativeActivity.cpp493 ANativeActivity* activity, int32_t format) {
495 write_work(code->mainWorkWrite, CMD_SET_WINDOW_FORMAT, format);
840 jint format, jint width, jint height)
492 android_NativeActivity_setWindowFormat( ANativeActivity* activity, int32_t format) argument
839 onSurfaceChanged_native(JNIEnv* env, jobject clazz, jint handle, jobject surface, jint format, jint width, jint height) argument
/frameworks/base/core/jni/android/graphics/
H A DBitmap.cpp282 int format, int quality,
286 switch (format) {
281 Bitmap_compress(JNIEnv* env, jobject clazz, SkBitmap* bitmap, int format, int quality, jobject jstream, jbyteArray jstorage) argument
H A DBitmapFactory.cpp54 jstring getMimeTypeString(JNIEnv* env, SkImageDecoder::Format format) { argument
69 if (gMimeTypes[i].fFormat == format) {
H A DYuvToJpegEncoder.cpp9 YuvToJpegEncoder* YuvToJpegEncoder::create(int format, int* strides) { argument
12 if (format == HAL_PIXEL_FORMAT_YCrCb_420_SP) {
14 } else if (format == HAL_PIXEL_FORMAT_YCbCr_422_I) {
220 int format, int width, int height, jintArray offsets,
228 YuvToJpegEncoder* encoder = YuvToJpegEncoder::create(format, imgStrides);
219 YuvImage_compressToJpeg(JNIEnv* env, jobject, jbyteArray inYuv, int format, int width, int height, jintArray offsets, jintArray strides, int jpegQuality, jobject jstream, jbyteArray jstorage) argument
/frameworks/base/core/jni/android/opengl/
H A Dutil.cpp565 static int checkFormat(SkBitmap::Config config, int format, int type) argument
569 if (format == GL_PALETTE8_RGBA8_OES)
583 if (format == GL_LUMINANCE_ALPHA)
700 jobject jbitmap, jint format, jint type)
706 if (format < 0) {
707 format = getInternalFormat(config);
708 if (format == GL_PALETTE8_RGBA8_OES)
711 int err = checkFormat(config, format, type);
718 glTexSubImage2D(target, level, xoffset, yoffset, w, h, format, type, p);
698 util_texSubImage2D(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jobject jbitmap, jint format, jint type) argument

Completed in 1907 milliseconds

12345678910