as far as I know
They all use air pressure to measure the altitude. It means they all use barometer. It takes a reference point at ground level, then measure the difference.
Aircraft altimeter converts the air pressure to altitude. Capable GPS does the same.