Messaging: Fix javadoc
Change-Id: Ia1b0a8fa9a5e74078a68a55ca1953b6f085521b1
This commit is contained in:
@@ -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 (;;) {
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -94,8 +94,6 @@ import java.util.Set;
|
||||
* There are currently two main classes of notification and their rules: <p>
|
||||
* 1) Messages - {@link MessageNotificationState}. Only one message notification.
|
||||
* Unread messages across senders and conversations are coalesced.<p>
|
||||
* 2) Failed Messages - {@link MessageNotificationState#checkFailedMesages } Only one failed
|
||||
* message. Multiple failures are coalesced.<p>
|
||||
*
|
||||
* To add a new class of notifications, subclass the NotificationState and add commands which
|
||||
* create one and pass into general creation function.
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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<String> getThreadRecipients(final long threadId) {
|
||||
List<String> recipients = mThreadToRecipients.get(threadId);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -92,7 +92,6 @@ public abstract class ImageRequest<D extends ImageRequestDescriptor>
|
||||
|
||||
/**
|
||||
* Retrieves an input stream from which image resource could be loaded.
|
||||
* @throws FileNotFoundException
|
||||
*/
|
||||
protected abstract InputStream getInputStreamForResource() throws FileNotFoundException;
|
||||
|
||||
|
||||
@@ -131,7 +131,6 @@ public class PoolableImageCache extends MediaCache<ImageResource> {
|
||||
* @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<ImageResource> {
|
||||
* @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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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() {}
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -208,7 +208,6 @@ public abstract class CursorRecyclerAdapter<VH extends RecyclerView.ViewHolder>
|
||||
}
|
||||
/**
|
||||
* 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.
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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<String> using the given delimiter.
|
||||
* @param values
|
||||
* @param delimiter
|
||||
* @return
|
||||
*/
|
||||
public static String joinFromSetWithDelimiter(
|
||||
final Set<String> values, final String delimiter) {
|
||||
|
||||
@@ -102,8 +102,6 @@ class ExifData {
|
||||
|
||||
/**
|
||||
* Gets the strip at the specified index.
|
||||
*
|
||||
* @exceptions #IndexOutOfBoundException
|
||||
*/
|
||||
protected byte[] getStrip(int index) {
|
||||
return mStripBytes.get(index);
|
||||
|
||||
@@ -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<ExifTag> 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<ExifTag> 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<ExifTag> 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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user