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

Skip to content
Commit 40d5ce0b authored by Tony Mak's avatar Tony Mak
Browse files

A few missing pieces for logging in ExtServices

1. Log TYPE_ACTIONS_GENERATED with a list of suggestion type.
2. Log the score of the clicked suggestion.
    a) For replies, the score is stored in session.
    b) For actions, the score is stored in the extras.
3. Suppress logging if suggestions are not going to be used by SysUI
4. Removed @NonNull annotation. SmartActionsHelpers are fully annotated,
   so we only need @Nullable annotation.
5. TextClassificationManager cannot be null, and getTextClassifier()
   won't return null either, so removed some null checks.

Test: atest SmartActionsHelperTest
Test: Manual. Send a message to myself, observer generated event is
      loggeed. Tap on it, seeing the score is logged.
Test: Manual, send a message with app generated replies, observe that
      only generated event is logged.

BUG: 120803809

Change-Id: I1c18decb237cbeb267f2a3db6ebb149232b786b4
parent 52f0d571
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment