Lines Matching refs:res
20 import android.content.res.Configuration;
21 import android.content.res.Resources;
153 Resources res = context.getResources(); in DeviceProfile() local
154 DisplayMetrics dm = res.getDisplayMetrics(); in DeviceProfile()
157 isTablet = res.getBoolean(R.bool.is_tablet); in DeviceProfile()
158 isLargeTablet = res.getBoolean(R.bool.is_large_tablet); in DeviceProfile()
165 res.getBoolean(R.bool.hotseat_transpose_layout_with_orientation); in DeviceProfile()
170 res = context.getResources(); in DeviceProfile()
172 edgeMarginPx = res.getDimensionPixelSize(R.dimen.dynamic_grid_edge_margin); in DeviceProfile()
177 int cellLayoutPadding = res.getDimensionPixelSize(R.dimen.dynamic_grid_cell_layout_padding); in DeviceProfile()
186 verticalDragHandleSizePx = res.getDimensionPixelSize( in DeviceProfile()
189 res.getDimensionPixelSize(R.dimen.vertical_drag_handle_overlap_workspace); in DeviceProfile()
192 res.getDimensionPixelSize(R.dimen.dynamic_grid_icon_drawable_padding); in DeviceProfile()
193 dropTargetBarSizePx = res.getDimensionPixelSize(R.dimen.dynamic_grid_drop_target_size); in DeviceProfile()
195 res.getDimensionPixelSize(R.dimen.dynamic_grid_min_spring_loaded_space); in DeviceProfile()
197 workspaceCellPaddingXPx = res.getDimensionPixelSize(R.dimen.dynamic_grid_cell_padding_x); in DeviceProfile()
200 res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_top_padding); in DeviceProfile()
202 : res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_bottom_non_tall_padding)) in DeviceProfile()
203 + res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_bottom_padding); in DeviceProfile()
205 res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_side_padding); in DeviceProfile()
210 : (res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_extra_vertical_size) in DeviceProfile()
214 updateAvailableDimensions(dm, res); in DeviceProfile()
228 updateAvailableDimensions(dm, res); in DeviceProfile()
297 private void updateAvailableDimensions(DisplayMetrics dm, Resources res) { in updateAvailableDimensions() argument
298 updateIconSize(1f, res, dm); in updateAvailableDimensions()
305 updateIconSize(scale, res, dm); in updateAvailableDimensions()
307 updateAvailableFolderCellDimensions(dm, res); in updateAvailableDimensions()
310 private void updateIconSize(float scale, Resources res, DisplayMetrics dm) { in updateIconSize() argument
354 res.getInteger(R.integer.config_workspaceSpringLoadShrinkPercentage) / 100.0f, in updateIconSize()
358 res.getInteger(R.integer.config_workspaceSpringLoadShrinkPercentage) / 100.0f; in updateIconSize()
366 private void updateAvailableFolderCellDimensions(DisplayMetrics dm, Resources res) { in updateAvailableFolderCellDimensions() argument
367 int folderBottomPanelSize = res.getDimensionPixelSize(R.dimen.folder_label_padding_top) in updateAvailableFolderCellDimensions()
368 + res.getDimensionPixelSize(R.dimen.folder_label_padding_bottom) in updateAvailableFolderCellDimensions()
369 + Utilities.calculateTextHeight(res.getDimension(R.dimen.folder_label_text_size)); in updateAvailableFolderCellDimensions()
371 updateFolderCellSize(1f, dm, res); in updateAvailableFolderCellDimensions()
389 updateFolderCellSize(scale, dm, res); in updateAvailableFolderCellDimensions()
393 private void updateFolderCellSize(float scale, DisplayMetrics dm, Resources res) { in updateFolderCellSize() argument
396 (int) (res.getDimensionPixelSize(R.dimen.folder_child_text_size) * scale); in updateFolderCellSize()
399 int cellPaddingX = (int) (res.getDimensionPixelSize(R.dimen.folder_cell_x_padding) * scale); in updateFolderCellSize()
400 int cellPaddingY = (int) (res.getDimensionPixelSize(R.dimen.folder_cell_y_padding) * scale); in updateFolderCellSize()