commit | ec0add72a6bb470aeee059e36110d44744817cc7 | [log] [tgz] |
---|---|---|
author | Hansen Kurli <hkurli@google.com> | Mon May 08 12:56:48 2023 +0000 |
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Fri Jun 16 07:44:17 2023 +0000 |
tree | fee6a1d255311cdc9180949c37fca14e2fe4cee1 | |
parent | a25fdeb1c728f887595a015a7f1cef239f539ee1 [diff] |
Ensure public methods are running on handler thread Store the handler that should be running all the public methods and use it by comparing its thread with the current thread. Also refactor the tests to use and run on a test handler thread. Bug: 273451360 Test: atest FrameworksNetTests (cherry picked from https://android-review.googlesource.com/q/commit:1b71e3867345d6e1a3bc7c38a582ba9e9f9aee3d) Merged-In: I053f1043a3b518728c4b30b94eec1d33fbfe39c0 Change-Id: I053f1043a3b518728c4b30b94eec1d33fbfe39c0