@Test @Config public void testLocales() { Audience audience = Audience.newBuilder() .addLanguageTag("en-US") .build(); assertTrue(AudienceChecks.checkAudience(context, audience)); audience = Audience.newBuilder() .addLanguageTag("en") .build(); assertTrue(AudienceChecks.checkAudience(context, audience)); audience = Audience.newBuilder() .addLanguageTag("fr") .build(); assertFalse(AudienceChecks.checkAudience(context, audience)); }
public static boolean checkAudience(@NonNull Context context, @Nullable Audience audience) { return checkAudience(context, audience, null); }
AudienceChecks { public static boolean checkAudience(@NonNull Context context, @Nullable Audience audience) { return checkAudience(context, audience, null); } }
AudienceChecks { public static boolean checkAudience(@NonNull Context context, @Nullable Audience audience) { return checkAudience(context, audience, null); }  }
AudienceChecks { public static boolean checkAudience(@NonNull Context context, @Nullable Audience audience) { return checkAudience(context, audience, null); }  static boolean checkAudience(@NonNull Context context, @Nullable Audience audience); static boolean checkAudience(@NonNull Context context, @Nullable Audience audience, @Nullable Map<String, Set<String>> tagGroups); }
AudienceChecks { public static boolean checkAudience(@NonNull Context context, @Nullable Audience audience) { return checkAudience(context, audience, null); }  static boolean checkAudience(@NonNull Context context, @Nullable Audience audience); static boolean checkAudience(@NonNull Context context, @Nullable Audience audience, @Nullable Map<String, Set<String>> tagGroups);  }