/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | InvariantDeviceProfile.java | 136 // This guarantees that width < height 267 * Returns the closest device profiles ordered by closeness to the specified width and height 271 final float width, final float height, ArrayList<InvariantDeviceProfile> points) { 277 return Float.compare(dist(width, height, a.minWidthDps, a.minHeightDps), 278 dist(width, height, b.minWidthDps, b.minHeightDps)); 286 InvariantDeviceProfile invDistWeightedInterpolate(float width, float height, argument 291 if (dist(width, height, p.minWidthDps, p.minHeightDps) == 0) { 298 float w = weight(width, height, p.minWidthDps, p.minHeightDps, WEIGHT_POWER); 343 * As a ratio of screen height, the total distance we want the parallax effect to span 346 private static float wallpaperTravelToScreenWidthRatio(int width, int height) { argument 270 findClosestDeviceProfiles( final float width, final float height, ArrayList<InvariantDeviceProfile> points) argument [all...] |
H A D | AppWidgetResizeFrame.java | 211 lp.height = mTempRange1.size(); 222 lp.height = sTmpRect.height() + sTmpRect.top - lp.y; 382 int height = 2 * mBackgroundPadding 383 + (int) (scale * (out.height() - mWidgetPadding.top - mWidgetPadding.bottom)); 391 out.bottom = out.top + height; 397 int newHeight = sTmpRect.height(); 420 lp.height = newHeight; 429 PropertyValuesHolder height = PropertyValuesHolder.ofInt("height", l [all...] |
H A D | DropTarget.java | 93 res[1] = top + dragView.getDragRegion().height() / 2;
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
H A D | Delaunay.h | 100 int constructList(EdgePointer e, int width, int height); 108 int triangulate(SEdgeVector **edge, int nsite, int width, int height);
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
H A D | IndicatorControlBar.java | 96 int height = bottom - top; 99 int size = height;
|
H A D | SecondLevelIndicatorControlBar.java | 177 int height = bottom - top; 185 getChildAt(i).layout(offsetX, 0, offsetX + iconWidth, height); 192 (height - padding)); 196 mCloseIcon.layout(offsetX, 0, (offsetX + iconWidth), height);
|
/packages/apps/Music/src/com/android/music/ |
H A D | TouchInterceptor.java | 230 params.height = mItemHeightNormal; 262 int height = mItemHeightNormal; 270 height = mItemHeightExpanded; 282 height = 1; 286 height = mItemHeightExpanded; 290 params.height = height; 375 mWindowParams.height = WindowManager.LayoutParams.WRAP_CONTENT;
|
/packages/apps/TV/src/com/android/exoplayer/ |
H A D | MediaFormatUtil.java | 39 int height = getOptionalIntegerV16(format, android.media.MediaFormat.KEY_HEIGHT); 59 maxInputSize, durationUs, width, height, rotationDegrees, MediaFormat.NO_VALUE,
|
/packages/services/BuiltInPrintService/jni/plugins/ |
H A D | wprint_image.h | 80 unsigned int height; member in struct:__anon186 208 * Return the full image height, including any padding 213 * Decode a single stripe of data into rgb_pixels, storing height rendered and returning 216 int wprint_image_decode_stripe(wprint_image_info_t *image_info, int start_row, int *height,
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
H A D | TestManagedVideoProvider.java | 51 int height) { 52 super.onPeerDimensionsChanged(rvp, width, height);
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
H A D | MockVideoProvider.java | 249 * @param height The new height. 251 public void sendMockPeerDimensions(int width, int height) { argument 252 super.changePeerDimensions(width, height);
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
H A D | PanoramaActivity.java | 186 public MosaicJpeg(byte[] data, int width, int height) { argument 189 this.height = height; 196 this.height = 0; 202 public final int height; field in class:PanoramaActivity.MosaicJpeg 376 int h = size.height; 859 Uri uri = savePanorama(jpeg.data, jpeg.width, jpeg.height, orientation); 861 // Create a thumbnail whose width or height is equal or bigger 862 // than the screen's width or height. 865 int heightRatio = (int) Math.ceil((double) jpeg.height 947 savePanorama(byte[] jpegData, int width, int height, int orientation) argument [all...] |
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | MatchParentShrinkingLinearLayout.java | 685 if (heightMode == MeasureSpec.EXACTLY && lp.height == 0 && lp.weight > 0) { 695 if (lp.height == 0 && lp.weight > 0) { 699 // with a height of 0 701 lp.height = LayoutParams.WRAP_CONTENT; 713 lp.height = oldHeight; 810 // Check against our minimum height 850 if ((lp.height != 0) || (heightMode != MeasureSpec.EXACTLY)) { 871 } else if (delta < 0 && lp.height == LayoutParams.MATCH_PARENT) { 968 // Temporarily force children to reuse their old measured height 970 int oldHeight = lp.height; 1339 setChildFrame(View child, int left, int top, int width, int height) argument 1523 LayoutParams(int width, int height) argument 1538 LayoutParams(int width, int height, float weight) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
H A D | AutoFocusHelper.java | 121 * @param fraction Fraction in [0,1]. Multiplied by min(cropRegion.width(), cropRegion.height()) 130 int minCropEdge = Math.min(cropRegion.width(), cropRegion.height()); 142 int yCenterSensor = (int)(cropRegion.top + nsc.y * cropRegion.height()); 214 int yCenter = sensor.height() / 2; 216 int yDelta = (int) (0.5f * sensor.height() / zoom);
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
H A D | GridLines.java | 49 float thirdHeight = mDrawBounds.height() / 3;
|
/packages/apps/Camera2/src/com/android/camera/ui/focus/ |
H A D | CameraCoordinateTransformer.java | 107 return rect.width() != 0 && rect.height() != 0;
|
/packages/apps/Camera2/src_pd/com/android/camera/stats/ |
H A D | UsageStatistics.java | 69 float zoom, int width, int height, long size, 68 videoCaptureDoneEvent(String ref, long durationMsec, boolean front, float zoom, int width, int height, long size, String flashSetting, boolean gridLinesOn) argument
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | CropImage.java | 238 int dy = (srcRect.height() - dstRect.height()) / 2; 256 int height = r.height(); 260 croppedImage = Bitmap.createBitmap(width, height, 266 Rect dstRect = new Rect(0, 0, width, height); 281 p.addCircle(width / 2F, height / 2F, width / 2F, 438 int height = mBitmap.getHeight(); 440 Rect imageRect = new Rect(0, 0, width, height); 473 int height [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | TimeBar.java | 130 * @return the preferred height of this view, including invisible padding 133 return mTimeBounds.height() + mVPaddingInPx + mScrubberPadding; 137 * @return the height of the time bar, excluding invisible padding 140 return mTimeBounds.height() + mVPaddingInPx; 206 mTimeBounds.height() + mVPaddingInPx / 2 + mScrubberPadding + 1, 211 mTimeBounds.height() + mVPaddingInPx / 2 + mScrubberPadding + 1,
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | ImageFilterRedEye.java | 73 rect[3] = (short) r.height();
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | Folder.java | 660 res[1] = top + dragView.getDragRegion().height() / 2; 798 int height = getPaddingTop() + getPaddingBottom() + mContent.getDesiredHeight() 805 int centerY = (int) (mTempRect.top + mTempRect.height() * scale / 2); 807 int centeredTop = centerY - height / 2; 825 bounds.top + bounds.height() - height); 830 if (height >= bounds.height()) { 831 top = bounds.top + (bounds.height() - height) / [all...] |
H A D | ShortcutAndWidgetContainer.java | 86 canvas.drawRect(lp.x, lp.y, lp.x + lp.width, lp.y + lp.height, p); 121 int childheightMeasureSpec = MeasureSpec.makeMeasureSpec(lp.height, 144 child.layout(childLeft, childTop, childLeft + lp.width, childTop + lp.height); 154 cellXY[1] + childTop + lp.height / 2, 0, null);
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
H A D | AllAppsBackgroundDrawable.java | 52 * and height of the image into account to center the image to the offset. 73 int height = mImage.getIntrinsicHeight(); 75 int top = bounds.top + (int) (mYPercent * bounds.height()); 80 top -= (height / 2); 82 mImage.setBounds(left, top, left + width, top + height);
|
/packages/apps/Launcher3/src/com/android/launcher3/pageindicators/ |
H A D | PageIndicatorCaretLandscape.java | 60 getHeight() - drawableBounds.height());
|
/packages/apps/Messaging/jni/ |
H A D | GifTranscoder.h | 41 // Resizes a GIF's width and height to 50% of their original dimensions. The new file is 74 int height,
|