Searched defs:format (Results 176 - 200 of 246) sorted by last modified time

12345678910

/frameworks/base/core/java/android/widget/
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
H A Dandroid_graphics_PixelFormat.cpp43 JNIEnv* env, jobject clazz, jint format, jobject pixelFormatObject)
50 switch (format) {
68 err = getPixelFormatInfo(format, &info);
42 android_graphics_getPixelFormatInfo( JNIEnv* env, jobject clazz, jint format, jobject pixelFormatObject) argument
H A Dandroid_media_AudioRecord.cpp50 int PCM16; //... format constants
51 int PCM8; //... format constants
182 // compare the format against the Java constants
185 ALOGE("Error creating AudioRecord: unsupported audio format.");
190 audio_format_t format = audioFormat==javaAudioRecordFields.PCM16 ? local
242 format, // word length, PCM
612 // Get the format constants from the AudioFormat class
H A Dandroid_media_AudioTrack.cpp50 int PCM16; //... format constants
51 int PCM8; //... format constants
250 // check the format.
251 // This function was called from Java, so we compare the format against the Java constants
253 ALOGE("Error creating AudioTrack: unsupported audio format.");
272 audio_format_t format = audioFormat == javaAudioTrackFields.PCM16 ? local
318 format,// word length, PCM
339 format,// word length, PCM
954 // Get the format constants from the AudioFormat class
H A Dandroid_opengl_GLES10.cpp340 /* void glCompressedTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data ) */
343 (JNIEnv *_env, jobject _this, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jobject data_buf) {
361 (GLenum)format,
3214 /* void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) */
3217 (JNIEnv *_env, jobject _this, jint x, jint y, jint width, jint height, jint format, jint type, jobject pixels_buf) {
3233 (GLenum)format,
3670 /* void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) */
3673 (JNIEnv *_env, jobject _this, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint format, jint type, jobject pixels_buf) {
3693 (GLenum)format,
3724 /* void glTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenu
342 android_glCompressedTexSubImage2D__IIIIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jobject data_buf) argument
3216 android_glReadPixels__IIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint x, jint y, jint width, jint height, jint format, jint type, jobject pixels_buf) argument
3672 android_glTexImage2D__IIIIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint format, jint type, jobject pixels_buf) argument
3726 android_glTexSubImage2D__IIIIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint type, jobject pixels_buf) argument
[all...]
H A Dandroid_opengl_GLES20.cpp451 /* void glCompressedTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data ) */
454 (JNIEnv *_env, jobject _this, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jobject data_buf) {
472 (GLenum)format,
4280 /* void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) */
4283 (JNIEnv *_env, jobject _this, jint x, jint y, jint width, jint height, jint format, jint type, jobject pixels_buf) {
4299 (GLenum)format,
4527 /* void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) */
4530 (JNIEnv *_env, jobject _this, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint format, jint type, jobject pixels_buf) {
4550 (GLenum)format,
4757 /* void glTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenu
453 android_glCompressedTexSubImage2D__IIIIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jobject data_buf) argument
4282 android_glReadPixels__IIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint x, jint y, jint width, jint height, jint format, jint type, jobject pixels_buf) argument
4529 android_glTexImage2D__IIIIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint format, jint type, jobject pixels_buf) argument
4759 android_glTexSubImage2D__IIIIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint type, jobject pixels_buf) argument
[all...]
H A Dandroid_text_format_Time.cpp302 const char* format = env->GetStringUTFChars(formatObject, NULL); local
304 String8 r = t.format(format, &locale);
306 env->ReleaseStringUTFChars(formatObject, format);
643 { "nativeCompare", "(Landroid/text/format/Time;Landroid/text/format/Time;)I", (void*)android_text_format_Time_compare },
656 jclass timeClass = env->FindClass("android/text/format/Time");
686 return AndroidRuntime::registerNativeMethods(env, "android/text/format/Time", gMethods, NELEM(gMethods));
H A Dandroid_util_Process.cpp673 char* buffer, jint startIndex, jint endIndex, jintArray format,
677 const jsize NF = env->GetArrayLength(format);
682 jint* formatData = env->GetIntArrayElements(format, 0);
690 env->ReleaseIntArrayElements(format, formatData, 0);
765 env->ReleaseIntArrayElements(format, formatData, 0);
777 jbyteArray buffer, jint startIndex, jint endIndex, jintArray format,
783 (char*) bufferArray, startIndex, endIndex, format, outStrings,
792 jstring file, jintArray format, jobjectArray outStrings,
795 if (file == NULL || format == NULL) {
824 format, outString
672 android_os_Process_parseProcLineArray(JNIEnv* env, jobject clazz, char* buffer, jint startIndex, jint endIndex, jintArray format, jobjectArray outStrings, jlongArray outLongs, jfloatArray outFloats) argument
776 android_os_Process_parseProcLine(JNIEnv* env, jobject clazz, jbyteArray buffer, jint startIndex, jint endIndex, jintArray format, jobjectArray outStrings, jlongArray outLongs, jfloatArray outFloats) argument
791 android_os_Process_readProcFile(JNIEnv* env, jobject clazz, jstring file, jintArray format, jobjectArray outStrings, jlongArray outLongs, jfloatArray outFloats) argument
[all...]
H A Dandroid_view_Surface.cpp276 jstring nameStr, jint w, jint h, jint format, jint flags) {
281 String8(name.c_str()), w, h, format, flags);
361 static inline SkBitmap::Config convertPixelFormat(PixelFormat format) { argument
366 switch (format) {
410 env->SetIntField(canvasObj, gCanvasClassInfo.mSurfaceFormat, info.format);
415 ssize_t bpr = info.s * bytesPerPixel(info.format);
416 bitmap.setConfig(convertPixelFormat(info.format), info.w, info.h, bpr);
417 if (info.format == PIXEL_FORMAT_RGBX_8888) {
275 nativeCreate(JNIEnv* env, jobject surfaceObj, jobject sessionObj, jstring nameStr, jint w, jint h, jint format, jint flags) argument
H A Dandroid_view_TextureView.cpp74 static inline SkBitmap::Config convertPixelFormat(int32_t format) { argument
75 switch (format) {
145 ssize_t bytesCount = buffer.stride * bytesPerPixel(buffer.format);
148 bitmap.setConfig(convertPixelFormat(buffer.format), buffer.width, buffer.height, bytesCount);
150 if (buffer.format == WINDOW_FORMAT_RGBX_8888) {
160 SET_INT(canvas, gCanvasClassInfo.surfaceFormat, buffer.format);
H A Dcom_google_android_gles_jni_EGLImpl.cpp255 static PixelFormat convertPixelFormat(SkBitmap::Config format) argument
257 switch (format) {
296 pixmap.format = convertPixelFormat(nativeBitmap->config());
H A Dcom_google_android_gles_jni_GLImpl.cpp468 /* void glCompressedTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data ) */
471 (JNIEnv *_env, jobject _this, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jobject data_buf) {
489 (GLenum)format,
3342 /* void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) */
3345 (JNIEnv *_env, jobject _this, jint x, jint y, jint width, jint height, jint format, jint type, jobject pixels_buf) {
3361 (GLenum)format,
3798 /* void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) */
3801 (JNIEnv *_env, jobject _this, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint format, jint type, jobject pixels_buf) {
3821 (GLenum)format,
3852 /* void glTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenu
470 android_glCompressedTexSubImage2D__IIIIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jobject data_buf) argument
3344 android_glReadPixels__IIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint x, jint y, jint width, jint height, jint format, jint type, jobject pixels_buf) argument
3800 android_glTexImage2D__IIIIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint format, jint type, jobject pixels_buf) argument
3854 android_glTexSubImage2D__IIIIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint type, jobject pixels_buf) argument
[all...]
/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
/frameworks/av/camera/
H A DCameraParameters.cpp29 const char CameraParameters::KEY_PREVIEW_FORMAT[] = "preview-format";
30 const char CameraParameters::KEY_SUPPORTED_PREVIEW_FORMATS[] = "preview-format-values";
37 const char CameraParameters::KEY_PICTURE_FORMAT[] = "picture-format";
38 const char CameraParameters::KEY_SUPPORTED_PICTURE_FORMATS[] = "picture-format-values";
83 const char CameraParameters::KEY_VIDEO_FRAME_FORMAT[] = "video-frame-format";
410 void CameraParameters::setPreviewFormat(const char *format) argument
412 set(KEY_PREVIEW_FORMAT, format);
442 void CameraParameters::setPictureFormat(const char *format) argument
444 set(KEY_PICTURE_FORMAT, format);

Completed in 1968 milliseconds

12345678910