Update uiautomator references in cts/tests/tests/preference

* Remove unused dependencies.
* Replace "ub-uiautomator" (v2.2.0) with
  "androidx.test.uiautomator_uiautomator" (v2.3.0).

Bug: 235842600
Test: atest CtsPreferenceTestCases https://android-build.googleplex.com/builds/abtd/run/L47000000959653986
Change-Id: I77c977f6c30b8820c1383c70cf7b19f8ef343d72
2 files changed