Add APP SessionTag

Add a SessionTag enum APP to distinguish hint sessions created by apps.

Bug: b/274929700
Test: atest VtsHalPowerTargetTest
Change-Id: I85263dc6b1b89f73f79f1a7696d37bf7fa2556ad
This commit is contained in:
Peiyong Lin
2024-01-08 23:46:37 +00:00
parent 1b5d9fea8b
commit 5189925e1d
2 changed files with 11 additions and 2 deletions

View File

@@ -38,4 +38,5 @@ enum SessionTag {
SURFACEFLINGER,
HWUI,
GAME,
APP,
}

View File

@@ -30,12 +30,20 @@ enum SessionTag {
SURFACEFLINGER,
/**
* This tag is used to mark HWUI hint sessions.
* This tag is used to mark hint sessions created by HWUI.
*/
HWUI,
/**
* This tag is used to mark Game hint sessions.
* This tag is used to mark hint sessions created by applications that are
* categorized as games.
*/
GAME,
/**
* This tag is used to mark the hint session is created by the application.
* If an applications is categorized as game, then GAME should be used
* instead.
*/
APP,
}