mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Merge pull request #10011 from tonykwok:dev-v2
PiperOrigin-RevId: 431395359 (cherry picked from commit c961ea1ca7c119b309456033021434dd38ad0e84)
This commit is contained in:
parent
291c95daa0
commit
49e6fa805a
@ -24,6 +24,8 @@ import static java.lang.annotation.ElementType.TYPE_USE;
|
|||||||
import androidx.annotation.IntDef;
|
import androidx.annotation.IntDef;
|
||||||
import androidx.media3.common.util.UnstableApi;
|
import androidx.media3.common.util.UnstableApi;
|
||||||
import java.lang.annotation.Documented;
|
import java.lang.annotation.Documented;
|
||||||
|
import java.lang.annotation.Retention;
|
||||||
|
import java.lang.annotation.RetentionPolicy;
|
||||||
import java.lang.annotation.Target;
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
/** Thrown when the requested DRM scheme is not supported. */
|
/** Thrown when the requested DRM scheme is not supported. */
|
||||||
@ -35,8 +37,9 @@ public final class UnsupportedDrmException extends Exception {
|
|||||||
* #REASON_INSTANTIATION_ERROR}.
|
* #REASON_INSTANTIATION_ERROR}.
|
||||||
*/
|
*/
|
||||||
// @Target list includes both 'default' targets and TYPE_USE, to ensure backwards compatibility
|
// @Target list includes both 'default' targets and TYPE_USE, to ensure backwards compatibility
|
||||||
// with Kotlin usages from before TYPE_USE was added. @Retention(RetentionPolicy.SOURCE)
|
// with Kotlin usages from before TYPE_USE was added.
|
||||||
@Documented
|
@Documented
|
||||||
|
@Retention(RetentionPolicy.SOURCE)
|
||||||
@Target({FIELD, METHOD, PARAMETER, LOCAL_VARIABLE, TYPE_USE})
|
@Target({FIELD, METHOD, PARAMETER, LOCAL_VARIABLE, TYPE_USE})
|
||||||
@IntDef({REASON_UNSUPPORTED_SCHEME, REASON_INSTANTIATION_ERROR})
|
@IntDef({REASON_UNSUPPORTED_SCHEME, REASON_INSTANTIATION_ERROR})
|
||||||
public @interface Reason {}
|
public @interface Reason {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user