Move common linear data methods into LinearData.static

Some methods apply to all types of LinearData. Also moved to
static so they can be used by the converter on raw data.

Change-Id: I79066d6d3ccde48aea7c0848d56ef86bc70f6656
Merge "Move common linear data methods into LinearData.static"