summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorNathan Harold <nharold@google.com>2018-10-25 10:32:10 -0700
committerNathan Harold <nharold@google.com>2018-11-13 15:08:56 -0800
commit7581efdb9d4be7fce58a7fe78c59a77b06d917ea (patch)
treed3f7a6a5f3ac346d2a2aaaea0f45b197846c03d8 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentb499af866c0fe4e66d8ee1712d6e3a66821faed9 (diff)
Add Executor Support for PhoneStateListener
Support an Executor so that PhoneStateListener can invoke callbacks not only on a user's preferred Looper but also on a preferred Handler or in another thread management scheme. PhoneStateListener uses an odd pattern for its API, so to support the historical use cases of having the internal callback instance be instantiated during object construction, the Executor needs to be passed in to the PhoneStateListener during construction. This also permits the listen() method in TelephonyManager to avoid odd situations of having a version with an Executor be passed in when requesting to stop listening for events. Bug: 118350385 Test: atest PhoneStateListenerTest atest PhoneStateListenerExecutorTest Change-Id: I8eeb2e156f6d67d192d17586e6aa5579ff6d675d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions