Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28833e38 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 10071751 from 19fad38a to udc-qpr1-release

Change-Id: I47d3b21c89d7efda8250d4e25c97723091aca3db
parents 0493dfe1 19fad38a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -110,4 +110,10 @@ public class LayoutType {
    // Only available on or above version code 3.
    public static final String RICHANSWER_PLACEHOLDER = "richanswer_placeholder";

    // Play placeholder
    public static final String PLAY_PLACEHOLDER = "play_placeholder";

    // Only available on or above version code 8 (UP1A)
    // This layout is for educard.
    public static final String EDUCARD = "educard";
}
+3 −0
Original line number Diff line number Diff line
@@ -39,4 +39,7 @@ public class QueryExtras {

    // Used to know which target is deleted.
    public static final String EXTRAS_BUNDLE_DELETED_TARGET_ID = "deleted_target_id";

    // Contains "educard dismissed" which is used to know if educard is dismissed.
    public static final String EXTRAS_BUNDLE_EDUCARD_DISMISSED = "educard_dismissed";
}
+12 −0
Original line number Diff line number Diff line
@@ -122,4 +122,16 @@ public class SearchTargetEventHelper {
        return "SESSION_INFO:" + Process.myUserHandle().getIdentifier()
                + ":toast:" + surfaceVisibility;
    }

    /**
     * Generate target id similar to AiAi targetId for logging Educard when educard is dismissed.
     * AiAi target id is of format "resultType:userId:packageName:extraInfo"
     *
     * @return string TargetId for Educard
     * Example of Educard target Id
     * targetId=EDUCARD:0:toast:EDUCARD
     */
    public static String generateEducardTargetIdForLogging() {
        return "EDUCARD" + ":" + Process.myUserHandle().getIdentifier() + ":toast:EDUCARD";
    }
}