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

Commit e75ed46d authored by Evan Severson's avatar Evan Severson
Browse files

Log activity launches for ACTION_PROCESS_TEXT

This is to help determine the common usage cases and popularity of text
processors.

Bug: 329140306
Flag: EXEMPT logging only
Test: stats_testdrive
Change-Id: Ic4b2c5475db14b61749c37b5f9a50d6c1027f849
parent 51290d7d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -769,6 +769,11 @@ class ActivityMetricsLogger {
            // As abort for no process switch.
            launchObserverNotifyIntentFailed(newInfo.mLaunchingState.mStartUptimeNs);
        }
        if (Intent.ACTION_PROCESS_TEXT.equals(newInfo.mLastLaunchedActivity.intent.getAction())) {
            mLoggerHandler.post(PooledLambda.obtainRunnable(FrameworkStatsLog::write,
                    FrameworkStatsLog.PROCESS_TEXT_ACTION_LAUNCHED_REPORTED,
                    launchedActivity.launchedFromUid, launchedActivity.getUid()));
        }
        scheduleCheckActivityToBeDrawnIfSleeping(launchedActivity);

        // If the previous transitions are no longer visible, abort them to avoid counting the