/frameworks/base/core/java/android/util/ |
H A D | SizeF.java | 23 * Immutable class for describing width and height dimensions in some arbitrary 26 * Width and height are finite values stored as a floating point representation. 33 * <p>Both the {@code width} and the {@code height} must be a finite number. 37 * @param height The height of the size 40 * if either {@code width} or {@code height} was not finite. 42 public SizeF(final float width, final float height) { argument 44 mHeight = checkArgumentFinite(height, "height"); 56 * Get the height o [all...] |
/frameworks/base/libs/hwui/ |
H A D | Patch.h | 59 float width, float height, const Res_png_9patch* patch); 61 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch);
|
/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 | 33 info->height = bm->height();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | StackScrollState.java | 67 viewState.height = child.getIntrinsicHeight(); 102 int height = child.getActualHeight(); 107 int newHeight = state.height; 148 // apply height 149 if (height != newHeight) { 193 * @param height the currently applied height of the view 196 private void updateChildClip(View child, int height, int clipInset) { argument 200 height); 208 float lineEnd = state.yTranslation + state.height / 243 int height; field in class:StackScrollState.ViewState [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DisplayDeviceInfo.java | 124 * The height of the display in its natural orientation, in pixels. 127 public int height; field in class:DisplayDeviceInfo 227 public void setAssumedDensityForExternalDisplay(int width, int height) { argument 228 densityDpi = Math.min(width, height) * DisplayMetrics.DENSITY_XHIGH / 1080; 245 && height == other.height 272 height = other.height; 296 sb.append(width).append(" x ").append(height);
|
H A D | OverlayDisplayAdapter.java | 147 int height = Integer.parseInt(matcher.group(2), 10); 151 && height >= MIN_HEIGHT && height <= MAX_HEIGHT 162 + ": name=" + name + ", width=" + width + ", height=" + height 166 width, height, densityDpi, gravity, secure, number)); 207 int width, int height, float refreshRate, long presentationDeadlineNanos, 213 mHeight = height; 253 mInfo.height = mHeight; 292 int height, in 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 291 OverlayDisplayHandle(String name, int width, int height, int densityDpi, int gravity, boolean secure, 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, 195 mHeight = height; 259 public void resizeLocked(int width, int height, int densityDpi) { argument 260 if (mWidth != width || mHeight != height || mDensityDpi != densityDpi) { 264 mHeight = height; 292 mInfo.height 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 | 57 final int height = getHeight(); 64 canvas.drawText(mText, width / 2, height * 2 / 3, paint);
|
/frameworks/native/include/gui/ |
H A D | CpuConsumer.h | 49 uint32_t height; 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/native/services/surfaceflinger/tests/resize/ |
H A D | resize.cpp | 53 android_memset16((uint16_t*)outBuffer.bits, 0xF800, bpr*outBuffer.height); 57 android_memset16((uint16_t*)outBuffer.bits, 0x07E0, bpr*outBuffer.height);
|
/frameworks/av/media/libstagefright/yuv/ |
H A D | YUVCanvas.cpp | 35 for (int32_t y = 0; y < mYUVImage.height(); ++y) { 66 for (int32_t offsetY = 0; offsetY < srcRect.height(); ++offsetY) { 92 CHECK((srcOffsetY + (mYUVImage.height() - 1) * skipY) < srcImage.height()); 99 for (int32_t y = 0; y < mYUVImage.height(); ++y) {
|
/frameworks/base/core/java/android/widget/ |
H A D | VideoView.java | 146 int height = getDefaultSize(mVideoHeight, heightMeasureSpec); 157 height = heightSpecSize; 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 170 height = width * mVideoHeight / mVideoWidth; 171 if (heightSpecMode == MeasureSpec.AT_MOST && height > heightSpecSize) { 173 height [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) { 118 mRequestedHeight = height; 227 public void setSurfaceFrameSize(int width, int height) { argument 231 mSurfaceFrame.bottom = height;
|
/frameworks/base/core/jni/android/graphics/pdf/ |
H A D | PdfDocument.cpp | 35 PageRecord(int width, int height, const SkRect& contentRect) argument 39 , mHeight(height) { 63 SkCanvas* startPage(int width, int height, argument 69 PageRecord* page = new PageRecord(width, height, contentRect); 74 contentRect.width(), contentRect.height(), NULL, 0);
|
/frameworks/native/libs/ui/ |
H A D | Rect.cpp | 90 Rect Rect::transform(uint32_t xform, int32_t width, int32_t height) const { 97 result = Rect(result.left, height - result.bottom, result.right, 98 height - result.top); 101 int left = height - result.bottom; 103 int right = height - result.top;
|
/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); 74 mHeight = height; 127 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument 134 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
|
/frameworks/base/core/java/android/app/ |
H A D | MediaRouteButton.java | 221 final int height = getHeight(); 222 final int midy = screenPos[1] + height / 2; 226 if (midy < displayFrame.height()) { 229 screenWidth - screenPos[0] - width / 2, height); 232 cheatSheet.setGravity(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0, height); 352 int height; 355 height = heightSize; 358 height = Math.min(heightSize, minHeight + getPaddingTop() + getPaddingBottom()); 362 height = minHeight + getPaddingTop() + getPaddingBottom(); 366 setMeasuredDimension(width, height); [all...] |
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcCommit.cpp | 24 * -s [width, height] - Starting dimension 235 static EGLint width, height; variable 515 == searchLimits.sourceCrop.height()) ? ">= " : "", 525 searchLimits.sourceCrop.height())) ? ">= " : "", 550 >= Rational(searchLimits.sourceCrop.height(), 551 measPtr->df.minDim.height())) ? ">= " : "", 649 (y + startDim.height()) < (unsigned int) height; 650 y += (allowOverlap) ? 1 : startDim.height()) { 655 rect.displayFrame.bottom = y + startDim.height(); [all...] |
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | ParameterUtils.java | 156 int h = clipLower(rect.height(), /*lo*/0, rect, "height"); 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) { 442 currentPreviewCropRegion.height() >= cropRegionAsPreview.height()) { [all...] |
H A D | SurfaceTextureRenderer.java | 74 int height; 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); 282 float scaleY = intermediate.height() / output.height(); 292 width + "x" + height + " surface, intermediate buffer size is " + texWidth + 297 GLES20.glViewport(0, 0, width, height); 470 int length = holder.width * holder.height; 475 EGL14.EGL_HEIGHT, holder.height, 565 path.append(String.format("_%d_%d", surface.width, surface.height)); [all...] |
/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, 291 if (height) { 292 *height = config->height; 495 size_t width, height, framesPerSecon local 270 GetConfiguration( ResolutionType type, size_t index, size_t *width, size_t *height, size_t *framesPerSecond, bool *interlaced) argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | RotarySelector.java | 284 // by making the height less than arrow + bg, arrow and bg will be scrunched together, 288 final int height = mBackgroundHeight + arrowH - arrowScrunch; 291 setMeasuredDimension(length, height); 293 setMeasuredDimension(height, length); 310 final int height = getHeight(); 330 mArrowMatrix.postTranslate(0, height); 338 // since bg width is > height of screen in landscape mode... 339 mArrowMatrix.postTranslate(0, height + (mBackgroundWidth - height)); 349 height [all...] |
/frameworks/native/opengl/libagl/ |
H A D | dxt.cpp | 136 DXT1HasAlpha(const GLvoid *data, int width, int height) { argument 147 int yblocks = (height + 3)/4; 187 printf("Scanned w=%d h=%d in %ld usec\n", width, height, usec); 194 decodeDXT1(const GLvoid *data, int width, int height, argument 212 for (int base_y = 0; base_y < height; base_y += 4, rowPtr += 4*stride) { 289 if (base_y + y >= height) { 307 decodeDXT3(const GLvoid *data, int width, int height, argument 324 for (int base_y = 0; base_y < height; base_y += 4, rowPtr += 4*stride) { 395 if (base_y + y >= height) { 416 decodeDXT5(const GLvoid *data, int width, int height, argument 599 decodeDXT(const GLvoid *data, int width, int height, void *surface, int stride, int format) argument [all...] |