/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | StreamConfigurationDuration.java | 29 * Immutable class to store a time duration for any given format/size combination. 42 * @param format image format 49 * or if the format was not user-defined in ImageFormat/PixelFormat 56 final int format, final int width, final int height, final long durationNs) { 57 mFormat = checkArgumentFormatInternal(format); 64 * Get the internal image {@code format} in this stream configuration duration 66 * @return an integer format 55 StreamConfigurationDuration( final int format, final int width, final int height, final long durationNs) argument
|
/frameworks/base/core/java/android/text/format/ |
H A D | Formatter.java | 17 package android.text.format; 130 // Note we calculate the rounded long by ourselves, but still let String.format() 131 // compute the rounded value. String.format("%f", 0.1) might not return "0.1" due to 162 final String roundedString = String.format(roundFormat, result); 176 * Returns a string in the canonical IPv4 format ###.###.###.### from a packed integer 178 * format (LSB first). That is, 0x01020304 will return "4.3.2.1". 194 * Returns elapsed time for the given millis, in the following format: 255 * Returns elapsed time for the given millis, in the following format:
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | ImageFormat.java | 28 * RGB format used for pictures encoded as RGB_565. See 34 * <p>Android YUV format.</p> 36 * <p>This format is exposed to software decoders and applications.</p> 38 * <p>YV12 is a 4:2:0 YCrCb planar format comprised of a WxH Y plane followed 41 * <p>This format assumes 57 * <p>For the {@link android.hardware.camera2} API, the {@link #YUV_420_888} format is 60 * <p>For the older camera API, this format is guaranteed to be supported for 79 * <p>Android Y8 format.</p> 81 * <p>Y8 is a YUV planar format comprised of a WxH Y plane only, with each pixel 83 * format 699 getBitsPerPixel(int format) argument 748 isPublicFormat(int format) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | PixelBuffer.cpp | 36 CpuPixelBuffer(GLenum format, uint32_t width, uint32_t height); 51 CpuPixelBuffer::CpuPixelBuffer(GLenum format, uint32_t width, uint32_t height) argument 52 : PixelBuffer(format, width, height) 53 , mBuffer(new uint8_t[width * height * formatSize(format)]) { 82 GpuPixelBuffer(GLenum format, uint32_t width, uint32_t height); 100 GpuPixelBuffer::GpuPixelBuffer(GLenum format, argument 102 : PixelBuffer(format, width, height) 162 PixelBuffer* PixelBuffer::create(GLenum format, argument 165 return new GpuPixelBuffer(format, width, height); 167 return new CpuPixelBuffer(format, widt [all...] |
H A D | Readback.cpp | 59 GLenum format; local 64 format = GL_ALPHA; 68 format = GL_RGB; 72 format = GL_RGBA; 77 format = GL_RGBA; 85 // need explicit format control we can't currently. 96 glTexImage2D(GL_TEXTURE_2D, 0, format, destWidth, destHeight, 97 0, format, type, nullptr); 178 glReadPixels(0, 0, bitmap->width(), bitmap->height(), format,
|
H A D | RenderBuffer.h | 32 * Creates a new render buffer in the specified format and dimensions. 33 * The format must be one of the formats allowed by glRenderbufferStorage(). 35 RenderBuffer(GLenum format, uint32_t width, uint32_t height): argument 36 mFormat(format), mWidth(width), mHeight(height), mAllocated(false) { 55 * Returns the format of this render buffer. 124 * Returns the number of bits per component in the specified format. 125 * The format must be one of the formats allowed by glRenderbufferStorage(). 127 static uint32_t formatSize(GLenum format) { argument 128 switch (format) { 145 * Indicates whether the specified format represent 147 isStencilBuffer(GLenum format) argument 160 formatName(GLenum format) argument [all...] |
H A D | RenderBufferCache.cpp | 97 RenderBuffer* RenderBufferCache::get(GLenum format, const uint32_t width, const uint32_t height) { argument 100 RenderBufferEntry entry(format, width, height); 111 RenderBuffer::formatName(format), width, height); 113 buffer = new RenderBuffer(format, width, height); 116 RenderBuffer::formatName(format), width, height);
|
/frameworks/base/media/java/android/media/ |
H A D | AudioDevicePort.java | 58 * Get the device address. Address format varies with the device type. 76 public AudioDevicePortConfig buildConfig(int samplingRate, int channelMask, int format, argument 78 return new AudioDevicePortConfig(this, samplingRate, channelMask, format, gain);
|
H A D | ImageUtils.java | 43 public static int getNumPlanesForFormat(int format) { argument 44 switch (format) { 70 String.format("Invalid format specified %d", format)); 79 * Only support the copy between two non-{@link ImageFormat#PRIVATE PRIVATE} format 80 * images with same properties (format, size, etc.). The data from the 89 * have different format, or one of the images is not copyable. 96 throw new IllegalArgumentException("Src and dst images should have the same format"); 100 throw new IllegalArgumentException("PRIVATE format image 183 getEstimatedNativeAllocBytes(int width, int height, int format, int numImages) argument [all...] |
H A D | SRTRenderer.java | 39 public boolean supports(MediaFormat format) { argument 40 if (format.containsKey(MediaFormat.KEY_MIME)) { 41 if (!format.getString(MediaFormat.KEY_MIME) 45 return mRender == (format.getInteger(MediaFormat.KEY_IS_TIMED_TEXT, 0) == 0); 51 public SubtitleTrack createTrack(MediaFormat format) { argument 57 return new SRTTrack(mRenderingWidget, format); 59 return new SRTTrack(mEventHandler, format); 73 SRTTrack(WebVttRenderingWidget renderingWidget, MediaFormat format) { argument 74 super(renderingWidget, format); 78 SRTTrack(Handler eventHandler, MediaFormat format) { argument [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | CachedFrameManager.java | 44 public Frame newFrame(FrameFormat format) { argument 45 Frame result = findAvailableFrame(format, Frame.NO_BINDING, 0); 47 result = super.newFrame(format); 54 public Frame newBoundFrame(FrameFormat format, int bindingType, long bindingId) { argument 55 Frame result = findAvailableFrame(format, bindingType, bindingId); 57 result = super.newBoundFrame(format, bindingType, bindingId); 130 private Frame findAvailableFrame(FrameFormat format, int bindingType, long bindingId) { argument 131 // Look for a frame that is compatible with the requested format 135 // Check that format is compatible 136 if (frame.getFormat().isReplaceableBy(format)) { [all...] |
H A D | FrameManager.java | 31 public abstract Frame newFrame(FrameFormat format); argument 33 public abstract Frame newBoundFrame(FrameFormat format, int bindingType, long bindingId); argument
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | ImageStitcher.java | 27 import android.filterfw.format.ImageFormat; 71 private FrameFormat calcOutputFormatForInput(FrameFormat format) { argument 72 MutableFrameFormat outputFormat = format.mutableCopy(); 74 mInputWidth = format.getWidth(); 75 mInputHeight = format.getHeight(); 91 FrameFormat format = input.getFormat(); 95 mOutputFrame = context.getFrameManager().newFrame(calcOutputFormatForInput(format)); 97 if ((format.getWidth() != mInputWidth) || 98 (format.getHeight() != mInputHeight)) { 99 // CHECK input format her [all...] |
H A D | ResizeFilter.java | 29 import android.filterfw.format.ImageFormat; 68 protected void createProgram(FilterContext context, FrameFormat format) { argument 69 if (mLastFormat != null && mLastFormat.getTarget() == format.getTarget()) return; 70 mLastFormat = format; 71 switch (format.getTarget()) {
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
H A D | Camera2SurfaceViewActivity.java | 60 String.format( 102 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
|
/frameworks/base/native/android/ |
H A D | native_window.cpp | 62 int32_t height, int32_t format) { 63 int32_t err = native_window_set_buffers_format(window, format); 61 ANativeWindow_setBuffersGeometry(ANativeWindow* window, int32_t width, int32_t height, int32_t format) argument
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLUtils.java | 36 * return the internal format as defined by OpenGL ES of the supplied bitmap. 38 * @return the internal format of the bitmap. 56 * is one. If the bitmap is stored in a compressed format, it may not have 107 throw new IllegalArgumentException("invalid Bitmap format"); 133 throw new IllegalArgumentException("invalid Bitmap format"); 155 throw new IllegalArgumentException("invalid Bitmap format"); 191 throw new IllegalArgumentException("invalid Bitmap format"); 207 Bitmap bitmap, int format, int type) { 214 if (native_texSubImage2D(target, level, xoffset, yoffset, bitmap, format, type)!=0) { 215 throw new IllegalArgumentException("invalid Bitmap format"); 206 texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument 268 native_texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | RSSurfaceView.java | 98 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { argument
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
H A D | AudioTrackDecoder.java | 45 public AudioTrackDecoder(int trackIndex, MediaFormat format, Listener listener) { argument 46 super(trackIndex, format, listener); 48 if (!DecoderUtil.isAudioFormat(format)) { 56 mAudioSampleRate = format.getInteger(MediaFormat.KEY_SAMPLE_RATE); 57 mAudioChannelCount = format.getInteger(MediaFormat.KEY_CHANNEL_COUNT); 61 protected MediaCodec initMediaCodec(MediaFormat format) { argument 65 format.getString(MediaFormat.KEY_MIME)); 69 + format.getString(MediaFormat.KEY_MIME), e); 71 mediaCodec.configure(format, null, null, 0);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | HardwareCanvasSurfaceViewActivity.java | 96 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
|
H A D | MovingSurfaceViewActivity.java | 107 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
|
/frameworks/compile/mclinker/lib/LD/ |
H A D | Diagnostic.cpp | 29 // format - format this diagnostic into string, subsituting the formal 31 void Diagnostic::format(std::string& pOutStr) const { function in class:mcld::Diagnostic 35 format(desc.begin(), desc.end(), pOutStr); 68 // format - format the given formal string, subsituting the formal 70 void Diagnostic::format(const char* pBegin, function in class:mcld::Diagnostic 105 // DIAG's format error
|
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/adapter/ |
H A D | InstanceAdapter.java | 24 private final String format; field in class:InstanceAdapter 26 public InstanceAdapter(String format) { argument 27 this.format = format; 32 view.setText(String.format(format, text, "foo", "bar", "baz")); 37 view.setText(String.format(format, text, text2, "foo", "bar")); 42 view.setText(String.format(format, oldTex [all...] |
/frameworks/native/include/gui/ |
H A D | CpuConsumer.h | 50 PixelFormat format; member in struct:android::CpuConsumer::LockedBuffer 58 // this is the same as format, except for formats that are compatible with 59 // a flexible format (e.g. HAL_PIXEL_FORMAT_YCbCr_420_888). In the latter 60 // case this contains that flexible format 63 // or compatible format, in which case LockedBuffer::data 75 format(PIXEL_FORMAT_NONE),
|
/frameworks/native/include/ui/ |
H A D | ANativeObjectBase.h | 36 uint8_t format; member in struct:egl_native_pixmap_t
|