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

Commit 2faad14f authored by Chen Xu's avatar Chen Xu Committed by android-build-merger
Browse files

Merge "remove hidden APIs in sqlitewrapper" am: 33a6451d

am: 25654fbe

Change-Id: Ie166bd2bcf0d3f0c6e84674d7dc1220ce6afa4fa
parents dc8a62a1 25654fbe
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -49,7 +49,6 @@ import android.content.pm.PackageItemInfo;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.database.ContentObserver;
import android.database.sqlite.SqliteWrapper;
import android.net.Uri;
import android.os.AsyncResult;
import android.os.Binder;
@@ -1592,8 +1591,7 @@ public abstract class SMSDispatcher extends Handler {
                // If we wrote this message in writeSentMessage, update it now
                ContentValues values = new ContentValues(1);
                values.put(Sms.STATUS, status);
                SqliteWrapper.update(context, context.getContentResolver(),
                        mMessageUri, values, null, null);
                context.getContentResolver().update(mMessageUri, values, null, null);
            }
        }

@@ -1613,7 +1611,7 @@ public abstract class SMSDispatcher extends Handler {
            values.put(Sms.ERROR_CODE, errorCode);
            final long identity = Binder.clearCallingIdentity();
            try {
                if (SqliteWrapper.update(context, context.getContentResolver(), mMessageUri, values,
                if (context.getContentResolver().update(mMessageUri, values,
                        null/*where*/, null/*selectionArgs*/) != 1) {
                    Rlog.e(TAG, "Failed to move message to " + messageType);
                }
+19 −26
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ import android.content.ServiceConnection;
import android.database.Cursor;
import android.database.DatabaseUtils;
import android.database.sqlite.SQLiteException;
import android.database.sqlite.SqliteWrapper;
import android.net.Uri;
import android.os.Bundle;
import android.os.IBinder;
@@ -492,9 +491,7 @@ public class WapPushOverSms implements ServiceConnection {
                    // Update thread ID for ReadOrigInd & DeliveryInd.
                    final ContentValues values = new ContentValues(1);
                    values.put(Telephony.Mms.THREAD_ID, threadId);
                    if (SqliteWrapper.update(
                            mContext,
                            mContext.getContentResolver(),
                    if (mContext.getContentResolver().update(
                            uri,
                            values,
                            null/*where*/,
@@ -566,9 +563,7 @@ public class WapPushOverSms implements ServiceConnection {
        }
        Cursor cursor = null;
        try {
            cursor = SqliteWrapper.query(
                    context,
                    context.getContentResolver(),
            cursor = context.getContentResolver().query(
                Telephony.Mms.CONTENT_URI,
                new String[]{ Telephony.Mms.THREAD_ID },
                THREAD_ID_SELECTION,
@@ -601,9 +596,7 @@ public class WapPushOverSms implements ServiceConnection {
            String[] selectionArgs = new String[] { location };
            Cursor cursor = null;
            try {
                cursor = SqliteWrapper.query(
                        context,
                        context.getContentResolver(),
                cursor = context.getContentResolver().query(
                    Telephony.Mms.CONTENT_URI,
                    new String[]{ Telephony.Mms._ID },
                    LOCATION_SELECTION,