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

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

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

origin: robolectric/robolectric

@Test
@Config(minSdk = M)
public void getCallCapablePhoneAccounts() {
 PhoneAccountHandle callCapableHandle = createHandle("id1");
 telecomService.registerPhoneAccount(PhoneAccount.builder(callCapableHandle, "enabled")
   .setIsEnabled(true)
   .build());
 PhoneAccountHandle notCallCapableHandler = createHandle("id2");
 telecomService.registerPhoneAccount(PhoneAccount.builder(notCallCapableHandler, "disabled")
   .setIsEnabled(false)
   .build());
 List<PhoneAccountHandle> callCapablePhoneAccounts = telecomService.getCallCapablePhoneAccounts();
 assertThat(callCapablePhoneAccounts).contains(callCapableHandle);
 assertThat(callCapablePhoneAccounts).doesNotContain(notCallCapableHandler);
}
android.telecomPhoneAccount$BuildersetIsEnabled

Popular methods of PhoneAccount$Builder

  • addSupportedUriScheme
  • build

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JComboBox (javax.swing)
  • Top 12 Jupyter Notebook extensions
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