/frameworks/native/include/gui/ |
H A D | CpuConsumer.h | 50 PixelFormat format; member in struct:android::CpuConsumer::LockedBuffer 57 // this is the same as format, except for formats that are compatible with 58 // a flexible format (e.g. HAL_PIXEL_FORMAT_YCbCr_420_888). In the latter 59 // case this contains that flexible format 62 // or compatible format, in which case LockedBuffer::data 89 // of a defaultFormat if no format is specified by producer. Formats are
|
/frameworks/native/include/ui/ |
H A D | ANativeObjectBase.h | 36 uint8_t format; member in struct:egl_native_pixmap_t
|
H A D | GraphicBufferAllocator.h | 65 status_t alloc(uint32_t w, uint32_t h, PixelFormat format, int usage, 78 PixelFormat format; member in struct:android::GraphicBufferAllocator::alloc_rec_t
|
/frameworks/native/libs/gui/ |
H A D | ISurfaceComposerClient.cpp | 55 uint32_t h, PixelFormat format, uint32_t flags, 63 data.writeInt32(format); 110 PixelFormat format = data.readInt32(); local 114 status_t result = createSurface(name, w, h, format, flags, 54 createSurface(const String8& name, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags, sp<IBinder>* handle, sp<IGraphicBufferProducer>* gbp) argument
|
/frameworks/native/libs/ui/ |
H A D | GraphicBufferAllocator.cpp | 69 rec.w, rec.s, rec.h, rec.format, rec.usage); 73 rec.w, rec.s, rec.h, rec.format, rec.usage); 93 status_t GraphicBufferAllocator::alloc(uint32_t w, uint32_t h, PixelFormat format, argument 105 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride); 108 w, h, format, usage, err, strerror(-err)); 113 int bpp = bytesPerPixel(format); 115 // probably a HAL custom format. in any case, we don't know 123 rec.format = format;
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/pbap/ |
H A D | BluetoothPbapRequestPullPhoneBook.java | 42 public BluetoothPbapRequestPullPhoneBook(String pbName, long filter, byte format, argument 59 /* make sure format is one of allowed values */ 60 if (format != BluetoothPbapClient.VCARD_TYPE_21 61 && format != BluetoothPbapClient.VCARD_TYPE_30) { 62 format = BluetoothPbapClient.VCARD_TYPE_21; 69 oap.add(OAP_TAGID_FORMAT, format); 87 mFormat = format;
|
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
H A D | BallsView.java | 52 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { argument 53 super.surfaceChanged(holder, format, w, h);
|
/frameworks/base/core/java/android/text/format/ |
H A D | DateFormat.java | 17 package android.text.format; 41 * <p>Most callers should avoid supplying their own format strings to this 42 * class' {@code format} methods and rely on the correctly localized ones 46 * of format strings, see {@link java.text.SimpleDateFormat}. 51 * <p>The {@code format} methods in this class implement a subset of Unicode 53 * The subset currently supported by this class includes the following format characters: 60 * Note that the non-{@code format} methods in this class are implemented by 165 * Returns true if user preference is set to 24-hour format. 167 * @return true if 24 hour time format is selected, false otherwise. 174 * Returns true if user preference with the given user handle is set to 24-hour format 397 public static CharSequence format(CharSequence inFormat, long inTimeInMillis) { method in class:DateFormat 408 public static CharSequence format(CharSequence inFormat, Date inDate) { method in class:DateFormat 493 public static CharSequence format(CharSequence inFormat, Calendar inDate) { method in class:DateFormat [all...] |
H A D | TimeFormatter.java | 21 package android.text.format; 90 public String format(String pattern, ZoneInfo.WallTime wallTime, ZoneInfo zoneInfo) { method in class:TimeFormatter 198 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), 213 numberFormatter.format(getFormat(modifier, "%2d", "%2d", "%d", "%02d"), 220 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), 225 numberFormatter.format(getFormat(modifier, "%02d", "%2d", "%d", "%02d"), hour); 229 numberFormatter.format(getFormat(modifier, "%03d", "%3d", "%d", "%03d"), 233 numberFormatter.format(getFormat(modifier, "%2d", "%2d", "%d", "%02d"), 238 numberFormatter.format(getFormat(modifier, "%2d", "%2d", "%d", "%02d"), n2); 241 numberFormatter.format(getForma [all...] |
/frameworks/av/include/media/ |
H A D | AudioPolicy.h | 65 AudioMix(Vector<AttributeMatchCriterion> criteria, uint32_t mixType, audio_config_t format, argument 67 mCriteria(criteria), mMixType(mixType), mFormat(format),
|
/frameworks/av/include/media/nbaio/ |
H A D | NBAIO.h | 38 NEGOTIATE = 0x80000010, // Must (re-)negotiate format. For negotiate() only, the offeree 47 // Negotiation of format is based on the data provider and data sink, or the data consumer and 51 // attributes, rather than a struct with separate fields for format, sample rate, channel count, 68 size_t Format_frameSize(const NBAIO_Format& format); 72 NBAIO_Format Format_from_SR_C(unsigned sampleRate, unsigned channelCount, audio_format_t format); 75 unsigned Format_sampleRate(const NBAIO_Format& format); 78 unsigned Format_channelCount(const NBAIO_Format& format); 86 bool Format_isValid(const NBAIO_Format& format); 124 // Return the current negotiated format, or Format_Invalid if negotiation has not been done, 126 virtual NBAIO_Format format() cons function in class:android::NBAIO_Port 129 NBAIO_Port(const NBAIO_Format& format) argument [all...] |
/frameworks/av/media/libnbaio/ |
H A D | NBAIO.cpp | 25 size_t Format_frameSize(const NBAIO_Format& format) argument 27 return format.mFrameSize; 32 unsigned Format_sampleRate(const NBAIO_Format& format) argument 34 if (!Format_isValid(format)) { 37 return format.mSampleRate; 40 unsigned Format_channelCount(const NBAIO_Format& format) argument 42 if (!Format_isValid(format)) { 45 return format.mChannelCount; 49 audio_format_t format) 51 if (sampleRate == 0 || channelCount == 0 || !audio_is_valid_format(format)) { 48 Format_from_SR_C(unsigned sampleRate, unsigned channelCount, audio_format_t format) argument 159 Format_isValid(const NBAIO_Format& format) argument [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | ARTPSession.cpp | 67 ALOGE("Invalid media format."); 73 ALOGE("Unsupported format."); 199 AString format; local 200 mDesc->getFormat(index, &format); 202 ssize_t i = format.find(" "); 209 while (isdigit(format.c_str()[j])) { 212 if (format.c_str()[j] != ' ') { 216 AString portString(format, i, j - i);
|
/frameworks/av/media/mtp/ |
H A D | MtpServer.h | 82 MtpObjectFormat format, int fd) 83 : mHandle(handle), mPath(path), mSize(size), mFormat(format), mFD(fd) { 115 uint64_t size, MtpObjectFormat format, int fd); 81 ObjectEdit(MtpObjectHandle handle, const char* path, uint64_t size, MtpObjectFormat format, int fd) argument
|
/frameworks/av/services/audioflinger/ |
H A D | FastMixer.h | 65 // mSinkBuffer audio format is stored in format.mFormat. 66 void* mSinkBuffer; // used for mixer output format translation 67 // if sink format is different than mixer output. 73 audio_format_t mMixerBufferFormat; // mixer output format: AUDIO_FORMAT_PCM_(16_BIT|FLOAT). 76 NBAIO_Format format; member in class:android::FastMixer
|
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3IOStreamBase.cpp | 33 uint32_t width, uint32_t height, size_t maxSize, int format) : 35 width, height, maxSize, format), 44 if (maxSize > 0 && format != HAL_PIXEL_FORMAT_BLOB) { 45 ALOGE("%s: Bad format for size-only stream: %d", __FUNCTION__, 46 format); 70 lines.appendFormat(" Dims: %d x %d, format 0x%x\n", 72 camera3_stream::format); 32 Camera3IOStreamBase(int id, camera3_stream_type_t type, uint32_t width, uint32_t height, size_t maxSize, int format) argument
|
H A D | Camera3InputStream.cpp | 30 uint32_t width, uint32_t height, int format) : 32 /*maxSize*/0, format) { 34 if (format == HAL_PIXEL_FORMAT_BLOB) { 35 ALOGE("%s: Bad format, BLOB not supported", __FUNCTION__); 200 assert(camera3_stream::format != HAL_PIXEL_FORMAT_BLOB); 233 mConsumer->setName(String8::format("Camera3-InputStream-%d", mId)); 243 res = mConsumer->setDefaultBufferFormat(camera3_stream::format); 245 ALOGE("%s: Stream %d: Could not set buffer format %d", 246 __FUNCTION__, mId, camera3_stream::format); 29 Camera3InputStream(int id, uint32_t width, uint32_t height, int format) argument
|
/frameworks/av/tools/resampler_tools/ |
H A D | fir.cpp | 81 " -f output format, can be fixed-point or floating-point (fixed)\n" 100 int format = 0; local 189 format = 0; 192 format = 0; 196 format = 1; 241 if (!format) { 245 printf("static %s resampleFIR[] = {", !format ? "int32_t" : "float"); 260 if (!format) { 283 if (!format) {
|
/frameworks/base/core/java/android/view/ |
H A D | SurfaceHolder.java | 24 * 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
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
H A D | TimeTest.java | 17 package android.text.format; 21 import android.text.format.Time; 193 String expectedTime = String.format("%d-%02d-%02d %02d:%02d", 195 String actualTime = String.format("%d-%02d-%02d %02d:%02d", 211 String expectedTime = String.format("%d-%02d-%02d %02d:%02d", 213 String actualTime = String.format("%d-%02d-%02d %02d:%02d", 234 String expectedTime = String.format("%d-%02d-%02d %02d:%02d isDst: %d", 237 String actualTime = String.format("%d-%02d-%02d %02d:%02d isDst: %d", 256 String expectedTime = String.format("%d-%02d-%02d %02d:%02d isDst: %d", 259 String actualTime = String.format(" [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | YuvImage.java | 39 * The YUV format as defined in {@link ImageFormat}. 70 * @param format The YUV data format as defined in {@link ImageFormat}. 75 * padding and derives the row bytes by format and width itself. 76 * @throws IllegalArgumentException if format is not support; width or height <= 0; or yuv is 79 public YuvImage(byte[] yuv, int format, int width, int height, int[] strides) { argument 80 if (format != ImageFormat.NV21 && 81 format != ImageFormat.YUY2) { 97 mStrides = calculateStrides(width, format); 103 mFormat = format; 199 calculateStrides(int width, int format) argument 237 nativeCompressToJpeg(byte[] oriYuv, int format, int width, int height, int[] offsets, int[] strides, int quality, OutputStream stream, byte[] tempStorage) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | PixelBuffer.h | 59 * Creates a new PixelBuffer object with the specified format and 66 static PixelBuffer* create(GLenum format, uint32_t width, uint32_t height, 73 * Returns the format of this render buffer. 162 * Returns the number of bytes per pixel in the specified format. 168 static uint32_t formatSize(GLenum format) { argument 169 switch (format) { 179 * Returns the alpha channel offset in the specified format. 185 static uint32_t formatAlphaOffset(GLenum format) { argument 186 switch (format) { 193 ALOGE("unsupported format 202 PixelBuffer(GLenum format, uint32_t width, uint32_t height) argument [all...] |
H A D | RenderBufferCache.cpp | 110 RenderBuffer* RenderBufferCache::get(GLenum format, const uint32_t width, const uint32_t height) { argument 113 RenderBufferEntry entry(format, width, height); 124 RenderBuffer::formatName(format), width, height); 126 buffer = new RenderBuffer(format, width, height); 129 RenderBuffer::formatName(format), width, height);
|
/frameworks/base/media/java/android/media/ |
H A D | AudioPort.java | 27 * - audio format (PCM 16bit, PCM 24bit...) 116 * Get the list of supported audio format configurations 118 * Empty array if format is not relevant for this audio port 147 * @param format The desired audio format. AudioFormat.ENCODING_DEFAULT if no change 151 public AudioPortConfig buildConfig(int samplingRate, int channelMask, int format, argument 153 return new AudioPortConfig(this, samplingRate, channelMask, format, gain);
|
H A D | MediaCodecList.java | 29 * find a codec supporting a given format and query the capabilities 186 * @param format A decoder media format with optional feature directives. 187 * @throws IllegalArgumentException if format is not a valid media format. 188 * @throws NullPointerException if format is null. 189 * @return the name of a decoder that supports the given format and feature 192 public final String findDecoderForFormat(MediaFormat format) { argument 193 return findCodecForFormat(false /* encoder */, format); 200 * @param format A 206 findEncoderForFormat(MediaFormat format) argument 210 findCodecForFormat(boolean encoder, MediaFormat format) argument [all...] |