Lines Matching refs:height
224 public void onNonDecorWindowSizeChanged(int width, int height, int rotation) {
226 mWindowHeight = height;
233 * activity layout width, height and aspect ratio.
237 * @param height height of the main activity layout, excluding system decor
244 private PositionConfiguration getPositionConfiguration(int width, int height,
246 boolean landscape = width > height;
252 config.mPreviewRect.set(0, 0, width, height);
255 config.mBottomBarRect.set(width - mBottomBarOptimalHeight, 0, width, height);
257 config.mBottomBarRect.set(0, height - mBottomBarOptimalHeight, width, height);
263 // Get the bottom bar width and height.
265 int longerEdge = Math.max(width, height);
266 int shorterEdge = Math.min(width, height);
282 config.mPreviewRect.set(0, height / 2 - previewShorterEdge / 2, previewLongerEdge,
283 height / 2 + previewShorterEdge / 2);
284 config.mBottomBarRect.set(width - barSize, height / 2 - previewShorterEdge / 2,
285 width, height / 2 + previewShorterEdge / 2);
289 config.mBottomBarRect.set(width / 2 - previewShorterEdge / 2, height - barSize,
290 width / 2 + previewShorterEdge / 2, height);
304 config.mBottomBarRect.set(width - barSize, 0, width, height);
306 float bottom = height;
309 config.mBottomBarRect.set(0, height - barSize, width, height);
318 config.mPreviewRect.set(0, height / 2 - previewShorterEdge / 2, previewLongerEdge,
319 height / 2 + previewShorterEdge / 2);
320 config.mBottomBarRect.set(width - barSize, height / 2 - previewShorterEdge / 2,
321 width, height / 2 + previewShorterEdge / 2);
325 config.mBottomBarRect.set(width / 2 - previewShorterEdge / 2, height - barSize,
326 width / 2 + previewShorterEdge / 2, height);
339 config.mBottomBarRect.set(width - barSize, 0, width, height);
341 float bottom = height - barSize;
344 config.mBottomBarRect.set(0, height - barSize, width, height);
352 rotate.setRotate(180, width / 2, height / 2);