diff --git a/src/android/support/v7/mms/MmsXmlResourceParser.java b/src/android/support/v7/mms/MmsXmlResourceParser.java
index 6c7f889..d727c03 100644
--- a/src/android/support/v7/mms/MmsXmlResourceParser.java
+++ b/src/android/support/v7/mms/MmsXmlResourceParser.java
@@ -30,9 +30,6 @@ import java.io.IOException;
abstract class MmsXmlResourceParser {
/**
* Parse the content
- *
- * @throws IOException
- * @throws XmlPullParserException
*/
protected abstract void parseRecord() throws IOException, XmlPullParserException;
@@ -87,10 +84,7 @@ abstract class MmsXmlResourceParser {
/**
* Move XML parser forward to next event type or the end of doc
*
- * @param eventType
* @return The final event type we meet
- * @throws XmlPullParserException
- * @throws IOException
*/
protected int advanceToNextEvent(int eventType) throws XmlPullParserException, IOException {
for (;;) {
diff --git a/src/android/support/v7/mms/Utils.java b/src/android/support/v7/mms/Utils.java
index 43b973d..050efd7 100644
--- a/src/android/support/v7/mms/Utils.java
+++ b/src/android/support/v7/mms/Utils.java
@@ -99,9 +99,6 @@ class Utils {
/**
* Redact the URL for non-VERBOSE logging. Replace url with only the host part and the length
* of the input URL string.
- *
- * @param urlString
- * @return
*/
static String redactUrlForNonVerbose(String urlString) {
if (Log.isLoggable(MmsService.TAG, Log.VERBOSE)) {
diff --git a/src/android/support/v7/mms/pdu/CharacterSets.java b/src/android/support/v7/mms/pdu/CharacterSets.java
index 414cddf..10690d5 100644
--- a/src/android/support/v7/mms/pdu/CharacterSets.java
+++ b/src/android/support/v7/mms/pdu/CharacterSets.java
@@ -140,7 +140,6 @@ public class CharacterSets {
*
* @param mibEnumValue An IANA assigned MIBEnum number.
* @return The name string of the charset.
- * @throws UnsupportedEncodingException
*/
public static String getMimeName(int mibEnumValue)
throws UnsupportedEncodingException {
@@ -156,7 +155,6 @@ public class CharacterSets {
*
* @param mimeName The charset name.
* @return The MIBEnum number assigned by IANA for this charset.
- * @throws UnsupportedEncodingException
*/
public static int getMibEnumValue(String mimeName)
throws UnsupportedEncodingException {
diff --git a/src/android/support/v7/mms/pdu/PduHeaders.java b/src/android/support/v7/mms/pdu/PduHeaders.java
index f7cde51..61504ba 100644
--- a/src/android/support/v7/mms/pdu/PduHeaders.java
+++ b/src/android/support/v7/mms/pdu/PduHeaders.java
@@ -507,8 +507,6 @@ public class PduHeaders {
*
* @param value the value
* @param field the field
- * @return the TextString value of the pdu header
- * with specified header field
* @throws NullPointerException if the value is null.
*/
protected void setTextString(byte[] value, int field) {
@@ -573,8 +571,6 @@ public class PduHeaders {
*
* @param value the value
* @param field the field
- * @return the EncodedStringValue value of the pdu header
- * with specified header field
* @throws NullPointerException if the value is null.
*/
protected void setEncodedStringValue(EncodedStringValue value, int field) {
@@ -610,8 +606,6 @@ public class PduHeaders {
*
* @param value the value
* @param field the field
- * @return the EncodedStringValue value array of the pdu header
- * with specified header field
* @throws NullPointerException if the value is null.
*/
protected void setEncodedStringValues(EncodedStringValue[] value, int field) {
diff --git a/src/android/support/v7/mms/pdu/PduParser.java b/src/android/support/v7/mms/pdu/PduParser.java
index 9d3da30..a296184 100644
--- a/src/android/support/v7/mms/pdu/PduParser.java
+++ b/src/android/support/v7/mms/pdu/PduParser.java
@@ -311,7 +311,7 @@ public class PduParser {
case PduHeaders.CONTENT_CLASS:
case PduHeaders.RETRIEVE_STATUS:
case PduHeaders.STORE_STATUS:
- /**
+ /*
* The following field has a different value when
* used in the M-Mbox-Delete.conf and M-Delete.conf PDU.
* For now we ignore this fact, since we do not support these PDUs
@@ -381,7 +381,7 @@ public class PduParser {
case PduHeaders.AUX_APPLIC_ID:
case PduHeaders.APPLIC_ID:
case PduHeaders.REPLY_APPLIC_ID:
- /**
+ /*
* The next three header fields are email addresses
* as defined in RFC2822,
* not including the characters "<" and ">"
@@ -389,7 +389,7 @@ public class PduParser {
case PduHeaders.MESSAGE_ID:
case PduHeaders.REPLACE_ID:
case PduHeaders.CANCEL_ID:
- /**
+ /*
* The following field has a different value when
* used in the M-Mbox-Delete.conf and M-Delete.conf PDU.
* For now we ignore this fact, since we do not support these PDUs
diff --git a/src/com/android/messaging/datamodel/BugleNotifications.java b/src/com/android/messaging/datamodel/BugleNotifications.java
index 0fee9d1..0364713 100644
--- a/src/com/android/messaging/datamodel/BugleNotifications.java
+++ b/src/com/android/messaging/datamodel/BugleNotifications.java
@@ -94,8 +94,6 @@ import java.util.Set;
* There are currently two main classes of notification and their rules:
* 1) Messages - {@link MessageNotificationState}. Only one message notification.
* Unread messages across senders and conversations are coalesced.
- * 2) Failed Messages - {@link MessageNotificationState#checkFailedMesages } Only one failed
- * message. Multiple failures are coalesced.
*
* To add a new class of notifications, subclass the NotificationState and add commands which
* create one and pass into general creation function.
diff --git a/src/com/android/messaging/datamodel/NotificationState.java b/src/com/android/messaging/datamodel/NotificationState.java
index a548e51..b52ffaa 100644
--- a/src/com/android/messaging/datamodel/NotificationState.java
+++ b/src/com/android/messaging/datamodel/NotificationState.java
@@ -90,7 +90,6 @@ public abstract class NotificationState {
/**
* Build the notification using the given builder.
- * @param builder
* @return The style of the notification.
*/
protected abstract NotificationCompat.Style build(NotificationCompat.Builder builder);
diff --git a/src/com/android/messaging/datamodel/SyncManager.java b/src/com/android/messaging/datamodel/SyncManager.java
index 1362439..b8245fe 100644
--- a/src/com/android/messaging/datamodel/SyncManager.java
+++ b/src/com/android/messaging/datamodel/SyncManager.java
@@ -434,8 +434,6 @@ public class SyncManager {
/**
* Load the recipients of a thread from telephony provider. If we fail, use
* a predefined unknown recipient. This should not return null.
- *
- * @param threadId
*/
public synchronized List getThreadRecipients(final long threadId) {
List recipients = mThreadToRecipients.get(threadId);
diff --git a/src/com/android/messaging/datamodel/action/Action.java b/src/com/android/messaging/datamodel/action/Action.java
index 0e036a3..bdd9237 100644
--- a/src/com/android/messaging/datamodel/action/Action.java
+++ b/src/com/android/messaging/datamodel/action/Action.java
@@ -69,9 +69,8 @@ public abstract class Action implements Parcelable {
/**
* Queues up background actions for background processing after the current action has
- * completed its processing ({@link #executeAction}, {@link processBackgroundCompletion}
- * or {@link #processBackgroundFailure}) on the Action thread.
- * @param backgroundAction
+ * completed its processing ({@link #executeAction} or {@link #processBackgroundFailure})
+ * on the Action thread.
*/
protected void requestBackgroundWork(final Action backgroundAction) {
mBackgroundActions.add(backgroundAction);
diff --git a/src/com/android/messaging/datamodel/action/ActionServiceImpl.java b/src/com/android/messaging/datamodel/action/ActionServiceImpl.java
index dbe5257..8f1af85 100644
--- a/src/com/android/messaging/datamodel/action/ActionServiceImpl.java
+++ b/src/com/android/messaging/datamodel/action/ActionServiceImpl.java
@@ -81,7 +81,6 @@ public class ActionServiceImpl extends JobIntentService {
/**
* Handle response returned by BackgroundWorker
- * @param request - request generating response
* @param response - response from service
*/
protected static void handleResponseFromBackgroundWorker(final Action action,
@@ -98,7 +97,6 @@ public class ActionServiceImpl extends JobIntentService {
/**
* Handle response returned by BackgroundWorker
- * @param request - request generating failure
*/
protected static void handleFailureFromBackgroundWorker(final Action action,
final Exception exception) {
diff --git a/src/com/android/messaging/datamodel/action/ProcessPendingMessagesAction.java b/src/com/android/messaging/datamodel/action/ProcessPendingMessagesAction.java
index 1a360cf..49fc4bb 100644
--- a/src/com/android/messaging/datamodel/action/ProcessPendingMessagesAction.java
+++ b/src/com/android/messaging/datamodel/action/ProcessPendingMessagesAction.java
@@ -234,7 +234,6 @@ public class ProcessPendingMessagesAction extends Action implements Parcelable {
/**
* Queue any pending actions
*
- * @param actionState
* @return true if action queued (or no actions to queue) else false
*/
private boolean queueActions(final Action processingAction) {
diff --git a/src/com/android/messaging/datamodel/action/SyncMessageBatch.java b/src/com/android/messaging/datamodel/action/SyncMessageBatch.java
index 73f6096..4be5723 100644
--- a/src/com/android/messaging/datamodel/action/SyncMessageBatch.java
+++ b/src/com/android/messaging/datamodel/action/SyncMessageBatch.java
@@ -124,8 +124,6 @@ class SyncMessageBatch {
/**
* Store the SMS message into local database.
- *
- * @param sms
*/
private void storeSms(final DatabaseWrapper db, final SmsMessage sms) {
if (sms.mBody == null) {
@@ -225,8 +223,6 @@ class SyncMessageBatch {
/**
* Store the MMS message into local database
- *
- * @param mms
*/
private void storeMms(final DatabaseWrapper db, final MmsMessage mms) {
if (mms.mParts.size() < 1) {
@@ -349,9 +345,6 @@ class SyncMessageBatch {
* Batch delete database rows by matching a column with a list of values, usually some
* kind of IDs.
*
- * @param table
- * @param column
- * @param ids
* @return Total number of deleted messages
*/
private static int batchDelete(final DatabaseWrapper db, final String table,
diff --git a/src/com/android/messaging/datamodel/binding/BindingBase.java b/src/com/android/messaging/datamodel/binding/BindingBase.java
index 94ce2e5..ffe0a9a 100644
--- a/src/com/android/messaging/datamodel/binding/BindingBase.java
+++ b/src/com/android/messaging/datamodel/binding/BindingBase.java
@@ -16,7 +16,7 @@
*/
package com.android.messaging.datamodel.binding;
-/**
+/*
* The binding class keeps track of a binding between a ui component and an item of BindableData
* It allows each side to ensure that when it communicates with the other they are still bound
* together.
diff --git a/src/com/android/messaging/datamodel/data/ConversationMessageData.java b/src/com/android/messaging/datamodel/data/ConversationMessageData.java
index 43b59e8..c9aaef6 100644
--- a/src/com/android/messaging/datamodel/data/ConversationMessageData.java
+++ b/src/com/android/messaging/datamodel/data/ConversationMessageData.java
@@ -202,7 +202,6 @@ public class ConversationMessageData {
* ignoring the outer quotes and the divider and replacing any pair of consecutive
* single quotes with a single single quote.
*
- * @param inputString
* @return array of constituent strings
*/
@VisibleForTesting
diff --git a/src/com/android/messaging/datamodel/data/DraftMessageData.java b/src/com/android/messaging/datamodel/data/DraftMessageData.java
index 0231e28..fa9cc19 100644
--- a/src/com/android/messaging/datamodel/data/DraftMessageData.java
+++ b/src/com/android/messaging/datamodel/data/DraftMessageData.java
@@ -648,7 +648,6 @@ public class DraftMessageData extends BindableData implements ReadDraftDataActio
/**
* Check if Bugle is default sms app
- * @return
*/
public boolean getIsDefaultSmsApp() {
return PhoneUtils.getDefault().isDefaultSmsApp();
diff --git a/src/com/android/messaging/datamodel/media/ImageRequest.java b/src/com/android/messaging/datamodel/media/ImageRequest.java
index 3340797..fedf03b 100644
--- a/src/com/android/messaging/datamodel/media/ImageRequest.java
+++ b/src/com/android/messaging/datamodel/media/ImageRequest.java
@@ -92,7 +92,6 @@ public abstract class ImageRequest
/**
* Retrieves an input stream from which image resource could be loaded.
- * @throws FileNotFoundException
*/
protected abstract InputStream getInputStreamForResource() throws FileNotFoundException;
diff --git a/src/com/android/messaging/datamodel/media/PoolableImageCache.java b/src/com/android/messaging/datamodel/media/PoolableImageCache.java
index b64813e..3723d85 100644
--- a/src/com/android/messaging/datamodel/media/PoolableImageCache.java
+++ b/src/com/android/messaging/datamodel/media/PoolableImageCache.java
@@ -131,7 +131,6 @@ public class PoolableImageCache extends MediaCache {
* @param width The width of the bitmap.
* @param height The height of the bitmap.
* @return The decoded Bitmap with the resource drawn in it.
- * @throws IOException
*/
public Bitmap decodeSampledBitmapFromInputStream(@NonNull final InputStream inputStream,
@NonNull final BitmapFactory.Options optionsTmp,
@@ -172,7 +171,6 @@ public class PoolableImageCache extends MediaCache {
* @param width The width of the bitmap.
* @param height The height of the bitmap.
* @return A Bitmap with the encoded bytes drawn in it.
- * @throws IOException
*/
public Bitmap decodeByteArray(@NonNull final byte[] bytes,
@NonNull final BitmapFactory.Options optionsTmp, final int width,
diff --git a/src/com/android/messaging/datamodel/media/UriImageRequestDescriptor.java b/src/com/android/messaging/datamodel/media/UriImageRequestDescriptor.java
index c981beb..e2a51c9 100644
--- a/src/com/android/messaging/datamodel/media/UriImageRequestDescriptor.java
+++ b/src/com/android/messaging/datamodel/media/UriImageRequestDescriptor.java
@@ -54,7 +54,6 @@ public class UriImageRequestDescriptor extends ImageRequestDescriptor {
* Creates a new Uri-based image request.
* @param uri the content Uri. Currently Bugle only supports local resources Uri (i.e. it has
* to begin with content: or android.resource:
- * @param circleStrokeColor
*/
public UriImageRequestDescriptor(final Uri uri, final int desiredWidth,
final int desiredHeight, final int sourceWidth, final int sourceHeight,
diff --git a/src/com/android/messaging/mmslib/Downloads.java b/src/com/android/messaging/mmslib/Downloads.java
index adc2a80..8b2a5c2 100644
--- a/src/com/android/messaging/mmslib/Downloads.java
+++ b/src/com/android/messaging/mmslib/Downloads.java
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2008 The Android Open Source Project
+ * Copyright (C) 2024 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,8 +22,6 @@ import android.provider.BaseColumns;
/**
* The Download Manager
- *
- * @pending
*/
public final class Downloads {
private Downloads() {}
diff --git a/src/com/android/messaging/mmslib/pdu/EncodedStringValue.java b/src/com/android/messaging/mmslib/pdu/EncodedStringValue.java
index 964727b..d08636a 100644
--- a/src/com/android/messaging/mmslib/pdu/EncodedStringValue.java
+++ b/src/com/android/messaging/mmslib/pdu/EncodedStringValue.java
@@ -80,7 +80,6 @@ public class EncodedStringValue implements Cloneable {
/**
* Constructor
*
- * @param charset
* @param data The text in Java String
* @throws NullPointerException if Text-string value is null.
*/
diff --git a/src/com/android/messaging/mmslib/pdu/PduHeaders.java b/src/com/android/messaging/mmslib/pdu/PduHeaders.java
index 9e5d404..b447bd4 100644
--- a/src/com/android/messaging/mmslib/pdu/PduHeaders.java
+++ b/src/com/android/messaging/mmslib/pdu/PduHeaders.java
@@ -527,8 +527,6 @@ public class PduHeaders {
*
* @param value the value
* @param field the field
- * @return the TextString value of the pdu header
- * with specified header field
* @throws NullPointerException if the value is null.
*/
protected void setTextString(byte[] value, int field) {
@@ -593,8 +591,6 @@ public class PduHeaders {
*
* @param value the value
* @param field the field
- * @return the EncodedStringValue value of the pdu header
- * with specified header field
* @throws NullPointerException if the value is null.
*/
protected void setEncodedStringValue(EncodedStringValue value, int field) {
@@ -630,8 +626,6 @@ public class PduHeaders {
*
* @param value the value
* @param field the field
- * @return the EncodedStringValue value array of the pdu header
- * with specified header field
* @throws NullPointerException if the value is null.
*/
protected void setEncodedStringValues(EncodedStringValue[] value, int field) {
diff --git a/src/com/android/messaging/mmslib/pdu/PduParser.java b/src/com/android/messaging/mmslib/pdu/PduParser.java
index 7309659..a189a03 100644
--- a/src/com/android/messaging/mmslib/pdu/PduParser.java
+++ b/src/com/android/messaging/mmslib/pdu/PduParser.java
@@ -329,7 +329,7 @@ public class PduParser {
case PduHeaders.CONTENT_CLASS:
case PduHeaders.RETRIEVE_STATUS:
case PduHeaders.STORE_STATUS:
- /**
+ /*
* The following field has a different value when
* used in the M-Mbox-Delete.conf and M-Delete.conf PDU.
* For now we ignore this fact, since we do not support these PDUs
@@ -399,7 +399,7 @@ public class PduParser {
case PduHeaders.AUX_APPLIC_ID:
case PduHeaders.APPLIC_ID:
case PduHeaders.REPLY_APPLIC_ID:
- /**
+ /*
* The next three header fields are email addresses
* as defined in RFC2822,
* not including the characters "<" and ">"
@@ -407,7 +407,7 @@ public class PduParser {
case PduHeaders.MESSAGE_ID:
case PduHeaders.REPLACE_ID:
case PduHeaders.CANCEL_ID:
- /**
+ /*
* The following field has a different value when
* used in the M-Mbox-Delete.conf and M-Delete.conf PDU.
* For now we ignore this fact, since we do not support these PDUs
diff --git a/src/com/android/messaging/mmslib/util/DrmConvertSession.java b/src/com/android/messaging/mmslib/util/DrmConvertSession.java
index 7dda643..688720a 100644
--- a/src/com/android/messaging/mmslib/util/DrmConvertSession.java
+++ b/src/com/android/messaging/mmslib/util/DrmConvertSession.java
@@ -78,7 +78,7 @@ public class DrmConvertSession {
/**
* Convert a buffer of data to protected format.
*
- * @param buffer Buffer filled with data to convert.
+ * @param inBuffer Buffer filled with data to convert.
* @param size The number of bytes that shall be converted.
* @return A Buffer filled with converted data, if execution is ok, in all
* other case null.
@@ -117,7 +117,7 @@ public class DrmConvertSession {
/**
* Ends a conversion session of a file.
*
- * @param fileName The filename of the converted file.
+ * @param filename The filename of the converted file.
* @return Downloads.Impl.STATUS_SUCCESS if execution is ok.
* Downloads.Impl.STATUS_FILE_ERROR in case converted file can not
* be accessed. Downloads.Impl.STATUS_NOT_ACCEPTABLE if a problem
diff --git a/src/com/android/messaging/sms/ApnsXmlProcessor.java b/src/com/android/messaging/sms/ApnsXmlProcessor.java
index 3a8ffc3..5083f3d 100644
--- a/src/com/android/messaging/sms/ApnsXmlProcessor.java
+++ b/src/com/android/messaging/sms/ApnsXmlProcessor.java
@@ -108,10 +108,7 @@ class ApnsXmlProcessor {
/**
* Move XML parser forward to next event type or the end of doc
*
- * @param eventType
* @return The final event type we meet
- * @throws XmlPullParserException
- * @throws IOException
*/
private int advanceToNextEvent(int eventType) throws XmlPullParserException, IOException {
for (;;) {
@@ -226,8 +223,6 @@ class ApnsXmlProcessor {
* Process one apn
*
* @param apnValues Where we store the parsed apn
- * @throws IOException
- * @throws XmlPullParserException
*/
private void processApn(ContentValues apnValues) throws IOException, XmlPullParserException {
Assert.notNull(apnValues);
@@ -272,8 +267,6 @@ class ApnsXmlProcessor {
/**
* Process one mms_config.
*
- * @throws IOException
- * @throws XmlPullParserException
*/
private void processMmsConfig()
throws IOException, XmlPullParserException {
@@ -303,8 +296,6 @@ class ApnsXmlProcessor {
* Process one mms_config key/value pair
*
* @param mccMnc The mcc and mnc of this mms_config
- * @throws IOException
- * @throws XmlPullParserException
*/
private void processMmsConfigKeyValue(String mccMnc)
throws IOException, XmlPullParserException {
diff --git a/src/com/android/messaging/sms/BugleApnSettingsLoader.java b/src/com/android/messaging/sms/BugleApnSettingsLoader.java
index e03d3f1..d83ca34 100644
--- a/src/com/android/messaging/sms/BugleApnSettingsLoader.java
+++ b/src/com/android/messaging/sms/BugleApnSettingsLoader.java
@@ -39,13 +39,11 @@ import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;
-/**
+/*
* APN loader for default SMS SIM
- *
* This loader tries to load APNs from 3 sources in order:
- * 1. Gservices setting
- * 2. System APN table
- * 3. Local APN table
+ * 1. System APN table
+ * 2. Local APN table
*/
public class BugleApnSettingsLoader implements ApnSettingsLoader {
/**
diff --git a/src/com/android/messaging/sms/BugleCarrierConfigValuesLoader.java b/src/com/android/messaging/sms/BugleCarrierConfigValuesLoader.java
index 2c75349..107401c 100644
--- a/src/com/android/messaging/sms/BugleCarrierConfigValuesLoader.java
+++ b/src/com/android/messaging/sms/BugleCarrierConfigValuesLoader.java
@@ -29,7 +29,7 @@ import com.android.messaging.R;
import com.android.messaging.util.LogUtil;
import com.android.messaging.util.PhoneUtils;
-/**
+/*
* Carrier configuration loader
*
* Loader tries to load from resources. If there is MMS API available, also
diff --git a/src/com/android/messaging/sms/DatabaseMessages.java b/src/com/android/messaging/sms/DatabaseMessages.java
index 1729e2d..2396a72 100644
--- a/src/com/android/messaging/sms/DatabaseMessages.java
+++ b/src/com/android/messaging/sms/DatabaseMessages.java
@@ -144,8 +144,6 @@ public class DatabaseMessages {
/**
* Load from a cursor of a query that returns the SMS to import
- *
- * @param cursor
*/
private void load(final Cursor cursor) {
mRowId = cursor.getLong(INDEX_ID);
@@ -166,9 +164,6 @@ public class DatabaseMessages {
/**
* Get a new SmsMessage by loading from the cursor of a query
* that returns the SMS to import
- *
- * @param cursor
- * @return
*/
public static SmsMessage get(final Cursor cursor) {
final SmsMessage msg = new SmsMessage();
@@ -335,8 +330,6 @@ public class DatabaseMessages {
/**
* Load from a cursor of a query that returns the MMS to import
- *
- * @param cursor
*/
public void load(final Cursor cursor) {
mRowId = cursor.getLong(INDEX_ID);
@@ -376,9 +369,6 @@ public class DatabaseMessages {
/**
* Get a new MmsMessage by loading from the cursor of a query
* that returns the MMS to import
- *
- * @param cursor
- * @return
*/
public static MmsMessage get(final Cursor cursor) {
final MmsMessage msg = new MmsMessage();
@@ -387,8 +377,6 @@ public class DatabaseMessages {
}
/**
* Add a loaded MMS part
- *
- * @param part
*/
public void addPart(final MmsPart part) {
mParts.add(part);
@@ -572,8 +560,6 @@ public class DatabaseMessages {
/**
* Load from a cursor of a query that returns the MMS part to import
- *
- * @param cursor
*/
public void load(final Cursor cursor, final boolean loadMedia) {
mRowId = cursor.getLong(INDEX_ID);
@@ -745,9 +731,6 @@ public class DatabaseMessages {
/**
* Get an instance of the MMS part from the part table cursor
*
- * @param cursor
- * @param loadMedia Whether to load the media file of the part
- * @return
*/
public static MmsPart get(final Cursor cursor, final boolean loadMedia) {
final MmsPart part = new MmsPart();
diff --git a/src/com/android/messaging/sms/MmsSender.java b/src/com/android/messaging/sms/MmsSender.java
index 555aecd..75a4110 100644
--- a/src/com/android/messaging/sms/MmsSender.java
+++ b/src/com/android/messaging/sms/MmsSender.java
@@ -63,7 +63,6 @@ public class MmsSender {
* @param context Context
* @param messageUri The unique URI of the message for identifying it during sending
* @param sendReq The SendReq PDU of the message
- * @throws MmsFailureException
*/
public static void sendMms(final Context context, final int subId, final Uri messageUri,
final SendReq sendReq, final Bundle sentIntentExras) throws MmsFailureException {
@@ -84,8 +83,6 @@ public class MmsSender {
* @param transactionId The transaction id of the MMS message
* @param contentLocation The url of the MMS message
* @param status The status to send with the NotifyRespInd
- * @throws MmsFailureException
- * @throws InvalidHeaderValueException
*/
public static void sendNotifyResponseForMmsDownload(final Context context, final int subId,
final byte[] transactionId, final String contentLocation, final int status)
@@ -111,8 +108,6 @@ public class MmsSender {
* @param subId The SIM's subId we are currently using
* @param transactionId The transaction id of the MMS message
* @param contentLocation The url of the MMS message
- * @throws MmsFailureException
- * @throws InvalidHeaderValueException
*/
public static void sendAcknowledgeForMmsDownload(final Context context, final int subId,
final byte[] transactionId, final String contentLocation)
@@ -142,7 +137,6 @@ public class MmsSender {
* @param pdu The PDU to send
* @param responseImportant If the sending response is important. Responses to the
* Sending of AcknowledgeInd and NotifyRespInd are not important.
- * @throws MmsFailureException
*/
private static void sendMms(final Context context, final int subId, final Uri messageUri,
final String locationUrl, final GenericPdu pdu, final boolean responseImportant,
@@ -242,8 +236,6 @@ public class MmsSender {
*
* @param context Context
* @param contentLocation The url of the MMS message
- * @throws MmsFailureException
- * @throws InvalidHeaderValueException
*/
public static void downloadMms(final Context context, final int subId,
final String contentLocation, Bundle extras) throws MmsFailureException,
diff --git a/src/com/android/messaging/sms/MmsUtils.java b/src/com/android/messaging/sms/MmsUtils.java
index 033d701..f22a1ac 100644
--- a/src/com/android/messaging/sms/MmsUtils.java
+++ b/src/com/android/messaging/sms/MmsUtils.java
@@ -1010,7 +1010,6 @@ public class MmsUtils {
/**
* Parse values from a received sms message
*
- * @param context
* @param msgs The received sms message content
* @param error The received sms error
* @return Parsed values from the message
@@ -1085,7 +1084,6 @@ public class MmsUtils {
* a null string. Otherwise it will return the original subject string.
* @param resources So the function can grab string resources
* @param subject the raw subject
- * @return
*/
public static String cleanseMmsSubject(final Resources resources, final String subject) {
if (TextUtils.isEmpty(subject)) {
@@ -1153,10 +1151,6 @@ public class MmsUtils {
/**
* Update the status and date_sent column of sms message in telephony provider
- *
- * @param smsMessageUri
- * @param status
- * @param timeSentInMillis
*/
public static void updateSmsStatusAndDateSent(final Uri smsMessageUri, final int status,
final long timeSentInMillis) {
@@ -1272,9 +1266,6 @@ public class MmsUtils {
/**
* Get the (?,?,...) thing for the SQL IN operator by a count
- *
- * @param count
- * @return
*/
public static String getSqlInOperand(final int count) {
if (count <= 0) {
@@ -1378,10 +1369,6 @@ public class MmsUtils {
/**
* Convert a Java String to byte array using a charset name
- *
- * @param string
- * @param charsetName
- * @return
*/
public static byte[] stringToBytes(final String string, final String charsetName) {
if (string == null) {
@@ -2103,7 +2090,6 @@ public class MmsUtils {
* Create an MMS message with subject, text and image
*
* @return Both the M-Send.req and the M-Send.conf for processing in the caller
- * @throws MmsException
*/
private static SendReq createMmsSendReq(final Context context, final int subId,
final String[] recipients, final MessageData message,
diff --git a/src/com/android/messaging/ui/BlockedParticipantListItemView.java b/src/com/android/messaging/ui/BlockedParticipantListItemView.java
index a4d047c..37ac56e 100644
--- a/src/com/android/messaging/ui/BlockedParticipantListItemView.java
+++ b/src/com/android/messaging/ui/BlockedParticipantListItemView.java
@@ -28,7 +28,6 @@ import com.android.messaging.datamodel.data.ParticipantListItemData;
/**
* View for individual participant in blocked participants list.
- *
* Unblocks participant when clicked.
*/
public class BlockedParticipantListItemView extends LinearLayout {
diff --git a/src/com/android/messaging/ui/CursorRecyclerAdapter.java b/src/com/android/messaging/ui/CursorRecyclerAdapter.java
index e426679..32de2fa 100644
--- a/src/com/android/messaging/ui/CursorRecyclerAdapter.java
+++ b/src/com/android/messaging/ui/CursorRecyclerAdapter.java
@@ -208,7 +208,6 @@ public abstract class CursorRecyclerAdapter
}
/**
* Bind an existing view to the data pointed to by cursor
- * @param view Existing view, returned earlier by newView
* @param context Interface to application's global information
* @param cursor The cursor from which to get the data. The cursor is already
* moved to the correct position.
diff --git a/src/com/android/messaging/ui/PagingAwareViewPager.java b/src/com/android/messaging/ui/PagingAwareViewPager.java
index 34562dc..f66b79a 100644
--- a/src/com/android/messaging/ui/PagingAwareViewPager.java
+++ b/src/com/android/messaging/ui/PagingAwareViewPager.java
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2015 The Android Open Source Project
+ * Copyright (C) 2024 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -52,7 +53,6 @@ public class PagingAwareViewPager extends ViewPager {
/**
* Switches position in pager to be adjusted for if we are in RtL mode
*
- * @param position
* @return position adjusted if in rtl mode
*/
protected int getRtlPosition(final int position) {
diff --git a/src/com/android/messaging/ui/conversation/ConversationInput.java b/src/com/android/messaging/ui/conversation/ConversationInput.java
index 4baaaee..ead8001 100644
--- a/src/com/android/messaging/ui/conversation/ConversationInput.java
+++ b/src/com/android/messaging/ui/conversation/ConversationInput.java
@@ -61,7 +61,6 @@ public abstract class ConversationInput {
/**
* Toggle the visibility of this view.
- * @param animate
* @return true if the view is now shown, false if it now hidden
*/
public boolean toggle(final boolean animate) {
diff --git a/src/com/android/messaging/ui/conversation/ConversationInputManager.java b/src/com/android/messaging/ui/conversation/ConversationInputManager.java
index 44c1781..bb495d5 100644
--- a/src/com/android/messaging/ui/conversation/ConversationInputManager.java
+++ b/src/com/android/messaging/ui/conversation/ConversationInputManager.java
@@ -217,8 +217,6 @@ public class ConversationInputManager implements ConversationInput.ConversationI
/**
* Toggle the visibility of the sim selector.
- * @param animate
- * @param subEntry
* @return true if the view is now shown, false if it now hidden
*/
public boolean toggleSimSelector(final boolean animate, final SubscriptionListEntry subEntry) {
diff --git a/src/com/android/messaging/ui/conversation/MessageDetailsDialog.java b/src/com/android/messaging/ui/conversation/MessageDetailsDialog.java
index 1d2f3aa..2cdc655 100644
--- a/src/com/android/messaging/ui/conversation/MessageDetailsDialog.java
+++ b/src/com/android/messaging/ui/conversation/MessageDetailsDialog.java
@@ -314,7 +314,6 @@ public class MessageDetailsDialog {
/**
* Convert the numeric mms priority into a human-readable string
- * @param res
* @param priorityValue coded PduHeader priority
* @return string representation of the priority
*/
diff --git a/src/com/android/messaging/ui/mediapicker/CameraMediaChooser.java b/src/com/android/messaging/ui/mediapicker/CameraMediaChooser.java
index a1a8824..1d98ccd 100644
--- a/src/com/android/messaging/ui/mediapicker/CameraMediaChooser.java
+++ b/src/com/android/messaging/ui/mediapicker/CameraMediaChooser.java
@@ -212,7 +212,6 @@ class CameraMediaChooser extends MediaChooser implements
/**
* Updates the view when entering or leaving full-screen camera mode
- * @param fullScreen
*/
@Override
void onFullScreenChanged(final boolean fullScreen) {
diff --git a/src/com/android/messaging/ui/mediapicker/camerafocus/PieRenderer.java b/src/com/android/messaging/ui/mediapicker/camerafocus/PieRenderer.java
index db89faa..8cc3028 100644
--- a/src/com/android/messaging/ui/mediapicker/camerafocus/PieRenderer.java
+++ b/src/com/android/messaging/ui/mediapicker/camerafocus/PieRenderer.java
@@ -220,7 +220,6 @@ public class PieRenderer extends OverlayRenderer
/**
* guaranteed has center set
- * @param show
*/
private void show(boolean show) {
if (show) {
@@ -486,7 +485,6 @@ public class PieRenderer extends OverlayRenderer
/**
* enter a slice for a view
* updates model only
- * @param item
*/
private void onEnter(PieItem item) {
if (mCurrentItem != null) {
diff --git a/src/com/android/messaging/util/BugleActivityUtil.java b/src/com/android/messaging/util/BugleActivityUtil.java
index a342540..afafabe 100644
--- a/src/com/android/messaging/util/BugleActivityUtil.java
+++ b/src/com/android/messaging/util/BugleActivityUtil.java
@@ -39,7 +39,6 @@ public class BugleActivityUtil {
/**
* Determine if the requirements for the app to run are met. Log any Activity startup
* analytics.
- * @param context
* @param activity is used to launch an error Dialog if necessary
* @return true if resume should continue normally. Returns false if some requirements to run
* are not met.
diff --git a/src/com/android/messaging/util/ImageUtils.java b/src/com/android/messaging/util/ImageUtils.java
index 1beba87..0533edc 100644
--- a/src/com/android/messaging/util/ImageUtils.java
+++ b/src/com/android/messaging/util/ImageUtils.java
@@ -174,7 +174,6 @@ public class ImageUtils {
* @param options a BitmapFactory.Options instance containing the bounds info of the bitmap
* @param reqWidth the desired width of the bitmap. Can be ImageRequest.UNSPECIFIED_SIZE.
* @param reqHeight the desired height of the bitmap. Can be ImageRequest.UNSPECIFIED_SIZE.
- * @return
*/
public int calculateInSampleSize(
final BitmapFactory.Options options, final int reqWidth, final int reqHeight) {
diff --git a/src/com/android/messaging/util/OsUtil.java b/src/com/android/messaging/util/OsUtil.java
index dd7983c..f49a521 100644
--- a/src/com/android/messaging/util/OsUtil.java
+++ b/src/com/android/messaging/util/OsUtil.java
@@ -18,6 +18,7 @@
package com.android.messaging.util;
import android.Manifest;
+import android.app.Activity;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.UserHandle;
@@ -55,9 +56,6 @@ public class OsUtil {
/**
* Creates a joined string from a Set using the given delimiter.
- * @param values
- * @param delimiter
- * @return
*/
public static String joinFromSetWithDelimiter(
final Set values, final String delimiter) {
diff --git a/src/com/android/messaging/util/exif/ExifData.java b/src/com/android/messaging/util/exif/ExifData.java
index d323fca..5252446 100644
--- a/src/com/android/messaging/util/exif/ExifData.java
+++ b/src/com/android/messaging/util/exif/ExifData.java
@@ -102,8 +102,6 @@ class ExifData {
/**
* Gets the strip at the specified index.
- *
- * @exceptions #IndexOutOfBoundException
*/
protected byte[] getStrip(int index) {
return mStripBytes.get(index);
diff --git a/src/com/android/messaging/util/exif/ExifInterface.java b/src/com/android/messaging/util/exif/ExifInterface.java
index aa9051a..fc160f4 100644
--- a/src/com/android/messaging/util/exif/ExifInterface.java
+++ b/src/com/android/messaging/util/exif/ExifInterface.java
@@ -720,7 +720,6 @@ public class ExifInterface {
* object's existing exif tags.
*
* @param jpeg a byte array containing a jpeg compressed image.
- * @throws java.io.IOException
*/
public void readExif(byte[] jpeg) throws IOException {
readExif(new ByteArrayInputStream(jpeg));
@@ -731,7 +730,6 @@ public class ExifInterface {
* object's existing exif tags.
*
* @param inStream an InputStream containing a jpeg compressed image.
- * @throws java.io.IOException
*/
public void readExif(InputStream inStream) throws IOException {
if (inStream == null) {
@@ -751,8 +749,6 @@ public class ExifInterface {
* existing exif tags.
*
* @param inFileName a string representing the filepath to jpeg file.
- * @throws java.io.FileNotFoundException
- * @throws java.io.IOException
*/
public void readExif(String inFileName) throws FileNotFoundException, IOException {
if (inFileName == null) {
@@ -794,7 +790,6 @@ public class ExifInterface {
* @param jpeg a byte array containing a jpeg compressed image.
* @param exifOutStream an OutputStream to which the jpeg image with added
* exif tags will be written.
- * @throws java.io.IOException
*/
public void writeExif(byte[] jpeg, OutputStream exifOutStream) throws IOException {
if (jpeg == null || exifOutStream == null) {
@@ -812,7 +807,6 @@ public class ExifInterface {
* @param bmap a bitmap to compress and write exif into.
* @param exifOutStream the OutputStream to which the jpeg image with added
* exif tags will be written.
- * @throws java.io.IOException
*/
public void writeExif(Bitmap bmap, OutputStream exifOutStream) throws IOException {
if (bmap == null || exifOutStream == null) {
@@ -830,7 +824,6 @@ public class ExifInterface {
* @param jpegStream an InputStream containing a jpeg compressed image.
* @param exifOutStream an OutputStream to which the jpeg image with added
* exif tags will be written.
- * @throws java.io.IOException
*/
public void writeExif(InputStream jpegStream, OutputStream exifOutStream) throws IOException {
if (jpegStream == null || exifOutStream == null) {
@@ -848,8 +841,6 @@ public class ExifInterface {
* @param jpeg a byte array containing a jpeg compressed image.
* @param exifOutFileName a String containing the filepath to which the jpeg
* image with added exif tags will be written.
- * @throws java.io.FileNotFoundException
- * @throws java.io.IOException
*/
public void writeExif(byte[] jpeg, String exifOutFileName) throws FileNotFoundException,
IOException {
@@ -875,8 +866,6 @@ public class ExifInterface {
* @param bmap a bitmap to compress and write exif into.
* @param exifOutFileName a String containing the filepath to which the jpeg
* image with added exif tags will be written.
- * @throws java.io.FileNotFoundException
- * @throws java.io.IOException
*/
public void writeExif(Bitmap bmap, String exifOutFileName) throws FileNotFoundException,
IOException {
@@ -902,8 +891,6 @@ public class ExifInterface {
* @param jpegStream an InputStream containing a jpeg compressed image.
* @param exifOutFileName a String containing the filepath to which the jpeg
* image with added exif tags will be written.
- * @throws java.io.FileNotFoundException
- * @throws java.io.IOException
*/
public void writeExif(InputStream jpegStream, String exifOutFileName)
throws FileNotFoundException, IOException {
@@ -929,8 +916,6 @@ public class ExifInterface {
* @param jpegFileName a String containing the filepath for a jpeg file.
* @param exifOutFileName a String containing the filepath to which the jpeg
* image with added exif tags will be written.
- * @throws java.io.FileNotFoundException
- * @throws java.io.IOException
*/
public void writeExif(String jpegFileName, String exifOutFileName)
throws FileNotFoundException, IOException {
@@ -978,7 +963,6 @@ public class ExifInterface {
* @param exifOutFileName an String containing a filepath for a jpeg file.
* @return an OutputStream that writes to the exifOutFileName file, and adds
* exif metadata. A jpeg image should be written to this stream.
- * @throws java.io.FileNotFoundException
*/
public OutputStream getExifWriterStream(String exifOutFileName) throws FileNotFoundException {
if (exifOutFileName == null) {
@@ -1005,8 +989,6 @@ public class ExifInterface {
* tags if possible.
* @return true if success, false if could not overwrite. If false, no
* changes are made to the file.
- * @throws java.io.FileNotFoundException
- * @throws java.io.IOException
*/
public boolean rewriteExif(String filename, Collection tags)
throws FileNotFoundException, IOException {
@@ -1064,7 +1046,6 @@ public class ExifInterface {
* existing tags if possible.
* @return true if success, false if could not overwrite. If false, no
* changes are made to the ByteBuffer.
- * @throws java.io.IOException
*/
public boolean rewriteExif(ByteBuffer buf, Collection tags) throws IOException {
ExifModifier mod = null;
@@ -1087,8 +1068,6 @@ public class ExifInterface {
* @param filename a String containing a filepath for a jpeg file.
* @param tags tags that will be written into the jpeg file over existing
* tags if possible.
- * @throws java.io.FileNotFoundException
- * @throws java.io.IOException
* @see #rewriteExif
*/
public void forceRewriteExif(String filename, Collection tags)
@@ -1126,8 +1105,6 @@ public class ExifInterface {
* This preserves tags that are not being rewritten.
*
* @param filename a String containing a filepath for a jpeg file.
- * @throws java.io.FileNotFoundException
- * @throws java.io.IOException
* @see #rewriteExif
*/
public void forceRewriteExif(String filename) throws FileNotFoundException, IOException {
diff --git a/src/com/android/messaging/util/exif/ExifParser.java b/src/com/android/messaging/util/exif/ExifParser.java
index 2ae5c6f..cf6aa1f 100644
--- a/src/com/android/messaging/util/exif/ExifParser.java
+++ b/src/com/android/messaging/util/exif/ExifParser.java
@@ -235,9 +235,6 @@ public class ExifParser {
/**
* Parses the the given InputStream with the given options
- *
- * @exception java.io.IOException
- * @exception ExifInvalidFormatException
*/
protected static ExifParser parse(InputStream inputStream, int options, ExifInterface iRef)
throws IOException, ExifInvalidFormatException {
@@ -248,8 +245,6 @@ public class ExifParser {
* Parses the the given InputStream with default options; that is, every IFD
* and thumbnaill will be parsed.
*
- * @exception java.io.IOException
- * @exception ExifInvalidFormatException
* @see #parse(java.io.InputStream, int)
*/
protected static ExifParser parse(InputStream inputStream, ExifInterface iRef)
@@ -262,8 +257,6 @@ public class ExifParser {
/**
* Moves the parser forward and returns the next parsing event
*
- * @exception java.io.IOException
- * @exception ExifInvalidFormatException
* @see #EVENT_START_OF_IFD
* @see #EVENT_NEW_TAG
* @see #EVENT_VALUE_OF_REGISTERED_TAG
@@ -359,9 +352,6 @@ public class ExifParser {
/**
* Skips the tags area of current IFD, if the parser is not in the tag area,
* nothing will happen.
- *
- * @throws java.io.IOException
- * @throws ExifInvalidFormatException
*/
protected void skipRemainingTagsInCurrentIfd() throws IOException, ExifInvalidFormatException {
int endOfTags = mIfdStartOffset + OFFSET_SIZE + TAG_SIZE * mNumOfTagInIfd;
diff --git a/src/com/android/messaging/util/exif/ExifReader.java b/src/com/android/messaging/util/exif/ExifReader.java
index eece48a..5e039a2 100644
--- a/src/com/android/messaging/util/exif/ExifReader.java
+++ b/src/com/android/messaging/util/exif/ExifReader.java
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2012 The Android Open Source Project
+ * Copyright (C) 2024 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,9 +39,6 @@ class ExifReader {
/**
* Parses the inputStream and and returns the EXIF data in an
* {@link ExifData}.
- *
- * @throws ExifInvalidFormatException
- * @throws java.io.IOException
*/
protected ExifData read(InputStream inputStream) throws ExifInvalidFormatException,
IOException {
diff --git a/src/com/android/messaging/util/exif/Rational.java b/src/com/android/messaging/util/exif/Rational.java
index d9d7efc..f0c99c3 100644
--- a/src/com/android/messaging/util/exif/Rational.java
+++ b/src/com/android/messaging/util/exif/Rational.java
@@ -30,9 +30,6 @@ public class Rational {
/**
* Create a Rational with a given numerator and denominator.
- *
- * @param nominator
- * @param denominator
*/
public Rational(long nominator, long denominator) {
mNumerator = nominator;
diff --git a/src/com/android/messaging/widget/BaseWidgetFactory.java b/src/com/android/messaging/widget/BaseWidgetFactory.java
index 30b80ae..1929b43 100644
--- a/src/com/android/messaging/widget/BaseWidgetFactory.java
+++ b/src/com/android/messaging/widget/BaseWidgetFactory.java
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2015 The Android Open Source Project
+ * Copyright (C) 2024 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -143,7 +144,6 @@ abstract class BaseWidgetFactory implements RemoteViewsService.RemoteViewsFactor
* Returns the number of messages that should be shown in the widget. This method
* doesn't update the boolean that indicates whether the "show more" item should be included
* in the list.
- * @return
*/
protected int getItemCount() {
if (LogUtil.isLoggable(TAG, LogUtil.VERBOSE)) {