/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | UinputBridge.java | 34 private static native long nativeOpen(String name, String uniqueId, int width, int height, argument 44 public UinputBridge(IBinder token, String name, int width, int height, int maxPointers) argument 46 if (width < 1 || height < 1) { 55 mPtr = nativeOpen(name, token.toString(), width, height, maxPointers);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | stats_scorer.h | 36 JNIEnv* env, jobject thiz, jobject imageBuffer, jint width, jint height,
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | ColorFilter_Delegate.java | 61 public void applyFilter(Graphics2D g, int width, int height) { argument
|
/frameworks/base/tools/layoutlib/bridge/src/android/text/ |
H A D | GreedyLineBreaker.java | 41 float width = 0, printedWidth = 0; 57 // update the current line width 59 width += p.width; 61 printedWidth = width; 64 width = mTabStops.width(width); 94 printedWidth = width = 0; 108 // this does not handle penalties with width [all...] |
/frameworks/native/include/android/ |
H A D | bitmap.h | 67 /** The bitmap width in pixels. */ 68 uint32_t width; member in struct:__anon1493
|
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | Healing.java | 50 Bitmap bitmap = Bitmap.createBitmap(rec.width(), rec.height(), Bitmap.Config.ALPHA_8); 79 floatImage.setX(mRoiBounds.width()); 91 mRoiBounds.width(), mRoiBounds.height()); 96 mRoiBounds.width(), mRoiBounds.height()); 109 options.setX(1, mRoiBounds.width() - 1); 133 mUndoBitmap = Bitmap.createBitmap(mRoiBounds.width(), mRoiBounds.height(), 136 Rect undoRect = new Rect(0, 0, mRoiBounds.width(), mRoiBounds.height()); 145 Bitmap createMutableBitmap(Bitmap image, int x, int y, int width, int height) { argument 146 Bitmap ret = Bitmap.createBitmap(image, x, y, width, height);
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | Blur25.java | 72 int width = mInPixelsAllocation.getType().getX(); 86 tb.setX(width); 93 mScript_half.set_width(width); 102 mScript.set_width(width);
|
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | healing.rs | 109 int width = rsAllocationGetDimX(in); 112 rs_allocation tmp = rsCreateAllocation_float3(width, height); 118 int width = rsAllocationGetDimX(in); 120 rs_allocation tmp = rsCreateAllocation_float3(width, height); 127 int width = rsAllocationGetDimX(src_image); 131 laplace = rsCreateAllocation_float3(width, height); 135 int steps = (int)hypot((float)width, (float)height); 140 opts.xEnd = width - 1;
|
/frameworks/support/percent/src/android/support/percent/ |
H A D | PercentFrameLayout.java | 68 * You can also make one dimension be a fraction of the other by setting only width or height and 75 * This will make the aspect ratio 16:9 (1.78:1) with the width fixed at 300dp and height adjusted 184 public LayoutParams(int width, int height) { argument 185 super(width, height); 188 public LayoutParams(int width, int height, int gravity) { argument 189 super(width, height, gravity);
|
H A D | PercentLayoutHelper.java | 145 params.width = array.getLayoutDimension(widthAttr, 0); 150 * Iterates over children and changes their width and height to one calculated from percentage 203 Log.v(TAG, "percent width: " + value); 336 * space, it will be remeasured with width set to {@code WRAP_CONTENT}. 355 params.width = ViewGroup.LayoutParams.WRAP_CONTENT; 373 && info.mPreservedParams.width == ViewGroup.LayoutParams.WRAP_CONTENT; 383 // These two flags keep track of whether we're computing the LayoutParams width and height 387 // the same set of width / height. 391 public PercentMarginLayoutParams(int width, int height) { argument 392 super(width, heigh [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/ |
H A D | ActionMenuItemView.java | 216 int width = icon.getIntrinsicWidth(); 218 if (width > mMaxIconSize) { 219 final float scale = (float) mMaxIconSize / width; 220 width = mMaxIconSize; 221 height = (int) (width * scale); 226 width = (int) (width * scale); 228 icon.setBounds(0, 0, width, height); 283 // Remeasure at exactly the minimum width. 292 final int dw = mIcon.getBounds().width(); [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TaskPositioner.java | 400 mStartOrientationWasLandscape = startBounds.width() >= startBounds.height(); 452 // 1. mMinVisible[Width/Height] <= [width/height] <= mMaxVisibleSize.[x/y] 467 // Calculate the resulting width and height of the drag operation. 468 int width = right - left; 471 width = Math.max(mMinVisibleWidth, width - deltaX); 473 width = Math.max(mMinVisibleWidth, width + deltaX); 482 final float aspect = (float) width / (float) height; 492 // Assuming that the width i [all...] |
/frameworks/base/core/java/com/android/internal/policy/ |
H A D | PipSnapAlgorithm.java | 132 movementBounds.right + stackBounds.width(), 140 Gravity.apply(mSnapGravities.get(i), stackBounds.width(), stackBounds.height(), 146 final float thresh = Math.max(stackBounds.width(), stackBounds.height()) 161 Gravity.apply(mSnapGravities.get(i), stackBounds.width(), stackBounds.height(), 177 stackBounds.offsetTo(stableInsets.left + mMinimizedVisibleSize - stackBounds.width(), 202 movementBounds.width(); 230 int offset = movementBounds.left + (int) (snapFraction * movementBounds.width()); 238 int offset = movementBounds.left + (int) ((1f - snapFraction) * movementBounds.width()); 256 stackBounds.width()); 271 final int width; [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | OverlayDisplayWindow.java | 97 int width, int height, int densityDpi, int gravity, boolean secure, 115 resize(width, height, densityDpi, false /* doLayout */); 143 public void resize(int width, int height, int densityDpi) { argument 144 resize(width, height, densityDpi, true /* doLayout */); 147 private void resize(int width, int height, int densityDpi, boolean doLayout) { argument 148 mWidth = width; 206 mTextureView.getLayoutParams().width = mWidth; 253 int width = (int)(mWidth * scale); 255 int x = (int)(mWindowX + mLiveTranslationX - width * offsetScale); 257 x = Math.max(0, Math.min(x, mDefaultDisplayInfo.logicalWidth - width)); 96 OverlayDisplayWindow(Context context, String name, int width, int height, int densityDpi, int gravity, boolean secure, Listener listener) argument [all...] |
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | AndroidCamera2Settings.java | 91 mCropRectangle = new Rect(0, 0, activeArray.width(), activeArray.height()); 192 mActiveArray.width() / mCurrentZoomRatio, 0, mActiveArray.width()), 195 mCropRectangle.offsetTo((mActiveArray.width() - mCropRectangle.width()) / 2, 237 return (mExifThumbnailSize.width() == 0 && mExifThumbnailSize.height() == 0) || 239 mExifThumbnailSize.width() == defaultThumbnailSize.getWidth() && 284 mExifThumbnailSize.width(), mExifThumbnailSize.height())); 308 mCropRectangle.width() * oldLeft, 0, mCropRectangle.width() [all...] |
/frameworks/base/tools/aapt2/compile/ |
H A D | PngCrunch.cpp | 207 uint32_t width, height; local 209 png_get_IHDR(read_ptr, info_ptr, &width, &height, &bit_depth, &color_type, 251 if (width > std::numeric_limits<int32_t>::max() || height > std::numeric_limits<int32_t>::max()) { 253 << "PNG image dimensions are too large: " << width << "x" << height); 258 output_image->width = static_cast<int32_t>(width); 262 CHECK(row_bytes == 4 * width); // RGBA 310 static int PickColorType(int32_t width, int32_t height, bool grayscale, argument 315 const size_t color_alpha_data_chunk_size = 16 + 4 * width * height; 316 const size_t color_data_chunk_size = 16 + 3 * width * heigh [all...] |
/frameworks/av/cmds/screenrecord/ |
H A D | TextRenderer.h | 51 void setScreenSize(uint32_t width, uint32_t height) { argument 52 mScreenWidth = width; 98 // Computes the width of the string, in pixels. 101 // Computes the width of first N characters in the string.
|
/frameworks/av/cmds/stagefright/ |
H A D | recordvideo.cpp | 49 fprintf(stderr, " -w width in pixels (default: 176)\n"); 62 DummySource(int width, int height, int nFrames, int fps, int colorFormat) argument 63 : mWidth(width), 68 mSize((width * height * 3) / 2) { 168 int width = 176; local 219 width = atoi(optarg); 273 new DummySource(width, height, nFrames, frameRateFps, colorFormat); 287 enc_meta->setInt32("width", width); 291 enc_meta->setInt32("stride", width); [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_intra_prediction.h | 69 u8 *pImage, u32 width, 73 u32 width, u32 constrainedIntraPred);
|
/frameworks/av/media/libstagefright/webm/ |
H A D | EbmlUtil.cpp | 84 // Like above but pads the input value with leading zeros up to the specified width. The length 85 // descriptor is calculated based on width. 86 uint64_t encodeUnsigned(uint64_t u, int width) { argument 87 int shiftWidth = 7 * width;
|
/frameworks/av/media/ndk/ |
H A D | NdkImagePriv.h | 36 int64_t timestamp, int32_t width, int32_t height, int32_t numPlanes); 52 media_status_t getWidth(/*out*/int32_t* width) const;
|
/frameworks/base/cmds/vr/src/com/android/commands/vr/ |
H A D | Vr.java | 52 "usage: vr set-display-props [width] [height] [dpi]\n" 79 int width = Integer.parseInt(widthStr); 88 new Vr2dDisplayProperties(width, height, dpi);
|
/frameworks/base/core/java/android/app/ |
H A D | IActivityContainer.aidl | 29 void setSurface(in Surface surface, int width, int height, int density);
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryableSize.java | 47 int width = buffer.getInt(); 50 return new Size(width, height);
|
H A D | MarshalQueryableSizeF.java | 49 float width = buffer.getFloat(); 52 return new SizeF(width, height);
|