Consolidate fake functions and create the loc_stub library out of the fake functions CRs-fixed: 605814 Change-Id: I351426591f220075fa7a7cec776f4f86c837a3f6