FileDocCategorySizeDatePackage
IAccountAuthenticatorCache.javaAPI DocAndroid 5.1 API2629Thu Mar 12 22:22:42 GMT 2015com.android.server.accounts

IAccountAuthenticatorCache

public interface IAccountAuthenticatorCache
An interface to the Authenticator specialization of RegisteredServicesCache. The use of this interface by the AccountManagerService makes it easier to unit test it.
hide

Fields Summary
Constructors Summary
Methods Summary
public voiddump(java.io.FileDescriptor fd, java.io.PrintWriter fout, java.lang.String[] args, int userId)
Dumps the state of the cache. See {@link android.os.Binder#dump(java.io.FileDescriptor, java.io.PrintWriter, String[])}

public java.util.CollectiongetAllServices(int userId)

return
A copy of a Collection of all the current Authenticators.

public RegisteredServicesCache.ServiceInfogetServiceInfo(android.accounts.AuthenticatorDescription type, int userId)
Accessor for the {@link android.content.pm.RegisteredServicesCache.ServiceInfo} that matched the specified {@link android.accounts.AuthenticatorDescription} or null if none match.

param
type the authenticator type to return
return
the {@link android.content.pm.RegisteredServicesCache.ServiceInfo} that matches the account type or null if none is present

public voidinvalidateCache(int userId)

public voidsetListener(android.content.pm.RegisteredServicesCacheListener listener, android.os.Handler handler)
Sets a listener that will be notified whenever the authenticator set changes

param
listener the listener to notify, or null
param
handler the {@link Handler} on which the notification will be posted. If null the notification will be posted on the main thread.