/frameworks/av/camera/ndk/impl/ |
H A D | ACameraMetadata.cpp | 102 int32_t format = entry.data.i32[i + STREAM_FORMAT_OFFSET]; local 110 // Translate HAL formats to NDK format 111 if (format == HAL_PIXEL_FORMAT_BLOB) { 112 format = AIMAGE_FORMAT_JPEG; 114 filteredStreamConfigs.push_back(format); 127 int32_t format = entry.data.i32[i + STREAM_FORMAT_OFFSET]; local 135 // Translate HAL formats to NDK format 136 if (format == HAL_PIXEL_FORMAT_BLOB) { 137 format = AIMAGE_FORMAT_DEPTH_POINT_CLOUD; 138 } else if (format [all...] |
/frameworks/base/media/java/android/media/ |
H A D | ImageReader.java | 76 * Create a new reader for images of the desired size and format. 89 * If the {@code format} is {@link ImageFormat#PRIVATE PRIVATE}, the created 96 * PRIVATE} format images. The application can check if an existing reader's 97 * format by calling {@link #getImageFormat()}. 100 * {@link ImageFormat#PRIVATE PRIVATE} format {@link ImageReader 102 * data is not necessary, compared to ImageReaders using other format such 110 * @param format The format of the Image that this reader will produce. This 123 public static ImageReader newInstance(int width, int height, int format, int maxImages) { argument 124 return new ImageReader(width, height, format, maxImage 130 ImageReader(int width, int height, int format, int maxImages) argument 693 SurfaceImage(int format) argument [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
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...] |
H A D | GLFrame.java | 70 GLFrame(FrameFormat format, FrameManager frameManager) { argument 71 super(format, frameManager); 74 GLFrame(FrameFormat format, FrameManager frameManager, int bindingType, long bindingId) { argument 75 super(format, frameManager, bindingType, bindingId); 79 FrameFormat format = getFormat(); 82 // Check that we have a valid format 83 if (format.getBytesPerSample() != 4) { 85 } else if (format.getDimensionCount() != 2) {
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
H A D | Utils.java | 74 sb.append(String.format("%02x", (mac >>> n) & Constants.BYTE_MASK)); 123 sb.append(String.format("%06x", oi)); 125 sb.append(String.format("%010x", oi)); 139 sb.append("\\u").append(String.format("%04x", (int)ch)); 158 sb.append(String.format("%02x", b & BYTE_MASK)); 166 sb.append(String.format("%02x", o & BYTE_MASK)); 236 sbx.append(String.format("%02x ", dup.get() & BYTE_MASK)); 241 sbx.append(String.format("%c", toAscii(dup.get() & BYTE_MASK))); 259 return String.format("%s%d:%02d:%02d.%03d", millis < 0 ? "-" : "", tmp, m, s, ms); 268 return String.format(" [all...] |
/frameworks/av/services/audioflinger/ |
H A D | BufferProviders.cpp | 22 #include <audio_utils/format.h> 138 audio_channel_mask_t outputChannelMask, audio_format_t format, 141 audio_bytes_per_sample(format) * audio_channel_count_from_out_mask(inputChannelMask), 142 audio_bytes_per_sample(format) * audio_channel_count_from_out_mask(outputChannelMask), 146 this, inputChannelMask, outputChannelMask, format, 160 mDownmixConfig.inputCfg.format = format; 161 mDownmixConfig.outputCfg.format = format; 278 audio_channel_mask_t outputChannelMask, audio_format_t format, 136 DownmixerBufferProvider( audio_channel_mask_t inputChannelMask, audio_channel_mask_t outputChannelMask, audio_format_t format, uint32_t sampleRate, int32_t sessionId, size_t bufferFrameCount) argument 277 RemixBufferProvider(audio_channel_mask_t inputChannelMask, audio_channel_mask_t outputChannelMask, audio_format_t format, size_t bufferFrameCount) argument 324 TimestretchBufferProvider(int32_t channelCount, audio_format_t format, uint32_t sampleRate, const AudioPlaybackRate &playbackRate) argument [all...] |
/frameworks/base/core/java/android/text/format/ |
H A D | Time.java | 17 package android.text.format; 349 * Print the current value given the format string provided. See man 352 * @param format a string containing the desired format. 355 public String format(String format) { argument 357 return calculator.format(format); 361 * Return the current time in YYYYMMDDTHHMMSS<tz> format 373 * Parses a date-time string in either the RFC 2445 format o 1095 format(String format) argument [all...] |
/frameworks/av/camera/ |
H A D | CameraParameters.cpp | 30 const char CameraParameters::KEY_PREVIEW_FORMAT[] = "preview-format"; 31 const char CameraParameters::KEY_SUPPORTED_PREVIEW_FORMATS[] = "preview-format-values"; 38 const char CameraParameters::KEY_PICTURE_FORMAT[] = "picture-format"; 39 const char CameraParameters::KEY_SUPPORTED_PICTURE_FORMATS[] = "picture-format-values"; 84 const char CameraParameters::KEY_VIDEO_FRAME_FORMAT[] = "video-frame-format"; 416 void CameraParameters::setPreviewFormat(const char *format) argument 418 set(KEY_PREVIEW_FORMAT, format); 448 void CameraParameters::setPictureFormat(const char *format) argument 450 set(KEY_PICTURE_FORMAT, format); 512 int CameraParameters::previewFormatToEnum(const char* format) { argument [all...] |
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/ |
H A D | SoundTriggerTestService.java | 526 AudioFormat format = mEvent.getCaptureAudioFormat(); 527 if (format == null) { 528 postErrorToast("No audio format in recognition event."); 543 switch (format.getEncoding()) { 557 throw new RuntimeException("Unhandled audio format in event"); 560 int bytesRequired = format.getSampleRate() * format.getChannelCount() * 563 format.getSampleRate(), format.getChannelMask(), format [all...] |
/frameworks/native/opengl/libagl/ |
H A D | texture.cpp | 191 static int32_t convertGLPixelFormat(GLint format, GLenum type) argument 195 switch (format) { 215 static GLenum validFormatType(ogles_context_t* c, GLenum format, GLenum type) argument 218 if (format<GL_ALPHA || format>GL_LUMINANCE_ALPHA) { 225 if (type == GL_UNSIGNED_SHORT_5_6_5 && format != GL_RGB) { 229 type == GL_UNSIGNED_SHORT_5_5_5_1) && format != GL_RGBA) { 269 if ((dst.format == src.format) && 278 const GGLFormat& pixelFormat(c->rasterizer.formats[src.format]); 354 createTextureSurface(ogles_context_t* c, GGLSurface** outSurface, int32_t* outSize, GLint level, GLenum format, GLenum type, GLsizei width, GLsizei height, GLenum compressedFormat = 0) argument 401 dataSizePalette4(int numLevels, int width, int height, int format) argument 444 decodePalette4(const GLvoid *data, int level, int width, int height, void *surface, int stride, int format) argument 1066 GLenum format; local [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | StreamingSource.cpp | 224 sp<AMessage> format = new AMessage; local 226 format->setInt32("err", -EWOULDBLOCK); 227 return format; 231 status_t err = convertMetaDataToMessage(meta, &format); 232 if (err != OK) { // format may have been cleared on error 233 format = new AMessage; 234 format->setInt32("err", err); 236 return format;
|
H A D | NuPlayerDecoder.h | 44 virtual void onConfigure(const sp<AMessage> &format); 115 void handleOutputFormatChange(const sp<AMessage> &format); 128 void rememberCodecSpecificData(const sp<AMessage> &format);
|
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3InputStream.cpp | 31 uint32_t width, uint32_t height, int format) : 33 format, HAL_DATASPACE_UNKNOWN, CAMERA3_STREAM_ROTATION_0) { 35 if (format == HAL_PIXEL_FORMAT_BLOB) { 36 ALOGE("%s: Bad format, BLOB not supported", __FUNCTION__); 219 assert(camera3_stream::format != HAL_PIXEL_FORMAT_BLOB); 259 mConsumer->setName(String8::format("Camera3-InputStream-%d", mId)); 271 res = mConsumer->setDefaultBufferFormat(camera3_stream::format); 273 ALOGE("%s: Stream %d: Could not set buffer format %d", 274 __FUNCTION__, mId, camera3_stream::format); 30 Camera3InputStream(int id, uint32_t width, uint32_t height, int format) argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | Clock.java | 33 import android.text.format.DateFormat; 162 setContentDescription(mContentDescriptionFormat.format(mCalendar.getTime())); 208 String format = mShowSeconds 211 if (!format.equals(mClockFormatString)) { 212 mContentDescriptionFormat = new SimpleDateFormat(format); 214 * Search for an unquoted "a" in the format string, so we can 221 for (int i = 0; i < format.length(); i++) { 222 char c = format.charAt(i); 236 while (a > 0 && Character.isWhitespace(format.charAt(a-1))) { 239 format [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | Client.cpp | 108 uint32_t w, uint32_t h, PixelFormat format, uint32_t flags, 125 PixelFormat format; member in class:android::MessageCreateLayer 130 uint32_t w, uint32_t h, PixelFormat format, uint32_t flags, 135 name(name), w(w), h(h), format(format), flags(flags) { 139 result = flinger->createLayer(name, client, w, h, format, flags, 146 name, this, w, h, format, flags, handle, gbp); 106 createSurface( const String8& name, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags, sp<IBinder>* handle, sp<IGraphicBufferProducer>* gbp) argument 128 MessageCreateLayer(SurfaceFlinger* flinger, const String8& name, Client* client, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags, sp<IBinder>* handle, sp<IGraphicBufferProducer>* gbp) argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | ValueParser.java | 232 int format = rawValue[valueIndex + 2] & 0xff; 235 int alignValue = format & 0x03; 238 int sizeValue = (format >> 2) & 0x03; 245 boolean bold = (format & 0x10) != 0; 246 boolean italic = (format & 0x20) != 0; 247 boolean underlined = (format & 0x40) != 0; 248 boolean strikeThrough = (format & 0x80) != 0;
|
/frameworks/rs/cpp/ |
H A D | Type.cpp | 159 void Type::Builder::setYuvFormat(RsYuvFormat format) { argument 160 if (format != RS_YUV_NONE && !(mElement->isCompatible(Element::YUV(mRS)))) { 165 if (format != RS_YUV_NONE && 166 format != RS_YUV_YV12 && 167 format != RS_YUV_NV21 && 168 format != RS_YUV_420_888) { 169 ALOGE("Invalid YUV format."); 172 mYuvFormat = format;
|
/frameworks/av/media/libstagefright/ |
H A D | SimpleDecodingSource.cpp | 45 sp<AMessage> format = new AMessage; local 46 if (convertMetaDataToMessage(source->getFormat(), &format) != OK) { 72 status_t err = codec->configure(format, surface, NULL /* crypto */, 0 /* flags */); 74 err = codec->getOutputFormat(&format); 77 return new SimpleDecodingSource(codec, source, looper, surface != NULL, format); 93 bool usingSurface, const sp<AMessage> &format) 98 mProtectedState(format) { 164 SimpleDecodingSource::ProtectedState::ProtectedState(const sp<AMessage> &format) argument 166 mFormat(format), 91 SimpleDecodingSource( const sp<MediaCodec> &codec, const sp<IMediaSource> &source, const sp<ALooper> &looper, bool usingSurface, const sp<AMessage> &format) argument
|
H A D | Utils.cpp | 145 static bool isHdr(const sp<AMessage> &format) { argument 148 // in the format. 150 if (format->findInt32("android._is-hdr", &isHdr)) { 155 if (format->contains("hdr-static-info") && !format->contains("color-transfer")) { 160 if (format->findInt32("color-transfer", &transfer)) { 167 static void parseAacProfileFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) { argument 194 format->setInt32("profile", profile); 198 static void parseAvcProfileLevelFromAvcc(const uint8_t *ptr, size_t size, sp<AMessage> &format) { argument 240 format 251 parseH263ProfileLevelFromD263(const uint8_t *ptr, size_t size, sp<AMessage> &format) argument 293 parseHevcProfileLevelFromHvcc(const uint8_t *ptr, size_t size, sp<AMessage> &format) argument 360 parseMpeg2ProfileLevelFromHeader( const uint8_t *data, size_t size, sp<AMessage> &format) argument 413 parseMpeg2ProfileLevelFromEsds(ESDS &esds, sp<AMessage> &format) argument 433 parseMpeg4ProfileLevelFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) argument 524 parseVp9ProfileLevelFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) argument 595 convertMetaDataToMessage( const sp<MetaData> &meta, sp<AMessage> *format) argument 1497 audio_format_t format; member in struct:android::mime_conv_t 1511 mapMimeToAudioFormat( audio_format_t& format, const char* mime ) argument 1527 audio_format_t format; member in struct:android::aac_format_conv_t 1544 mapAACProfileToAudioFormat( audio_format_t& format, uint64_t eAacProfile) argument [all...] |
/frameworks/av/media/libnbaio/ |
H A D | AudioBufferProviderSource.cpp | 27 const NBAIO_Format& format) : 28 NBAIO_Source(format), mProvider(provider), mConsumed(0) 31 ALOG_ASSERT(Format_isValid(format)); 26 AudioBufferProviderSource(AudioBufferProvider *provider, const NBAIO_Format& format) argument
|
/frameworks/av/media/mtp/ |
H A D | MtpDevice.h | 95 MtpObjectHandleList* getObjectHandles(MtpStorageID storageID, MtpObjectFormat format, 105 MtpObjectPropertyList* getObjectPropsSupported(MtpObjectFormat format); 108 MtpProperty* getObjectPropDesc(MtpObjectProperty code, MtpObjectFormat format);
|
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/media/ndk/ |
H A D | NdkImageReaderPriv.h | 52 static bool isSupportedFormat(int32_t format); 53 static int getNumPlanesForFormat(int32_t format); 55 AImageReader(int32_t width, int32_t height, int32_t format, int32_t maxImages);
|
/frameworks/base/core/java/android/webkit/ |
H A D | DateSorter.java | 77 String format = resources.getQuantityString(resId, NUM_DAYS_AGO); 78 mLabels[2] = String.format(format, NUM_DAYS_AGO);
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | BitmapOverlayFilter.java | 26 import android.filterfw.format.ImageFormat; 127 FrameFormat format = ImageFormat.create(mBitmap.getWidth(), 132 Frame frame = context.getFrameManager().newFrame(format);
|