Refine the scrolling behavior for INewsHelper.java

In order to enhance the accuracy of the scrolling metrics collection, moved out the find UiObject from the scrollPage() to reduce uncertain time.

Bug: 164948634
Test: TF_GLOBAL_CONFIG=/Users/<ldap>/<workspace>/local-host-config.xml ./pts-tradefed run commandAndExit cuj/scroll/news \
 --primary-abi-only \
 --log-level verbose --log-level-display verbose \
 --google-account:account-name \
 --google-account:account-password \
 --wifi-network\
 --wifi-psk

Change-Id: I0397ebff28ba87d758f32b5c001699a77a0b7dad
Merged-In: I580c3d09301af8ddd4269d3a5817b4f8f26a37c4
1 file changed
tree: b47de3a5c149b65501d1bc84a70f72e1b4aadc8c
  1. build/
  2. docs/
  3. emu_test/
  4. libraries/
  5. scripts/
  6. tests/
  7. utils/
  8. PREUPLOAD.cfg