/frameworks/base/services/core/java/com/android/server/display/ |
H A D | OverlayDisplayAdapter.java | 61 * [width]x[height]/[densityDpi] 172 int height = Integer.parseInt(modeMatcher.group(2), 10); 175 && height >= MIN_HEIGHT && height <= MAX_HEIGHT 178 modes.add(new OverlayMode(width, height, densityDpi)); 292 mInfo.height = mode.getPhysicalHeight(); 511 OverlayMode(int width, int height, int densityDpi) { argument 513 mHeight = height; 521 .append(", height=").append(mHeight)
|
/frameworks/base/telecomm/java/android/telecom/ |
H A D | InCallService.java | 680 * @param height The updated peer video height. 682 public abstract void onPeerDimensionsChanged(int width, int height); argument
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | RenderTarget.java | 86 public static RenderTarget newTarget(int width, int height) { argument 91 EGLSurface eglSurface = createSurface(egl, eglDisplay, width, height); 103 public RenderTarget forTexture(TextureSource texture, int width, int height) { argument 265 public void readPixelData(ByteBuffer pixels, int width, int height) { argument 266 GLToolbox.readTarget(this, pixels, width, height); 269 public ByteBuffer getPixelData(int width, int height) { argument 270 ByteBuffer pixels = ByteBuffer.allocateDirect(width * height * 4); 271 GLToolbox.readTarget(this, pixels, width, height); 390 private static EGLSurface createSurface(EGL10 egl, EGLDisplay display, int width, int height) { argument 392 int[] attribs = { EGL10.EGL_WIDTH, width, EGL10.EGL_HEIGHT, height, EGL1 [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Bitmap_Delegate.java | 252 int height, int nativeConfig, boolean isMutable) { 256 BufferedImage image = new BufferedImage(width, height, imageType); 259 image.setRGB(0, 0, width, height, colors, offset, stride); 279 int height = srcImage.getHeight(); 284 BufferedImage image = new BufferedImage(width, height, imageType); 287 int[] argb = new int[width * height]; 288 srcImage.getRGB(0, 0, width, height, argb, 0, width); 289 image.setRGB(0, 0, width, height, argb, 0, width); 329 /*package*/ static void nativeReconfigure(long nativeBitmap, int width, int height, argument 414 int stride, int x, int y, int width, int height) { 251 nativeCreate(int[] colors, int offset, int stride, int width, int height, int nativeConfig, boolean isMutable) argument 413 nativeGetPixels(long nativeBitmap, int[] pixels, int offset, int stride, int x, int y, int width, int height) argument 435 nativeSetPixels(long nativeBitmap, int[] colors, int offset, int stride, int x, int y, int width, int height) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/ |
H A D | NopCanvas.java | 226 int height, boolean hasAlpha, Paint paint) { 231 int height, boolean hasAlpha, Paint paint) { 225 drawBitmap(int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, Paint paint) argument 230 drawBitmap(int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, Paint paint) argument
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | RenderSessionImpl.java | 280 // If the screen height is less than the exact measured height, 371 @Nullable Canvas canvas, int width, int height) { 376 height, MeasureSpec.EXACTLY); 379 viewRoot.layout(0, 0, width, height); 522 * if <var>measuredView</var> is non null, the method returns a {@link Pair} of (width, height) 526 * @param measuredView if non null, the view to query for its measured width/height. 529 * @param height the height to use in the MeasureSpec. 530 * @param heightMode the MeasureSpec mode to use for the height 370 render(@onNull BridgeContext context, @NonNull ViewGroup viewRoot, @Nullable Canvas canvas, int width, int height) argument 534 measureView(ViewGroup viewToMeasure, View measuredView, int width, int widthMode, int height, int heightMode) argument [all...] |
/frameworks/native/cmds/flatland/ |
H A D | Main.cpp | 48 uint32_t height; member in struct:BenchmarkDesc 299 result = mGLHelper->createSurfaceTexture(mDesc.width, mDesc.height, 396 float(mDesc.height); 419 ld.height = uint32_t(scaleFactor * float(ld.height)); 602 uint32_t runWidth = b.width * runHeight / b.height;
|
/frameworks/native/libs/gui/ |
H A D | BufferQueueProducer.cpp | 344 sp<android::Fence> *outFence, uint32_t width, uint32_t height, 362 BQ_LOGV("dequeueBuffer: w=%u h=%u format=%#x, usage=%#x", width, height, 365 if ((width && !height) || (!width && height)) { 366 BQ_LOGE("dequeueBuffer: invalid size: w=%u h=%u", width, height); 386 const bool useDefaultSize = !width && !height; 389 height = mCore->mDefaultHeight; 413 if (buffer->needsReallocation(width, height, format, usage)) { 429 buffer->needsReallocation(width, height, format, usage)) { 448 buffer->needsReallocation(width, height, forma 343 dequeueBuffer(int *outSlot, sp<android::Fence> *outFence, uint32_t width, uint32_t height, PixelFormat format, uint32_t usage) argument 1222 allocateBuffers(uint32_t width, uint32_t height, PixelFormat format, uint32_t usage) argument [all...] |
H A D | IGraphicBufferProducer.cpp | 121 uint32_t height, PixelFormat format, uint32_t usage) { 125 data.writeUint32(height); 288 virtual void allocateBuffers(uint32_t width, uint32_t height, argument 293 data.writeUint32(height); 484 uint32_t height = data.readUint32(); local 489 int result = dequeueBuffer(&buf, &fence, width, height, format, 600 uint32_t height = data.readUint32(); local 603 allocateBuffers(width, height, format, usage); 120 dequeueBuffer(int *buf, sp<Fence>* fence, uint32_t width, uint32_t height, PixelFormat format, uint32_t usage) argument
|
/frameworks/native/libs/gui/tests/ |
H A D | CpuConsumer_test.cpp | 45 uint32_t height; member in struct:android::CpuConsumerTestParams 51 return os << "[ (" << p.width << ", " << p.height << "), B:" 65 params.width, params.height, 283 // Blocks need to be even-width/height, aim for 8-wide otherwise 309 uint32_t h = buf.height; 348 uint32_t h = buf.height; 391 uint32_t h = buf.height; 456 params.width, params.height); 504 fillYV12Buffer(img, params.width, params.height, *stride); 507 fillBayerRawBuffer(img, params.width, params.height, bu [all...] |
H A D | SRGB_test.cpp | 213 GLsizei height) { 215 glViewport(x, y, width, height); 224 ASSERT_EQ(mLockedBuffer.height, DISPLAY_HEIGHT); 314 for (int y = 0; y < outBuffer.height; ++y) { 330 size_t bufferSize = mLockedBuffer.height * mLockedBuffer.stride * 337 ASSERT_EQ(mLockedBuffer.height, static_cast<uint32_t>(outBuffer.height)); 347 for (int y = 0; y < outBuffer.height; ++y) { 212 drawTexture(bool asSRGB, GLint x, GLint y, GLsizei width, GLsizei height) argument
|
/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...] |
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | HWComposer.cpp | 251 status_t HWComposer::allocateVirtualDisplay(uint32_t width, uint32_t height, argument 259 auto error = mHwcDevice->createVirtualDisplay(width, height, format,
|
H A D | HWComposer_hwc1.cpp | 176 config.height = mFbDev->height; 320 static float getDefaultDensity(uint32_t width, uint32_t height) { argument 328 uint32_t h = width < height ? width : height; 397 config.height = values[i]; 416 float dpi = getDefaultDensity(config.width, config.height); 440 config.height = h; 504 return mDisplayData[disp].configs[currentConfig].height; 598 (int) currentConfig.width, (int) currentConfig.height }; [all...] |
/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | RenderEngine.cpp | 198 void RenderEngine::fillRegionWithColor(const Region& region, uint32_t height, argument 206 position[i*6 + 0].y = height - r->top; 208 position[i*6 + 1].y = height - r->bottom; 210 position[i*6 + 2].y = height - r->bottom; 212 position[i*6 + 3].y = height - r->top; 214 position[i*6 + 4].y = height - r->bottom; 216 position[i*6 + 5].y = height - r->top;
|
/frameworks/native/services/surfaceflinger/ |
H A D | SurfaceFlinger.h | 180 uint32_t width, height; member in struct:android::SurfaceFlinger::DisplayDeviceState
|
/frameworks/native/vulkan/libvulkan/ |
H A D | swapchain.cpp | 283 int width, height; local 290 err = window->query(window, NATIVE_WINDOW_DEFAULT_HEIGHT, &height); 310 VkExtent2D{static_cast<uint32_t>(width), static_cast<uint32_t>(height)}; 405 create_info->imageExtent.height, create_info->imageUsage, 513 static_cast<int>(create_info->imageExtent.height)); 518 create_info->imageExtent.width, create_info->imageExtent.height, 670 static_cast<uint32_t>(img.buffer->height),
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | ExtendedBitmapDrawable.java | 115 if (bounds.height() != 0) { 116 placeholderHeight = bounds.height(); 165 * Directly sets the decode width and height. The given height should already have had the 168 public void setExactDecodeDimensions(int width, int height) { argument 169 super.setDecodeDimensions(width, height); 175 * The given height should not have had the parallaxSpeedMultiplier applied to it. 178 public void setDecodeDimensions(int width, int height) { argument 179 super.setDecodeDimensions(width, (int) (height * mOpts.parallaxSpeedMultiplier)); 634 * Some users report motion sickness with certain speed multiplier values. Decode height [all...] |
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
H A D | ImageProcessingActivity2.java | 777 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument 782 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | ImageProcessingActivityJB.java | 740 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument 745 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
|
/frameworks/support/v14/preference/src/android/support/v14/preference/ |
H A D | PreferenceFragment.java | 308 * height, you should also call {@link #setDividerHeight(int)}. 318 * Sets the height of the divider that will be drawn between each item in the list. Calling 319 * this will override the intrinsic height as set by {@link #setDivider(Drawable)} 321 * @param height The new height of the divider in pixels. 324 public void setDividerHeight(int height) { argument 325 mDividerDecoration.setDividerHeight(height);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | BaseCardView.java | 69 * The card height will not change. 78 * the total card height will change. 88 * area, causing the total card height to change. The extra area animates in 90 * the card height. 693 // This animation changes the visible height of the info views, 833 public LayoutParams(int width, int height) { argument 834 super(width, height); 845 * Copy constructor. Clones the width, height, and View Type of the 875 // Helper animation class used in the animation of the visible height
|
H A D | PagingIndicator.java | 317 int height; 320 height = MeasureSpec.getSize(heightMeasureSpec); 323 height = Math.min(desiredHeight, MeasureSpec.getSize(heightMeasureSpec)); 327 height = desiredHeight; 344 setMeasuredDimension(width, height); 348 protected void onSizeChanged(int width, int height, int oldWidth, int oldHeight) { argument 349 setMeasuredDimension(width, height);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ActionMenuView.java | 463 int height = v.getMeasuredHeight(); 473 int t = midVertical - (height / 2); 474 int b = t + height; 494 final int height = v.getMeasuredHeight(); 497 final int t = midVertical - height / 2; 498 v.layout(l, t, l + width, t + height); 516 int height = v.getMeasuredHeight(); 517 int t = midVertical - height / 2; 518 v.layout(startRight - width, t, startRight, t + height); 532 int height 821 LayoutParams(int width, int height) argument 826 LayoutParams(int width, int height, boolean isOverflowButton) argument [all...] |
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
H A D | PreferenceFragmentCompat.java | 294 * height, you should also call {@link #setDividerHeight(int)}. 304 * Sets the height of the divider that will be drawn between each item in the list. Calling 305 * this will override the intrinsic height as set by {@link #setDivider(Drawable)} 307 * @param height The new height of the divider in pixels. 310 public void setDividerHeight(int height) { argument 311 mDividerDecoration.setDividerHeight(height);
|