summaryrefslogtreecommitdiff
path: root/core/java/android/util/Range.java
Commit message (Collapse)AuthorAgeFilesLines
* Add @Nullable annotation to the parameter of Object.equals() methods.Roman Kalukiewicz2020-10-151-1/+2
| | | | | | | | | | | | | | | | | | Those annotations could be inferred by some tools (like Kotlin), but the https://checkerframework.org/ doesn't check inherited annotations complaining about all equals() invocations that get nullable argument. The change was generated by running find . -name \*.java | xargs sed -i 's/public boolean equals(Object /public boolean equals(@Nullable Object /' in the frameworks/base directory and by automatically adding and formatting required imports if needed. No manual edits. Bug: 170883422 Test: Annotation change only. Should have not impact. Exempt-From-Owner-Approval: Mechanical change not specific to any component. Change-Id: I5eedb571c9d78862115dfdc5dae1cf2a35343580
* Range.java:Correct sign error in descriptionGopalakrishnan Nallasamy2019-01-031-1/+1
| | | | | | | | | | | | | Current description for android.util.Range says ""All ranges are bounded, and the left side of the range is always {@code >=} * the right side of the range." It should have been "<=" there instead of ">=". So, corrected that in this CL. Bug: 122271254 Test: make offline-sdk-docs Modified description was visible correctly. Change-Id: I1eaa94210b39813b3e72ac2a0834bc0b466a99a5
* Camera2: Remove HIGH_RESOLUTION level and modify FULL requirementsEino-Ville Talvala2015-06-221-1/+1
| | | | | | | | | | | - Reword requirements for FULL level - Remove HIGH_RESOLUTION level - Add StreamConfigurationMap#getHighResolutionOutputSizes - Clean up StreamConfigurationMap implementation - Add 5-argument HashCodeHelper Bug: 20945581 Change-Id: I75ad4b23e902192c96ed501e10c7d55fc0ad72a6
* add utility methods to util.Range, Rational and SizeLajos Molnar2014-07-121-4/+200
| | | | | | Bug: 12065651 Bug: 11990470 Change-Id: I0d0929ea0289ac5de5c17cca90f25abc4e9dfd7a
* util: Make Rational a Number/Comparable; add Range#inRangeIgor Murashkin2014-06-061-6/+24
| | | | | | | | * Also changes Rational to reduce the numerator/denominator by its greatest common divisor at construction time (e.g. (2/4 -> 1/2)). Bug: 15432042 Change-Id: Ib827abccf44a040667e5931cf9442afc86b57e2d
* camera2: Update native<->managed camera metadata marshalersIgor Murashkin2014-05-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * Improve existing marshalers: - each managed/native type combination can be queried marshal support - marshalers can recursively call other marshalers for nested types - support marshaling/unmarshaling generic classes by using super type tokens * Add new marshalers for: - ColorSpaceTransform - MeteringRectangle - Parcelable - Range<T> - ReprocessFormatsMap - RggbChannelVector - SizeF - StreamConfiguration - StreamConfigurationDuration Batteries included; so are unit tests. Bug: 14628001 Change-Id: I38d3e646ccfb3953898cd6f750c33e4097328482
* camera2: Add re-usable data types for camera metadata key/valuesIgor Murashkin2014-05-021-0/+144
Adds new types to public API: * ColorSpaceTransform * Range<T> * SizeF (android.util) * MeteringRectangle Minor changes to: * Size (docs and move to android.util) * Preconditions (@hide) Adds helper class: * HashCodeHelpers Change-Id: Ied6749a19234f3af9da838f365f8d68d90251aaf