NsdService: simple cleanups

This patch replace some SparseArray<Integer> with SparseIntArray, and
simplify a value lookup function by using indexOfValue().

Test: TODO
Bug: 37013369, 33298084
Bug: 38503832

(cherry picked from commit d2552aee119299bf66d694960c72a00141642ef5)

Change-Id: Ifbe4f01bad8964e6f3a6e9633415959ab5feb0af
1 file changed
tree: 33f44502058d9a9c49d3dd3c52561b6091b4909b
  1. core/
  2. services/
  3. wifi/