/frameworks/base/core/java/android/app/ |
H A D | ActivityView.java | 280 int height) { 284 if (DEBUG) Log.d(TAG, "onSurfaceTextureAvailable: width=" + width + " height=" 285 + height); 287 mHeight = height; 293 int height) { 297 if (DEBUG) Log.d(TAG, "onSurfaceTextureSizeChanged: w=" + width + " h=" + height); 372 void setSurface(Surface surface, int width, int height, int density) argument 374 mIActivityContainer.setSurface(surface, width, height, density); 279 onSurfaceTextureAvailable(SurfaceTexture surfaceTexture, int width, int height) argument 292 onSurfaceTextureSizeChanged(SurfaceTexture surfaceTexture, int width, int height) argument
|
/frameworks/base/core/java/android/hardware/camera2/ |
H A D | DngCreator.java | 159 int height = pixels.getHeight(); 161 if (width > MAX_THUMBNAIL_DIMENSION || height > MAX_THUMBNAIL_DIMENSION) { 162 throw new IllegalArgumentException("Thumbnail dimensions width,height (" + width + 163 "," + height + ") too large, dimensions must be smaller than " + 168 nativeSetThumbnail(rgbBuffer, width, height); 199 int height = pixels.getHeight(); 201 if (width > MAX_THUMBNAIL_DIMENSION || height > MAX_THUMBNAIL_DIMENSION) { 202 throw new IllegalArgumentException("Thumbnail dimensions width,height (" + width + 203 "," + height + ") too large, dimensions must be smaller than " + 208 nativeSetThumbnail(rgbBuffer, width, height); 449 writeByteBuffer(int width, int height, ByteBuffer pixels, OutputStream dngOutput, int pixelStride, int rowStride, long offset) argument 621 nativeSetThumbnail(ByteBuffer buffer, int width, int height) argument 623 nativeWriteImage(OutputStream out, int width, int height, ByteBuffer rawBuffer, int rowStride, int pixStride, long offset, boolean isDirect) argument 628 nativeWriteInputStream(OutputStream out, InputStream rawStream, int width, int height, long offset) argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | CameraDeviceUserShim.java | 507 public int createStream(int width, int height, int format, Surface surface) { argument
|
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...] |
/frameworks/base/core/java/android/hardware/display/ |
H A D | DisplayManagerGlobal.java | 374 String name, int width, int height, int densityDpi, Surface surface, int flags, 379 if (width <= 0 || height <= 0 || densityDpi <= 0) { 380 throw new IllegalArgumentException("width, height, and densityDpi must be " 389 context.getPackageName(), name, width, height, densityDpi, surface, flags); 420 int width, int height, int densityDpi) { 422 mDm.resizeVirtualDisplay(token, width, height, densityDpi); 373 createVirtualDisplay(Context context, MediaProjection projection, String name, int width, int height, int densityDpi, Surface surface, int flags, VirtualDisplay.Callback callback, Handler handler) argument 419 resizeVirtualDisplay(IVirtualDisplayCallback token, int width, int height, int densityDpi) argument
|
/frameworks/base/core/java/android/view/ |
H A D | HardwareRenderer.java | 271 * Gets the current height of the surface. This is the height that the surface 376 * @param height The height of the drawing surface. 383 boolean initializeIfNeeded(int width, int height, Surface surface, Rect surfaceInsets) argument 389 setup(width, height, surfaceInsets); 401 * @param height The height of the drawing surface. 404 abstract void setup(int width, int height, Rect surfaceInsets); argument
|
H A D | TextureView.java | 62 * public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { 73 * public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { 382 // parameters are correct (width, height, transform, etc.) 514 * texture is not available or the width <= 0 or the height <= 0 538 * @param height The height of the bitmap to create 541 * texture is not available or width is <= 0 or height is <= 0 547 public Bitmap getBitmap(int width, int height) { argument 548 if (isAvailable() && width > 0 && height > 0) { 550 width, height, Bitma 774 onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) argument 784 onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) argument [all...] |
/frameworks/base/core/java/android/view/animation/ |
H A D | AnimationSet.java | 424 public void initialize(int width, int height, int parentWidth, int parentHeight) { argument 425 super.initialize(width, height, parentWidth, parentHeight); 482 a.initialize(width, height, parentWidth, parentHeight);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | AbsActionBarView.java | 86 // Reread the desired height from the theme-specified style. 116 public void setContentHeight(int height) { argument 117 mContentHeight = height;
|
H A D | ActionBarContextView.java | 140 layoutParams.height = mContentHeight; 152 public void setContentHeight(int height) { argument 153 mContentHeight = height; 254 layoutParams.height = mContentHeight; 356 final int height = maxHeight - verticalPadding; 357 final int childSpecHeight = MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST); 391 final int customHeightMode = lp.height != LayoutParams.WRAP_CONTENT ? 393 final int customHeight = lp.height >= 0 ? 394 Math.min(lp.height, height) [all...] |
H A D | PasswordEntryKeyboardHelper.java | 105 createKeyboardsWithSpecificSize(lp.width, lp.height); 117 private void createKeyboardsWithSpecificSize(int width, int height) { argument 118 mNumericKeyboard = new PasswordEntryKeyboard(mContext, mLayouts[NUMERIC], width, height); 120 width, height); 124 R.id.mode_normal, width, height); 128 mSymbolsKeyboard = new PasswordEntryKeyboard(mContext, mLayouts[SYMBOLS], width, height); 132 width, height);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapRegionDecoder.cpp | 53 SkBitmapRegionDecoder(SkImageDecoder* decoder, int width, int height) { argument 56 fHeight = height; 80 int width, height; local 90 if (!decoder->buildTileIndex(stream, &width, &height)) { 99 SkBitmapRegionDecoder *bm = new SkBitmapRegionDecoder(decoder, width, height); 173 jint start_x, jint start_y, jint width, jint height, jobject options) { 216 region.fBottom = start_y + height; 236 env->SetIntField(options, gOptions_heightFieldID, bitmap->height()); 172 nativeDecodeRegion(JNIEnv* env, jobject, jlong brdHandle, jint start_x, jint start_y, jint width, jint height, jobject options) argument
|
/frameworks/base/core/jni/android/graphics/pdf/ |
H A D | PdfEditor.cpp | 185 double height = 0; local 187 const int result = FPDF_GetPageSizeByIndex(document, pageIndex, &width, &height); 233 double height = 0; local 235 const int result = FPDF_GetPageSizeByIndex(document, pageIndex, &width, &height); 243 env->SetIntField(outSize, gPointClassInfo.y, height);
|
H A D | PdfRenderer.cpp | 116 double height = 0; local 118 const int result = FPDF_GetPageSizeByIndex(document, pageIndex, &width, &height); 127 env->SetIntField(outSize, gPointClassInfo.y, height); 249 FPDF_BITMAP bitmap = FPDFBitmap_CreateEx(skBitmap->width(), skBitmap->height(),
|
/frameworks/base/libs/hwui/ |
H A D | LayerRenderer.cpp | 54 const float height = mLayer->layer.getHeight(); local 58 dirty.right >= width && dirty.bottom >= height)) { 60 dirty.set(0.0f, 0.0f, width, height); 62 dirty.intersect(0.0f, 0.0f, width, height); 165 const float height = mLayer->layer.getHeight(); local 173 const float v1 = (height - r->top) * texY; 175 const float v2 = (height - r->bottom) * texY; 188 Layer* LayerRenderer::createRenderLayer(RenderState& renderState, uint32_t width, uint32_t height) { argument 189 ATRACE_FORMAT("Allocate %ux%u HW Layer", width, height); 190 LAYER_RENDERER_LOGD("Requesting new render layer %dx%d", width, height); 257 resizeLayer(Layer* layer, uint32_t width, uint32_t height) argument 292 updateTextureLayer(Layer* layer, uint32_t width, uint32_t height, bool isOpaque, bool forceFilter, GLenum renderTarget, float* textureTransform) argument [all...] |
H A D | PathCache.cpp | 88 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) { 90 PathCache::computeBounds(bounds, paint, left, top, offset, width, height); 94 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) { 96 const float pathHeight = fmax(bounds.height(), 1.0f); 104 height = uint32_t(pathHeight + offset * 2.0 + 0.5); 107 static void initBitmap(SkBitmap& bitmap, uint32_t width, uint32_t height) { argument 108 bitmap.allocPixels(SkImageInfo::MakeA8(width, height)); 125 float left, float top, float offset, uint32_t width, uint32_t height) { 126 initBitmap(bitmap, width, height); 137 uint32_t width, uint32_t height, uint32_ 87 computePathBounds(const SkPath* path, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument 93 computeBounds(const SkRect& bounds, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument 124 drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, float left, float top, float offset, uint32_t width, uint32_t height) argument 136 createTexture(float left, float top, float offset, uint32_t width, uint32_t height, uint32_t id) argument 240 purgeCache(uint32_t width, uint32_t height) argument 261 uint32_t width, height; local 341 uint32_t width, height; local 504 getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint) argument 550 getOval(float width, float height, const SkPaint* paint) argument 573 getRect(float width, float height, const SkPaint* paint) argument 596 getArc(float width, float height, float startAngle, float sweepAngle, bool useCenter, const SkPaint* paint) argument [all...] |
H A D | PathCache.h | 189 PathTexture* getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint); 191 PathTexture* getOval(float width, float height, const SkPaint* paint); 192 PathTexture* getRect(float width, float height, const SkPaint* paint); 193 PathTexture* getArc(float width, float height, float startAngle, float sweepAngle, 225 float& left, float& top, float& offset, uint32_t& width, uint32_t& height); 227 float& left, float& top, float& offset, uint32_t& width, uint32_t& height); 257 void purgeCache(uint32_t width, uint32_t height); 261 bool checkTextureSize(uint32_t width, uint32_t height) { argument 262 if (width > mMaxTextureSize || height > mMaxTextureSize) { 264 width, height, mMaxTextureSiz [all...] |
H A D | SkiaShader.cpp | 181 const float height = layer->getHeight(); local 197 glUniform2f(program->getUniform("textureDimension"), 1.0f / width, 1.0f / height); 206 float height; member in struct:android::uirenderer::BitmapShaderInfo 220 const float height = texture->height; local 228 if (!extensions.hasNPot() && (!isPowerOfTwo(width) || !isPowerOfTwo(height)) && 245 shaderInfo->height = height; 296 1.0f / shaderInfo.height);
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | CanvasContext.cpp | 131 void CanvasContext::setup(int width, int height, const Vector3& lightCenter, float lightRadius, argument 211 EGLint width, height; local 212 mEglManager.beginFrame(mEglSurface, &width, &height); 213 if (width != mCanvas->getViewportWidth() || height != mCanvas->getViewportHeight()) { 214 mCanvas->setViewport(width, height); 219 if (!dirty.isEmpty() && !dirty.intersect(0, 0, width, height)) { 221 SK_RECT_ARGS(dirty), width, height);
|
H A D | RenderProxy.cpp | 169 CREATE_BRIDGE7(setup, CanvasContext* context, int width, int height, argument 172 args->context->setup(args->width, args->height, args->lightCenter, args->lightRadius, 177 void RenderProxy::setup(int width, int height, const Vector3& lightCenter, float lightRadius, argument 182 args->height = height;
|
/frameworks/base/libs/input/ |
H A D | PointerController.cpp | 310 void PointerController::setDisplayViewport(int32_t width, int32_t height, int32_t orientation) { argument 316 int32_t temp = height; 317 height = width; 321 if (mLocked.displayWidth != width || mLocked.displayHeight != height) { 323 mLocked.displayHeight = height;
|
H A D | SpriteController.h | 235 int32_t width, int32_t height, bool drawn, bool visible) { 238 mLocked.state.surfaceHeight = height; 288 sp<SurfaceControl> obtainSurface(int32_t width, int32_t height); 234 setSurfaceLocked(const sp<SurfaceControl>& surfaceControl, int32_t width, int32_t height, bool drawn, bool visible) argument
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaMetadataRetriever.cpp | 176 static void rotate0(T* dst, const T* src, size_t width, size_t height) argument 178 memcpy(dst, src, width * height * sizeof(T)); 182 static void rotate90(T* dst, const T* src, size_t width, size_t height) argument 184 for (size_t i = 0; i < height; ++i) { 186 dst[j * height + height - 1 - i] = src[i * width + j]; 192 static void rotate180(T* dst, const T* src, size_t width, size_t height) argument 194 for (size_t i = 0; i < height; ++i) { 196 dst[(height - 1 - i) * width + width - 1 - j] = src[i * width + j]; 202 static void rotate270(T* dst, const T* src, size_t width, size_t height) argument 212 rotate(T *dst, const T *src, size_t width, size_t height, int angle) argument 260 uint32_t width, height; local [all...] |
H A D | android_media_MediaRecorder.cpp | 269 android_media_MediaRecorder_setVideoSize(JNIEnv *env, jobject thiz, jint width, jint height) argument 271 ALOGV("setVideoSize(%d, %d)", width, height); 274 if (width <= 0 || height <= 0) { 278 process_media_recorder_call(env, mr->setVideoSize(width, height), "java/lang/RuntimeException", "setVideoSize failed.");
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/ |
H A D | MediaPlayerPerformance.java | 112 Log.v(TAG, "height = " + mVideoHeight + " width= " + mVideoWidth); 222 private boolean stressVideoRecord(int frameRate, int width, int height, int videoFormat, argument 238 mRecorder.setVideoSize(width, height);
|