public interface IAccountAuthenticatorCache
Modifier and Type | Method and Description |
---|---|
void |
dump(FileDescriptor fd,
PrintWriter fout,
String[] args,
int userId)
Dumps the state of the cache.
|
Collection<RegisteredServicesCache.ServiceInfo<AuthenticatorDescription>> |
getAllServices(int userId) |
RegisteredServicesCache.ServiceInfo<AuthenticatorDescription> |
getServiceInfo(AuthenticatorDescription type,
int userId)
Accessor for the
RegisteredServicesCache.ServiceInfo that
matched the specified android.accounts.AuthenticatorDescription or null
if none match. |
void |
invalidateCache(int userId) |
void |
setListener(RegisteredServicesCacheListener<AuthenticatorDescription> listener,
Handler handler)
Sets a listener that will be notified whenever the authenticator set changes
|
void |
updateServices(int userId)
Request to update services info for which package has been updated, but hasn't been
picked up by the cache.
|
RegisteredServicesCache.ServiceInfo<AuthenticatorDescription> getServiceInfo(AuthenticatorDescription type, int userId)
RegisteredServicesCache.ServiceInfo
that
matched the specified android.accounts.AuthenticatorDescription
or null
if none match.type
- the authenticator type to returnRegisteredServicesCache.ServiceInfo
that
matches the account type or null if none is presentCollection<RegisteredServicesCache.ServiceInfo<AuthenticatorDescription>> getAllServices(int userId)
void dump(FileDescriptor fd, PrintWriter fout, String[] args, int userId)
Binder.dump(java.io.FileDescriptor, java.io.PrintWriter, String[])
void setListener(RegisteredServicesCacheListener<AuthenticatorDescription> listener, Handler handler)
listener
- the listener to notify, or nullhandler
- the Handler
on which the notification will be posted. If null
the notification will be posted on the main thread.void invalidateCache(int userId)
void updateServices(int userId)