Improve JobStatus comparison.

Stop comparing individual JobInfo fields and put common JobStatus
comparison checks into a single method.

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