diff options
author | Hui Yu <huiyu@google.com> | 2019-01-22 15:32:20 -0800 |
---|---|---|
committer | Hui Yu <huiyu@google.com> | 2019-01-31 11:50:18 -0800 |
commit | 2d4207f8c1d2e9e405617b9f991bfb9b9f7be64e (patch) | |
tree | 0b3d31647a260268f654742418e739bd82a9836f /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
parent | 28a7ebc77a408e83588c2730b877e910b8e41b59 (diff) |
Change foregroundServiceType from enum to flags
1. Now the value of manifest attribute foregroundServiceType can
be multiple flags ORed together.
2. Add a overloaded version of Service.startForeground() with an
additional parameter foregroundServiceType. The flags in parameter
foregroundServiceType must be a subset of flags specified in manifest
attribute foregroundServiceType, otherwise a IllegalArgumentException is
thrown.
3. Add a field foregroundServiceType in ServiceRecord, it is the types
that have been started on this foreground sevice.
Bug: 111453223
Test: atest frameworks/base/tests/FrameworkPerf
Change-Id: I7eb68f696e6bf75720fe9c9388a6c23a529677f7
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions