Add cancel_when_requester_not_on_top to device_state print-states output

Bug: 278876303
Test: adb shell cmd device_state print-states
Change-Id: Ia10641a4573df01cd1130fbf1de720090a80482a
This commit is contained in:
Jiaming Liu
2023-05-03 21:56:01 +00:00
parent db1fc4557c
commit 3486ce4e26

View File

@@ -139,7 +139,10 @@ public final class DeviceState {
@Override
public String toString() {
return "DeviceState{" + "identifier=" + mIdentifier + ", name='" + mName + '\''
+ ", app_accessible=" + !hasFlag(FLAG_APP_INACCESSIBLE) + "}";
+ ", app_accessible=" + !hasFlag(FLAG_APP_INACCESSIBLE)
+ ", cancel_when_requester_not_on_top="
+ hasFlag(FLAG_CANCEL_WHEN_REQUESTER_NOT_ON_TOP)
+ "}";
}
@Override