/frameworks/base/core/java/android/util/ |
H A D | Size.java | 22 * Immutable class for describing width and height dimensions in pixels. 28 * @param width The width of the size, in pixels 31 public Size(int width, int height) { argument 32 mWidth = width; 37 * Get the width of the size (in pixels). 38 * @return width 98 * the width and height.</p> 104 * "<i>width</i>{@code x}<i>height</i>" or 105 * "<i>width</ [all...] |
H A D | SizeF.java | 23 * Immutable class for describing width and height dimensions in some arbitrary 33 * <p>Both the {@code width} and the {@code height} must be a finite number. 36 * @param width The width of the size 40 * if either {@code width} or {@code height} was not finite. 42 public SizeF(final float width, final float height) { argument 43 mWidth = checkArgumentFinite(width, "width"); 48 * Get the width of the size (as an arbitrary unit). 49 * @return width [all...] |
/frameworks/base/media/mca/effect/java/android/media/effect/ |
H A D | FilterEffect.java | 85 protected Frame frameFromTexture(int texId, int width, int height) { argument 87 FrameFormat format = ImageFormat.create(width, height,
|
/frameworks/base/native/graphics/jni/ |
H A D | bitmap.cpp | 32 info->width = bm->width();
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLES20Canvas.java | 346 public void setSize(int width, int height) { argument 347 mWidth = width; 352 Matrix.orthoM(mProjectionMatrix, 0, 0, width, 0, height, -1, 1); 354 mScreenWidth = width; 486 public void drawRect(float x, float y, float width, float height, GLPaint paint) { argument 487 draw(GLES20.GL_LINE_LOOP, OFFSET_DRAW_RECT, COUNT_RECT_VERTEX, x, y, width, height, paint); 491 private void draw(int type, int offset, int count, float x, float y, float width, float height, argument 493 draw(type, offset, count, x, y, width, height, paint.getColor(), paint.getLineWidth()); 496 private void draw(int type, int offset, int count, float x, float y, float width, float height, argument 499 draw(mDrawParameters, type, count, x, y, width, heigh 554 draw(ShaderParameter[] params, int type, int count, float x, float y, float width, float height) argument 566 setMatrix(ShaderParameter[] params, float x, float y, float width, float height) argument 575 fillRect(float x, float y, float width, float height, int color) argument 582 drawTexture(BasicTexture texture, int x, int y, int width, int height) argument 993 getBounds(Rect bounds, int x, int y, int width, int height) argument [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DisplayDeviceInfo.java | 118 * The width of the display in its natural orientation, in pixels. 121 public int width; field in class:DisplayDeviceInfo 227 public void setAssumedDensityForExternalDisplay(int width, int height) { argument 228 densityDpi = Math.min(width, height) * DisplayMetrics.DENSITY_XHIGH / 1080; 244 && width == other.width 271 width = other.width; 296 sb.append(width).append(" x ").append(height);
|
H A D | OverlayDisplayAdapter.java | 146 int width = Integer.parseInt(matcher.group(1), 10); 150 if (width >= MIN_WIDTH && width <= MAX_WIDTH 162 + ": name=" + name + ", width=" + width + ", height=" + height 166 width, height, densityDpi, gravity, secure, number)); 207 int width, int height, float refreshRate, long presentationDeadlineNanos, 212 mWidth = width; 252 mInfo.width = mWidth; 291 public OverlayDisplayHandle(String name, int width, argument 206 OverlayDisplayDevice(IBinder displayToken, String name, int width, int height, float refreshRate, long presentationDeadlineNanos, int densityDpi, boolean secure, int state, SurfaceTexture surfaceTexture, int number) argument [all...] |
H A D | VirtualDisplayAdapter.java | 65 String name, int width, int height, int densityDpi, Surface surface, int flags) { 73 ownerUid, ownerPackageName, name, width, height, densityDpi, surface, flags, 95 int width, int height, int densityDpi) { 98 device.resizeLocked(width, height, densityDpi); 187 String name, int width, int height, int densityDpi, Surface surface, int flags, 194 mWidth = width; 259 public void resizeLocked(int width, int height, int densityDpi) { argument 260 if (mWidth != width || mHeight != height || mDensityDpi != densityDpi) { 263 mWidth = width; 291 mInfo.width 63 createVirtualDisplayLocked(IVirtualDisplayCallback callback, IMediaProjection projection, int ownerUid, String ownerPackageName, String name, int width, int height, int densityDpi, Surface surface, int flags) argument 94 resizeVirtualDisplayLocked(IBinder appToken, int width, int height, int densityDpi) argument 185 VirtualDisplayDevice(IBinder displayToken, IBinder appToken, int ownerUid, String ownerPackageName, String name, int width, int height, int densityDpi, Surface surface, int flags, Callback callback, String uniqueId, int uniqueIndex) argument [all...] |
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
H A D | BiDiTestViewDrawText.java | 56 final int width = getWidth(); 64 canvas.drawText(mText, width / 2, height * 2 / 3, paint);
|
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/ |
H A D | TestWallpaper.java | 139 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument 140 super.onSurfaceChanged(holder, format, width, height); 195 final int width = frame.width(); 205 c.drawRect(0, 0, width, height, paint); 209 width-mMainInsets.right, height-mMainInsets.bottom, paint); 213 width - mStableInsets.right, height - mStableInsets.bottom, 222 c.drawText("Surface Size: " + width + " x " + height,
|
/frameworks/native/include/gui/ |
H A D | CpuConsumer.h | 48 uint32_t width; member in struct:android::CpuConsumer::LockedBuffer 83 // requestBuffers when a width and height of zero is requested. 86 status_t setDefaultBufferSize(uint32_t width, uint32_t height);
|
/frameworks/native/opengl/tests/gl_jni/src/com/android/gljni/ |
H A D | GLJNIView.java | 75 public void onSurfaceChanged(GL10 gl, int width, int height) { argument 76 GLJNILib.init(width, height);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | VerticalGridView.java | 71 * Set the column width. 73 * @param width May be WRAP_CONTENT, or a size in pixels. If zero, 74 * column width will be fixed based on number of columns and view width. 76 public void setColumnWidth(int width) { argument 77 mLayoutManager.setRowHeight(width);
|
/frameworks/av/media/libstagefright/wifi-display/ |
H A D | VideoFormats.cpp | 184 size_t width, height, fps, score; local 186 if (!GetConfiguration(type, index, &width, &height, 191 score = width * height * fps * (!interlaced + 1); 195 &width, &height, &fps, &interlaced) 196 && score >= width * height * fps * (!interlaced + 1)) { 273 size_t *width, size_t *height, size_t *framesPerSecond, 283 if (config->width == 0) { 287 if (width) { 288 *width = config->width; 270 GetConfiguration( ResolutionType type, size_t index, size_t *width, size_t *height, size_t *framesPerSecond, bool *interlaced) argument 495 size_t width, height, framesPerSecond; local [all...] |
/frameworks/av/media/libstagefright/yuv/ |
H A D | YUVCanvas.cpp | 36 for (int32_t x = 0; x < mYUVImage.width(); ++x) { 67 for (int32_t offsetX = 0; offsetX < srcRect.width(); ++offsetX) { 91 CHECK((srcOffsetX + (mYUVImage.width() - 1) * skipX) < srcImage.width()); 101 for (int32_t x = 0; x < mYUVImage.width(); ++x) {
|
/frameworks/base/core/java/android/widget/ |
H A D | VideoView.java | 145 int width = getDefaultSize(mVideoWidth, widthMeasureSpec); 156 width = widthSpecSize; 160 if ( mVideoWidth * height < width * mVideoHeight ) { 162 width = height * mVideoWidth / mVideoHeight; 163 } else if ( mVideoWidth * height > width * mVideoHeight ) { 165 height = width * mVideoHeight / mVideoWidth; 168 // only the width is fixed, adjust the height to match aspect ratio if possible 169 width = widthSpecSize; 170 height = width * mVideoHeight / mVideoWidth; 176 // only the height is fixed, adjust the width t [all...] |
/frameworks/base/core/java/com/android/internal/view/ |
H A D | BaseSurfaceHolder.java | 115 public void setFixedSize(int width, int height) { argument 116 if (mRequestedWidth != width || mRequestedHeight != height) { 117 mRequestedWidth = width; 227 public void setSurfaceFrameSize(int width, int height) { argument 230 mSurfaceFrame.right = width;
|
/frameworks/base/core/jni/android/graphics/ |
H A D | HarfBuzzNGFaceSkia.cpp | 55 static void SkiaGetGlyphWidthAndExtents(SkPaint* paint, hb_codepoint_t codepoint, hb_position_t* width, hb_glyph_extents_t* extents) argument 66 ALOGD("returned glyph for %i: width = %f", codepoint, skWidth); 68 if (width) 69 *width = SkScalarToHBFixed(skWidth); 74 extents->width = SkScalarToHBFixed(skBounds.width());
|
/frameworks/base/core/jni/android/graphics/pdf/ |
H A D | PdfDocument.cpp | 35 PageRecord(int width, int height, const SkRect& contentRect) argument 38 , mWidth(width) 63 SkCanvas* startPage(int width, int height, argument 69 PageRecord* page = new PageRecord(width, height, contentRect); 74 contentRect.width(), contentRect.height(), NULL, 0);
|
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/ |
H A D | RsYuv.java | 68 void reset(int width, int height) { argument 73 android.util.Log.v("cpa", "reset " + width + ", " + height); 75 mWidth = width; 127 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument 134 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
|
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcCommit.cpp | 24 * -s [width, height] - Starting dimension 235 static EGLint width, height; variable 510 == searchLimits.sourceCrop.width()) ? ">= " : "", 522 testPrintI(" scMaxDim: %s%s", ((measPtr->sc.maxDim.width() 523 >= searchLimits.sourceCrop.width()) 524 || (measPtr->sc.maxDim.width() >= 535 >= Rational(searchLimits.sourceCrop.width(), 536 measPtr->df.minDim.width())) ? ">= " : "", 646 (x + startDim.width()) < (unsigned int) width; [all...] |
/frameworks/av/cmds/screenrecord/ |
H A D | TextRenderer.cpp | 46 // by one pixel more than the width because the generator left a gap to 99 if (!isPowerOfTwo(FontBitmap::width)) { 100 ALOGE("npot glyph bitmap width %u", FontBitmap::width); 105 uint8_t* rgbaPixels = new uint8_t[FontBitmap::width * potHeight * 4]; 106 memset(rgbaPixels, 0, FontBitmap::width * potHeight * 4); 109 for (unsigned int i = 0; i < FontBitmap::width * FontBitmap::height; i++) { 126 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, FontBitmap::width, potHeight, 0, 139 ALOGW("setFontScale: can't set scale for width=%d height=%d", 169 float width [all...] |
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | ParameterUtils.java | 155 int w = clipLower(rect.width(), /*lo*/0, rect, "width"); 239 return new Size(size.width, size.height); 250 sizes.add(new Size(s.width, s.height)); 264 array[ctr++] = new Size(s.width, s.height); 272 public static boolean containsSize(List<Camera.Size> sizeList, int width, int height) { argument 275 if (s.height == height && s.width == width) { 441 } else if (currentPreviewCropRegion.width() >= cropRegionAsPreview.width() [all...] |
H A D | SurfaceTextureRenderer.java | 73 int width; field in class:SurfaceTextureRenderer.EGLSurfaceHolder 251 private void drawFrame(SurfaceTexture st, int width, int height, int flipType) { argument 274 RectF output = new RectF(/*left*/0, /*top*/0, /*right*/width, /*bottom*/height); 281 float scaleX = intermediate.width() / output.width(); 292 width + "x" + height + " surface, intermediate buffer size is " + texWidth + 297 GLES20.glViewport(0, 0, width, height); 470 int length = holder.width * holder.height; 474 EGL14.EGL_WIDTH, holder.width, 565 path.append(String.format("_%d_%d", surface.width, surfac [all...] |
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
H A D | bit_cnt.c | 43 const Word16 width, 58 for(i=0;i<width;i+=4){ 119 const Word16 width, 133 for(i=0;i<width;i+=4){ 193 const Word16 width, 207 for(i=0;i<width;i+=2){ 250 const Word16 width, 262 for(i=0;i<width;i+=2){ 298 const Word16 width, 310 for(i=0;i<width; 42 count1_2_3_4_5_6_7_8_9_10_11(const Word16 *values, const Word16 width, Word16 *bitCount) argument 118 count3_4_5_6_7_8_9_10_11(const Word16 *values, const Word16 width, Word16 *bitCount) argument 192 count5_6_7_8_9_10_11(const Word16 *values, const Word16 width, Word16 *bitCount) argument 249 count7_8_9_10_11(const Word16 *values, const Word16 width, Word16 *bitCount) argument 297 count9_10_11(const Word16 *values, const Word16 width, Word16 *bitCount) argument 345 count11(const Word16 *values, const Word16 width, Word16 *bitCount) argument 386 countEsc(const Word16 *values, const Word16 width, Word16 *bitCount) argument 469 bitCount(const Word16 *values, const Word16 width, Word16 maxVal, Word16 *bitCount) argument 495 codeValues(Word16 *values, Word16 width, Word16 codeBook, HANDLE_BIT_BUF hBitstream) argument [all...] |