Home
last modified time | relevance | path

Searched refs:PIXEL_DENSITY (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Gallery3D/src/com/cooliris/media/
DDisplaySlot.java37 CAPTION_STYLE.fontSize = 16 * App.PIXEL_DENSITY;
39 CAPTION_STYLE.width = (App.PIXEL_DENSITY < 1.5f) ? 128 : 256;
40 CAPTION_STYLE.height = (App.PIXEL_DENSITY < 1.5f) ? 32 : 64;
45 CLUSTER_STYLE.width = (App.PIXEL_DENSITY < 1.5f) ? 128 : 256;
46 CLUSTER_STYLE.height = (App.PIXEL_DENSITY < 1.5f) ? 32 : 64;
48 CLUSTER_STYLE.fontSize = 16 * App.PIXEL_DENSITY;
53 LOCATION_STYLE.fontSize = 12 * App.PIXEL_DENSITY;
54 LOCATION_STYLE.width = (App.PIXEL_DENSITY < 1.5f) ? 128 : 256;
55 LOCATION_STYLE.height = (App.PIXEL_DENSITY < 1.5f) ? 32 : 64;
56 LOCATION_STYLE.fontSize = 12 * App.PIXEL_DENSITY;
DPathBarLayer.java38 sPathFormat.fontSize = 18f * App.PIXEL_DENSITY;
149 return ICON_WIDTH * App.PIXEL_DENSITY; in getIconWidth()
169 iconWidth = 8 * App.PIXEL_DENSITY; in layout()
171 float offset = 5 * App.PIXEL_DENSITY; in layout()
200 int x = (int) (3 * App.PIXEL_DENSITY); in renderBlended()
223 float xOffset = 5 * App.PIXEL_DENSITY; in renderBlended()
233 view.draw2D(icon, x + xOffset, y - 2 * App.PIXEL_DENSITY); in renderBlended()
240 float textOffset = (iconWidth == 0) ? 8 * App.PIXEL_DENSITY : iconWidth; in renderBlended()
244 x += (int) (width + (21 * App.PIXEL_DENSITY + 0.5f)); in renderBlended()
288 width -= 20f * App.PIXEL_DENSITY; in recomputeComponents()
[all …]
DPopupMenu.java62 paint.setTextSize(17f * App.PIXEL_DENSITY);
65 …CONFIG = new IconTitleDrawable.Config((int) (45 * App.PIXEL_DENSITY), (int) (34 * App.PIXEL_DENSIT…
223 int maxWidth = (int) (ICON_TITLE_MIN_WIDTH * App.PIXEL_DENSITY); in layout()
238 int rowHeight = (int) (mRowHeight * App.PIXEL_DENSITY); in layout()
239 int left = (int) (PADDING_LEFT * App.PIXEL_DENSITY); in layout()
240 int top = (int) (PADDING_TOP * App.PIXEL_DENSITY); in layout()
251 … setSize(right + PADDING_RIGHT * App.PIXEL_DENSITY, top + PADDING_BOTTOM * App.PIXEL_DENSITY); in layout()
309 …dRect.set(0, 0, getWidth(), getHeight() - (int) (POPUP_TRIANGLE_EXTRA_HEIGHT * App.PIXEL_DENSITY)); in onSizeChanged()
DHudLayer.java131 mTopRightButton.setSize((int) (100 * App.PIXEL_DENSITY), (int) (94 * App.PIXEL_DENSITY)); in HudLayer()
133 mZoomInButton.setSize(66.666f * App.PIXEL_DENSITY, 42 * App.PIXEL_DENSITY); in HudLayer()
134 mZoomOutButton.setSize(66.666f * App.PIXEL_DENSITY, 42 * App.PIXEL_DENSITY); in HudLayer()
444 mTimeBar.setPosition(0f, height - TimeBar.HEIGHT * App.PIXEL_DENSITY); in onSizeChanged()
445 mTimeBar.setSize(width, TimeBar.HEIGHT * App.PIXEL_DENSITY); in onSizeChanged()
447 mSelectionMenuTop.setSize(width, MenuBar.HEIGHT * App.PIXEL_DENSITY); in onSizeChanged()
448 mSelectionMenuBottom.setPosition(0f, height - MenuBar.HEIGHT * App.PIXEL_DENSITY); in onSizeChanged()
449 mSelectionMenuBottom.setSize(width, MenuBar.HEIGHT * App.PIXEL_DENSITY); in onSizeChanged()
451 mFullscreenMenu.setPosition(0f, height - MenuBar.HEIGHT * App.PIXEL_DENSITY); in onSizeChanged()
452 mFullscreenMenu.setSize(width, MenuBar.HEIGHT * App.PIXEL_DENSITY); in onSizeChanged()
[all …]
DTimeBar.java85 mMonthYearFormat.fontSize = 17f * App.PIXEL_DENSITY; in TimeBar()
88 mDayFormat.fontSize = 17f * App.PIXEL_DENSITY; in TimeBar()
288 mTotalWidth = dx - MARKER_SPACING_PIXELS * App.PIXEL_DENSITY; in layout()
305 return marker.x + MARKER_SPACING_PIXELS * App.PIXEL_DENSITY; in addMarker()
357 float autoScrollMargin = AUTO_SCROLL_MARGIN * App.PIXEL_DENSITY; in update()
419 … + ((validDate) ? (day.getWidth() + year.getWidth() + 10 * App.PIXEL_DENSITY) : 0); in renderBlended()
420 … if ((expectedWidth + numPixelsBufferX * App.PIXEL_DENSITY) != mBackgroundRect.right) { in renderBlended()
421 … mBackgroundRect.right = (int) (expectedWidth + numPixelsBufferX * App.PIXEL_DENSITY); in renderBlended()
422 mBackgroundRect.bottom = (int) (month.getHeight() + 20 * App.PIXEL_DENSITY); in renderBlended()
438 … float x = (view.getWidth() - expectedWidth - numPixelsBufferX * App.PIXEL_DENSITY) / 2; in renderBlended()
[all …]
DMenuBar.java40 MENU_TITLE_STYLE.fontSize = 17 * App.PIXEL_DENSITY;
44 MENU_TITLE_STYLE_TEXT.fontSize = 15 * App.PIXEL_DENSITY;
122 int menuHeight = (int) (HEIGHT * App.PIXEL_DENSITY + 0.5f); in renderBlended()
174 int extra = height - (int) (HEIGHT * App.PIXEL_DENSITY); in drawHighlight()
176 int x = menu.x + (int) (MENU_HIGHLIGHT_EDGE_INSET * App.PIXEL_DENSITY); in drawHighlight()
177 int width = menu.mWidth - (int) ((MENU_HIGHLIGHT_EDGE_INSET * 2) * App.PIXEL_DENSITY); in drawHighlight()
181 …view.draw2D(highlightLeft, x - MENU_HIGHLIGHT_EDGE_WIDTH * App.PIXEL_DENSITY, y, MENU_HIGHLIGHT_ED… in drawHighlight()
182 * App.PIXEL_DENSITY, height); in drawHighlight()
188 … view.draw2D(highlightRight, x + width, y, MENU_HIGHLIGHT_EDGE_WIDTH * App.PIXEL_DENSITY, height); in drawHighlight()
192 if (y > mY - HIT_TEST_MARGIN * App.PIXEL_DENSITY) { in hitTestMenu()
DGridLayoutInterface.java26 mSpacingX = (int) (20 * App.PIXEL_DENSITY); in GridLayoutInterface()
27 mSpacingY = (int) (40 * App.PIXEL_DENSITY); in GridLayoutInterface()
DGridDrawables.java102 float sizeOfSelectedIcon = 32 * App.PIXEL_DENSITY; // In pixels. in GridDrawables()
104 float sizeOfLocationIcon = 52 * App.PIXEL_DENSITY; // In pixels. in GridDrawables()
106 float sizeOfSourceIcon = 76 * App.PIXEL_DENSITY; // In pixels. in GridDrawables()
114 float seedTextWidth = (App.PIXEL_DENSITY < 1.5f) ? 128.0f : 256.0f; in GridDrawables()
116 float textHeightPow2 = (App.PIXEL_DENSITY < 1.5f) ? 32.0f : 64.0f; in GridDrawables()
DDisplayItem.java112 mJitteredPosition.x *= App.PIXEL_DENSITY; in set()
113 mJitteredPosition.y *= App.PIXEL_DENSITY; in set()
278 if (Math.abs(spanDelta) < 10 * App.PIXEL_DENSITY) { in setOffset()
283 mSpanSpeed = Math.abs(span / (600 * App.PIXEL_DENSITY)); in setOffset()
301 int maxSeedVal = (int)(span / (125 * App.PIXEL_DENSITY)); in setOffset()
DGridLayer.java258 layoutInterface.mSpacingX = (int) (10 * App.PIXEL_DENSITY); in setState()
259 layoutInterface.mSpacingY = (int) (10 * App.PIXEL_DENSITY); in setState()
294 layoutInterface.mSpacingX = (int) (100 * App.PIXEL_DENSITY); in setState()
295 layoutInterface.mSpacingY = (int) (70 * App.PIXEL_DENSITY * yStretch); in setState()
299 layoutInterface.mSpacingX = (int) (40 * App.PIXEL_DENSITY); in setState()
300 layoutInterface.mSpacingY = (int) (40 * App.PIXEL_DENSITY); in setState()
323 layoutInterface.mSpacingX = (int) (100 * App.PIXEL_DENSITY); in setState()
324 layoutInterface.mSpacingY = (int) (70 * App.PIXEL_DENSITY * yStretch); in setState()
1208 …otForScreenPosition(posX, posY, mCamera.mItemWidth + (int) (100 * App.PIXEL_DENSITY), mCamera.mIte… in getMetadataSlotIndexForScreenPosition()
1209 + (int) (100 * App.PIXEL_DENSITY)); in getMetadataSlotIndexForScreenPosition()
DStringTexture.java53 … return (int) (10.0f * App.PIXEL_DENSITY) + (int) FloatMath.ceil(paint.measureText(string)); in computeTextWidthForConfig()
245 public int shadowRadius = 4 * (int) App.PIXEL_DENSITY;
DGallery.java134 …mGridLayer = new GridLayer(this, (int) (96.0f * App.PIXEL_DENSITY), (int) (72.0f * App.PIXEL_DENSI… in onCreate()
DGridDrawManager.java96 stc.fontSize = 16 * App.PIXEL_DENSITY; in GridDrawManager()
358 if (App.PIXEL_DENSITY > 1.0f) { in drawFocusItems()
/packages/apps/Gallery3D/src/com/cooliris/app/
DApp.java43 public static float PIXEL_DENSITY = 0.0f; field in App
58 if(PIXEL_DENSITY == 0.0f) { in App()
61 PIXEL_DENSITY = metrics.density; in App()