• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2013 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.gallery3d.util;
18 
19 import android.content.Context;
20 
21 public class UsageStatistics {
22 
23     public static final String COMPONENT_GALLERY = "Gallery";
24     public static final String COMPONENT_CAMERA = "Camera";
25     public static final String COMPONENT_EDITOR = "Editor";
26     public static final String COMPONENT_IMPORTER = "Importer";
27 
28     public static final String TRANSITION_BACK_BUTTON = "BackButton";
29     public static final String TRANSITION_UP_BUTTON = "UpButton";
30     public static final String TRANSITION_PINCH_IN = "PinchIn";
31     public static final String TRANSITION_PINCH_OUT = "PinchOut";
32     public static final String TRANSITION_INTENT = "Intent";
33     public static final String TRANSITION_ITEM_TAP = "ItemTap";
34     public static final String TRANSITION_MENU_TAP = "MenuTap";
35     public static final String TRANSITION_BUTTON_TAP = "ButtonTap";
36     public static final String TRANSITION_SWIPE = "Swipe";
37 
38     public static final String ACTION_CAPTURE_START = "CaptureStart";
39     public static final String ACTION_CAPTURE_FAIL = "CaptureFail";
40     public static final String ACTION_CAPTURE_DONE = "CaptureDone";
41     public static final String ACTION_SHARE = "Share";
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 
initialize(Context context)48     public static void initialize(Context context) {}
setPendingTransitionCause(String cause)49     public static void setPendingTransitionCause(String cause) {}
onContentViewChanged(String screenComponent, String screenName)50     public static void onContentViewChanged(String screenComponent, String screenName) {}
onEvent(String category, String action, String label)51     public static void onEvent(String category, String action, String label) {};
onEvent(String category, String action, String label, long optional_value)52     public static void onEvent(String category, String action, String label, long optional_value) {};
53 }
54