/frameworks/base/libs/hwui/ |
H A D | LayerRenderer.cpp | 373 GLenum format; local 381 format = GL_ALPHA; 385 format = GL_RGB; 389 format = GL_RGBA; 394 format = GL_RGBA; 420 glTexImage2D(GL_TEXTURE_2D, 0, format, bitmap->width(), bitmap->height(), 421 0, format, type, NULL); 452 glReadPixels(0, 0, bitmap->width(), bitmap->height(), format,
|
H A D | Layer.h | 214 inline void allocateTexture(GLenum format, GLenum storage) { argument 215 glTexImage2D(renderTarget, 0, format, getWidth(), getHeight(), 0, format, storage, NULL);
|
/frameworks/base/media/java/android/mtp/ |
H A D | MtpDevice.java | 132 * 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 D | FilterPort.java | 52 public void setPortFormat(FrameFormat format) { argument 53 mPortFormat = format;
|
H A D | NativeFrame.java | 38 NativeFrame(FrameFormat format, FrameManager frameManager) { argument 39 super(format, frameManager); 40 int capacity = format.getSize();
|
H A D | SerializedFrame.java | 24 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);
|
H A D | Frame.java | 46 Frame(FrameFormat format, FrameManager frameManager) { argument 47 mFormat = format.mutableCopy(); 51 Frame(FrameFormat format, FrameManager frameManager, int bindingType, long bindingId) { argument 52 mFormat = format.mutableCopy(); 172 protected void setFormat(FrameFormat format) { argument 173 mFormat = format.mutableCopy();
|
H A D | FrameFormat.java | 180 FrameFormat format = (FrameFormat)object; 181 return format.mBaseType == mBaseType && 182 format.mTarget == mTarget && 183 format.mBytesPerSample == mBytesPerSample && 184 Arrays.equals(format.mDimensions, mDimensions) && 185 format.mMetaData.equals(mMetaData); 434 boolean isReplaceableBy(FrameFormat format) { argument 435 return mTarget == format.mTarget 436 && getSize() == format.getSize() 437 && Arrays.equals(format [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
H A D | SmsCbHeader.java | 42 * 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 format = FORMAT_ETWS_PRIMARY; 122 format = FORMAT_GSM; 142 format = FORMAT_UMTS; 237 return format == FORMAT_ETWS_PRIMARY; 241 * Return whether this broadcast is in UMTS format. 242 * @return true if this message is in UMTS format; fals [all...] |
/frameworks/native/include/ui/ |
H A D | PixelFormat.h | 38 // 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 D | ISurfaceComposer.cpp | 104 uint32_t* width, uint32_t* height, PixelFormat* format, 119 *format = reply.readInt32(); 102 captureScreen(DisplayID dpy, 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 D | ISurfaceTexture.cpp | 85 uint32_t format, uint32_t usage) { 90 data.writeInt32(format); 205 uint32_t format = data.readInt32(); local 208 int result = dequeueBuffer(&buf, w, h, format, usage); 84 dequeueBuffer(int *buf, uint32_t w, uint32_t h, uint32_t format, uint32_t usage) argument
|
/frameworks/native/libs/ui/ |
H A D | FramebufferNativeWindow.cpp | 53 ANativeWindowBuffer::format = f; member in class:android::NativeBuffer::ANativeWindowBuffer 100 * This does not actually change the framebuffer format. It merely 101 * fakes this format to surfaceflinger so that when it creates 102 * framebuffer surfaces it will use this format. It's really a giant 108 *((uint32_t *)&fbDev->format) = FRAMEBUFFER_FORCE_FORMAT; 114 fbDev->width, fbDev->height, fbDev->format, GRALLOC_USAGE_HW_FB); 120 fbDev->width, fbDev->height, fbDev->format, 280 *value = fb->format;
|
H A D | GraphicBuffer.cpp | 44 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...] |
/frameworks/native/opengl/libagl/ |
H A D | TextureObjectManager.cpp | 153 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 D | hwcRects.cpp | 68 * 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 367 const struct hwcTestGraphicFormat *format; local 374 testPrintE("Error parsing format from: %s", rectStr.c_str()); 377 format = hwcTestGraphicFormatLookup(str.c_str()); 378 if (format == NULL) { 379 testPrintE("Unknown graphic format in: %s", rectStr.c_str()); 382 rect.format [all...] |
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | HWComposer.cpp | 246 " type | handle | hints | flags | tr | blend | format | source crop | frame name \n" 252 int32_t format = -1; local 256 format = buffer->getPixelFormat(); 262 intptr_t(l.handle), l.hints, l.flags, l.transform, l.blending, format,
|
/frameworks/base/core/java/android/text/format/ |
H A D | DateUtils.java | 17 package android.text.format; 156 // The following FORMAT_* symbols are used for specifying the format of 187 // Date and time format strings that are constant and don't need to be 190 * This is not actually the preferred 24-hour date format in all locales. 205 // This table is used to lookup the resource string id of a format string 231 // This table is used to lookup the resource string id of a format string 525 String format = r.getQuantityString(resId, (int) count); 526 return String.format(format, count); 551 * Example output strings for the US date format 716 formatElapsedTime(StringBuilder recycle, String format, long hours, long minutes, long seconds) argument 749 formatElapsedTime(StringBuilder recycle, String format, long minutes, long seconds) argument [all...] |
/frameworks/av/include/media/ |
H A D | AudioTrack.h | 73 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 (channels, 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 D | VideoEditorAudioEncoder.cpp | 46 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/libmedia/ |
H A D | AudioRecord.cpp | 51 audio_format_t format, 55 if (AudioSystem::getInputBufferSize(sampleRate, format, channelCount, &size) 62 ALOGE("Unsupported configuration: sampleRate %d, format %d, channelCount %d", 63 sampleRate, format, channelCount); 70 if (audio_is_linear_pcm(format)) { 71 size /= channelCount * audio_bytes_per_sample(format); 89 audio_format_t format, 100 mStatus = set(inputSource, sampleRate, format, channelMask, 124 audio_format_t format, 151 if (format 48 getMinFrameCount( int* frameCount, uint32_t sampleRate, audio_format_t format, int channelCount) argument 86 AudioRecord( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, uint32_t channelMask, int frameCount, record_flags flags, callback_t cbf, void* user, int notificationFrames, int sessionId) argument 121 set( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, uint32_t channelMask, int frameCount, record_flags flags, callback_t cbf, void* user, int notificationFrames, bool threadCanCallJava, int sessionId) argument 251 audio_format_t AudioRecord::format() const function in class:android::AudioRecord 457 openRecord_l( uint32_t sampleRate, audio_format_t format, uint32_t channelMask, int frameCount, audio_io_handle_t input) argument [all...] |
/frameworks/av/media/libstagefright/ |
H A D | AudioPlayer.cpp | 87 // 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);
|
/frameworks/base/media/java/android/media/ |
H A D | MediaCodec.java | 32 * codec.configure(format, ...); 36 * MediaFormat format = codec.getOutputFormat(); 53 * // Subsequent data will conform to new format. 54 * format = codec.getOutputFormat(); 84 * encoded data according to the format's type. For video types this data 97 * Codec specific data included in the format passed to {@link #configure} 114 * Note that the format of the data submitted after a flush must not change, 115 * flush does not support format discontinuities, 228 * @param format The format o 237 configure( MediaFormat format, Surface surface, MediaCrypto crypto, int flags) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_mtp_MtpDevice.cpp | 222 jint storageID, jint format, jint objectID) 227 MtpObjectHandleList* handles = device->getObjectHandles(storageID, format, objectID); 221 android_mtp_MtpDevice_get_object_handles(JNIEnv *env, jobject thiz, jint storageID, jint format, jint objectID) argument
|
/frameworks/base/telephony/java/android/telephony/ |
H A D | SmsMessage.java | 81 * Indicates a 3GPP format SMS message. 87 * Indicates a 3GPP2 format SMS message. 129 * intent <b>must</b> now pass the new {@code format} String extra from the intent 131 * extra format parameter. This is required in order to correctly decode the PDU on 137 String format = (PHONE_TYPE_CDMA == activePhone) ? FORMAT_3GPP2 : FORMAT_3GPP; 138 return createFromPdu(pdu, format); 142 * Create an SmsMessage from a raw PDU with the specified message format. The 143 * message format is passed in the {@code SMS_RECEIVED_ACTION} as the {@code format} 144 * String extra, and will be either "3gpp" for GSM/UMTS/LTE messages in 3GPP format 151 createFromPdu(byte[] pdu, String format) argument [all...] |