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

Commit 721ded44 authored by Shuzhen Wang's avatar Shuzhen Wang
Browse files

Camera: Add analytics for feature combination query

Add code for isSessionConfigurationSupported and
getSessionCharacteristics API analytics.

Test: stats_testdrive 900
Bug: 321095612
Change-Id: Ib19dac3ffda4c9bf9e4cbc9a737928c4ba84bc23
parent 45ba476d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -105,7 +105,8 @@ public class CameraDeviceSetupImpl extends CameraDevice.CameraDeviceSetup {

            try {
                return cameraService.isSessionConfigurationWithParametersSupported(mCameraId,
                        mTargetSdkVersion, config, mContext.getDeviceId(),
                        mTargetSdkVersion, config,
                        mContext.getDeviceId(),
                        mCameraManager.getDevicePolicyFromContext(mContext));
            } catch (ServiceSpecificException e) {
                throw ExceptionUtils.throwAsPublicException(e);
+314 −183

File changed.

Preview size limit exceeded, changes collapsed.

+3 −4
Original line number Diff line number Diff line
@@ -21,14 +21,13 @@ import android.app.job.JobParameters;
import android.app.job.JobScheduler;
import android.app.job.JobService;
import android.content.ComponentName;
import android.content.ContentResolver;
import android.content.Context;
import android.util.Slog;

import java.util.concurrent.TimeUnit;

import com.android.server.LocalServices;

import java.util.concurrent.TimeUnit;

/**
 * A JobService to periodically collect camera usage stats.
 */
@@ -50,7 +49,7 @@ public class CameraStatsJobService extends JobService {
            return false;
        }

        serviceProxy.dumpUsageEvents();
        serviceProxy.dumpCameraEvents();
        return false;
    }