summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorAndrii Kulian <akulian@google.com>2019-07-22 13:11:10 -0700
committerAndrii Kulian <akulian@google.com>2019-08-19 09:29:41 -0700
commit7dd39bb7330eb88fc1517e1a391ff01f8d66f9b9 (patch)
tree2ac76492a8944333fb9f2c109d91785949e8f865 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent12f615091fa845a1ea3d98c0d24806f033b660c8 (diff)
Refactor ActivityRecord#finish* methods
Updated ActivityRecord#finish* methods and to separate their purposes and use better suited names. ActivityRecord#finishIfPossible - start of activity finishing. In most cases will first pause activity and wait for it to report back. ActivityRecord#completeFinishing - second stage of the process, when activity is no longer resumed. Usually will be called from 'paused' callback on the server. If the next activity that should be shown in place of the current one is not visible yet - it will defer the finishing process and add the current activity to stopping list. If next is already visible - will finish immediately. ActivityRecord#destroyIfPossible - called when activity is ready to be destroyed, or when the caller does not want to wait. Will initiate the client destruction immediately, unless it's the last activity on display. Bug: 137329632 Test: atest CtsWindowManagerDeviceTestCases:android.server.wm.lifecycle Test: atest WmTests:ActivityRecordTests Change-Id: Id6e6dae306e2af91e9e00d9e66c416b13810ad93
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions