Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae4f3170 authored by Fred Quintana's avatar Fred Quintana
Browse files

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

- make android.accounts.AccountAuthenticator into a public constant
parent 8f779f3b
Loading
Loading
Loading
Loading
+33 −0
Original line number Diff line number Diff line
@@ -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"
+2 −5
Original line number Diff line number Diff line
@@ -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) {
+7 −0
Original line number Diff line number Diff line
@@ -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
+10 −0
Original line number Diff line number Diff line
@@ -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.