Searched defs:format (Results 101 - 125 of 248) sorted by relevance

12345678910

/frameworks/base/core/java/android/widget/
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;
/frameworks/base/core/jni/android/graphics/
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/
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);
/frameworks/base/media/java/android/mtp/
H A DMtpDevice.java132 * with the given format and parent.
136 * @param format the format of the object to return, or zero for all formats
140 public int[] getObjectHandles(int storageId, int format, int objectHandle) { argument
141 return native_get_object_handles(storageId, format, objectHandle);
160 * The size and format of the thumbnail data can be determined via
163 * For typical devices the format is JPEG.
247 private native int[] native_get_object_handles(int storageId, int format, int objectHandle); argument
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DFilterPort.java52 public void setPortFormat(FrameFormat format) { argument
53 mPortFormat = format;
H A DNativeFrame.java38 NativeFrame(FrameFormat format, FrameManager frameManager) { argument
39 super(format, frameManager);
40 int capacity = format.getSize();
H A DSerializedFrame.java24 import android.filterfw.format.ObjectFormat;
169 SerializedFrame(FrameFormat format, FrameManager frameManager) { argument
170 super(format, frameManager);
185 FrameFormat format = ObjectFormat.fromObject(object, FrameFormat.TARGET_SIMPLE);
186 SerializedFrame result = new SerializedFrame(format, frameManager);
/frameworks/native/include/ui/
H A DPixelFormat.h38 // in graphics/PixelFormat.java & pixelflinger/format.h
45 // Custom pixel-format described by a PixelFormatInfo structure
48 // System chooses a format that supports translucency (many alpha bits)
51 // System chooses a format that supports transparency
55 // System chooses an opaque format (no alpha bits required)
99 PixelFormat format; member in struct:android::PixelFormatInfo
122 ssize_t bytesPerPixel(PixelFormat format);
123 ssize_t bitsPerPixel(PixelFormat format);
124 status_t getPixelFormatInfo(PixelFormat format, PixelFormatInfo* info);
/frameworks/native/libs/gui/
H A DISurfaceComposer.cpp107 uint32_t* width, uint32_t* height, PixelFormat* format,
122 *format = reply.readInt32();
105 captureScreen( const sp<IBinder>& display, sp<IMemoryHeap>* heap, uint32_t* width, uint32_t* height, PixelFormat* format, uint32_t reqWidth, uint32_t reqHeight, uint32_t minLayerZ, uint32_t maxLayerZ) argument
H A DISurfaceTexture.cpp85 uint32_t w, uint32_t h, uint32_t format, uint32_t usage) {
90 data.writeInt32(format);
216 uint32_t format = data.readInt32(); local
220 int result = dequeueBuffer(&buf, fence, w, h, format, usage);
84 dequeueBuffer(int *buf, sp<Fence>& fence, uint32_t w, uint32_t h, uint32_t format, uint32_t usage) argument
/frameworks/native/libs/ui/
H A DFramebufferNativeWindow.cpp54 ANativeWindowBuffer::format = f; member in class:android::NativeBuffer::ANativeWindowBuffer
106 * This does not actually change the framebuffer format. It merely
107 * fakes this format to surfaceflinger so that when it creates
108 * framebuffer surfaces it will use this format. It's really a giant
114 *((uint32_t *)&fbDev->format) = FRAMEBUFFER_FORCE_FORMAT;
120 fbDev->width, fbDev->height, fbDev->format, GRALLOC_USAGE_HW_FB);
126 fbDev->width, fbDev->height, fbDev->format,
307 *value = fb->format;
H A DGraphicBuffer.cpp44 format =
57 format =
73 format = inFormat;
86 format = buffer->format;
132 if (handle && w==width && h==height && f==format && reqUsage==usage)
143 status_t GraphicBuffer::initSize(uint32_t w, uint32_t h, PixelFormat format, argument
147 status_t err = allocator.alloc(w, h, format, reqUsage, &handle, &stride);
151 this->format = format;
[all...]
H A DGraphicBufferAllocator.cpp69 rec.w, rec.s, rec.h, rec.format, rec.usage);
73 rec.w, rec.s, rec.h, rec.format, rec.usage);
192 status_t GraphicBufferAllocator::alloc(uint32_t w, uint32_t h, PixelFormat format, argument
209 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride);
214 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride);
218 w, h, format, usage, err, strerror(-err));
223 int bpp = bytesPerPixel(format);
225 // probably a HAL custom format. in any case, we don't know
233 rec.format = format;
[all...]
/frameworks/native/opengl/libagl/
H A DTextureObjectManager.cpp153 sur.format= native_buffer->format;
162 int format, int compressedFormat, int bpr)
183 surface.format = format;
215 mipmap.format = format;
223 if (curr->format != surface.format) {
160 reallocate( GLint level, int w, int h, int s, int format, int compressedFormat, int bpr) argument
/frameworks/native/opengl/tests/hwc/
H A DhwcRects.cpp68 * of the graphic format and then the display frame rectangle where
80 * a list of attributes and the format of their expected value.
146 Rectangle() : format(defaultFormat), transform(defaultTransform),
152 uint32_t format; member in class:Rectangle
369 const struct hwcTestGraphicFormat *format; local
376 testPrintE("Error parsing format from: %s", rectStr.c_str());
379 format = hwcTestGraphicFormatLookup(str.c_str());
380 if (format == NULL) {
381 testPrintE("Unknown graphic format in: %s", rectStr.c_str());
384 rect.format
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DSmsCbHeader.java42 * GSM pdu format, as defined in 3gpp TS 23.041, section 9.4.1
47 * UMTS pdu format, as defined in 3gpp TS 23.041, section 9.4.2
52 * GSM pdu format, as defined in 3gpp TS 23.041, section 9.4.1.3
85 private final int format; field in class:SmsCbHeader
99 // can be ETWS or GSM format.
100 // Per TS23.041 9.4.1.2 and 9.4.1.3.2, GSM and ETWS format both
107 format = FORMAT_ETWS_PRIMARY;
127 format = FORMAT_GSM;
145 format = FORMAT_UMTS;
240 return format
[all...]
/frameworks/base/core/java/android/text/format/
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
688 formatElapsedTime(StringBuilder recycle, String format, long hours, long minutes, long seconds) argument
713 formatElapsedTime(StringBuilder recycle, String format, long minutes, long seconds) argument
[all...]
/frameworks/av/include/media/
H A DAudioTrack.h73 audio_format_t format; // but AUDIO_FORMAT_PCM_8_BIT -> AUDIO_FORMAT_PCM_16_BIT member in class:android::AudioTrack::Buffer
136 * format: Audio format (e.g AUDIO_FORMAT_PCM_16_BIT for signed
156 audio_format_t format = AUDIO_FORMAT_DEFAULT,
168 int format = AUDIO_FORMAT_DEFAULT,
188 audio_format_t format = AUDIO_FORMAT_DEFAULT,
207 * - BAD_VALUE: invalid parameter (channelMask, format, sampleRate...)
212 audio_format_t format = AUDIO_FORMAT_DEFAULT,
240 audio_format_t format() const;
245 * channelCount is determined from channelMask, and bit depth comes from format
[all...]
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/
H A DVideoEditorAudioEncoder.cpp46 const sp<MetaData> &format);
74 VideoEditorAudioEncoderSource(const sp<MetaData> &format);
83 const sp<MetaData> &format) {
87 new VideoEditorAudioEncoderSource(format);
93 const sp<MetaData> &format):
98 mEncFormat(format) {
262 M4OSA_ERR VideoEditorAudioEncoder_init(M4ENCODER_AudioFormat format, argument
268 ALOGV(" VideoEditorAudioEncoder_init begin: format %d", format);
273 pEncoderContext->mFormat = format;
82 Create( const sp<MetaData> &format) argument
92 VideoEditorAudioEncoderSource( const sp<MetaData> &format) argument
672 VideoEditorAudioEncoder_getInterface( M4ENCODER_AudioFormat format, M4ENCODER_AudioFormat* pFormat, M4ENCODER_AudioGlobalInterface** pEncoderInterface) argument
[all...]
/frameworks/av/media/libstagefright/
H A DAudioPlayer.cpp87 // updated format, if there isn't, we'll stash away the valid buffer
109 sp<MetaData> format = mSource->getFormat(); local
111 bool success = format->findCString(kKeyMIMEType, &mime);
115 success = format->findInt32(kKeySampleRate, &mSampleRate);
119 success = format->findInt32(kKeyChannelCount, &numChannels);
122 if(!format->findInt32(kKeyChannelMask, &channelMask)) {
125 "source format didn't specify channel mask, using (%d) channel order", numChannels);
H A DFragmentedMP4Extractor.cpp53 const sp<MetaData> &format,
161 ALOGV("got null format for track %d", index);
190 const sp<MetaData> &format,
193 : mFormat(format),
188 FragmentedMPEG4Source( bool audio, const sp<MetaData> &format, const sp<FragmentedMP4Parser> &parser, const sp<FragmentedMP4Extractor> &extractor) argument
H A DStagefrightMetadataRetriever.cpp146 sp<MetaData> format = source->getFormat(); local
150 // remove this check and always set the decoder output color format
152 format->setInt32(kKeyColorFormat, OMX_COLOR_FormatYUV420Planar);
157 client->interface(), format, false, source,
172 // Read one output buffer, ignore format change notifications
299 ALOGE("Unable to instantiate color conversion from format 0x%08x to "
541 // If multiple text tracks present, the format will look
/frameworks/av/media/libstagefright/wifi-display/source/
H A DConverter.cpp43 const sp<AMessage> &format,
48 mInputFormat(format),
184 ALOGV("output format is '%s'", mOutputFormat->debugString(0).c_str());
40 Converter( const sp<AMessage> &notify, const sp<ALooper> &codecLooper, const sp<AMessage> &format, bool usePCMAudio) argument

Completed in 1954 milliseconds

12345678910