congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
PhoneAccountHandle.getComponentName
Code IndexAdd Tabnine to your IDE (free)

How to use
getComponentName
method
in
android.telecom.PhoneAccountHandle

Best Java code snippets using android.telecom.PhoneAccountHandle.getComponentName (Showing top 12 results out of 315)

origin: robolectric/robolectric

@Implementation(minSdk = LOLLIPOP_MR1)
@HiddenApi
public void clearAccountsForPackage(String packageName) {
 Set<PhoneAccountHandle> phoneAccountHandlesInPackage = new HashSet<>();
 for (PhoneAccountHandle handle : accounts.keySet()) {
  if (handle.getComponentName().getPackageName().equals(packageName)) {
   phoneAccountHandlesInPackage.add(handle);
  }
 }
 for (PhoneAccountHandle handle : phoneAccountHandlesInPackage) {
  accounts.remove(handle);
 }
}
origin: robolectric/robolectric

@Implementation
@HiddenApi
public List<PhoneAccountHandle> getPhoneAccountsForPackage() {
 Context context = ReflectionHelpers.getField(realObject, "mContext");
 List<PhoneAccountHandle> results = new ArrayList<>();
 for (PhoneAccountHandle handle : accounts.keySet()) {
  if (handle.getComponentName().getPackageName().equals(context.getPackageName())) {
   results.add(handle);
  }
 }
 return results;
}
origin: robolectric/robolectric

@Test
@Config(minSdk = LOLLIPOP_MR1)
public void clearAccountsForPackage() {
 PhoneAccountHandle accountHandle1 = createHandle("a.package", "id1");
 telecomService.registerPhoneAccount(PhoneAccount.builder(accountHandle1, "another_package")
   .build());
 PhoneAccountHandle accountHandle2 = createHandle("some.other.package", "id2");
 telecomService.registerPhoneAccount(PhoneAccount.builder(accountHandle2, "another_package")
   .build());
 telecomService.clearAccountsForPackage(accountHandle1.getComponentName().getPackageName());
 assertThat(telecomService.getPhoneAccount(accountHandle1)).isNull();
 assertThat(telecomService.getPhoneAccount(accountHandle2)).isNotNull();
}
origin: org.robolectric/shadows-core

@Implementation(minSdk = LOLLIPOP_MR1)
public void clearAccountsForPackage(String packageName) {
 Set<PhoneAccountHandle> phoneAccountHandlesInPackage = new HashSet<>();
 for (PhoneAccountHandle handle : accounts.keySet()) {
  if (handle.getComponentName().getPackageName().equals(packageName)) {
   phoneAccountHandlesInPackage.add(handle);
  }
 }
 for (PhoneAccountHandle handle : phoneAccountHandlesInPackage) {
  accounts.remove(handle);
 }
}
origin: org.robolectric/shadows-core-v23

@Implementation
public void clearAccountsForPackage(String packageName) {
 Set<PhoneAccountHandle> phoneAccountHandlesInPackage = new HashSet<>();
 for (PhoneAccountHandle handle : accounts.keySet()) {
  if (handle.getComponentName().getPackageName().equals(packageName)) {
   phoneAccountHandlesInPackage.add(handle);
  }
 }
 for (PhoneAccountHandle handle : phoneAccountHandlesInPackage) {
  accounts.remove(handle);
 }
}
origin: org.robolectric/framework

@Implementation(minSdk = LOLLIPOP_MR1)
public void clearAccountsForPackage(String packageName) {
 Set<PhoneAccountHandle> phoneAccountHandlesInPackage = new HashSet<>();
 for (PhoneAccountHandle handle : accounts.keySet()) {
  if (handle.getComponentName().getPackageName().equals(packageName)) {
   phoneAccountHandlesInPackage.add(handle);
  }
 }
 for (PhoneAccountHandle handle : phoneAccountHandlesInPackage) {
  accounts.remove(handle);
 }
}
origin: org.robolectric/shadows-core-v23

@Implementation
public List<PhoneAccountHandle> getPhoneAccountsForPackage() {
 Context context = ReflectionHelpers.getField(realObject, "mContext");
 List<PhoneAccountHandle> results = new LinkedList<>();
 for (PhoneAccountHandle handle : accounts.keySet()) {
  if (handle.getComponentName().getPackageName().equals(context.getPackageName())) {
   results.add(handle);
  }
 }
 return results;
}
origin: org.robolectric/framework

@Implementation
public List<PhoneAccountHandle> getPhoneAccountsForPackage() {
 Context context = ReflectionHelpers.getField(realObject, "mContext");
 List<PhoneAccountHandle> results = new LinkedList<>();
 for (PhoneAccountHandle handle : accounts.keySet()) {
  if (handle.getComponentName().getPackageName().equals(context.getPackageName())) {
   results.add(handle);
  }
 }
 return results;
}
origin: org.robolectric/shadows-core

@Implementation
public List<PhoneAccountHandle> getPhoneAccountsForPackage() {
 Context context = ReflectionHelpers.getField(realObject, "mContext");
 List<PhoneAccountHandle> results = new LinkedList<>();
 for (PhoneAccountHandle handle : accounts.keySet()) {
  if (handle.getComponentName().getPackageName().equals(context.getPackageName())) {
   results.add(handle);
  }
 }
 return results;
}
origin: org.robolectric/shadows-framework

@Implementation(minSdk = LOLLIPOP_MR1)
@HiddenApi
public void clearAccountsForPackage(String packageName) {
 Set<PhoneAccountHandle> phoneAccountHandlesInPackage = new HashSet<>();
 for (PhoneAccountHandle handle : accounts.keySet()) {
  if (handle.getComponentName().getPackageName().equals(packageName)) {
   phoneAccountHandlesInPackage.add(handle);
  }
 }
 for (PhoneAccountHandle handle : phoneAccountHandlesInPackage) {
  accounts.remove(handle);
 }
}
origin: org.robolectric/shadows-framework

@Implementation
@HiddenApi
public List<PhoneAccountHandle> getPhoneAccountsForPackage() {
 Context context = ReflectionHelpers.getField(realObject, "mContext");
 List<PhoneAccountHandle> results = new ArrayList<>();
 for (PhoneAccountHandle handle : accounts.keySet()) {
  if (handle.getComponentName().getPackageName().equals(context.getPackageName())) {
   results.add(handle);
  }
 }
 return results;
}
origin: geniusgithub/AndroidDialer

    callToNotify.accountId);
if (accountHandle.getComponentName() != null) {
  Log.v(TAG, "PhoneAccountHandle.ComponentInfo:" + accountHandle.getComponentName());
} else {
  Log.i(TAG, "PhoneAccountHandle.ComponentInfo: null");
android.telecomPhoneAccountHandlegetComponentName

Popular methods of PhoneAccountHandle

  • <init>
  • getId

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Permission (java.security)
    Legacy security code; do not use.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • BoxLayout (javax.swing)
  • Best plugins for Eclipse
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