congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
PhoneAccount$Builder.addSupportedUriScheme
Code IndexAdd Tabnine to your IDE (free)

How to use
addSupportedUriScheme
method
in
android.telecom.PhoneAccount$Builder

Best Java code snippets using android.telecom.PhoneAccount$Builder.addSupportedUriScheme (Showing top 1 results out of 315)

origin: robolectric/robolectric

@Test
public void getPhoneAccountsSupportingScheme() {
 PhoneAccountHandle handleMatchingScheme = createHandle("id1");
 telecomService.registerPhoneAccount(PhoneAccount.builder(handleMatchingScheme, "some_scheme")
   .addSupportedUriScheme("some_scheme")
   .build());
 PhoneAccountHandle handleNotMatchingScheme = createHandle("id2");
 telecomService.registerPhoneAccount(PhoneAccount.builder(handleNotMatchingScheme, "another_scheme")
   .addSupportedUriScheme("another_scheme")
   .build());
 List<PhoneAccountHandle> actual = telecomService.getPhoneAccountsSupportingScheme("some_scheme");
 assertThat(actual).contains(handleMatchingScheme);
 assertThat(actual).doesNotContain(handleNotMatchingScheme);
}
android.telecomPhoneAccount$BuilderaddSupportedUriScheme

Popular methods of PhoneAccount$Builder

  • build
  • setIsEnabled

Popular in Java

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • setContentView (Activity)
  • putExtra (Intent)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now