1package com.android.contacts.commonbind.analytics; 2 3import android.app.Activity; 4import android.app.Application; 5import android.app.Fragment; 6import android.text.TextUtils; 7 8public class AnalyticsUtil { 9 10 /** 11 * Initialize this class and setup automatic activity tracking. 12 */ 13 public static void initialize(Application application) { } 14 15 /** 16 * Log a screen view for {@param fragment}. 17 */ 18 public static void sendScreenView(Fragment fragment) {} 19 20 public static void sendScreenView(Fragment fragment, Activity activity) {} 21 22 public static void sendScreenView(Fragment fragment, Activity activity, String tag) {} 23 24 public static void sendScreenView(String fragmentName, Activity activity, String tag) {} 25 26 /** 27 * Logs a event to the analytics server. 28 * 29 * @param application The application the tracker is stored in. 30 * @param category The category for the event. 31 * @param action The event action. 32 * @param label The event label. 33 * @param value The value associated with the event. 34 */ 35 public static void sendEvent(Application application, String category, String action, 36 String label, long value) { } 37}