- add the DIRTY and VERSION columns to the ContactsProvider2 Groups contract

- make android.accounts.AccountAuthenticator into a public constant
This commit is contained in:
Fred Quintana
2009-07-13 17:53:35 -07:00
parent 8f779f3b70
commit ae4f31706f
4 changed files with 52 additions and 5 deletions

View File

@@ -17269,6 +17269,39 @@
visibility="public"
>
</field>
<field name="AUTHENTICATOR_ATTRIBUTES_NAME"
type="java.lang.String"
transient="false"
volatile="false"
value="&quot;account-authenticator&quot;"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="AUTHENTICATOR_INTENT_ACTION"
type="java.lang.String"
transient="false"
volatile="false"
value="&quot;android.accounts.AccountAuthenticator&quot;"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="AUTHENTICATOR_META_DATA_NAME"
type="java.lang.String"
transient="false"
volatile="false"
value="&quot;android.accounts.AccountAuthenticator&quot;"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="AUTHENTICATOR_TYPES_KEY"
type="java.lang.String"
transient="false"

View File

@@ -33,12 +33,9 @@ import android.util.AttributeSet;
extends RegisteredServicesCache<AuthenticatorDescription> {
private static final String TAG = "Account";
private static final String SERVICE_INTERFACE = "android.accounts.AccountAuthenticator";
private static final String SERVICE_META_DATA = "android.accounts.AccountAuthenticator";
private static final String ATTRIBUTES_NAME = "account-authenticator";
public AccountAuthenticatorCache(Context context) {
super(context, SERVICE_INTERFACE, SERVICE_META_DATA, ATTRIBUTES_NAME);
super(context, Constants.AUTHENTICATOR_INTENT_ACTION,
Constants.AUTHENTICATOR_META_DATA_NAME, Constants.AUTHENTICATOR_ATTRIBUTES_NAME);
}
public AuthenticatorDescription parseServiceAttributes(String packageName, AttributeSet attrs) {

View File

@@ -40,6 +40,13 @@ public class Constants {
public static final String ACCOUNT_AUTHENTICATOR_RESPONSE_KEY = "accountAuthenticatorResponse";
public static final String ACCOUNT_MANAGER_RESPONSE_KEY = "accountManagerResponse";
public static final String AUTH_FAILED_MESSAGE_KEY = "authFailedMessage";
public static final String AUTHENTICATOR_INTENT_ACTION =
"android.accounts.AccountAuthenticator";
public static final String AUTHENTICATOR_META_DATA_NAME =
"android.accounts.AccountAuthenticator";
public static final String AUTHENTICATOR_ATTRIBUTES_NAME = "account-authenticator";
/**
* Action sent as a broadcast Intent by the AccountsService
* when accounts are added to and/or removed from the device's

View File

@@ -1011,6 +1011,16 @@ public final class ContactsContract {
*/
public static final String SOURCE_ID = "sourceid";
/**
* An integer that is updated whenever this contact or its data changes.
*/
public static final String VERSION = "version";
/**
* Set to 1 whenever the version changes
*/
public static final String DIRTY = "dirty";
/**
* Flag indicating if the contacts belonging to this group should be
* visible in any user interface.