/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ |
H A D | AssistDisclosure.java | 197 final int width = getWidth(); 200 final float pixelProgress = mTracingProgress * (width + height - 2 * thickness); 202 float bottomProgress = Math.min(pixelProgress, width / 2f); 205 width / 2f - bottomProgress, 207 width / 2f + bottomProgress, 219 width - thickness, 221 width, 226 width / 2 - thickness); 234 (width - thickness) - topProgress, 236 width [all...] |
/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | IconUtilities.java | 106 int width = mIconWidth; 111 painter.setIntrinsicWidth(width); 126 if (width < sourceWidth || height < sourceHeight) { 130 height = (int) (width / ratio); 132 width = (int) (height * ratio); 134 } else if (sourceWidth < width && sourceHeight < height) { 136 width = sourceWidth; 150 final int left = (textureWidth-width) / 2; 159 canvas.drawRect(left, top, left+width, top+height, debugPaint); 163 icon.setBounds(left, top, left+width, to [all...] |
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
H A D | DisplaySourceService.java | 87 final int width = content.getInt(); 90 if (width >= 0 && width <= 4096 93 handleSinkAvailable(width, height, densityDpi); 109 private void handleSinkAvailable(int width, int height, int densityDpi) { argument 110 if (mSinkAvailable && mSinkWidth == width && mSinkHeight == height 116 + "width=" + width + ", height=" + height 119 mSinkWidth = width; 181 public VirtualDisplayThread(int width, in argument [all...] |
/frameworks/base/core/java/android/gesture/ |
H A D | Gesture.java | 142 public Path toPath(int width, int height, int edge, int numSample) { argument 143 return toPath(null, width, height, edge, numSample); 146 public Path toPath(Path path, int width, int height, int edge, int numSample) { argument 153 path.addPath(strokes.get(i).toPath(width - 2 * edge, height - 2 * edge, numSample)); 178 * @param width width of the target bitmap 185 public Bitmap toBitmap(int width, int height, int edge, int numSample, int color) { argument 186 final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 204 Path path = strokes.get(i).toPath(width - 2 * edge, height - 2 * edge, numSample); 214 * @param width 220 toBitmap(int width, int height, int inset, int color) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskViewThumbnail.java | 113 public void onTaskViewSizeChanged(int width, int height) { argument 115 if (mTaskViewRect.width() == width && mTaskViewRect.height() == height) { 119 mTaskViewRect.set(0, 0, width, height); 120 setLeftTopRightBottom(0, 0, width, height); 130 int viewWidth = mTaskViewRect.width(); 133 (int) (mThumbnailRect.width() * mThumbnailScale)); 237 // width of the task view 238 mThumbnailScale = (float) mTaskViewRect.width() / mThumbnailRect.width(); [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm11_asm/ |
H A D | h264bsd_interpolate_chroma_hor.s | 46 width RN 4 label 82 ;// u32 width, : 0xf8 93 LDR width, [sp, #0xf8] ;// width 99 CMP tmp6, width ;// x0+chromaPartWidth+1 > width 115 STMIA sp,{width,height,tmp8,chrPH,tmp2} 122 STMIA sp,{width,height,tmp8,chrPH,tmp2} 124 MLA ref, height, width, ref ;// ref += width * heigh [all...] |
H A D | h264bsd_interpolate_ver_half.s | 60 width RN 12 label 96 LDR width, [sp,#0x218] ;// width 97 CMP tmp5, width 98 BHI do_fill ;// (x0+partW)>width 118 LDR width, [sp,#0x218] ;// width 119 STR width, [sp,#0] ;// sp+0 = width 133 LDR width, [s [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | RoundRectangle.java | 34 public double width; field in class:RoundRectangle 57 * @param cornerDimensions array of 8 floating-point number corresponding to the width and 60 * is that the width and height of a corner correspond to the total width and height of the 63 public RoundRectangle(float x, float y, float width, float height, float[] cornerDimensions) { argument 71 this.width = width; 89 double scale = Math.min(1.0, width / topCornerWidth); 90 scale = Math.min(scale, width / bottomCornerWidth); 116 return width; 191 isInsideCorner(double x, double y, double width, double height) argument [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | idct_vca.cpp | 40 void idctrow1(int16 *blk, uint8 *pred, uint8 *dst, int width) argument 49 width -= 4; 50 dst -= width; 71 *((uint32*)(dst += width)) = dst_word; /* save 4 bytes to dst */ 97 void idctrow2(int16 *blk, uint8 *pred, uint8 *dst, int width) argument 105 width -= 4; 106 dst -= width; 139 *((uint32*)(dst += width)) = dst_word; /* save 4 bytes to dst */ 185 void idctrow3(int16 *blk, uint8 *pred, uint8 *dst, int width) argument 193 width 294 idctrow4(int16 *blk, uint8 *pred, uint8 *dst, int width) argument 419 idctrow1_intra(int16 *blk, PIXEL *comp, int width) argument 448 idctrow2_intra(int16 *blk, PIXEL *comp, int width) argument 505 idctrow3_intra(int16 *blk, PIXEL *comp, int width) argument 578 idctrow4_intra(int16 *blk, PIXEL *comp, int width) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | Snapshot.h | 187 void initializeViewport(int width, int height) { argument 188 mViewportData.initialize(width, height); 189 mClipAreaRoot.setViewportDimensions(width, height); 316 void initialize(int width, int height) { argument 317 mWidth = width; 319 mOrthoMatrix.loadOrtho(0, width, height, 0, -1, 1); 325 * The viewport is always defined to be (0, 0, width, height).
|
/frameworks/base/telecomm/java/android/telecom/ |
H A D | VideoProfile.java | 337 * The width of the camera video in pixels. 359 * @param width The width of the camera video (in pixels). 362 public CameraCapabilities(int width, int height) { argument 363 this(width, height, false, 1.0f); 370 * @param width The width of the camera video (in pixels). 376 public CameraCapabilities(int width, int height, boolean zoomSupported, float maxZoom) { argument 377 mWidth = width; 396 int width [all...] |
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
H A D | CompareActivity.java | 65 int width = getResources().getDimensionPixelSize(R.dimen.layer_width); 67 mSoftwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 68 mHardwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 80 int width = mSoftwareBitmap.getWidth(); 83 mSoftwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 84 mHardwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
|
/frameworks/minikin/include/minikin/ |
H A D | LineBreaker.h | 62 float width = (line < mFirstWidthLineCount) ? mFirstWidth : mRestWidth; local 65 width -= mIndents[line]; 67 width -= mIndents.back(); 70 return width; 163 void addReplacement(size_t start, size_t end, float width); 182 // ParaWidth is used to hold cumulative width from beginning of paragraph. Note that for 208 void pushBreak(int offset, float width, uint8_t hyph);
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | EdgeEffectCompat.java | 48 public void setSize(Object edgeEffect, int width, int height); argument 66 public void setSize(Object edgeEffect, int width, int height) { argument 102 public void setSize(Object edgeEffect, int width, int height) { argument 103 EdgeEffectCompatIcs.setSize(edgeEffect, width, height); 156 * @param width Effect width in pixels 159 public void setSize(int width, int height) { argument 160 IMPL.setSize(mEdgeEffect, width, height); 247 * width of X=0 to X=width, beginnin [all...] |
/frameworks/av/media/libstagefright/codecs/avc/enc/test/ |
H A D | h264_enc_test.cpp | 83 fprintf(stderr, "Usage %s <input yuv> <output file> <width> <height>" 85 fprintf(stderr, "Max width %d\n", kMaxWidth); 92 // Read height and width. 93 int32_t width; 95 width = atoi(argv[3]); 97 if (width > kMaxWidth || height > kMaxHeight || width <= 0 || height <= 0) { 98 fprintf(stderr, "Unsupported dimensions %dx%d\n", width, height); 102 if (width % 16 != 0 || height % 16 != 0) { 104 width, heigh [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | VideoSource.h | 32 VideoSource(int width, int height) argument 33 : mWidth(width), 35 mSize((width * height * 3) / 2) {
|
/frameworks/base/core/java/android/text/ |
H A D | MeasuredText.java | 179 float width = 0; 181 width = paint.getTextRunAdvances(mChars, p, len, p, len, isRtl, widths, p); 186 width = mBuilder.addStyleRun(paint, p, p + len, isRtl); 188 return width; 264 int breakText(int limit, boolean forwards, float width) { argument 269 width -= w[i]; 270 if (width < 0.0f) break; 278 width -= w[i]; 279 if (width < 0.0f) break; 288 float width [all...] |
/frameworks/base/core/java/android/view/ |
H A D | HardwareLayer.java | 100 * return false if the requested width/height cannot be satisfied 102 * @param width The new width of this layer 109 public boolean prepare(int width, int height, boolean isOpaque) { argument 110 return nPrepare(mFinalizer.get(), width, height, isOpaque); 148 private static native boolean nPrepare(long layerUpdater, int width, int height, boolean isOpaque); argument
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | UserIcons.java | 51 final int width = icon.getIntrinsicWidth(); 53 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 55 icon.setBounds(0, 0, width, height);
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | ActionMenuItemView.java | 106 final int width = configuration.screenWidthDp; 108 return width >= 480 || (width >= 640 && height >= 480) 196 int width = icon.getIntrinsicWidth(); 198 if (width > mMaxIconSize) { 199 final float scale = (float) mMaxIconSize / width; 200 width = mMaxIconSize; 206 width *= scale; 208 icon.setBounds(0, 0, width, height); 276 final int width [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | IncludeTest.java | 55 assertTrue("Both buttons should have different width", 56 button1.getLayoutParams().width != button2.getLayoutParams().width); 76 assertEquals("Included button should be 23dip x 23dip", 23, lp.width);
|
/frameworks/base/media/java/android/media/ |
H A D | RemoteDisplay.java | 129 final int width, final int height, final int flags, final int session) { 133 mListener.onDisplayConnected(surface, width, height, flags, session); 163 int width, int height, int flags, int session); 128 notifyDisplayConnected(final Surface surface, final int width, final int height, final int flags, final int session) argument 162 onDisplayConnected(Surface surface, int width, int height, int flags, int session) argument
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | FilterSurfaceView.java | 117 int width, 121 mWidth = width; 127 mListener.surfaceChanged(holder, format, width, height); 115 surfaceChanged(SurfaceHolder holder, int format, int width, int height) argument
|
H A D | GLEnvironment.java | 110 public int registerSurfaceTexture(SurfaceTexture surfaceTexture, int width, int height) { argument 112 int result = nativeAddSurfaceWidthHeight(surface, width, height); 173 private native int nativeAddSurfaceWidthHeight(Surface surface, int width, int height); argument
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
H A D | Camera2SurfaceViewActivity.java | 102 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument 103 Log.i(TAG, "Surface Changed to: " + width + "x" + height); 105 currentWidth = width;
|