Simplify some XML reading code.

Use built-in TypedXmlPullParser methods to simplify some of the XML
reading code. Also, don't keep querying the elapsed time inside of the
loop.

Bug: 141645789
Test: atest FrameworksServicesTests:JobStoreTest
Change-Id: I604b5b8c9f755b3b40819f56bb0719c8627ad65a
1 file changed