OSDN Git Service

[Magnifier-46] Add builder for magnifier objects
authorMihai Popa <popam@google.com>
Wed, 18 Jul 2018 13:52:26 +0000 (14:52 +0100)
committerMihai Popa <popam@google.com>
Wed, 29 Aug 2018 10:16:14 +0000 (11:16 +0100)
commit469aba83bb02404d6ed0577b1e56a563d7074ff9
tree5339203a628dd0f15b48e1536eccdf1d1887aade
parent7433a070461237585d8547b66d6064171aeda9e5
[Magnifier-46] Add builder for magnifier objects

The CL adds a builder class that enables creating Magnifier objects with
custom properties. The defaults of the builder remain the predefined
values of the magnifier in P.

Bug: 72211470
Test: manual testing
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I066082fb17cfb8c483c49b7011abfa9dca9de77a
api/current.txt
core/java/android/widget/Magnifier.java
core/java/com/android/internal/util/Preconditions.java
core/res/res/values/attrs.xml
core/res/res/values/dimens.xml
core/res/res/values/styles.xml
core/res/res/values/symbols.xml
core/res/res/values/themes.xml