You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Added @ImageOutputConfig.RotationDegreesValue annotation to the int parameter of ResolutionFileter#filter API
2. Removed "flag" wording from the high resolution related API
- Renamed setHighResolutionEnabledFlag function name to setAllowedResolutionMode
- Renamed HIGH_RESOLUTION_FLAG_OFF/ON to ALLOWED_RESOLUTIONS_NORMAL and ALLOWED_RESOLUTIONS_SLOW
- Updated the related javadoc description
Relnote: "Renamed ResolutionSelector#HIGH_RESOLUTION_FLAG_OFF/ON constants to ALLOWED_RESOLUTIONS_NORMAL/SLOW and renamed the builder setHighResolutionEnabledFlag function name to setAllowedResolutionMode."
Bug: 277218966
Test: ./gradlew bOS
Change-Id: Iae8175364782aecb55e04936bbba4e27a3834124
@RequiresApi(21) public final class ResolutionSelector {
537
+
method public int getAllowedResolutionMode();
537
538
method public androidx.camera.core.resolutionselector.AspectRatioStrategy getAspectRatioStrategy();
538
-
method public int getHighResolutionEnabledFlag();
539
539
method public androidx.camera.core.resolutionselector.ResolutionFilter? getResolutionFilter();
540
540
method public androidx.camera.core.resolutionselector.ResolutionStrategy? getResolutionStrategy();
541
-
field public static final int HIGH_RESOLUTION_FLAG_OFF = 0; // 0x0
542
-
field public static final int HIGH_RESOLUTION_FLAG_ON = 1; // 0x1
541
+
field public static final int ALLOWED_RESOLUTIONS_NORMAL = 0; // 0x0
542
+
field public static final int ALLOWED_RESOLUTIONS_SLOW = 1; // 0x1
543
543
}
544
544
545
545
public static final class ResolutionSelector.Builder {
546
546
ctor public ResolutionSelector.Builder();
547
547
method public androidx.camera.core.resolutionselector.ResolutionSelector build();
548
+
method public androidx.camera.core.resolutionselector.ResolutionSelector.Builder setAllowedResolutionMode(int);
548
549
method public androidx.camera.core.resolutionselector.ResolutionSelector.Builder setAspectRatioStrategy(androidx.camera.core.resolutionselector.AspectRatioStrategy);
549
-
method public androidx.camera.core.resolutionselector.ResolutionSelector.Builder setHighResolutionEnabledFlag(int);
550
550
method public androidx.camera.core.resolutionselector.ResolutionSelector.Builder setResolutionFilter(androidx.camera.core.resolutionselector.ResolutionFilter);
551
551
method public androidx.camera.core.resolutionselector.ResolutionSelector.Builder setResolutionStrategy(androidx.camera.core.resolutionselector.ResolutionStrategy);
@RequiresApi(21) public final class ResolutionSelector {
554
+
method public int getAllowedResolutionMode();
554
555
method public androidx.camera.core.resolutionselector.AspectRatioStrategy getAspectRatioStrategy();
555
-
method public int getHighResolutionEnabledFlag();
556
556
method public androidx.camera.core.resolutionselector.ResolutionFilter? getResolutionFilter();
557
557
method public androidx.camera.core.resolutionselector.ResolutionStrategy? getResolutionStrategy();
558
-
field public static final int HIGH_RESOLUTION_FLAG_OFF = 0; // 0x0
559
-
field public static final int HIGH_RESOLUTION_FLAG_ON = 1; // 0x1
558
+
field public static final int ALLOWED_RESOLUTIONS_NORMAL = 0; // 0x0
559
+
field public static final int ALLOWED_RESOLUTIONS_SLOW = 1; // 0x1
560
560
}
561
561
562
562
public static final class ResolutionSelector.Builder {
563
563
ctor public ResolutionSelector.Builder();
564
564
method public androidx.camera.core.resolutionselector.ResolutionSelector build();
565
+
method public androidx.camera.core.resolutionselector.ResolutionSelector.Builder setAllowedResolutionMode(int);
565
566
method public androidx.camera.core.resolutionselector.ResolutionSelector.Builder setAspectRatioStrategy(androidx.camera.core.resolutionselector.AspectRatioStrategy);
566
-
method public androidx.camera.core.resolutionselector.ResolutionSelector.Builder setHighResolutionEnabledFlag(int);
567
567
method public androidx.camera.core.resolutionselector.ResolutionSelector.Builder setResolutionFilter(androidx.camera.core.resolutionselector.ResolutionFilter);
568
568
method public androidx.camera.core.resolutionselector.ResolutionSelector.Builder setResolutionStrategy(androidx.camera.core.resolutionselector.ResolutionStrategy);
@RequiresApi(21) public final class ResolutionSelector {
537
+
method public int getAllowedResolutionMode();
537
538
method public androidx.camera.core.resolutionselector.AspectRatioStrategy getAspectRatioStrategy();
538
-
method public int getHighResolutionEnabledFlag();
539
539
method public androidx.camera.core.resolutionselector.ResolutionFilter? getResolutionFilter();
540
540
method public androidx.camera.core.resolutionselector.ResolutionStrategy? getResolutionStrategy();
541
-
field public static final int HIGH_RESOLUTION_FLAG_OFF = 0; // 0x0
542
-
field public static final int HIGH_RESOLUTION_FLAG_ON = 1; // 0x1
541
+
field public static final int ALLOWED_RESOLUTIONS_NORMAL = 0; // 0x0
542
+
field public static final int ALLOWED_RESOLUTIONS_SLOW = 1; // 0x1
543
543
}
544
544
545
545
public static final class ResolutionSelector.Builder {
546
546
ctor public ResolutionSelector.Builder();
547
547
method public androidx.camera.core.resolutionselector.ResolutionSelector build();
548
+
method public androidx.camera.core.resolutionselector.ResolutionSelector.Builder setAllowedResolutionMode(int);
548
549
method public androidx.camera.core.resolutionselector.ResolutionSelector.Builder setAspectRatioStrategy(androidx.camera.core.resolutionselector.AspectRatioStrategy);
549
-
method public androidx.camera.core.resolutionselector.ResolutionSelector.Builder setHighResolutionEnabledFlag(int);
550
550
method public androidx.camera.core.resolutionselector.ResolutionSelector.Builder setResolutionFilter(androidx.camera.core.resolutionselector.ResolutionFilter);
551
551
method public androidx.camera.core.resolutionselector.ResolutionSelector.Builder setResolutionStrategy(androidx.camera.core.resolutionselector.ResolutionStrategy);
0 commit comments