@Test public void isLimitAdTrackingEnabled_whenGooglePlayServicesIsNotLinked_shouldReturnFalse() throws Exception { assertThat(GpsHelper.isLimitAdTrackingEnabled(context)).isFalse(); }
static public boolean isLimitAdTrackingEnabled(Context context) { final boolean defaultValue = false; if (isPlayServicesAvailable(context)) { return SharedPreferencesHelper.getSharedPreferences(context) .getBoolean(IS_LIMIT_AD_TRACKING_ENABLED_KEY, defaultValue); } else { return defaultValue; } }
GpsHelper { static public boolean isLimitAdTrackingEnabled(Context context) { final boolean defaultValue = false; if (isPlayServicesAvailable(context)) { return SharedPreferencesHelper.getSharedPreferences(context) .getBoolean(IS_LIMIT_AD_TRACKING_ENABLED_KEY, defaultValue); } else { return defaultValue; } } }
GpsHelper { static public boolean isLimitAdTrackingEnabled(Context context) { final boolean defaultValue = false; if (isPlayServicesAvailable(context)) { return SharedPreferencesHelper.getSharedPreferences(context) .getBoolean(IS_LIMIT_AD_TRACKING_ENABLED_KEY, defaultValue); } else { return defaultValue; } }  }
GpsHelper { static public boolean isLimitAdTrackingEnabled(Context context) { final boolean defaultValue = false; if (isPlayServicesAvailable(context)) { return SharedPreferencesHelper.getSharedPreferences(context) .getBoolean(IS_LIMIT_AD_TRACKING_ENABLED_KEY, defaultValue); } else { return defaultValue; } }  static boolean isPlayServicesAvailable(final Context context); static boolean isLimitAdTrackingEnabled(Context context); static void fetchAdvertisingInfoAsync(final Context context, final GpsHelperListener gpsHelperListener); @Nullable static AdvertisingInfo fetchAdvertisingInfoSync(final Context context); @Deprecated static void setClassNamesForTesting(); }
GpsHelper { static public boolean isLimitAdTrackingEnabled(Context context) { final boolean defaultValue = false; if (isPlayServicesAvailable(context)) { return SharedPreferencesHelper.getSharedPreferences(context) .getBoolean(IS_LIMIT_AD_TRACKING_ENABLED_KEY, defaultValue); } else { return defaultValue; } }  static boolean isPlayServicesAvailable(final Context context); static boolean isLimitAdTrackingEnabled(Context context); static void fetchAdvertisingInfoAsync(final Context context, final GpsHelperListener gpsHelperListener); @Nullable static AdvertisingInfo fetchAdvertisingInfoSync(final Context context); @Deprecated static void setClassNamesForTesting(); static final int GOOGLE_PLAY_SUCCESS_CODE; static final String ADVERTISING_ID_KEY; static final String IS_LIMIT_AD_TRACKING_ENABLED_KEY; }