1 package com.android.camera.util; 2 3 import android.content.Context; 4 5 public class SessionStatsCollector { 6 private static SessionStatsCollector sInstance; 7 instance()8 public static SessionStatsCollector instance() { 9 if (sInstance == null) { 10 sInstance = new SessionStatsCollector(); 11 } 12 return sInstance; 13 } 14 initialize(Context context)15 public void initialize(Context context) { 16 } 17 previewActive(boolean active)18 public synchronized void previewActive(boolean active) { 19 } 20 faceScanActive(boolean active)21 public synchronized void faceScanActive(boolean active) { 22 } 23 autofocusActive(boolean active)24 public synchronized void autofocusActive(boolean active) { 25 } 26 autofocusManualTrigger()27 public synchronized void autofocusManualTrigger() { 28 } 29 autofocusResult(boolean success)30 public synchronized void autofocusResult(boolean success) { 31 } 32 autofocusMoving(boolean moving)33 public synchronized void autofocusMoving(boolean moving) { 34 } 35 sessionActive(boolean active)36 public synchronized void sessionActive(boolean active) { 37 } 38 } 39 40