summaryrefslogtreecommitdiff
path: root/tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2019-09-20 17:30:12 -0700
committerChristopher Tate <ctate@google.com>2019-10-25 11:03:06 -0700
commit0d9a81ce73b72d4399a1d50898861de7741ad831 (patch)
tree9c97ab859bab74b3b57ccd07179e5a500c8b2980 /tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java
parent18bece7b322104a5cfb3542f94c03f5d743d38b8 (diff)
Services exit fg when bg-restricted app leaves top
Apps under bg restrictions can still start foreground services while they are the top/frontmost UI. However, this was not being reexamined when the app was no longer the top UI. This is now fixed: when an app under bg restrictions exits the top state, any foreground services it is hosting are demoted out of the foreground state. At this point the service lifecycle is just like any other ordinary service that an app has left running after it is no longer the active UI: the service is stopped by the OS after the standard grace period. Bug: 139436349 Test: repro app supplied with the bug Test: foreground use of GPM under bg restrictions Test: atest CtsAppTestCases:android.app.cts.ActivityManagerProcessStateTest\#testBgRestrictedForegroundService Change-Id: I6d0e954c961f7c547c1f5d98e3926586f3071bca Merged-In: I6d0e954c961f7c547c1f5d98e3926586f3071bca
Diffstat (limited to 'tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java')
0 files changed, 0 insertions, 0 deletions