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

Commit b36ad5dc authored by Brian Attwell's avatar Brian Attwell
Browse files

Decouple ProviderStatus & internal provider state

Bug: 21090207
Change-Id: I7e93e36ad0c0d667ac56983c76acb1b97bd8755c
parent 56dbe3ee
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -25841,6 +25841,15 @@ package android.provider {
    field public static final android.net.Uri CONTENT_URI;
  }
  public static final class ContactsContract.ProviderStatus {
    field public static final java.lang.String CONTENT_TYPE = "vnd.android.cursor.dir/provider_status";
    field public static final android.net.Uri CONTENT_URI;
    field public static final java.lang.String STATUS = "status";
    field public static final int STATUS_BUSY = 1; // 0x1
    field public static final int STATUS_EMPTY = 2; // 0x2
    field public static final int STATUS_NORMAL = 0; // 0x0
  }
  public static final class ContactsContract.QuickContact {
    ctor public ContactsContract.QuickContact();
    method public static void showQuickContact(android.content.Context, android.view.View, android.net.Uri, int, java.lang.String[]);
+9 −0
Original line number Diff line number Diff line
@@ -27770,6 +27770,15 @@ package android.provider {
    field public static final android.net.Uri CONTENT_URI;
  }
  public static final class ContactsContract.ProviderStatus {
    field public static final java.lang.String CONTENT_TYPE = "vnd.android.cursor.dir/provider_status";
    field public static final android.net.Uri CONTENT_URI;
    field public static final java.lang.String STATUS = "status";
    field public static final int STATUS_BUSY = 1; // 0x1
    field public static final int STATUS_EMPTY = 2; // 0x2
    field public static final int STATUS_NORMAL = 0; // 0x0
  }
  public static final class ContactsContract.QuickContact {
    ctor public ContactsContract.QuickContact();
    method public static void showQuickContact(android.content.Context, android.view.View, android.net.Uri, int, java.lang.String[]);
+4 −11
Original line number Diff line number Diff line
@@ -7930,8 +7930,6 @@ public final class ContactsContract {

    /**
     * API for inquiring about the general status of the provider.
     *
     * @hide
     */
    public static final class ProviderStatus {

@@ -7965,21 +7963,16 @@ public final class ContactsContract {
        public static final int STATUS_NORMAL = 0;

        /**
         * The status used when the provider is in the process of upgrading.  Contacts
         * are temporarily unaccessible.
         */
        public static final int STATUS_UPGRADING = 1;

        /**
         * The status used during a locale change.
         * The provider won't respond to queries. It is in the middle of a long running task, such
         * as a database upgrade or locale change.
         */
        public static final int STATUS_CHANGING_LOCALE = 3;
        public static final int STATUS_BUSY = 1;

        /**
         * The status that indicates that there are no accounts and no contacts
         * on the device.
         */
        public static final int STATUS_NO_ACCOUNTS_NO_CONTACTS = 4;
        public static final int STATUS_EMPTY = 2;
    }

    /**