1 package com.android.camera.util; 2 3 import android.content.Context; 4 5 public class UsageStatistics { 6 7 public static final String COMPONENT_GALLERY = "Gallery"; 8 public static final String COMPONENT_CAMERA = "Camera"; 9 public static final String COMPONENT_EDITOR = "Editor"; 10 public static final String COMPONENT_IMPORTER = "Importer"; 11 public static final String COMPONENT_LIGHTCYCLE = "Lightcycle"; 12 public static final String COMPONENT_PANORAMA = "Panorama"; 13 public static final String COMPONENT_GCAM = "GCam"; 14 15 public static final String TRANSITION_BACK_BUTTON = "BackButton"; 16 public static final String TRANSITION_UP_BUTTON = "UpButton"; 17 public static final String TRANSITION_PINCH_IN = "PinchIn"; 18 public static final String TRANSITION_PINCH_OUT = "PinchOut"; 19 public static final String TRANSITION_INTENT = "Intent"; 20 public static final String TRANSITION_ITEM_TAP = "ItemTap"; 21 public static final String TRANSITION_MENU_TAP = "MenuTap"; 22 public static final String TRANSITION_BUTTON_TAP = "ButtonTap"; 23 public static final String TRANSITION_SWIPE = "Swipe"; 24 25 public static final String ACTION_CAPTURE_START = "CaptureStart"; 26 public static final String ACTION_CAPTURE_FAIL = "CaptureFail"; 27 public static final String ACTION_CAPTURE_DONE = "CaptureDone"; 28 29 public static final String ACTION_STITCHING_START = "StitchingStart"; 30 public static final String ACTION_STITCHING_DONE = "StitchingDone"; 31 32 public static final String ACTION_FOREGROUNDED = "Foregrounded"; 33 public static final String ACTION_OPEN_FAIL = "OpenFailure"; 34 public static final String ACTION_SCREEN_CHANGED = "ScreenChanged"; 35 public static final String ACTION_FILMSTRIP = "Filmstrip"; 36 public static final String ACTION_TOUCH_FOCUS= "TouchFocus"; 37 public static final String ACTION_DELETE = "Delete"; 38 public static final String ACTION_GALLERY = "Gallery"; 39 public static final String ACTION_EDIT= "Edit"; 40 public static final String ACTION_CROP= "Crop"; 41 public static final String ACTION_PLAY_VIDEO= "PlayVideo"; 42 43 public static final String CATEGORY_LIFECYCLE = "AppLifecycle"; 44 public static final String CATEGORY_BUTTON_PRESS = "ButtonPress"; 45 46 public static final String LIFECYCLE_START = "Start"; 47 48 public static final String ACTION_SHARE = "Share"; 49 50 public static void initialize(Context context) {} 51 public static void setPendingTransitionCause(String cause) {} 52 public static void onContentViewChanged(String screenComponent, String screenName) {} 53 public static void onEvent(String category, String action, String label) {}; 54 public static void onEvent(String category, String action, String label, long optionalValue) {}; 55 public static void onEvent(String category, String action, String label, long optionalValue, 56 String fileNameHash) {}; 57 public static void onEvent(String category, String action, String label, 58 long optionalValue, String fileNameHash, String parameters) {} 59 public static String hashFileName(String fileName) { 60 return ""; 61 } 62 } 63