diff options
author | Hui Yu <huiyu@google.com> | 2019-02-20 10:04:07 -0800 |
---|---|---|
committer | Hui Yu <huiyu@google.com> | 2019-02-26 12:50:28 -0800 |
commit | fb72b990511b4546f0e89a1a0c7e44d13d7858dc (patch) | |
tree | a89166be255add8452d56ef29d0b1befb2aae596 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | c7e26f7fbb87a62fb6a92973543a04e7d901dc28 (diff) |
Add API Service.getForegroundServiceType()
To return current foregroundServiceType if the service has become a
foreground service.
If service become foreground service by calling Service.startForeground(int,
Notification, int type), the returned type is the type specified.
If the no-type version Service.startForeground(int, Notification) is called.
the returned type is foregroundServiceType specified in manifest.
If no foregroundServiceType specified in manifest, the returned type is
zero.
If the service is not a foreground service, the returned type is zero.
Bug: 124517685
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerProcessStateTest.java#testFgsLocation
Change-Id: Ibcc4431429a90aab92a5533e296fb104b4add9e6
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions