AOSP/Messaging - Update language to comply with Android's inclusive language guidance.
See https://source.android.com/setup/contribute/respectful-code for reference BUG=161896447 Test: make and make messagingtests Change-Id: I01c520f1d5e9eab8dbb25b08d133ae34bd301093
This commit is contained in:
@@ -49,10 +49,13 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||
return Integer.parseInt(context.getResources().getString(R.string.database_version));
|
||||
}
|
||||
|
||||
/** Table containing names of all other tables and views */
|
||||
private static final String MASTER_TABLE = "sqlite_master";
|
||||
/**
|
||||
* Table containing names of all other tables and views.
|
||||
* TODO(rtenneti): Fix the following special SQLLite table name when SQLLite changes.
|
||||
*/
|
||||
private static final String PRIMARY_TABLE = "sqlite_master";
|
||||
/** Column containing the name of the tables and views */
|
||||
private static final String[] MASTER_COLUMNS = new String[] { "name", };
|
||||
private static final String[] PRIMARY_COLUMNS = new String[] { "name", };
|
||||
|
||||
// Table names
|
||||
public static final String CONVERSATIONS_TABLE = "conversations";
|
||||
@@ -682,7 +685,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||
*/
|
||||
private static void dropAllTables(final SQLiteDatabase db) {
|
||||
final Cursor tableCursor =
|
||||
db.query(MASTER_TABLE, MASTER_COLUMNS, "type='table'", null, null, null, null);
|
||||
db.query(PRIMARY_TABLE, PRIMARY_COLUMNS, "type='table'", null, null, null, null);
|
||||
if (tableCursor != null) {
|
||||
try {
|
||||
final String dropPrefix = "DROP TABLE IF EXISTS ";
|
||||
@@ -713,7 +716,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||
*/
|
||||
private static void dropAllTriggers(final SQLiteDatabase db) {
|
||||
final Cursor triggerCursor =
|
||||
db.query(MASTER_TABLE, MASTER_COLUMNS, "type='trigger'", null, null, null, null);
|
||||
db.query(PRIMARY_TABLE, PRIMARY_COLUMNS, "type='trigger'", null, null, null, null);
|
||||
if (triggerCursor != null) {
|
||||
try {
|
||||
final String dropPrefix = "DROP TRIGGER IF EXISTS ";
|
||||
@@ -744,7 +747,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||
*/
|
||||
public static void dropAllViews(final SQLiteDatabase db) {
|
||||
final Cursor viewCursor =
|
||||
db.query(MASTER_TABLE, MASTER_COLUMNS, "type='view'", null, null, null, null);
|
||||
db.query(PRIMARY_TABLE, PRIMARY_COLUMNS, "type='view'", null, null, null, null);
|
||||
if (viewCursor != null) {
|
||||
try {
|
||||
while (viewCursor.moveToNext()) {
|
||||
@@ -762,7 +765,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||
*/
|
||||
private static void dropAllIndexes(final SQLiteDatabase db) {
|
||||
final Cursor indexCursor =
|
||||
db.query(MASTER_TABLE, MASTER_COLUMNS, "type='index'", null, null, null, null);
|
||||
db.query(PRIMARY_TABLE, PRIMARY_COLUMNS, "type='index'", null, null, null, null);
|
||||
if (indexCursor != null) {
|
||||
try {
|
||||
final String dropPrefix = "DROP INDEX IF EXISTS ";
|
||||
|
||||
@@ -780,8 +780,8 @@ public class ConversationData extends BindableData {
|
||||
}
|
||||
|
||||
/**
|
||||
* A dummy implementation of {@link ConversationDataListener} so that subclasses may opt to
|
||||
* implement some, but not all, of the interface methods.
|
||||
* A placeholder implementation of {@link ConversationDataListener} so that subclasses may opt
|
||||
* to implement some, but not all, of the interface methods.
|
||||
*/
|
||||
public static class SimpleConversationDataListener implements ConversationDataListener {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import com.android.messaging.datamodel.binding.BindableOnceData;
|
||||
import com.android.messaging.datamodel.media.MediaResourceManager.MediaResourceLoadListener;
|
||||
|
||||
/**
|
||||
* The {@link MediaRequest} interface is threading-model-blind, allowing the implementations to
|
||||
* The {@link MediaRequest} interface is threading-model-oblivious, allowing the implementations to
|
||||
* be processed synchronously or asynchronously.
|
||||
* This is a {@link MediaRequest} implementation that includes functionalities such as binding and
|
||||
* event callbacks for multi-threaded media request processing.
|
||||
|
||||
@@ -21,7 +21,7 @@ import java.util.List;
|
||||
* Keeps track of a media loading request. MediaResourceManager uses this interface to load, encode,
|
||||
* decode, and cache different types of media resource.
|
||||
*
|
||||
* This interface defines a media request class that's threading-model-blind. Wrapper classes
|
||||
* This interface defines a media request class that's threading-model-oblivious. Wrapper classes
|
||||
* (such as {@link AsyncMediaRequestWrapper} wraps around any base media request to offer async
|
||||
* extensions).
|
||||
*/
|
||||
@@ -67,4 +67,4 @@ public interface MediaRequest<T extends RefCountedMediaResource> {
|
||||
* Returns the descriptor defining the request.
|
||||
*/
|
||||
MediaRequestDescriptor<T> getDescriptor();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user