Retrieve action bar height.

@return action bar height in px.
332812
private int getActionBarHeight() {
        int actionBarHeight = 0;

        try {
            if (mToolbar != null) {
                actionBarHeight = mToolbar.getHeight();
            } else if (mHoldingActivity instanceof ActionBarActivity) {
                ActionBar supportActionBar
                    = ((ActionBarActivity) mHoldingActivity).getSupportActionBar();
                if (supportActionBar != null) {
                    actionBarHeight = supportActionBar.getHeight();
                }
            } else if (mHoldingActivity instanceof AppCompatActivity) {
                ActionBar supportActionBar
                    = ((AppCompatActivity) mHoldingActivity).getSupportActionBar();
                if (supportActionBar != null) {
                    actionBarHeight = supportActionBar.getHeight();
                }
            } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
                android.app.ActionBar actionBar = mHoldingActivity.getActionBar();
                if (actionBar != null) {
                    actionBarHeight = actionBar.getHeight();
                }
            }
        } catch (NoClassDefFoundError e) {
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
                android.app.ActionBar actionBar = mHoldingActivity.getActionBar();
                if (actionBar != null) {
                    actionBarHeight = actionBar.getHeight();
                }
            }
        }
        return actionBarHeight;
    }
238074
static int measureViewHeight(@Nullable View view) {
        int height = 0;
        if (view != null && view.isShown()) {
            ViewGroup.MarginLayoutParams modeSelectionParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
            height = view.getMeasuredHeight() + modeSelectionParams.topMargin + modeSelectionParams.bottomMargin + view.getPaddingTop() + view.getPaddingBottom();
        }
        return height;
    }
608225
public static int getFirstScreenHeight()
	{
		final GraphicsEnvironment graphicsEnvironment = GraphicsEnvironment
			.getLocalGraphicsEnvironment();
		final GraphicsDevice[] graphicsDevices = graphicsEnvironment.getScreenDevices();
		int height = getScreenHeight();
		for (final GraphicsDevice graphicsDevice : graphicsDevices)
		{
			final GraphicsConfiguration[] graphicsConfigurations = graphicsDevice
				.getConfigurations();
			final GraphicsConfiguration graphicsConfiguration = ArrayExtensions
				.getFirst(graphicsConfigurations);
			if (graphicsConfiguration != null)
			{
				final Rectangle bounds = graphicsConfiguration.getBounds();
				final double h = bounds.getHeight();
				height = (int)h;
				break;
			}
		}
		return height;
	}
1369752
private int calculateShadowWidth() {
		float mShadowRadius = isShadowResponsiveEffectEnabled() ?
				((ShadowResponsiveDrawer) shadowResponsiveDrawer).getMaxShadowRadius() : getShadowRadius();
		int shadowWidth = hasShadow() ? (int) ((mShadowRadius	+ Math.abs(getShadowXOffset())) * 2) : 0;
		LOGGER.trace("Calculated Action Button shadow width: {}", shadowWidth);
		return shadowWidth;
	}
1258540
@Override
    public int getShadowSize() {
	Element shadowElement = shadow.getElement();
	shadowElement.setScrollTop(10000);
	return shadowElement.getScrollTop();
    }
200348
public function height() {
        return $this->_cache(__FUNCTION__, function($file) {
            /** @type \Transit\File $file */

            if (!$file->isImage()) {
                return null;
            }

            $height = 0;

            if ($dims = $file->dimensions()) {
                $height = $dims['height'];
            }

            return $height;
        });
    }
59581
public static int getStatusBarHeight(Context context, boolean force) {
        int result = 0;
        int resourceId = context.getResources().getIdentifier("status_bar_height", "dimen", "android");
        if (resourceId > 0) {
            result = context.getResources().getDimensionPixelSize(resourceId);
        }

        int dimenResult = context.getResources().getDimensionPixelSize(R.dimen.tool_bar_top_padding);
        //if our dimension is 0 return 0 because on those devices we don't need the height
        if (dimenResult == 0 && !force) {
            return 0;
        } else {
            //if our dimens is > 0 && the result == 0 use the dimenResult else the result;
            return result == 0 ? dimenResult : result;
        }
    }
1056988
public Integer getHeight() {
        final Object result = getStateHelper().eval(PropertyKeys.height);
        if (result == null) {
            return null;
        }
        // this will handle any type so long as its convertable to integer
        return Integer.valueOf(result.toString());
    }
689719
private void obtainToolbarElevation() {
        int elevation;

        try {
            elevation = ThemeUtil.getDimensionPixelSize(this, R.attr.toolbarElevation);
        } catch (NotFoundException e) {
            elevation = getResources().getDimensionPixelSize(R.dimen.toolbar_elevation);
        }

        setToolbarElevation(pixelsToDp(this, elevation));
    }
573551
public function getHeight()
    {
        $height = getenv('LINES');
        if (false !== $height) {
            return (int) trim($height);
        }

        if (null === self::$height) {
            self::initDimensions();
        }

        return self::$height ?: 50;
    }
956838
public function getHeight()
    {
        if (null === $this->height && !$this->initialised) {
            $this->refreshDimensions();
        }

        if (null === $this->height) {
            $height = getenv('LINES');
            if (false !== $height) {
                $this->height = (int) trim($height);
            }
        }

        return $this->height ?: static::DEFAULT_HEIGHT;
    }
1015188
protected float getSizeArcLength(float angle) {
        if (mRadius <= 0) {
            throw new IllegalArgumentException("mRadius is not specified!");
        }
        return angle == Float.MAX_VALUE ? Float.MAX_VALUE :
                LayoutHelpers.lengthOfArc(angle, mRadius);
    }
908072
public function getHeight()
    {
        try {
            list(, $height) = explode('x', $this->getSize());
        } catch (Exception $e) {
            $height = '';
        }

        return $height;
    }
1206230
@Override
	public int getWidth() {
		int width = super.getWidth();
		if (width <= 0) {
			ImageView imageView = (ImageView) viewRef.get();
			if (imageView != null) {
				width = getImageViewFieldValue(imageView, "mMaxWidth"); // Check maxWidth parameter
			}
		}
		return width;
	}
1040701
public static function getScreenHeight() {

        // set a simple error handler that indicates the exec function was disabled
        set_error_handler("self::errorHandler", E_WARNING);

        // initialize the array for the output of the execute
        $output = [];

        // execute the bash command tput cols to determine the screen width
        $height = exec("tput lines 2>&1", $output);

        // if the height is zero, then something went wrong
        if ($height == 0 || $height == "" || is_null($height)) {

            // use the error handler to raise the exception
            self::errorHandler(null,null );

        }


        // put back the error handler
        restore_error_handler();

        // return the width
        return intval($height);



    }
923746
@Pure
	public IntegerProperty heightProperty() {
		if (this.height == null) {
			this.height = new ReadOnlyIntegerWrapper(this, MathFXAttributeNames.HEIGHT);
			this.height.bind(Bindings.subtract(maxYProperty(), minYProperty()));
		}
		return this.height;
	}
644832
private void obtainHeight(@StyleRes final int themeResourceId) {
        TypedArray typedArray = getContext().getTheme()
                .obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogHeight});
        int defaultValue = Dialog.WRAP_CONTENT;

        try {
            setHeight(typedArray.getDimensionPixelSize(0, defaultValue));
        } catch (Resources.NotFoundException | UnsupportedOperationException e) {
            setHeight(typedArray.getInteger(0, defaultValue));
        }
    }