Messaging: Nullability
Change-Id: I8bcde2a868a9c8989971d056be24ff4986e4f8f3
This commit is contained in:
@@ -20,6 +20,8 @@ package android.support.v7.mms.pdu;
|
|||||||
|
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
@@ -187,6 +189,7 @@ public class EncodedStringValue implements Cloneable {
|
|||||||
* (non-Javadoc)
|
* (non-Javadoc)
|
||||||
* @see java.lang.Object#clone()
|
* @see java.lang.Object#clone()
|
||||||
*/
|
*/
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public Object clone() throws CloneNotSupportedException {
|
public Object clone() throws CloneNotSupportedException {
|
||||||
int len = mData.length;
|
int len = mData.length;
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ import android.support.v7.mms.CarrierConfigValuesLoader;
|
|||||||
import android.support.v7.mms.MmsManager;
|
import android.support.v7.mms.MmsManager;
|
||||||
import android.telephony.CarrierConfigManager;
|
import android.telephony.CarrierConfigManager;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
import com.android.messaging.receiver.SmsReceiver;
|
import com.android.messaging.receiver.SmsReceiver;
|
||||||
import com.android.messaging.sms.ApnDatabase;
|
import com.android.messaging.sms.ApnDatabase;
|
||||||
@@ -69,7 +71,7 @@ public class BugleApplication extends Application implements UncaughtExceptionHa
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onConfigurationChanged(final Configuration newConfig) {
|
public void onConfigurationChanged(@NonNull final Configuration newConfig) {
|
||||||
super.onConfigurationChanged(newConfig);
|
super.onConfigurationChanged(newConfig);
|
||||||
|
|
||||||
// Update conversation drawables when changing writing systems
|
// Update conversation drawables when changing writing systems
|
||||||
@@ -160,7 +162,7 @@ public class BugleApplication extends Application implements UncaughtExceptionHa
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void uncaughtException(final Thread thread, final Throwable ex) {
|
public void uncaughtException(@NonNull final Thread thread, @NonNull final Throwable ex) {
|
||||||
final boolean background = getMainLooper().getThread() != thread;
|
final boolean background = getMainLooper().getThread() != thread;
|
||||||
if (background) {
|
if (background) {
|
||||||
LogUtil.e(TAG, "Uncaught exception in background thread " + thread, ex);
|
LogUtil.e(TAG, "Uncaught exception in background thread " + thread, ex);
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -24,6 +25,8 @@ import android.net.Uri;
|
|||||||
import android.os.ParcelFileDescriptor;
|
import android.os.ParcelFileDescriptor;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@@ -106,7 +109,7 @@ public abstract class FileProvider extends ContentProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ParcelFileDescriptor openFile(final Uri uri, final String fileMode)
|
public ParcelFileDescriptor openFile(final Uri uri, @NonNull final String fileMode)
|
||||||
throws FileNotFoundException {
|
throws FileNotFoundException {
|
||||||
final String fileId = uri.getPath();
|
final String fileId = uri.getPath();
|
||||||
if (isValidFileId(fileId)) {
|
if (isValidFileId(fileId)) {
|
||||||
@@ -124,27 +127,27 @@ public abstract class FileProvider extends ContentProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Cursor query(final Uri uri, final String[] projection, final String selection,
|
public Cursor query(@NonNull final Uri uri, final String[] projection, final String selection,
|
||||||
final String[] selectionArgs, final String sortOrder) {
|
final String[] selectionArgs, final String sortOrder) {
|
||||||
// Don't support queries.
|
// Don't support queries.
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Uri insert(final Uri uri, final ContentValues values) {
|
public Uri insert(@NonNull final Uri uri, final ContentValues values) {
|
||||||
// Don't support inserts.
|
// Don't support inserts.
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int update(final Uri uri, final ContentValues values, final String selection,
|
public int update(@NonNull final Uri uri, final ContentValues values, final String selection,
|
||||||
final String[] selectionArgs) {
|
final String[] selectionArgs) {
|
||||||
// Don't support updates.
|
// Don't support updates.
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getType(final Uri uri) {
|
public String getType(@NonNull final Uri uri) {
|
||||||
// No need for mime types.
|
// No need for mime types.
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -23,6 +24,8 @@ import android.database.MatrixCursor;
|
|||||||
import android.database.MatrixCursor.RowBuilder;
|
import android.database.MatrixCursor.RowBuilder;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.provider.OpenableColumns;
|
import android.provider.OpenableColumns;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.collection.SimpleArrayMap;
|
import androidx.collection.SimpleArrayMap;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
@@ -114,8 +117,8 @@ public class MediaScratchFileProvider extends FileProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Cursor query(final Uri uri, final String[] projection, final String selection,
|
public Cursor query(@NonNull final Uri uri, final String[] projection, final String selection,
|
||||||
final String[] selectionArgs, final String sortOrder) {
|
final String[] selectionArgs, final String sortOrder) {
|
||||||
if (projection != null && projection.length > 0 &&
|
if (projection != null && projection.length > 0 &&
|
||||||
TextUtils.equals(projection[0], OpenableColumns.DISPLAY_NAME) &&
|
TextUtils.equals(projection[0], OpenableColumns.DISPLAY_NAME) &&
|
||||||
isMediaScratchSpaceUri(uri)) {
|
isMediaScratchSpaceUri(uri)) {
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ import android.net.Uri;
|
|||||||
import android.os.ParcelFileDescriptor;
|
import android.os.ParcelFileDescriptor;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
import com.android.messaging.datamodel.DatabaseHelper.ConversationColumns;
|
import com.android.messaging.datamodel.DatabaseHelper.ConversationColumns;
|
||||||
import com.android.messaging.datamodel.DatabaseHelper.ConversationParticipantsColumns;
|
import com.android.messaging.datamodel.DatabaseHelper.ConversationParticipantsColumns;
|
||||||
@@ -250,8 +252,8 @@ public class MessagingContentProvider extends ContentProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Cursor query(final Uri uri, final String[] projection, String selection,
|
public Cursor query(@NonNull final Uri uri, final String[] projection, String selection,
|
||||||
final String[] selectionArgs, String sortOrder) {
|
final String[] selectionArgs, String sortOrder) {
|
||||||
|
|
||||||
// Processes other than self are allowed to temporarily access the media
|
// Processes other than self are allowed to temporarily access the media
|
||||||
// scratch space; we grant uri read access on a case-by-case basis. Dialer app and
|
// scratch space; we grant uri read access on a case-by-case basis. Dialer app and
|
||||||
@@ -376,7 +378,7 @@ public class MessagingContentProvider extends ContentProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getType(final Uri uri) {
|
public String getType(@NonNull final Uri uri) {
|
||||||
final StringBuilder sb = new
|
final StringBuilder sb = new
|
||||||
StringBuilder("vnd.android.cursor.dir/vnd.android.messaging.");
|
StringBuilder("vnd.android.cursor.dir/vnd.android.messaging.");
|
||||||
|
|
||||||
@@ -397,24 +399,24 @@ public class MessagingContentProvider extends ContentProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ParcelFileDescriptor openFile(final Uri uri, final String fileMode)
|
public ParcelFileDescriptor openFile(@NonNull final Uri uri, @NonNull final String fileMode)
|
||||||
throws FileNotFoundException {
|
throws FileNotFoundException {
|
||||||
throw new IllegalArgumentException("openFile not supported: " + uri);
|
throw new IllegalArgumentException("openFile not supported: " + uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Uri insert(final Uri uri, final ContentValues values) {
|
public Uri insert(@NonNull final Uri uri, final ContentValues values) {
|
||||||
throw new IllegalStateException("Insert not supported " + uri);
|
throw new IllegalStateException("Insert not supported " + uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int delete(final Uri uri, final String selection, final String[] selectionArgs) {
|
public int delete(@NonNull final Uri uri, final String selection, final String[] selectionArgs) {
|
||||||
throw new IllegalArgumentException("Delete not supported: " + uri);
|
throw new IllegalArgumentException("Delete not supported: " + uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int update(final Uri uri, final ContentValues values, final String selection,
|
public int update(@NonNull final Uri uri, final ContentValues values, final String selection,
|
||||||
final String[] selectionArgs) {
|
final String[] selectionArgs) {
|
||||||
throw new IllegalArgumentException("Update not supported: " + uri);
|
throw new IllegalArgumentException("Update not supported: " + uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import android.content.Intent;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.SystemClock;
|
import android.os.SystemClock;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.core.app.JobIntentService;
|
import androidx.core.app.JobIntentService;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
@@ -238,7 +239,7 @@ public class ActionServiceImpl extends JobIntentService {
|
|||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onHandleWork(final Intent intent) {
|
protected void onHandleWork(@NonNull final Intent intent) {
|
||||||
if (intent == null) {
|
if (intent == null) {
|
||||||
// Shouldn't happen but sometimes does following another crash.
|
// Shouldn't happen but sometimes does following another crash.
|
||||||
LogUtil.w(TAG, "ActionService.onHandleIntent: Called with null intent");
|
LogUtil.w(TAG, "ActionService.onHandleIntent: Called with null intent");
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -20,6 +21,7 @@ import android.content.Context;
|
|||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.core.app.JobIntentService;
|
import androidx.core.app.JobIntentService;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
@@ -102,12 +104,7 @@ public class BackgroundWorkerService extends JobIntentService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onHandleWork(final Intent intent) {
|
protected void onHandleWork(@NonNull final Intent intent) {
|
||||||
if (intent == null) {
|
|
||||||
// Shouldn't happen but sometimes does following another crash.
|
|
||||||
LogUtil.w(TAG, "BackgroundWorkerService.onHandleIntent: Called with null intent");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
final int opcode = intent.getIntExtra(EXTRA_OP_CODE, 0);
|
final int opcode = intent.getIntExtra(EXTRA_OP_CODE, 0);
|
||||||
|
|
||||||
switch(opcode) {
|
switch(opcode) {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -23,6 +24,8 @@ import android.os.Parcel;
|
|||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.BugleNotifications;
|
import com.android.messaging.datamodel.BugleNotifications;
|
||||||
@@ -204,7 +207,7 @@ public class DeleteConversationAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -22,6 +23,8 @@ import android.os.Parcel;
|
|||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
import com.android.messaging.datamodel.DatabaseWrapper;
|
import com.android.messaging.datamodel.DatabaseWrapper;
|
||||||
@@ -129,7 +132,7 @@ public class DeleteMessageAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ import android.os.Bundle;
|
|||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
@@ -339,7 +341,7 @@ public class DownloadMmsAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -20,6 +21,8 @@ import android.content.Context;
|
|||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
import com.android.messaging.datamodel.DatabaseHelper;
|
import com.android.messaging.datamodel.DatabaseHelper;
|
||||||
import com.android.messaging.util.DebugUtils;
|
import com.android.messaging.util.DebugUtils;
|
||||||
@@ -118,7 +121,7 @@ public class DumpDatabaseAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -20,6 +21,8 @@ import android.content.ContentValues;
|
|||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
import com.android.messaging.datamodel.DatabaseHelper;
|
import com.android.messaging.datamodel.DatabaseHelper;
|
||||||
import com.android.messaging.datamodel.DatabaseWrapper;
|
import com.android.messaging.datamodel.DatabaseWrapper;
|
||||||
@@ -107,7 +110,7 @@ public class FixupMessageStatusOnStartupAction extends Action implements Parcela
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ import android.os.Parcel;
|
|||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
@@ -168,7 +170,7 @@ public class GetOrCreateConversationAction extends Action implements Parcelable
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -19,6 +20,8 @@ package com.android.messaging.datamodel.action;
|
|||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.sms.SmsReleaseStorage;
|
import com.android.messaging.sms.SmsReleaseStorage;
|
||||||
import com.android.messaging.util.Assert;
|
import com.android.messaging.util.Assert;
|
||||||
|
|
||||||
@@ -88,7 +91,7 @@ public class HandleLowStorageAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ import android.os.Parcelable;
|
|||||||
import android.provider.Telephony;
|
import android.provider.Telephony;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
@@ -474,7 +476,7 @@ public class InsertNewMessageAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -24,6 +25,8 @@ import android.os.Parcelable;
|
|||||||
import android.provider.Telephony.Threads;
|
import android.provider.Telephony.Threads;
|
||||||
import android.provider.Telephony.ThreadsColumns;
|
import android.provider.Telephony.ThreadsColumns;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
import com.android.messaging.mmslib.SqliteWrapper;
|
import com.android.messaging.mmslib.SqliteWrapper;
|
||||||
import com.android.messaging.util.DebugUtils;
|
import com.android.messaging.util.DebugUtils;
|
||||||
@@ -147,7 +150,7 @@ public class LogTelephonyDatabaseAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -20,6 +21,8 @@ import android.content.ContentValues;
|
|||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.BugleNotifications;
|
import com.android.messaging.datamodel.BugleNotifications;
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
@@ -107,7 +110,7 @@ public class MarkAsReadAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -21,6 +22,8 @@ import android.os.Parcel;
|
|||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.datamodel.BugleNotifications;
|
import com.android.messaging.datamodel.BugleNotifications;
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
import com.android.messaging.datamodel.DatabaseHelper;
|
import com.android.messaging.datamodel.DatabaseHelper;
|
||||||
@@ -120,7 +123,7 @@ public class MarkAsSeenAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -23,6 +24,8 @@ import android.os.Parcel;
|
|||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.provider.Telephony;
|
import android.provider.Telephony;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
import com.android.messaging.datamodel.DatabaseHelper;
|
import com.android.messaging.datamodel.DatabaseHelper;
|
||||||
@@ -116,7 +119,7 @@ public class ProcessDeliveryReportAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -27,6 +28,8 @@ import android.provider.Telephony.Mms;
|
|||||||
import android.telephony.SmsManager;
|
import android.telephony.SmsManager;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.BugleNotifications;
|
import com.android.messaging.datamodel.BugleNotifications;
|
||||||
@@ -578,7 +581,7 @@ public class ProcessDownloadedMmsAction extends Action {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -22,6 +23,8 @@ import android.os.Parcel;
|
|||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.telephony.ServiceState;
|
import android.telephony.ServiceState;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
@@ -478,7 +481,7 @@ public class ProcessPendingMessagesAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -25,6 +26,8 @@ import android.os.Parcelable;
|
|||||||
import android.telephony.PhoneNumberUtils;
|
import android.telephony.PhoneNumberUtils;
|
||||||
import android.telephony.SmsManager;
|
import android.telephony.SmsManager;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.BugleNotifications;
|
import com.android.messaging.datamodel.BugleNotifications;
|
||||||
@@ -306,7 +309,7 @@ public class ProcessSentMessageAction extends Action {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ package com.android.messaging.datamodel.action;
|
|||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
import com.android.messaging.datamodel.DatabaseWrapper;
|
import com.android.messaging.datamodel.DatabaseWrapper;
|
||||||
@@ -161,7 +163,7 @@ public class ReadDraftDataAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -21,6 +22,8 @@ import android.os.Bundle;
|
|||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.BugleNotifications;
|
import com.android.messaging.datamodel.BugleNotifications;
|
||||||
@@ -191,7 +194,7 @@ public class ReceiveMmsMessageAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -24,6 +25,8 @@ import android.os.Parcelable;
|
|||||||
import android.provider.Telephony.Sms;
|
import android.provider.Telephony.Sms;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.BugleNotifications;
|
import com.android.messaging.datamodel.BugleNotifications;
|
||||||
@@ -194,7 +197,7 @@ public class ReceiveSmsMessageAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -22,6 +23,8 @@ import android.content.Context;
|
|||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.BugleNotifications;
|
import com.android.messaging.datamodel.BugleNotifications;
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
@@ -125,7 +128,7 @@ public class RedownloadMmsAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -20,6 +21,8 @@ import android.content.ContentValues;
|
|||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
import com.android.messaging.datamodel.DatabaseHelper.MessageColumns;
|
import com.android.messaging.datamodel.DatabaseHelper.MessageColumns;
|
||||||
@@ -125,7 +128,7 @@ public class ResendMessageAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -25,6 +26,8 @@ import android.os.Parcelable;
|
|||||||
import android.provider.Telephony.Mms;
|
import android.provider.Telephony.Mms;
|
||||||
import android.provider.Telephony.Sms;
|
import android.provider.Telephony.Sms;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
@@ -446,7 +449,7 @@ public class SendMessageAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -24,6 +25,8 @@ import android.os.Parcel;
|
|||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.os.SystemClock;
|
import android.os.SystemClock;
|
||||||
import android.provider.Telephony.Mms;
|
import android.provider.Telephony.Mms;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.collection.LongSparseArray;
|
import androidx.collection.LongSparseArray;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
@@ -631,7 +634,7 @@ public class SyncMessagesAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-1
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -19,6 +20,8 @@ import android.os.Parcel;
|
|||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
import com.android.messaging.datamodel.DatabaseWrapper;
|
import com.android.messaging.datamodel.DatabaseWrapper;
|
||||||
@@ -87,7 +90,7 @@ public class UpdateConversationArchiveStatusAction extends Action {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ import android.os.Parcel;
|
|||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
import com.android.messaging.datamodel.DatabaseWrapper;
|
import com.android.messaging.datamodel.DatabaseWrapper;
|
||||||
@@ -143,7 +145,7 @@ public class UpdateDestinationBlockedAction extends Action {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -18,6 +19,8 @@ package com.android.messaging.datamodel.action;
|
|||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.datamodel.BugleNotifications;
|
import com.android.messaging.datamodel.BugleNotifications;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -57,7 +60,7 @@ public class UpdateMessageNotificationAction extends Action {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -20,6 +21,8 @@ import android.content.ContentValues;
|
|||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
import com.android.messaging.datamodel.DatabaseHelper;
|
import com.android.messaging.datamodel.DatabaseHelper;
|
||||||
@@ -97,7 +100,7 @@ public class UpdateMessagePartSizeAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -19,6 +20,8 @@ package com.android.messaging.datamodel.action;
|
|||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
import com.android.messaging.datamodel.BugleDatabaseOperations;
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
import com.android.messaging.datamodel.DatabaseWrapper;
|
import com.android.messaging.datamodel.DatabaseWrapper;
|
||||||
@@ -98,7 +101,7 @@ public class WriteDraftMessageAction extends Action implements Parcelable {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeToParcel(final Parcel parcel, final int flags) {
|
public void writeToParcel(@NonNull final Parcel parcel, final int flags) {
|
||||||
writeActionToParcel(parcel, flags);
|
writeActionToParcel(parcel, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ import android.provider.ContactsContract;
|
|||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.text.format.DateUtils;
|
import android.text.format.DateUtils;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.datamodel.DatabaseHelper;
|
import com.android.messaging.datamodel.DatabaseHelper;
|
||||||
import com.android.messaging.datamodel.DatabaseHelper.MessageColumns;
|
import com.android.messaging.datamodel.DatabaseHelper.MessageColumns;
|
||||||
import com.android.messaging.datamodel.DatabaseHelper.PartColumns;
|
import com.android.messaging.datamodel.DatabaseHelper.PartColumns;
|
||||||
@@ -614,6 +616,7 @@ public class ConversationMessageData {
|
|||||||
return mCanClusterWithNextMessage;
|
return mCanClusterWithNextMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return MessageData.toString(mMessageId, mParts);
|
return MessageData.toString(mMessageId, mParts);
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -17,6 +18,8 @@
|
|||||||
package com.android.messaging.datamodel.data;
|
package com.android.messaging.datamodel.data;
|
||||||
|
|
||||||
import android.database.Cursor;
|
import android.database.Cursor;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.collection.SimpleArrayMap;
|
import androidx.collection.SimpleArrayMap;
|
||||||
|
|
||||||
import com.android.messaging.util.Assert;
|
import com.android.messaging.util.Assert;
|
||||||
@@ -97,6 +100,7 @@ public class ConversationParticipantsData implements Iterable<ParticipantData> {
|
|||||||
return !mConversationParticipantsMap.isEmpty();
|
return !mConversationParticipantsMap.isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public Iterator<ParticipantData> iterator() {
|
public Iterator<ParticipantData> iterator() {
|
||||||
return new Iterator<ParticipantData>() {
|
return new Iterator<ParticipantData>() {
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ import android.os.Parcel;
|
|||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.datamodel.DatabaseHelper;
|
import com.android.messaging.datamodel.DatabaseHelper;
|
||||||
import com.android.messaging.datamodel.DatabaseHelper.MessageColumns;
|
import com.android.messaging.datamodel.DatabaseHelper.MessageColumns;
|
||||||
import com.android.messaging.datamodel.DatabaseWrapper;
|
import com.android.messaging.datamodel.DatabaseWrapper;
|
||||||
@@ -909,6 +911,7 @@ public class MessageData implements Parcelable {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return toString(mMessageId, mParts);
|
return toString(mMessageId, mParts);
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -25,6 +26,8 @@ import android.os.Parcel;
|
|||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
import com.android.messaging.datamodel.DatabaseHelper;
|
import com.android.messaging.datamodel.DatabaseHelper;
|
||||||
import com.android.messaging.datamodel.DatabaseHelper.PartColumns;
|
import com.android.messaging.datamodel.DatabaseHelper.PartColumns;
|
||||||
@@ -521,6 +524,7 @@ public class MessagePartData implements Parcelable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
if (isText()) {
|
if (isText()) {
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2007-2008 Esmertec AG.
|
* Copyright (C) 2007-2008 Esmertec AG.
|
||||||
* Copyright (C) 2007-2008 The Android Open Source Project
|
* Copyright (C) 2007-2008 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -19,6 +20,8 @@ package com.android.messaging.mmslib.pdu;
|
|||||||
|
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
@@ -201,6 +204,7 @@ public class EncodedStringValue implements Cloneable {
|
|||||||
* (non-Javadoc)
|
* (non-Javadoc)
|
||||||
* @see java.lang.Object#clone()
|
* @see java.lang.Object#clone()
|
||||||
*/
|
*/
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public Object clone() throws CloneNotSupportedException {
|
public Object clone() throws CloneNotSupportedException {
|
||||||
int len = mData.length;
|
int len = mData.length;
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ import android.telephony.PhoneNumberUtils;
|
|||||||
import android.telephony.SmsManager;
|
import android.telephony.SmsManager;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
import com.android.messaging.R;
|
import com.android.messaging.R;
|
||||||
import com.android.messaging.receiver.SendStatusReceiver;
|
import com.android.messaging.receiver.SendStatusReceiver;
|
||||||
@@ -125,6 +127,7 @@ public class SmsSender {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
final StringBuilder sb = new StringBuilder();
|
final StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -19,6 +20,8 @@ package com.android.messaging.ui;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.R;
|
import com.android.messaging.R;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -35,7 +38,7 @@ public class BlockedParticipantsActivity extends BugleActionBarActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(final MenuItem item) {
|
public boolean onOptionsItemSelected(@NonNull final MenuItem item) {
|
||||||
switch (item.getItemId()) {
|
switch (item.getItemId()) {
|
||||||
case android.R.id.home:
|
case android.R.id.home:
|
||||||
// Treat the home press as back press so that when we go back to
|
// Treat the home press as back press so that when we go back to
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -18,6 +19,8 @@ package com.android.messaging.ui;
|
|||||||
|
|
||||||
import android.graphics.drawable.ColorDrawable;
|
import android.graphics.drawable.ColorDrawable;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.appcompat.app.ActionBar;
|
import androidx.appcompat.app.ActionBar;
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
import android.view.ActionMode;
|
import android.view.ActionMode;
|
||||||
@@ -194,7 +197,7 @@ public class BugleActionBarActivity extends AppCompatActivity implements ImeUtil
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(final MenuItem menuItem) {
|
public boolean onOptionsItemSelected(@NonNull final MenuItem menuItem) {
|
||||||
if (mActionMode != null &&
|
if (mActionMode != null &&
|
||||||
mActionMode.getCallback().onActionItemClicked(mActionMode, menuItem)) {
|
mActionMode.getCallback().onActionItemClicked(mActionMode, menuItem)) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ import android.text.TextUtils;
|
|||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.Window;
|
import android.view.Window;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.R;
|
import com.android.messaging.R;
|
||||||
import com.android.messaging.datamodel.action.ReceiveSmsMessageAction;
|
import com.android.messaging.datamodel.action.ReceiveSmsMessageAction;
|
||||||
import com.android.messaging.datamodel.BugleNotifications;
|
import com.android.messaging.datamodel.BugleNotifications;
|
||||||
@@ -169,7 +171,7 @@ public class ClassZeroActivity extends Activity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onSaveInstanceState(final Bundle outState) {
|
protected void onSaveInstanceState(@NonNull final Bundle outState) {
|
||||||
super.onSaveInstanceState(outState);
|
super.onSaveInstanceState(outState);
|
||||||
outState.putLong(TIMER_FIRE, mTimerSet);
|
outState.putLong(TIMER_FIRE, mTimerSet);
|
||||||
if (VERBOSE) {
|
if (VERBOSE) {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -21,6 +22,8 @@ import android.database.ContentObserver;
|
|||||||
import android.database.Cursor;
|
import android.database.Cursor;
|
||||||
import android.database.DataSetObserver;
|
import android.database.DataSetObserver;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
@@ -185,13 +188,14 @@ public abstract class CursorRecyclerAdapter<VH extends RecyclerView.ViewHolder>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public VH onCreateViewHolder(final ViewGroup parent, final int viewType) {
|
public VH onCreateViewHolder(@NonNull final ViewGroup parent, final int viewType) {
|
||||||
return createViewHolder(mContext, parent, viewType);
|
return createViewHolder(mContext, parent, viewType);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onBindViewHolder(final VH holder, final int position) {
|
public void onBindViewHolder(@NonNull final VH holder, final int position) {
|
||||||
if (!mDataValid) {
|
if (!mDataValid) {
|
||||||
throw new IllegalStateException("this should only be called when the cursor is valid");
|
throw new IllegalStateException("this should only be called when the cursor is valid");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -17,6 +18,8 @@ package com.android.messaging.ui;
|
|||||||
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.viewpager.widget.PagerAdapter;
|
import androidx.viewpager.widget.PagerAdapter;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
@@ -39,8 +42,9 @@ public class FixedViewPagerAdapter<T extends PagerViewHolder> extends PagerAdapt
|
|||||||
mViewHolders = viewHolders;
|
mViewHolders = viewHolders;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public Object instantiateItem(final ViewGroup container, final int position) {
|
public Object instantiateItem(@NonNull final ViewGroup container, final int position) {
|
||||||
final PagerViewHolder viewHolder = getViewHolder(position);
|
final PagerViewHolder viewHolder = getViewHolder(position);
|
||||||
final View view = viewHolder.getView(container);
|
final View view = viewHolder.getView(container);
|
||||||
if (view == null) {
|
if (view == null) {
|
||||||
@@ -52,7 +56,8 @@ public class FixedViewPagerAdapter<T extends PagerViewHolder> extends PagerAdapt
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void destroyItem(final ViewGroup container, final int position, final Object object) {
|
public void destroyItem(@NonNull final ViewGroup container, final int position,
|
||||||
|
@NonNull final Object object) {
|
||||||
final PagerViewHolder viewHolder = getViewHolder(position);
|
final PagerViewHolder viewHolder = getViewHolder(position);
|
||||||
final View destroyedView = viewHolder.destroyView();
|
final View destroyedView = viewHolder.destroyView();
|
||||||
if (destroyedView != null) {
|
if (destroyedView != null) {
|
||||||
@@ -66,7 +71,7 @@ public class FixedViewPagerAdapter<T extends PagerViewHolder> extends PagerAdapt
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isViewFromObject(final View view, final Object object) {
|
public boolean isViewFromObject(final View view, @NonNull final Object object) {
|
||||||
return view.getTag() == object;
|
return view.getTag() == object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -26,6 +27,8 @@ import android.view.View;
|
|||||||
import android.view.View.OnClickListener;
|
import android.view.View.OnClickListener;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
import com.android.messaging.R;
|
import com.android.messaging.R;
|
||||||
import com.android.messaging.util.OsUtil;
|
import com.android.messaging.util.OsUtil;
|
||||||
@@ -101,8 +104,9 @@ public class PermissionCheckActivity extends Activity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onRequestPermissionsResult(
|
public void onRequestPermissionsResult(final int requestCode,
|
||||||
final int requestCode, final String permissions[], final int[] grantResults) {
|
@NonNull final String permissions[],
|
||||||
|
@NonNull final int[] grantResults) {
|
||||||
if (requestCode == REQUIRED_PERMISSIONS_REQUEST_CODE) {
|
if (requestCode == REQUIRED_PERMISSIONS_REQUEST_CODE) {
|
||||||
// We do not use grantResults as some of the granted permissions might have been
|
// We do not use grantResults as some of the granted permissions might have been
|
||||||
// revoked while the permissions dialog box was being shown for the missing permissions.
|
// revoked while the permissions dialog box was being shown for the missing permissions.
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -33,6 +34,8 @@ import android.widget.ArrayAdapter;
|
|||||||
import android.widget.ListView;
|
import android.widget.ListView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.R;
|
import com.android.messaging.R;
|
||||||
import com.android.messaging.datamodel.action.HandleLowStorageAction;
|
import com.android.messaging.datamodel.action.HandleLowStorageAction;
|
||||||
import com.android.messaging.sms.SmsReleaseStorage;
|
import com.android.messaging.sms.SmsReleaseStorage;
|
||||||
@@ -127,8 +130,10 @@ public class SmsStorageLowWarningFragment extends Fragment {
|
|||||||
super(context, R.layout.sms_free_storage_action_item_view, actions);
|
super(context, R.layout.sms_free_storage_action_item_view, actions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public View getView(final int position, final View view, final ViewGroup parent) {
|
public View getView(final int position, final View view,
|
||||||
|
@NonNull final ViewGroup parent) {
|
||||||
TextView actionItemView;
|
TextView actionItemView;
|
||||||
if (view == null || !(view instanceof TextView)) {
|
if (view == null || !(view instanceof TextView)) {
|
||||||
final LayoutInflater inflater = LayoutInflater.from(getContext());
|
final LayoutInflater inflater = LayoutInflater.from(getContext());
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -35,6 +36,8 @@ import android.view.WindowManager;
|
|||||||
import android.widget.PopupWindow;
|
import android.widget.PopupWindow;
|
||||||
import android.widget.PopupWindow.OnDismissListener;
|
import android.widget.PopupWindow.OnDismissListener;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
import com.android.messaging.R;
|
import com.android.messaging.R;
|
||||||
import com.android.messaging.ui.SnackBar.Placement;
|
import com.android.messaging.ui.SnackBar.Placement;
|
||||||
@@ -89,7 +92,7 @@ public class SnackBarManager {
|
|||||||
private final OnAttachStateChangeListener mAttachStateChangeListener =
|
private final OnAttachStateChangeListener mAttachStateChangeListener =
|
||||||
new OnAttachStateChangeListener() {
|
new OnAttachStateChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewDetachedFromWindow(View v) {
|
public void onViewDetachedFromWindow(@NonNull View v) {
|
||||||
// Dismiss the PopupWindow and clear SnackBarManager state.
|
// Dismiss the PopupWindow and clear SnackBarManager state.
|
||||||
mHideHandler.removeCallbacks(mDismissRunnable);
|
mHideHandler.removeCallbacks(mDismissRunnable);
|
||||||
mPopupWindow.dismiss();
|
mPopupWindow.dismiss();
|
||||||
@@ -100,7 +103,7 @@ public class SnackBarManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onViewAttachedToWindow(View v) {}
|
public void onViewAttachedToWindow(@NonNull View v) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
private final int mTranslationDurationMs;
|
private final int mTranslationDurationMs;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -20,6 +21,8 @@ import android.net.Uri;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.R;
|
import com.android.messaging.R;
|
||||||
import com.android.messaging.util.Assert;
|
import com.android.messaging.util.Assert;
|
||||||
|
|
||||||
@@ -47,7 +50,7 @@ public class VCardDetailActivity extends BugleActionBarActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(final MenuItem item) {
|
public boolean onOptionsItemSelected(@NonNull final MenuItem item) {
|
||||||
switch (item.getItemId()) {
|
switch (item.getItemId()) {
|
||||||
case android.R.id.home:
|
case android.R.id.home:
|
||||||
// Treat the home press as back press so that when we go back to
|
// Treat the home press as back press so that when we go back to
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -28,6 +29,8 @@ import android.view.animation.Animation;
|
|||||||
import android.view.animation.Transformation;
|
import android.view.animation.Transformation;
|
||||||
import android.widget.PopupWindow;
|
import android.widget.PopupWindow;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.util.LogUtil;
|
import com.android.messaging.util.LogUtil;
|
||||||
import com.android.messaging.util.ThreadUtil;
|
import com.android.messaging.util.ThreadUtil;
|
||||||
import com.android.messaging.util.UiUtils;
|
import com.android.messaging.util.UiUtils;
|
||||||
@@ -253,7 +256,7 @@ public class PopupTransitionAnimation extends Animation {
|
|||||||
private void initPopupWindow() {
|
private void initPopupWindow() {
|
||||||
mPopupRoot = new View(mViewToAnimate.getContext()) {
|
mPopupRoot = new View(mViewToAnimate.getContext()) {
|
||||||
@Override
|
@Override
|
||||||
protected void onDraw(final Canvas canvas) {
|
protected void onDraw(@NonNull final Canvas canvas) {
|
||||||
canvas.save();
|
canvas.save();
|
||||||
canvas.clipRect(getLeft(), mActionBarRect.bottom - mPopupRect.top, getRight(),
|
canvas.clipRect(getLeft(), mActionBarRect.bottom - mPopupRect.top, getRight(),
|
||||||
getBottom());
|
getBottom());
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -29,6 +30,8 @@ import android.preference.EditTextPreference;
|
|||||||
import android.preference.Preference;
|
import android.preference.Preference;
|
||||||
import android.preference.PreferenceFragment;
|
import android.preference.PreferenceFragment;
|
||||||
import android.provider.Telephony;
|
import android.provider.Telephony;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.core.app.NavUtils;
|
import androidx.core.app.NavUtils;
|
||||||
import android.view.KeyEvent;
|
import android.view.KeyEvent;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
@@ -64,7 +67,7 @@ public class ApnEditorActivity extends BugleActionBarActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(final MenuItem item) {
|
public boolean onOptionsItemSelected(@NonNull final MenuItem item) {
|
||||||
switch (item.getItemId()) {
|
switch (item.getItemId()) {
|
||||||
case android.R.id.home:
|
case android.R.id.home:
|
||||||
NavUtils.navigateUpFromSameTask(this);
|
NavUtils.navigateUpFromSameTask(this);
|
||||||
|
|||||||
@@ -36,6 +36,8 @@ import android.preference.PreferenceFragment;
|
|||||||
import android.preference.PreferenceGroup;
|
import android.preference.PreferenceGroup;
|
||||||
import android.preference.PreferenceScreen;
|
import android.preference.PreferenceScreen;
|
||||||
import android.provider.Telephony;
|
import android.provider.Telephony;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.core.app.NavUtils;
|
import androidx.core.app.NavUtils;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuInflater;
|
import android.view.MenuInflater;
|
||||||
@@ -71,7 +73,7 @@ public class ApnSettingsActivity extends BugleActionBarActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(final MenuItem item) {
|
public boolean onOptionsItemSelected(@NonNull final MenuItem item) {
|
||||||
switch (item.getItemId()) {
|
switch (item.getItemId()) {
|
||||||
case android.R.id.home:
|
case android.R.id.home:
|
||||||
NavUtils.navigateUpFromSameTask(this);
|
NavUtils.navigateUpFromSameTask(this);
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -25,6 +26,8 @@ import android.preference.PreferenceFragment;
|
|||||||
import android.preference.PreferenceScreen;
|
import android.preference.PreferenceScreen;
|
||||||
import android.preference.SwitchPreference;
|
import android.preference.SwitchPreference;
|
||||||
import android.provider.Settings;
|
import android.provider.Settings;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.core.app.NavUtils;
|
import androidx.core.app.NavUtils;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
@@ -65,7 +68,7 @@ public class ApplicationSettingsActivity extends BugleActionBarActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(final MenuItem item) {
|
public boolean onOptionsItemSelected(@NonNull final MenuItem item) {
|
||||||
switch (item.getItemId()) {
|
switch (item.getItemId()) {
|
||||||
case android.R.id.home:
|
case android.R.id.home:
|
||||||
NavUtils.navigateUpFromSameTask(this);
|
NavUtils.navigateUpFromSameTask(this);
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ import android.support.v7.mms.MmsManager;
|
|||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.core.app.NavUtils;
|
import androidx.core.app.NavUtils;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
@@ -70,7 +71,7 @@ public class PerSubscriptionSettingsActivity extends BugleActionBarActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(final MenuItem item) {
|
public boolean onOptionsItemSelected(@NonNull final MenuItem item) {
|
||||||
switch (item.getItemId()) {
|
switch (item.getItemId()) {
|
||||||
case android.R.id.home:
|
case android.R.id.home:
|
||||||
NavUtils.navigateUpFromSameTask(this);
|
NavUtils.navigateUpFromSameTask(this);
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -19,6 +20,8 @@ package com.android.messaging.ui.appsettings;
|
|||||||
import android.app.Fragment;
|
import android.app.Fragment;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.core.app.NavUtils;
|
import androidx.core.app.NavUtils;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
@@ -71,7 +74,7 @@ public class SettingsActivity extends BugleActionBarActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(final MenuItem item) {
|
public boolean onOptionsItemSelected(@NonNull final MenuItem item) {
|
||||||
switch (item.getItemId()) {
|
switch (item.getItemId()) {
|
||||||
case android.R.id.home:
|
case android.R.id.home:
|
||||||
NavUtils.navigateUpFromSameTask(this);
|
NavUtils.navigateUpFromSameTask(this);
|
||||||
@@ -128,9 +131,10 @@ public class SettingsActivity extends BugleActionBarActivity {
|
|||||||
notifyDataSetChanged();
|
notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public View getView(final int position, final View convertView,
|
public View getView(final int position, final View convertView,
|
||||||
final ViewGroup parent) {
|
@NonNull final ViewGroup parent) {
|
||||||
View itemView;
|
View itemView;
|
||||||
if (convertView != null) {
|
if (convertView != null) {
|
||||||
itemView = convertView;
|
itemView = convertView;
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ import android.content.Context;
|
|||||||
import android.graphics.Rect;
|
import android.graphics.Rect;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.appcompat.app.ActionBar;
|
import androidx.appcompat.app.ActionBar;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
@@ -165,8 +167,10 @@ public class AttachmentChooserFragment extends Fragment implements DraftMessageD
|
|||||||
notifyDataSetChanged();
|
notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public View getView(final int position, final View convertView, final ViewGroup parent) {
|
public View getView(final int position, final View convertView,
|
||||||
|
@NonNull final ViewGroup parent) {
|
||||||
AttachmentGridItemView itemView;
|
AttachmentGridItemView itemView;
|
||||||
final MessagePartData item = getItem(position);
|
final MessagePartData item = getItem(position);
|
||||||
if (convertView != null && convertView instanceof AttachmentGridItemView) {
|
if (convertView != null && convertView instanceof AttachmentGridItemView) {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -20,6 +21,8 @@ import android.content.res.Resources;
|
|||||||
import android.graphics.Rect;
|
import android.graphics.Rect;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.appcompat.app.ActionBar;
|
import androidx.appcompat.app.ActionBar;
|
||||||
import android.text.Editable;
|
import android.text.Editable;
|
||||||
import android.text.Html;
|
import android.text.Html;
|
||||||
@@ -284,7 +287,8 @@ public class ComposeMessageView extends LinearLayout
|
|||||||
});
|
});
|
||||||
mSendButton.setAccessibilityDelegate(new AccessibilityDelegate() {
|
mSendButton.setAccessibilityDelegate(new AccessibilityDelegate() {
|
||||||
@Override
|
@Override
|
||||||
public void onPopulateAccessibilityEvent(View host, AccessibilityEvent event) {
|
public void onPopulateAccessibilityEvent(@NonNull View host,
|
||||||
|
@NonNull AccessibilityEvent event) {
|
||||||
super.onPopulateAccessibilityEvent(host, event);
|
super.onPopulateAccessibilityEvent(host, event);
|
||||||
// When the send button is long clicked, we want TalkBack to announce the real
|
// When the send button is long clicked, we want TalkBack to announce the real
|
||||||
// action (select SIM or edit subject), as opposed to "long press send button."
|
// action (select SIM or edit subject), as opposed to "long press send button."
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -22,6 +23,8 @@ import android.content.Intent;
|
|||||||
import android.graphics.Rect;
|
import android.graphics.Rect;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.appcompat.app.ActionBar;
|
import androidx.appcompat.app.ActionBar;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
@@ -119,7 +122,7 @@ public class ConversationActivity extends BugleActionBarActivity
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onSaveInstanceState(final Bundle outState) {
|
protected void onSaveInstanceState(@NonNull final Bundle outState) {
|
||||||
super.onSaveInstanceState(outState);
|
super.onSaveInstanceState(outState);
|
||||||
// After onSaveInstanceState() is called, future changes to mUiState won't update the UI
|
// After onSaveInstanceState() is called, future changes to mUiState won't update the UI
|
||||||
// anymore, because fragment transactions are not allowed past this point.
|
// anymore, because fragment transactions are not allowed past this point.
|
||||||
@@ -187,7 +190,7 @@ public class ConversationActivity extends BugleActionBarActivity
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(final MenuItem menuItem) {
|
public boolean onOptionsItemSelected(@NonNull final MenuItem menuItem) {
|
||||||
if (super.onOptionsItemSelected(menuItem)) {
|
if (super.onOptionsItemSelected(menuItem)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -18,6 +19,8 @@ package com.android.messaging.ui.conversation;
|
|||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.ui.contact.ContactPickerFragment;
|
import com.android.messaging.ui.contact.ContactPickerFragment;
|
||||||
import com.android.messaging.util.Assert;
|
import com.android.messaging.util.Assert;
|
||||||
import com.google.common.annotations.VisibleForTesting;
|
import com.google.common.annotations.VisibleForTesting;
|
||||||
@@ -285,6 +288,7 @@ public class ConversationActivityUiState implements Parcelable, Cloneable {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
protected ConversationActivityUiState clone() {
|
protected ConversationActivityUiState clone() {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -23,6 +24,8 @@ import android.content.res.Resources;
|
|||||||
import android.graphics.Rect;
|
import android.graphics.Rect;
|
||||||
import android.graphics.drawable.StateListDrawable;
|
import android.graphics.drawable.StateListDrawable;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
import androidx.recyclerview.widget.RecyclerView.AdapterDataObserver;
|
import androidx.recyclerview.widget.RecyclerView.AdapterDataObserver;
|
||||||
@@ -169,7 +172,7 @@ public class ConversationFastScroller extends RecyclerView.OnScrollListener impl
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onScrollStateChanged(final RecyclerView view, final int newState) {
|
public void onScrollStateChanged(@NonNull final RecyclerView view, final int newState) {
|
||||||
if (newState == RecyclerView.SCROLL_STATE_DRAGGING) {
|
if (newState == RecyclerView.SCROLL_STATE_DRAGGING) {
|
||||||
// Only show the scrollbar once the user starts scrolling
|
// Only show the scrollbar once the user starts scrolling
|
||||||
if (!mVisible && isEnabled()) {
|
if (!mVisible && isEnabled()) {
|
||||||
@@ -257,7 +260,7 @@ public class ConversationFastScroller extends RecyclerView.OnScrollListener impl
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onScrolled(final RecyclerView view, final int dx, final int dy) {
|
public void onScrolled(@NonNull final RecyclerView view, final int dx, final int dy) {
|
||||||
updateScrollPos();
|
updateScrollPos();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -315,7 +318,7 @@ public class ConversationFastScroller extends RecyclerView.OnScrollListener impl
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent e) {
|
public boolean onInterceptTouchEvent(@NonNull RecyclerView rv, @NonNull MotionEvent e) {
|
||||||
if (!mVisible) {
|
if (!mVisible) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -357,7 +360,7 @@ public class ConversationFastScroller extends RecyclerView.OnScrollListener impl
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onTouchEvent(RecyclerView rv, MotionEvent e) {
|
public void onTouchEvent(@NonNull RecyclerView rv, @NonNull MotionEvent e) {
|
||||||
if (!mDragging) {
|
if (!mDragging) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -43,6 +44,8 @@ import android.os.Bundle;
|
|||||||
import android.os.Environment;
|
import android.os.Environment;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
|
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
|
||||||
import androidx.core.text.BidiFormatter;
|
import androidx.core.text.BidiFormatter;
|
||||||
import androidx.core.text.TextDirectionHeuristicsCompat;
|
import androidx.core.text.TextDirectionHeuristicsCompat;
|
||||||
@@ -245,7 +248,7 @@ public class ConversationFragment extends Fragment implements ConversationDataLi
|
|||||||
private int mScrollState = RecyclerView.SCROLL_STATE_IDLE;
|
private int mScrollState = RecyclerView.SCROLL_STATE_IDLE;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onScrollStateChanged(final RecyclerView view, final int newState) {
|
public void onScrollStateChanged(@NonNull final RecyclerView view, final int newState) {
|
||||||
if (newState == RecyclerView.SCROLL_STATE_IDLE) {
|
if (newState == RecyclerView.SCROLL_STATE_IDLE) {
|
||||||
// Reset scroll states.
|
// Reset scroll states.
|
||||||
mCumulativeScrollDelta = 0;
|
mCumulativeScrollDelta = 0;
|
||||||
@@ -257,7 +260,7 @@ public class ConversationFragment extends Fragment implements ConversationDataLi
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onScrolled(final RecyclerView view, final int dx, final int dy) {
|
public void onScrolled(@NonNull final RecyclerView view, final int dx, final int dy) {
|
||||||
if (mScrollState == RecyclerView.SCROLL_STATE_DRAGGING &&
|
if (mScrollState == RecyclerView.SCROLL_STATE_DRAGGING &&
|
||||||
!mScrollToDismissHandled) {
|
!mScrollToDismissHandled) {
|
||||||
mCumulativeScrollDelta += dy;
|
mCumulativeScrollDelta += dy;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -23,6 +24,8 @@ import android.util.AttributeSet;
|
|||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.R;
|
import com.android.messaging.R;
|
||||||
import com.android.messaging.annotation.VisibleForAnimation;
|
import com.android.messaging.annotation.VisibleForAnimation;
|
||||||
import com.android.messaging.datamodel.data.ConversationMessageBubbleData;
|
import com.android.messaging.datamodel.data.ConversationMessageBubbleData;
|
||||||
@@ -104,11 +107,11 @@ public class ConversationMessageBubbleView extends LinearLayout {
|
|||||||
mAnimator.setDuration(UiUtils.MEDIAPICKER_TRANSITION_DURATION);
|
mAnimator.setDuration(UiUtils.MEDIAPICKER_TRANSITION_DURATION);
|
||||||
mAnimator.addListener(new AnimatorListener() {
|
mAnimator.addListener(new AnimatorListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onAnimationStart(Animator animator) {
|
public void onAnimationStart(@NonNull Animator animator) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onAnimationEnd(Animator animator) {
|
public void onAnimationEnd(@NonNull Animator animator) {
|
||||||
mAnimator = null;
|
mAnimator = null;
|
||||||
mMorphedWidth = 0;
|
mMorphedWidth = 0;
|
||||||
// Allow the bubble to resize if, for example, the status text changed during
|
// Allow the bubble to resize if, for example, the status text changed during
|
||||||
@@ -120,11 +123,11 @@ public class ConversationMessageBubbleView extends LinearLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onAnimationCancel(Animator animator) {
|
public void onAnimationCancel(@NonNull Animator animator) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onAnimationRepeat(Animator animator) {
|
public void onAnimationRepeat(@NonNull Animator animator) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
mAnimator.start();
|
mAnimator.start();
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -26,6 +27,8 @@ import android.widget.ArrayAdapter;
|
|||||||
import android.widget.FrameLayout;
|
import android.widget.FrameLayout;
|
||||||
import android.widget.ListView;
|
import android.widget.ListView;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.R;
|
import com.android.messaging.R;
|
||||||
import com.android.messaging.datamodel.data.SubscriptionListData;
|
import com.android.messaging.datamodel.data.SubscriptionListData;
|
||||||
import com.android.messaging.datamodel.data.SubscriptionListData.SubscriptionListEntry;
|
import com.android.messaging.datamodel.data.SubscriptionListData.SubscriptionListEntry;
|
||||||
@@ -140,8 +143,10 @@ public class SimSelectorView extends FrameLayout implements SimSelectorItemView.
|
|||||||
notifyDataSetChanged();
|
notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public View getView(final int position, final View convertView, final ViewGroup parent) {
|
public View getView(final int position, final View convertView,
|
||||||
|
@NonNull final ViewGroup parent) {
|
||||||
SimSelectorItemView itemView;
|
SimSelectorItemView itemView;
|
||||||
if (convertView != null && convertView instanceof SimSelectorItemView) {
|
if (convertView != null && convertView instanceof SimSelectorItemView) {
|
||||||
itemView = (SimSelectorItemView) convertView;
|
itemView = (SimSelectorItemView) convertView;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -17,6 +18,8 @@ package com.android.messaging.ui.conversationlist;
|
|||||||
|
|
||||||
import android.graphics.drawable.ColorDrawable;
|
import android.graphics.drawable.ColorDrawable;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.appcompat.app.ActionBar;
|
import androidx.appcompat.app.ActionBar;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
@@ -71,7 +74,7 @@ public class ArchivedConversationListActivity extends AbstractConversationListAc
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(MenuItem menuItem) {
|
public boolean onOptionsItemSelected(@NonNull MenuItem menuItem) {
|
||||||
switch(menuItem.getItemId()) {
|
switch(menuItem.getItemId()) {
|
||||||
case R.id.action_debug_options:
|
case R.id.action_debug_options:
|
||||||
onActionBarDebug();
|
onActionBarDebug();
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -18,6 +19,8 @@ package com.android.messaging.ui.conversationlist;
|
|||||||
|
|
||||||
import android.graphics.drawable.ColorDrawable;
|
import android.graphics.drawable.ColorDrawable;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.appcompat.app.ActionBar;
|
import androidx.appcompat.app.ActionBar;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
@@ -83,7 +86,7 @@ public class ConversationListActivity extends AbstractConversationListActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(final MenuItem menuItem) {
|
public boolean onOptionsItemSelected(@NonNull final MenuItem menuItem) {
|
||||||
switch(menuItem.getItemId()) {
|
switch(menuItem.getItemId()) {
|
||||||
case R.id.action_start_new_conversation:
|
case R.id.action_start_new_conversation:
|
||||||
onActionBarStartNewConversation();
|
onActionBarStartNewConversation();
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ import android.graphics.Rect;
|
|||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.core.view.ViewCompat;
|
import androidx.core.view.ViewCompat;
|
||||||
import androidx.core.view.ViewGroupCompat;
|
import androidx.core.view.ViewGroupCompat;
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
@@ -195,7 +197,8 @@ public class ConversationListFragment extends Fragment implements ConversationLi
|
|||||||
int mCurrentState = AbsListView.OnScrollListener.SCROLL_STATE_IDLE;
|
int mCurrentState = AbsListView.OnScrollListener.SCROLL_STATE_IDLE;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onScrolled(final RecyclerView recyclerView, final int dx, final int dy) {
|
public void onScrolled(@NonNull final RecyclerView recyclerView, final int dx,
|
||||||
|
final int dy) {
|
||||||
if (mCurrentState == AbsListView.OnScrollListener.SCROLL_STATE_TOUCH_SCROLL
|
if (mCurrentState == AbsListView.OnScrollListener.SCROLL_STATE_TOUCH_SCROLL
|
||||||
|| mCurrentState == AbsListView.OnScrollListener.SCROLL_STATE_FLING) {
|
|| mCurrentState == AbsListView.OnScrollListener.SCROLL_STATE_FLING) {
|
||||||
ImeUtil.get().hideImeKeyboard(getActivity(), mRecyclerView);
|
ImeUtil.get().hideImeKeyboard(getActivity(), mRecyclerView);
|
||||||
@@ -209,7 +212,8 @@ public class ConversationListFragment extends Fragment implements ConversationLi
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onScrollStateChanged(final RecyclerView recyclerView, final int newState) {
|
public void onScrollStateChanged(@NonNull final RecyclerView recyclerView,
|
||||||
|
final int newState) {
|
||||||
mCurrentState = newState;
|
mCurrentState = newState;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -326,7 +330,8 @@ public class ConversationListFragment extends Fragment implements ConversationLi
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreateOptionsMenu(final Menu menu, final MenuInflater inflater) {
|
public void onCreateOptionsMenu(@NonNull final Menu menu,
|
||||||
|
@NonNull final MenuInflater inflater) {
|
||||||
if (!isAdded()) {
|
if (!isAdded()) {
|
||||||
// Guard against being called before we're added to the activity
|
// Guard against being called before we're added to the activity
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -21,6 +22,8 @@ import android.animation.ObjectAnimator;
|
|||||||
import android.animation.TimeInterpolator;
|
import android.animation.TimeInterpolator;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.res.Resources;
|
import android.content.res.Resources;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.core.view.ViewCompat;
|
import androidx.core.view.ViewCompat;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
import androidx.recyclerview.widget.RecyclerView.OnItemTouchListener;
|
import androidx.recyclerview.widget.RecyclerView.OnItemTouchListener;
|
||||||
@@ -81,7 +84,8 @@ public class ConversationListSwipeHelper implements OnItemTouchListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onInterceptTouchEvent(final RecyclerView recyclerView, final MotionEvent event) {
|
public boolean onInterceptTouchEvent(@NonNull final RecyclerView recyclerView,
|
||||||
|
final MotionEvent event) {
|
||||||
if (event.getPointerCount() > 1) {
|
if (event.getPointerCount() > 1) {
|
||||||
// Ignore subsequent pointers.
|
// Ignore subsequent pointers.
|
||||||
return false;
|
return false;
|
||||||
@@ -169,7 +173,8 @@ public class ConversationListSwipeHelper implements OnItemTouchListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onTouchEvent(final RecyclerView recyclerView, final MotionEvent event) {
|
public void onTouchEvent(@NonNull final RecyclerView recyclerView,
|
||||||
|
@NonNull final MotionEvent event) {
|
||||||
// We should only be here if we intercepted the touch due to swipe.
|
// We should only be here if we intercepted the touch due to swipe.
|
||||||
Assert.isTrue(mIsSwiping);
|
Assert.isTrue(mIsSwiping);
|
||||||
|
|
||||||
@@ -459,4 +464,4 @@ public class ConversationListSwipeHelper implements OnItemTouchListener {
|
|||||||
private float getLastComputedXVelocity() {
|
private float getLastComputedXVelocity() {
|
||||||
return mVelocityTracker.getXVelocity();
|
return mVelocityTracker.getXVelocity();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -20,6 +21,8 @@ import android.app.Fragment;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.R;
|
import com.android.messaging.R;
|
||||||
import com.android.messaging.ui.BugleActionBarActivity;
|
import com.android.messaging.ui.BugleActionBarActivity;
|
||||||
import com.android.messaging.ui.UIIntents;
|
import com.android.messaging.ui.UIIntents;
|
||||||
@@ -51,7 +54,7 @@ public class PeopleAndOptionsActivity extends BugleActionBarActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(final MenuItem item) {
|
public boolean onOptionsItemSelected(@NonNull final MenuItem item) {
|
||||||
switch (item.getItemId()) {
|
switch (item.getItemId()) {
|
||||||
case android.R.id.home:
|
case android.R.id.home:
|
||||||
// Treat the home press as back press so that when we go back to
|
// Treat the home press as back press so that when we go back to
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -35,6 +36,8 @@ import android.widget.BaseAdapter;
|
|||||||
import android.widget.ListView;
|
import android.widget.ListView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.R;
|
import com.android.messaging.R;
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
import com.android.messaging.datamodel.binding.Binding;
|
import com.android.messaging.datamodel.binding.Binding;
|
||||||
@@ -246,8 +249,10 @@ public class PeopleAndOptionsFragment extends Fragment
|
|||||||
notifyDataSetChanged();
|
notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public View getView(final int position, final View convertView, final ViewGroup parent) {
|
public View getView(final int position, final View convertView,
|
||||||
|
@NonNull final ViewGroup parent) {
|
||||||
PersonItemView itemView;
|
PersonItemView itemView;
|
||||||
final ParticipantData item = getItem(position);
|
final ParticipantData item = getItem(position);
|
||||||
if (convertView != null && convertView instanceof PersonItemView) {
|
if (convertView != null && convertView instanceof PersonItemView) {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -34,6 +35,8 @@ import android.widget.ArrayAdapter;
|
|||||||
import android.widget.ListView;
|
import android.widget.ListView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.R;
|
import com.android.messaging.R;
|
||||||
import com.android.messaging.datamodel.action.ReceiveMmsMessageAction;
|
import com.android.messaging.datamodel.action.ReceiveMmsMessageAction;
|
||||||
import com.android.messaging.datamodel.data.ParticipantData;
|
import com.android.messaging.datamodel.data.ParticipantData;
|
||||||
@@ -96,8 +99,9 @@ public class DebugSmsMmsFromDumpFileDialogFragment extends DialogFragment {
|
|||||||
super(context, R.layout.sms_mms_dump_file_list_item, dumpFiles);
|
super(context, R.layout.sms_mms_dump_file_list_item, dumpFiles);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public View getView(final int position, final View view, final ViewGroup parent) {
|
public View getView(final int position, final View view, @NonNull final ViewGroup parent) {
|
||||||
TextView actionItemView;
|
TextView actionItemView;
|
||||||
if (view == null || !(view instanceof TextView)) {
|
if (view == null || !(view instanceof TextView)) {
|
||||||
final LayoutInflater inflater = LayoutInflater.from(getContext());
|
final LayoutInflater inflater = LayoutInflater.from(getContext());
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -24,6 +25,9 @@ import android.os.Parcelable;
|
|||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.FrameLayout;
|
import android.widget.FrameLayout;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.R;
|
import com.android.messaging.R;
|
||||||
import com.android.messaging.ui.PersistentInstanceState;
|
import com.android.messaging.ui.PersistentInstanceState;
|
||||||
import com.android.messaging.util.ThreadUtil;
|
import com.android.messaging.util.ThreadUtil;
|
||||||
@@ -72,7 +76,7 @@ public class CameraMediaChooserView extends FrameLayout implements PersistentIns
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onDraw(final Canvas canvas) {
|
protected void onDraw(@NonNull final Canvas canvas) {
|
||||||
super.onDraw(canvas);
|
super.onDraw(canvas);
|
||||||
// If the canvas isn't hardware accelerated, we have to replace the HardwareCameraPreview
|
// If the canvas isn't hardware accelerated, we have to replace the HardwareCameraPreview
|
||||||
// with a SoftwareCameraPreview which supports software rendering
|
// with a SoftwareCameraPreview which supports software rendering
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ import android.widget.LinearLayout;
|
|||||||
import android.widget.RelativeLayout;
|
import android.widget.RelativeLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.R;
|
import com.android.messaging.R;
|
||||||
import com.android.messaging.datamodel.DataModel;
|
import com.android.messaging.datamodel.DataModel;
|
||||||
import com.android.messaging.datamodel.data.GalleryGridItemData;
|
import com.android.messaging.datamodel.data.GalleryGridItemData;
|
||||||
@@ -107,7 +109,7 @@ public class GalleryGridItemView extends FrameLayout {
|
|||||||
final Rect region = new Rect(0, 0, getWidth(), getHeight());
|
final Rect region = new Rect(0, 0, getWidth(), getHeight());
|
||||||
setTouchDelegate(new TouchDelegate(region, mCheckBox) {
|
setTouchDelegate(new TouchDelegate(region, mCheckBox) {
|
||||||
@Override
|
@Override
|
||||||
public boolean onTouchEvent(MotionEvent event) {
|
public boolean onTouchEvent(@NonNull MotionEvent event) {
|
||||||
switch (event.getAction()) {
|
switch (event.getAction()) {
|
||||||
case MotionEvent.ACTION_DOWN:
|
case MotionEvent.ACTION_DOWN:
|
||||||
setPressed(true);
|
setPressed(true);
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ import android.util.AttributeSet;
|
|||||||
import android.view.TextureView;
|
import android.view.TextureView;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -44,23 +46,25 @@ public class HardwareCameraPreview extends TextureView implements CameraPreview.
|
|||||||
mPreview = new CameraPreview(this);
|
mPreview = new CameraPreview(this);
|
||||||
setSurfaceTextureListener(new SurfaceTextureListener() {
|
setSurfaceTextureListener(new SurfaceTextureListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onSurfaceTextureAvailable(final SurfaceTexture surfaceTexture, final int i, final int i2) {
|
public void onSurfaceTextureAvailable(@NonNull final SurfaceTexture surfaceTexture,
|
||||||
|
final int i, final int i2) {
|
||||||
CameraManager.get().setSurface(mPreview);
|
CameraManager.get().setSurface(mPreview);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSurfaceTextureSizeChanged(final SurfaceTexture surfaceTexture, final int i, final int i2) {
|
public void onSurfaceTextureSizeChanged(@NonNull final SurfaceTexture surfaceTexture,
|
||||||
|
final int i, final int i2) {
|
||||||
CameraManager.get().setSurface(mPreview);
|
CameraManager.get().setSurface(mPreview);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onSurfaceTextureDestroyed(final SurfaceTexture surfaceTexture) {
|
public boolean onSurfaceTextureDestroyed(@NonNull final SurfaceTexture surfaceTexture) {
|
||||||
CameraManager.get().setSurface(null);
|
CameraManager.get().setSurface(null);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSurfaceTextureUpdated(final SurfaceTexture surfaceTexture) {
|
public void onSurfaceTextureUpdated(@NonNull final SurfaceTexture surfaceTexture) {
|
||||||
CameraManager.get().setSurface(mPreview);
|
CameraManager.get().setSurface(mPreview);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -22,6 +23,8 @@ import android.content.Context;
|
|||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.viewpager.widget.PagerAdapter;
|
import androidx.viewpager.widget.PagerAdapter;
|
||||||
import androidx.viewpager.widget.ViewPager;
|
import androidx.viewpager.widget.ViewPager;
|
||||||
import androidx.appcompat.app.ActionBar;
|
import androidx.appcompat.app.ActionBar;
|
||||||
@@ -708,8 +711,9 @@ public class MediaPicker extends Fragment implements DraftMessageSubscriptionDat
|
|||||||
protected static final int READ_CONTACT_PERMISSION_REQUEST_CODE = 5;
|
protected static final int READ_CONTACT_PERMISSION_REQUEST_CODE = 5;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onRequestPermissionsResult(
|
public void onRequestPermissionsResult(final int requestCode,
|
||||||
final int requestCode, final String permissions[], final int[] grantResults) {
|
@NonNull final String permissions[],
|
||||||
|
@NonNull final int[] grantResults) {
|
||||||
if (mSelectedChooser != null) {
|
if (mSelectedChooser != null) {
|
||||||
mSelectedChooser.onRequestPermissionsResult(requestCode, permissions, grantResults);
|
mSelectedChooser.onRequestPermissionsResult(requestCode, permissions, grantResults);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -23,6 +24,8 @@ import android.view.SurfaceHolder;
|
|||||||
import android.view.SurfaceView;
|
import android.view.SurfaceView;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -41,18 +44,18 @@ public class SoftwareCameraPreview extends SurfaceView implements CameraPreview.
|
|||||||
mPreview = new CameraPreview(this);
|
mPreview = new CameraPreview(this);
|
||||||
getHolder().addCallback(new SurfaceHolder.Callback() {
|
getHolder().addCallback(new SurfaceHolder.Callback() {
|
||||||
@Override
|
@Override
|
||||||
public void surfaceCreated(final SurfaceHolder surfaceHolder) {
|
public void surfaceCreated(@NonNull final SurfaceHolder surfaceHolder) {
|
||||||
CameraManager.get().setSurface(mPreview);
|
CameraManager.get().setSurface(mPreview);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void surfaceChanged(final SurfaceHolder surfaceHolder, final int format, final int width,
|
public void surfaceChanged(@NonNull final SurfaceHolder surfaceHolder, final int format,
|
||||||
final int height) {
|
final int width, final int height) {
|
||||||
CameraManager.get().setSurface(mPreview);
|
CameraManager.get().setSurface(mPreview);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void surfaceDestroyed(final SurfaceHolder surfaceHolder) {
|
public void surfaceDestroyed(@NonNull final SurfaceHolder surfaceHolder) {
|
||||||
CameraManager.get().setSurface(null);
|
CameraManager.get().setSurface(null);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -60,7 +63,7 @@ public class SoftwareCameraPreview extends SurfaceView implements CameraPreview.
|
|||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onVisibilityChanged(final View changedView, final int visibility) {
|
protected void onVisibilityChanged(@NonNull final View changedView, final int visibility) {
|
||||||
super.onVisibilityChanged(changedView, visibility);
|
super.onVisibilityChanged(changedView, visibility);
|
||||||
mPreview.onVisibilityChanged(visibility);
|
mPreview.onVisibilityChanged(visibility);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -29,6 +30,8 @@ import android.util.Log;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.accessibility.AccessibilityNodeInfo;
|
import android.view.accessibility.AccessibilityNodeInfo;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.R;
|
import com.android.messaging.R;
|
||||||
import com.android.messaging.util.LogUtil;
|
import com.android.messaging.util.LogUtil;
|
||||||
|
|
||||||
@@ -114,7 +117,7 @@ public class SoundLevels extends View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onDraw(final Canvas canvas) {
|
protected void onDraw(@NonNull final Canvas canvas) {
|
||||||
if (!mIsEnabled) {
|
if (!mIsEnabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ import android.view.MotionEvent;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.FrameLayout;
|
import android.widget.FrameLayout;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@@ -160,7 +162,7 @@ public class RenderOverlay extends FrameLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void draw(Canvas canvas) {
|
public void draw(@NonNull Canvas canvas) {
|
||||||
super.draw(canvas);
|
super.draw(canvas);
|
||||||
if (mClients == null) {
|
if (mClients == null) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ import android.telephony.SmsMessage;
|
|||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
import com.android.messaging.R;
|
import com.android.messaging.R;
|
||||||
import com.android.messaging.datamodel.SyncManager;
|
import com.android.messaging.datamodel.SyncManager;
|
||||||
@@ -101,6 +103,7 @@ public class DebugUtils {
|
|||||||
mTitle = title;
|
mTitle = title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return mTitle;
|
return mTitle;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2015 The Android Open Source Project
|
* Copyright (C) 2015 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -16,6 +17,8 @@
|
|||||||
|
|
||||||
package com.android.messaging.util;
|
package com.android.messaging.util;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.google.common.base.CharMatcher;
|
import com.google.common.base.CharMatcher;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -104,6 +107,7 @@ public final class EmailAddress {
|
|||||||
return isValidInternal();
|
return isValidInternal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return user + "@" + host;
|
return user + "@" + host;
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ import android.os.Looper;
|
|||||||
import android.os.PowerManager;
|
import android.os.PowerManager;
|
||||||
import android.os.SystemClock;
|
import android.os.SystemClock;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import com.android.messaging.Factory;
|
import com.android.messaging.Factory;
|
||||||
|
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
@@ -54,6 +56,7 @@ public class NotificationPlayer implements OnCompletionListener {
|
|||||||
long requestTime;
|
long requestTime;
|
||||||
boolean releaseFocus;
|
boolean releaseFocus;
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "{ code=" + code + " looping=" + looping + " stream=" + stream
|
return "{ code=" + code + " looping=" + looping + " stream=" + stream
|
||||||
|
|||||||
@@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
package com.android.messaging.util.exif;
|
package com.android.messaging.util.exif;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
import java.nio.charset.Charset;
|
import java.nio.charset.Charset;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
@@ -999,6 +1001,7 @@ public class ExifTag {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return String.format("tag id: %04X\n", mTagId) + "ifd id: " + mIfd + "\ntype: "
|
return String.format("tag id: %04X\n", mTagId) + "ifd id: " + mIfd + "\ntype: "
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2012 The Android Open Source Project
|
* Copyright (C) 2012 The Android Open Source Project
|
||||||
|
* Copyright (C) 2024 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -16,6 +17,8 @@
|
|||||||
|
|
||||||
package com.android.messaging.util.exif;
|
package com.android.messaging.util.exif;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The rational data type of EXIF tag. Contains a pair of longs representing the
|
* The rational data type of EXIF tag. Contains a pair of longs representing the
|
||||||
* numerator and denominator of a Rational number.
|
* numerator and denominator of a Rational number.
|
||||||
@@ -81,6 +84,7 @@ public class Rational {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return mNumerator + "/" + mDenominator;
|
return mNumerator + "/" + mDenominator;
|
||||||
|
|||||||
Reference in New Issue
Block a user