OSDN Git Service

Add unit tests for AttentionManagerService. Make sure it won't crash when OnSwitchUse...
authorYi Jiang <eejiang@google.com>
Wed, 17 Apr 2019 00:23:11 +0000 (17:23 -0700)
committerYi Jiang <eejiang@google.com>
Wed, 17 Apr 2019 18:21:51 +0000 (11:21 -0700)
commitfa323e7dcb263ac699d30a6722774ef186a168f2
treef819fce88705291f23afa1dd39b5ad421a7c69a6
parentb33a6c6067ec3896be2584e4481b1ec038e7f774
Add unit tests for AttentionManagerService. Make sure it won't crash when OnSwitchUser() is invoked while the bound service is null.

Bug: 130659721
Test: atest AttentionManagerServiceTest

Change-Id: I71e1252e92eabca02fe2ae9b21596377f22f064c
services/core/java/com/android/server/attention/AttentionManagerService.java
services/tests/servicestests/src/com/android/server/attention/AttentionManagerServiceTest.java