Make ContentSuggestionsManager and AppPredictionsManager tests pass

Make the tests pass when the required service is missing.
The RequiredServiceRule has to be used with @Rule, not @ClassRule.

Test: ran atest CtsAppPredictionServiceTestCases and atest CtsContentSuggestionsTestCases

Bug: 152371090
Bug: 152264636
Bug: 152589083
Bug: 147850104
Bug: 144676375

Merged-In: Id567d6420eefa499fc8c1412dc96c4763e94478b
Change-Id: Id567d6420eefa499fc8c1412dc96c4763e94478b
2 files changed