Loading api/current.xml +2 −15 Original line number Diff line number Diff line Loading @@ -119402,19 +119402,6 @@ visibility="public" > </constructor> <method name="getLastOutgoingCall" return="java.lang.String" abstract="false" native="false" synchronized="false" static="true" final="false" deprecated="not deprecated" visibility="public" > <parameter name="context" type="android.content.Context"> </parameter> </method> <field name="CACHED_NAME" type="java.lang.String" transient="false" Loading Loading @@ -126095,7 +126082,7 @@ value="1" static="true" final="true" deprecated="deprecated" deprecated="not deprecated" visibility="public" > </field> Loading Loading @@ -126148,7 +126135,7 @@ abstract="false" static="true" final="true" deprecated="deprecated" deprecated="not deprecated" visibility="public" > <implements name="android.provider.BaseColumns"> core/java/android/provider/CallLog.java +14 −40 Original line number Diff line number Diff line Loading @@ -22,7 +22,6 @@ import com.android.internal.telephony.Connection; import android.content.ContentResolver; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.text.TextUtils; Loading Loading @@ -188,31 +187,6 @@ public class CallLog { return result; } /** * Query the call log database for the last dialed number. * @param context Used to get the content resolver. * @return The last phone number dialed (outgoing) or an empty * string if none exist yet. */ public static String getLastOutgoingCall(Context context) { final ContentResolver resolver = context.getContentResolver(); Cursor c = null; try { c = resolver.query( CONTENT_URI, new String[] {NUMBER}, TYPE + " = " + OUTGOING_TYPE, null, DEFAULT_SORT_ORDER + " LIMIT 1"); if (c == null || !c.moveToFirst()) { return ""; } return c.getString(0); } finally { if (c != null) c.close(); } } private static void removeExpiredEntries(Context context) { final ContentResolver resolver = context.getContentResolver(); resolver.delete(CONTENT_URI, "_id IN " + Loading Loading
api/current.xml +2 −15 Original line number Diff line number Diff line Loading @@ -119402,19 +119402,6 @@ visibility="public" > </constructor> <method name="getLastOutgoingCall" return="java.lang.String" abstract="false" native="false" synchronized="false" static="true" final="false" deprecated="not deprecated" visibility="public" > <parameter name="context" type="android.content.Context"> </parameter> </method> <field name="CACHED_NAME" type="java.lang.String" transient="false" Loading Loading @@ -126095,7 +126082,7 @@ value="1" static="true" final="true" deprecated="deprecated" deprecated="not deprecated" visibility="public" > </field> Loading Loading @@ -126148,7 +126135,7 @@ abstract="false" static="true" final="true" deprecated="deprecated" deprecated="not deprecated" visibility="public" > <implements name="android.provider.BaseColumns">
core/java/android/provider/CallLog.java +14 −40 Original line number Diff line number Diff line Loading @@ -22,7 +22,6 @@ import com.android.internal.telephony.Connection; import android.content.ContentResolver; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.text.TextUtils; Loading Loading @@ -188,31 +187,6 @@ public class CallLog { return result; } /** * Query the call log database for the last dialed number. * @param context Used to get the content resolver. * @return The last phone number dialed (outgoing) or an empty * string if none exist yet. */ public static String getLastOutgoingCall(Context context) { final ContentResolver resolver = context.getContentResolver(); Cursor c = null; try { c = resolver.query( CONTENT_URI, new String[] {NUMBER}, TYPE + " = " + OUTGOING_TYPE, null, DEFAULT_SORT_ORDER + " LIMIT 1"); if (c == null || !c.moveToFirst()) { return ""; } return c.getString(0); } finally { if (c != null) c.close(); } } private static void removeExpiredEntries(Context context) { final ContentResolver resolver = context.getContentResolver(); resolver.delete(CONTENT_URI, "_id IN " + Loading