@Test public void testAttributeListener() throws Exception { MParticle.setInstance(new MockMParticle()); }
public static void setInstance(@Nullable MParticle instance) { MParticle.instance = instance; }
MParticle { public static void setInstance(@Nullable MParticle instance) { MParticle.instance = instance; } }
MParticle { public static void setInstance(@Nullable MParticle instance) { MParticle.instance = instance; } protected  MParticle(); private  MParticle(MParticleOptions options); }
MParticle { public static void setInstance(@Nullable MParticle instance) { MParticle.instance = instance; } protected  MParticle(); private  MParticle(MParticleOptions options); static void start(@NonNull MParticleOptions options); @Nullable static MParticle getInstance(); static void setInstance(@Nullable MParticle instance); static boolean isAndroidIdDisabled(); static void setDeviceImei(@Nullable String deviceImei); @Nullable static String getDeviceImei(); boolean isDevicePerformanceMetricsDisabled(); @Nullable Session getCurrentSession(); void upload(); void setInstallReferrer(@Nullable String referrer); @Nullable String getInstallReferrer(); void logEvent(@NonNull BaseEvent event); void logLtvIncrease(@NonNull BigDecimal valueIncreased, @Nullable String eventName, @Nullable Map<String, String> contextInfo); void logScreen(@NonNull String screenName); void logScreen(@NonNull String screenName, @Nullable Map<String, String> eventData); void logScreen(@NonNull MPEvent screenEvent); void leaveBreadcrumb(@NonNull String breadcrumb); void logError(@NonNull String message); void logError(@NonNull String message, @Nullable Map<String, String> errorAttributes); void logNetworkPerformance(@NonNull String url, long startTime, @NonNull String method, long length, long bytesSent, long bytesReceived, @Nullable String requestString, int responseCode); void logException(@NonNull Exception exception); void logException(@NonNull Exception exception, @Nullable Map<String, String> eventData); void removeAttributionListener(); @Nullable AttributionListener getAttributionListener(); @NonNull Map<Integer, AttributionResult> getAttributionResults(); void logException(@NonNull Exception exception, @Nullable Map<String, String> eventData, @Nullable String message); @SuppressLint("MissingPermission") void enableLocationTracking(@NonNull String provider, long minTime, long minDistance); @SuppressLint("MissingPermission") void disableLocationTracking(); boolean isLocationTrackingEnabled(); void setLocation(@Nullable Location location); void setSessionAttribute(@NonNull String key, @Nullable Object value); void incrementSessionAttribute(@NonNull String key, int value); @NonNull Boolean getOptOut(); void setOptOut(@NonNull Boolean optOutStatus); @Nullable Uri getSurveyUrl(final int kitId); @NonNull Environment getEnvironment(); void enableUncaughtExceptionLogging(); void disableUncaughtExceptionLogging(); @NonNull Boolean isAutoTrackingEnabled(); int getSessionTimeout(); void getUserSegments(long timeout, @NonNull String endpointId, @NonNull SegmentListener listener); @SuppressLint("AddJavascriptInterface") @RequiresApi(17) void registerWebView(@NonNull WebView webView); @SuppressLint("AddJavascriptInterface") @RequiresApi(17) void registerWebView(@NonNull WebView webView, String requiredBridgeName); static void setLogLevel(@NonNull LogLevel level); @NonNull MPMessagingAPI Messaging(); @NonNull MPMediaAPI Media(); boolean isProviderActive(int serviceProviderId); boolean isKitActive(int serviceProviderId); @Nullable Object getKitInstance(int kitId); void logPushRegistration(@Nullable String instanceId, @Nullable String senderId); void logNotification(@NonNull Intent intent); void logNotificationOpened(@NonNull Intent intent); @NonNull Internal Internal(); @NonNull IdentityApi Identity(); static void reset(@NonNull Context context); static void reset(@NonNull final Context context, @Nullable final ResetListener callback); static void addListener(@NonNull Context context, @NonNull SdkListener listener); static void removeListener(SdkListener listener); void setIntegrationAttributes(int integrationId, @Nullable Map<String, String> attributes); @NonNull Map<String, String> getIntegrationAttributes(int integrationId); }
MParticle { public static void setInstance(@Nullable MParticle instance) { MParticle.instance = instance; } protected  MParticle(); private  MParticle(MParticleOptions options); static void start(@NonNull MParticleOptions options); @Nullable static MParticle getInstance(); static void setInstance(@Nullable MParticle instance); static boolean isAndroidIdDisabled(); static void setDeviceImei(@Nullable String deviceImei); @Nullable static String getDeviceImei(); boolean isDevicePerformanceMetricsDisabled(); @Nullable Session getCurrentSession(); void upload(); void setInstallReferrer(@Nullable String referrer); @Nullable String getInstallReferrer(); void logEvent(@NonNull BaseEvent event); void logLtvIncrease(@NonNull BigDecimal valueIncreased, @Nullable String eventName, @Nullable Map<String, String> contextInfo); void logScreen(@NonNull String screenName); void logScreen(@NonNull String screenName, @Nullable Map<String, String> eventData); void logScreen(@NonNull MPEvent screenEvent); void leaveBreadcrumb(@NonNull String breadcrumb); void logError(@NonNull String message); void logError(@NonNull String message, @Nullable Map<String, String> errorAttributes); void logNetworkPerformance(@NonNull String url, long startTime, @NonNull String method, long length, long bytesSent, long bytesReceived, @Nullable String requestString, int responseCode); void logException(@NonNull Exception exception); void logException(@NonNull Exception exception, @Nullable Map<String, String> eventData); void removeAttributionListener(); @Nullable AttributionListener getAttributionListener(); @NonNull Map<Integer, AttributionResult> getAttributionResults(); void logException(@NonNull Exception exception, @Nullable Map<String, String> eventData, @Nullable String message); @SuppressLint("MissingPermission") void enableLocationTracking(@NonNull String provider, long minTime, long minDistance); @SuppressLint("MissingPermission") void disableLocationTracking(); boolean isLocationTrackingEnabled(); void setLocation(@Nullable Location location); void setSessionAttribute(@NonNull String key, @Nullable Object value); void incrementSessionAttribute(@NonNull String key, int value); @NonNull Boolean getOptOut(); void setOptOut(@NonNull Boolean optOutStatus); @Nullable Uri getSurveyUrl(final int kitId); @NonNull Environment getEnvironment(); void enableUncaughtExceptionLogging(); void disableUncaughtExceptionLogging(); @NonNull Boolean isAutoTrackingEnabled(); int getSessionTimeout(); void getUserSegments(long timeout, @NonNull String endpointId, @NonNull SegmentListener listener); @SuppressLint("AddJavascriptInterface") @RequiresApi(17) void registerWebView(@NonNull WebView webView); @SuppressLint("AddJavascriptInterface") @RequiresApi(17) void registerWebView(@NonNull WebView webView, String requiredBridgeName); static void setLogLevel(@NonNull LogLevel level); @NonNull MPMessagingAPI Messaging(); @NonNull MPMediaAPI Media(); boolean isProviderActive(int serviceProviderId); boolean isKitActive(int serviceProviderId); @Nullable Object getKitInstance(int kitId); void logPushRegistration(@Nullable String instanceId, @Nullable String senderId); void logNotification(@NonNull Intent intent); void logNotificationOpened(@NonNull Intent intent); @NonNull Internal Internal(); @NonNull IdentityApi Identity(); static void reset(@NonNull Context context); static void reset(@NonNull final Context context, @Nullable final ResetListener callback); static void addListener(@NonNull Context context, @NonNull SdkListener listener); static void removeListener(SdkListener listener); void setIntegrationAttributes(int integrationId, @Nullable Map<String, String> attributes); @NonNull Map<String, String> getIntegrationAttributes(int integrationId);  }