Add @TestApi for DownloadStateCallback CTS am: 63c5fd60ac
am: b96d49e91f
Change-Id: I6ba017e942c0da8a345e34b45badde6662a5abdd
This commit is contained in:
@@ -40975,6 +40975,7 @@ package android.telephony.mbms {
|
||||
}
|
||||
|
||||
public final class FileInfo implements android.os.Parcelable {
|
||||
ctor public FileInfo(android.net.Uri, java.lang.String);
|
||||
method public int describeContents();
|
||||
method public java.lang.String getMimeType();
|
||||
method public android.net.Uri getUri();
|
||||
|
||||
@@ -38,7 +38,7 @@ public class DownloadStateCallback {
|
||||
* @hide
|
||||
*/
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@IntDef({ALL_UPDATES, PROGRESS_UPDATES, STATE_UPDATES})
|
||||
@IntDef(flag = true, value = {ALL_UPDATES, PROGRESS_UPDATES, STATE_UPDATES})
|
||||
public @interface FilterFlag {}
|
||||
|
||||
/**
|
||||
|
||||
@@ -17,10 +17,13 @@
|
||||
package android.telephony.mbms;
|
||||
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.TestApi;
|
||||
import android.net.Uri;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* Describes a single file that is available over MBMS.
|
||||
*/
|
||||
@@ -47,6 +50,7 @@ public final class FileInfo implements Parcelable {
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public FileInfo(Uri uri, String mimeType) {
|
||||
this.uri = uri;
|
||||
this.mimeType = mimeType;
|
||||
@@ -82,4 +86,23 @@ public final class FileInfo implements Parcelable {
|
||||
public String getMimeType() {
|
||||
return mimeType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
FileInfo fileInfo = (FileInfo) o;
|
||||
return Objects.equals(uri, fileInfo.uri) &&
|
||||
Objects.equals(mimeType, fileInfo.mimeType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(uri, mimeType);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user