Move simple functions to on device lib.

Change-Id: I690673f98244c490302cb25145cfcc8dd4125637
1 file changed