• Home
  • History
  • Annotate
  • only in /frameworks/opt/setupwizard/library/test/
History log of /frameworks/opt/setupwizard/library/test/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cd6650c958f74e30335c34218198e9aa067e3965 09-Jun-2018 Maurice Lam <yukl@google.com> Fix Partner.getText

Test: ./gradlew test
Bug: 109781942
Change-Id: I06c3be06def30803e5dda3069686f0ff510b804d
(cherry picked from commit 466c50ab5c4943c0c9a139d42a1b4d9af7d65a02)
obotest/src/com/android/setupwizardlib/util/PartnerTest.java
e58194099d9133ce7b2e19fe7c717679b62fddb2 06-Apr-2018 Maurice Lam <yukl@google.com> Revert "Revert "Add workaround for touch event propagation""

This reverts commit b268a8c365a4c9dcb7b1382a7ce3ec5607b22de0.

Rolling forward with suppress for the lint errors

Test: ./gradlew lint
Bug: 77338508
Change-Id: I9582bfbb4c73ae60a15e8285facf20da458b9690
obotest/src/com/android/setupwizardlib/view/RichTextViewTest.java
a6d66b41b08b2d612da1a3e27c651053ceb7a871 06-Apr-2018 Maurice Lam <yukl@google.com> Revert "Add workaround for touch event propagation"

This reverts commit e4475dcf52c1235a7d9756b454fa81fb4b54726c.

Reason for revert: Breaks ub-setupwizard-master build (lint error)

Bug: 77338508
Test: ./gradlew lint
Change-Id: I251ff930b7d8391db3ea55597fa42f491cdff963
obotest/src/com/android/setupwizardlib/view/RichTextViewTest.java
e4475dcf52c1235a7d9756b454fa81fb4b54726c 05-Apr-2018 Maurice Lam <yukl@google.com> Add workaround for touch event propagation

In TextView with links, onTouchEvent always return true regardless of
return value from the movement method because View#onTouchEvent is
hard coded to return true whenever the view is clickable.

In RichTextView, add a layer of abstraction to allow the movement
method to override the return value. TouchableLinkMovementMethod is
an implementation added, which will consume the event only when a
link is being touched.

Test: ./gradlew test
Bug: 77338508
Change-Id: I761579d6f153a41beb979acd88a4090eb3998cf3
obotest/src/com/android/setupwizardlib/view/RichTextViewTest.java
618a4449bb3e9be43586040ea2fb9a6371365ae7 06-Mar-2018 Maurice Lam <yukl@google.com> Add touch feedback to links

- Clear selection after LinkSpan is clicked so that the highlight
effect will be cleared when the tap completes
- Set focusableInTouchMode to true and revealOnFocusHint to false
in RichTextView for N MR1 or above to allow the highlight effect
to be visible in touch mode.

Test: ./gradlew test connectedAndroidTest
Bug: 73350031
Change-Id: Ibb6f67102775802cdfebaa1529c09d936b4096cb
(cherry picked from commit bc1c7a159c14f8b8f532fec60681d34771cd7909)
nstrumentation/src/com/android/setupwizardlib/test/RichTextViewTest.java
obotest/src/com/android/setupwizardlib/span/LinkSpanTest.java
obotest/src/com/android/setupwizardlib/view/RichTextViewTest.java
3514ad526af3d95f61383ec374ea4c384ba9b540 17-Mar-2018 Maurice Lam <yukl@google.com> Add methods to set GLIF icon content description

Test: ./gradlew connectedAndroidTest
Bug: 74435529
Change-Id: I22e3abe8dce0663a7d1e7ee3050d327abeec4ad2
(cherry picked from commit c38af2fb55868523e5ddcceb6331947501f43adf)
nstrumentation/src/com/android/setupwizardlib/template/IconMixinTest.java
15d9037e89d502c7deb9cbf81c0407d433a5706b 09-Mar-2018 Maurice Lam <yukl@google.com> Add touch feedback to tertiary buttons

Test: Manual, updated `./gradlew test`
Bug: 29574531
Change-Id: I1db6beb3bd4d6c4ab34e7dfeab79ed8976756332
(cherry picked from commit fc01f70b288135f0c4654a4c16a023f6fd52ebd0)
obotest/src/com/android/setupwizardlib/util/GlifStyleTest.java
bf0415d6a8f5f4c11da6c71b49753c26629e47f7 02-Mar-2018 Maurice Lam <yukl@google.com> Add null check for MediaPlayer

In IllustrationVideoView, in case creation of media player failed,
check for null and throw WTF instead of crashing with null pointer.

Test: ./gradlew test
Bug: 74090736
Change-Id: Id63027067cc687516f585503b5218f4467845039
obotest/src/com/android/setupwizardlib/shadow/ShadowLog.java
obotest/src/com/android/setupwizardlib/view/IllustrationVideoViewTest.java
af1e11f0746eb35cf2d624cef59876aba86676d0 14-Feb-2018 Maurice Lam <yukl@google.com> Merge "Add setIcon(int) to IconMixin"
97d3a11d5e6a2bf9ec3f50de7b77ef94333110d3 14-Feb-2018 Maurice Lam <yukl@google.com> Add setIcon(int) to IconMixin

This allows vector drawable compat to be used on pre-L.

Test: ./gradlew connectedAndroidTest
Change-Id: I405f28eae11e68532165f89b1c1a226972ee06a3
nstrumentation/src/com/android/setupwizardlib/template/IconMixinTest.java
9f0065b61120ff3814a28395b57f79d499079bb4 14-Feb-2018 Ajay Nadathur <ajayns@google.com> Add method to retrieve color from partner apk

bug: 73077257
Test: Manually tested and verified
Change-Id: Ia90998780913966d3953011591d9f46e088ef963
obotest/src/com/android/setupwizardlib/util/PartnerTest.java
c9c5c4431a920e8a22d96bf3721e2c5377c9b57b 02-Feb-2018 Maurice Lam <yukl@google.com> Set the back button sysUiVisibility as well

Changes to window sysUiVisibility is not picked up after the window
is laid out, so add a call to set the decor view's sysUiVisibility as
well.

Test: ./gradlew connectedAndroidTest
Bug: 72840994
Change-Id: I6f0744599f46adf1840738f226b4394e5b7ed1df
nstrumentation/src/com/android/setupwizardlib/test/SystemBarHelperTest.java
f2c8c89ad6048dd304f36928f1cddacbe7dbd920 30-Jan-2018 Maurice Lam <yukl@google.com> Add timeout to consecutive tap gesture

Test: ./gradlew test
Bug: 72202690
Change-Id: Ia227cc38cfb54e4f33d34adfffdc6c38543060d5
obotest/src/com/android/setupwizardlib/gesture/ConsecutiveTapsGestureDetectorTest.java
78bc2e0c900935ed00e111a0c4b93b50d883e2b9 12-Jan-2018 Maurice Lam <yukl@google.com> Implement GLIF v3 button style

Buttons are now sentence case and uses Google sans font if available.

Test: ./gradlew test
Bug: 71759812
Change-Id: Ibb42b58306163f387837600ca52e73065c2b0d9d
obotest/src/com/android/setupwizardlib/util/GlifV3StyleTest.java
cd62078b7cc0eb272104769e48156e66463a95a2 09-Jan-2018 Maurice Lam <yukl@google.com> Use light nav bar for GLIF V3 on API v27+

Test: ./gradlew test
Bug: 70896202
Change-Id: I742e807bca40b0a77158293f0d0cce52bc0cad3f
obotest/src/com/android/setupwizardlib/GlifLayoutTest.java
obotest/src/com/android/setupwizardlib/util/GlifV3StyleTest.java
69e544a563c8590e63367d84a1590752587d59cc 12-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "More app bar support in GlifLayout"
f344307345a421dc89650799c38ad74ced44ee38 11-Jan-2018 Maurice Lam <yukl@google.com> Add error-prone to gradle build

So that error prone failures can be caught before dropping to
Google3.

Test: make
Change-Id: I0ff6f7a4c124433d907703fd1204395c34bab6bf
nstrumentation/src/com/android/setupwizardlib/test/GlifPatternDrawableTest.java
3a3d478a4b8805992f9558fa8128261970d2ee99 03-Jan-2018 Maurice Lam <yukl@google.com> More app bar support in GlifLayout

- Add app:suwStickyHeader attribute to GlifLayout to specify a
custom app bar layout, which can be a Toolbar.
- Create indirection attribute ?attr/suwGlifIconStyle to allow apps
to override the GLIF icon style.

Test: ./gradlew test
Bug: 68826871
Change-Id: I6384db970582c56431b6085bb172f6ca28099f9d
obotest/src/com/android/setupwizardlib/GlifLayoutTest.java
9cd96c1c7b8ce846e1ba515ba98eb5548066b30b 22-Dec-2017 Maurice Lam <yukl@google.com> Upgrade to new version of support-test libs

The new libraries fixes bugs with UiThreadTest, and also is also
able to run Parameterized tests on continuous infrastructure.

Test: Run forrest command (go/paste/5209188573642752)
Bug: 70986599
Bug: 70986575
Change-Id: Idbb4513cfb7cb518d59c5c2c15c30230618c384d
nstrumentation/AndroidManifest.xml
37ba83338aa29464357f4a03df8c7b4038d932e7 14-Dec-2017 Maurice Lam <yukl@google.com> Merge "Revert "Revert "Changes needed to upgrade to new gradle version"""
66815fe66392bcbb12e2fc93bbf326a5c2d8782f 13-Dec-2017 Maurice Lam <yukl@google.com> Revert "Revert "Changes needed to upgrade to new gradle version""

This reverts commit 46216d0e61318e7af168e9e903ef8d943bb49b2e.

Reason for revert: Roll forward
- Added ag/3351790 to the topic

Change-Id: I64990e558d3f77165ab3fe89006a02225b712257
obotest/src/com/android/setupwizardlib/GlifLayoutTest.java
obotest/src/com/android/setupwizardlib/items/ButtonItemTest.java
obotest/src/com/android/setupwizardlib/items/ItemGroupTest.java
obotest/src/com/android/setupwizardlib/robolectric/PatchedGradleManifestFactory.java
obotest/src/com/android/setupwizardlib/robolectric/SuwLibRobolectricTestRunner.java
obotest/src/com/android/setupwizardlib/span/LinkSpanTest.java
obotest/src/com/android/setupwizardlib/template/ListViewScrollHandlingDelegateTest.java
obotest/src/com/android/setupwizardlib/template/RequireScrollMixinTest.java
obotest/src/com/android/setupwizardlib/template/ScrollViewScrollHandlingDelegateTest.java
obotest/src/com/android/setupwizardlib/util/GlifDimensionTest.java
obotest/src/com/android/setupwizardlib/util/GlifStyleTest.java
obotest/src/com/android/setupwizardlib/util/PartnerTest.java
obotest/src/com/android/setupwizardlib/util/WizardManagerHelperTest.java
obotest/src/com/android/setupwizardlib/view/FillContentLayoutTest.java
obotest/src/com/android/setupwizardlib/view/IllustrationVideoViewTest.java
8f8401475a27d1a6a54ec8fbc12fea6f53a9bac7 13-Dec-2017 Colin Cross <ccross@android.com> Merge "Revert "Changes needed to upgrade to new gradle version""
46216d0e61318e7af168e9e903ef8d943bb49b2e 13-Dec-2017 Colin Cross <ccross@android.com> Revert "Changes needed to upgrade to new gradle version"

This reverts commit ba1332d1b4dd525a2ef313246482708cb2016052.

Reason for revert: Broke taimen builds in master

Change-Id: Iffffadbacae8c6c69907dcecc447f958cf6ce909
obotest/src/com/android/setupwizardlib/GlifLayoutTest.java
obotest/src/com/android/setupwizardlib/items/ButtonItemTest.java
obotest/src/com/android/setupwizardlib/items/ItemGroupTest.java
obotest/src/com/android/setupwizardlib/robolectric/PatchedGradleManifestFactory.java
obotest/src/com/android/setupwizardlib/robolectric/SuwLibRobolectricTestRunner.java
obotest/src/com/android/setupwizardlib/span/LinkSpanTest.java
obotest/src/com/android/setupwizardlib/template/ListViewScrollHandlingDelegateTest.java
obotest/src/com/android/setupwizardlib/template/RequireScrollMixinTest.java
obotest/src/com/android/setupwizardlib/template/ScrollViewScrollHandlingDelegateTest.java
obotest/src/com/android/setupwizardlib/util/GlifDimensionTest.java
obotest/src/com/android/setupwizardlib/util/GlifStyleTest.java
obotest/src/com/android/setupwizardlib/util/PartnerTest.java
obotest/src/com/android/setupwizardlib/util/WizardManagerHelperTest.java
obotest/src/com/android/setupwizardlib/view/FillContentLayoutTest.java
obotest/src/com/android/setupwizardlib/view/IllustrationVideoViewTest.java
f01f59b6a425b411b5d50c41c85da4842f443e1f 13-Dec-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Changes needed to upgrade to new gradle version"
ceea5ff728985c6a43c7c6de61ed2b7f530db483 05-Dec-2017 Maurice Lam <yukl@google.com> Implement new XL Progress bar

For screens without much content, the new style is to use an extra
large progress bar (same size as illustration).

Bug: 63074068
Test: ./gradlew test
Change-Id: If139e8eeb555cc684ce43a91524ad2da00b7dc93
obotest/src/com/android/setupwizardlib/util/GlifStyleTest.java
ba1332d1b4dd525a2ef313246482708cb2016052 06-Dec-2017 Maurice Lam <yukl@google.com> Changes needed to upgrade to new gradle version

- Add ignore for various lint errors that is introduced in the lint
update
- Remove GLIF Pixel themes as they are unused and causing lint errors
- Add flavor dimension "compat" as it is now required
- Replace *Compile with *Implementation in the gradle files, as
needed by the newer Gradle version
- Use build tools 27.0.0 to avoid the Gradle warning
- Use new Robolectric configuration mechanism and removed our old
hack, per http://robolectric.org/getting-started/

Reference: https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html

Test: Existing tests pass
Bug: 70287447
Change-Id: I505476ae3695cd06349766c5e6280299f779f272
obotest/src/com/android/setupwizardlib/GlifLayoutTest.java
obotest/src/com/android/setupwizardlib/items/ButtonItemTest.java
obotest/src/com/android/setupwizardlib/items/ItemGroupTest.java
obotest/src/com/android/setupwizardlib/robolectric/PatchedGradleManifestFactory.java
obotest/src/com/android/setupwizardlib/robolectric/SuwLibRobolectricTestRunner.java
obotest/src/com/android/setupwizardlib/span/LinkSpanTest.java
obotest/src/com/android/setupwizardlib/template/ListViewScrollHandlingDelegateTest.java
obotest/src/com/android/setupwizardlib/template/RequireScrollMixinTest.java
obotest/src/com/android/setupwizardlib/template/ScrollViewScrollHandlingDelegateTest.java
obotest/src/com/android/setupwizardlib/util/GlifDimensionTest.java
obotest/src/com/android/setupwizardlib/util/GlifStyleTest.java
obotest/src/com/android/setupwizardlib/util/PartnerTest.java
obotest/src/com/android/setupwizardlib/util/WizardManagerHelperTest.java
obotest/src/com/android/setupwizardlib/view/FillContentLayoutTest.java
obotest/src/com/android/setupwizardlib/view/IllustrationVideoViewTest.java
8b52391bba333441da82aed544bd58fae9586f15 01-Dec-2017 Maurice Lam <yukl@google.com> Add GLIF v3 theme and make buttons Google Blue 600

Test: ./gradlew test
Bug: 69930196
Change-Id: Iba6be8daad2f27925647e43a6a1c5e19c03fb7bb
obotest/src/com/android/setupwizardlib/util/WizardManagerHelperTest.java
e9637dfe4be78747a96fc5a9fd8f44edf7bbeb65 07-Nov-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Allow GlifLayout to not request fullscreen"
00e551ce2deaeb4414fc5a387d8ea8de6a19876c 03-Nov-2017 Maurice Lam <yukl@google.com> Allow GlifLayout to not request fullscreen

For usage with app bars or inside another layout, GlifLayout should
not request fullscreen. Add a flag to allow disabling that.

Test: ./gradlew test
Bug: 68826871
Change-Id: Ie6a7f91628af5b861e8ba91e62a3f1c9c390aebf
obotest/src/com/android/setupwizardlib/GlifLayoutTest.java
58195c5316855122593366bd867ed51a91bd5c11 03-Nov-2017 Maurice Lam <yukl@google.com> Hide icon view if icon is null

To remove the extra margin when the icon is not used.

Test: ./gradlew connectedAndroidTest
Bug: 68826871
Change-Id: Ic23307a28b2829fdbe029c61f912f04bab90ca13
nstrumentation/src/com/android/setupwizardlib/template/IconMixinTest.java
88d7f0d37007e13601b6ead3ca039ece20ef94d7 31-Oct-2017 Ajay Nadathur <ajayns@google.com> Intent extra PRE_DEFERRED_SETUP should be copied

Test: Robolectric tests updated, manually tested and verified extra
copied
Change-Id: I282ab5e0121fb41be5f082eec77019d3e6d3a369
obotest/src/com/android/setupwizardlib/util/WizardManagerHelperTest.java
beea4d67b53a2ee83eb85df452fdac5add971754 17-Oct-2017 Ajay Nadathur <ajayns@google.com> Add "isPreDeferredSetupWizard" to WizardManagerHelper

bug: 67782334
Test: Manually tested
Change-Id: Ic75eac6fd743a526e2cf61a12eecf66da7fa02b1
obotest/src/com/android/setupwizardlib/util/WizardManagerHelperTest.java
96b54f3cd7c66a21ae39390d155b310a0e575eb5 14-Sep-2017 Maurice Lam <yukl@google.com> Update to Robolectric 3.4.2

Test: ./gradlew test
Bug: 65652792
Change-Id: I8e0093fd956a885c8f1404e2a17b5f4aaec87dfc
obotest/src/com/android/setupwizardlib/util/PartnerTest.java
obotest/src/com/android/setupwizardlib/view/IllustrationVideoViewTest.java
c072bc26cd2709a2cfcdeb36e3c45c35fdaaf01b 04-Aug-2017 Maurice Lam <yukl@google.com> Set status bar color to transparent in "platform"

So that the status bar background drawn by GlifLayout is visible.

Test: ./gradlew test
Bug: 64126435
Change-Id: If089091a08ab80cddc2514e1e929a771f3371373
obotest/src/com/android/setupwizardlib/util/GlifStyleTest.java
a23e50896f6ddb40f14551d7fc1af129ce501f3f 02-Aug-2017 Maurice Lam <yukl@google.com> Allow keyboard to focus on switch item

Test: ./gradlew connectedAndroidTest test
Bug: 63115991
Change-Id: If03b3e469fd740631b5eabb6031f11fd2165bdb3
nstrumentation/src/com/android/setupwizardlib/test/SystemBarHelperTest.java
9395f90b26e072b2748db315aaffef27c257a82d 13-May-2017 Maurice Lam <yukl@google.com> Add IllustrationVideoView to setup wizard library

- Upstreamed setup wizard's IllustrationVideoView to SuwLib
- Modified the view to automatically listen to window focus changes
to play and pause the video
- The view will now release the MediaPlayer as well in
onSurfaceTextureDestroyed
- Added checkstyle_suppression XML so it will ignore the
"__constructor__" magic method name from the style check.

Bug: 36584499
Test: ./gradlew connectedAndroidTest test
Change-Id: Id045467d5d544a5f54464a0c938d3d56e758e455
obotest/src/com/android/setupwizardlib/view/IllustrationVideoViewTest.java
2da78450d5e9723ca93fa39bfdc3f8dd27b41e89 12-May-2017 Maurice Lam <yukl@google.com> Add layout to size illustrations

- Add FillContentLayout, which is a (frame)layout which, when set
to fill the remaining space of its parent, will make sure its
children are sized between minWidth/minHeight and
maxWidth/maxHeight.
- Renamed styleable SuwIntrinsicSizeFrameLayout to be consistent with
the name of the view that uses it.

Test: ./gradlew connectedAndroidTest test
Bug: 38210310
Change-Id: I5b2aa6cfe8b4a05843de25d39cae776609f3d161
obotest/src/com/android/setupwizardlib/view/FillContentLayoutTest.java
41b878f67035ddb859785b34ddd921962f8c1131 09-May-2017 Maurice Lam <yukl@google.com> Add footer stubs to blank template am: af3208e2c3
am: eaea02f277

Change-Id: Idb8d7939dd0af381296ece6329f81ed4142d08e2
af3208e2c321905c04aea593a6ed3064908b37ef 08-May-2017 Maurice Lam <yukl@google.com> Add footer stubs to blank template

Test: ./gradlew test
Bug: 38043070
Change-Id: I91aae8667f1eef37f8c3cccb879871afefb90823
obotest/src/com/android/setupwizardlib/GlifLayoutTest.java
c8acb8d45326291ba39f5d75fed18dd412f4fb5f 02-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Set GLIF v1 background color to true white/black"
c57872c2603e788b3802d340f55079ceffe3e25d 01-May-2017 Maurice Lam <yukl@google.com> Set GLIF v1 background color to true white/black

To make sure the same video asset can be used for both GLIF v1 and
v2, change the background of v1 to be #ffffff and #000000 to match
GLIF v2.

Bug: 37686500
Test: Manual. Existing tests updated
Change-Id: I70c60f8a9dfade6dbac376f01f26023bac1c7aee
nstrumentation/src/com/android/setupwizardlib/test/GlifLayoutTest.java
364d9cd8b8274709e46414b1d1bf6d91ec97160c 28-Apr-2017 Ido Ofir <iofir@google.com> Fix an issue with deferred setup wizard flag not being copied to new
intents. Also adds a new helper function to check said flag.

Test: added robolectric tests

Change-Id: I261dd01b81700ef27f7ae07580d53ef40531a596
obotest/src/com/android/setupwizardlib/util/WizardManagerHelperTest.java
6011b35deae30839cd454e0ec5866487e90860f5 26-Apr-2017 Maurice Lam <yukl@google.com> Allow setting DividerInsetEnd

- Added XML attribute suwDividerInsetEnd, and replaced
suwDividerInset with suwDividerInsetStart.
- Modified the themes so that the divider insets are set
automatically. If the activity uses GLIF (v1) or material, and the
list does not have icons, it should set
app:suwDividerInsetStart="?attr/suwDividerInsetStartNoIcon"
in the Glif[Recycler/List]Layout

Test: ./gradlew connectedAndroidTest test
Bug: 37677772
Change-Id: Ia4cb9954dd7e3c59cbc72db8937989557689061b
nstrumentation/src/com/android/setupwizardlib/template/ListMixinTest.java
nstrumentation/src/com/android/setupwizardlib/test/GlifListLayoutTest.java
nstrumentation/src/com/android/setupwizardlib/test/SetupWizardListLayoutTest.java
51f4609c813c2336bd12eaf7d6a719fd7f2fc5f2 19-Apr-2017 Maurice Lam <yukl@google.com> Allow set LinkSpan click listener on RichTextView

In addition to allowing setting a LinkSpan click listener in the
context, also allow setting it on RichTextView itself.

Test: ./gradlew connectedAndroidTest
Change-Id: I6b300068db0e68d351d635897220535a5aa92c93
nstrumentation/src/com/android/setupwizardlib/test/RichTextViewTest.java
c8fc4211a744cb947c732d959ef34bf10d48798c 18-Apr-2017 Maurice Lam <yukl@google.com> Fix edge case for ItemGroup notify propagation am: 65128dc621
am: 706457cf5b

Change-Id: Ib8399247b07001125a9537338e968cb6351bb72f
65128dc6219435ec82477235e117efdf94c75101 17-Apr-2017 Maurice Lam <yukl@google.com> Fix edge case for ItemGroup notify propagation

When removing the last item in a nested ItemGroup, make sure
getChildPosition returns the position of where the item would have
been so that the removal notification can be propagated properly.

Test: ./gradlew connectedAndroidTest test
Bug: 37361727
Change-Id: I50f5ceb50c2c7432056427a9d11a181dc384f4e7
obotest/src/com/android/setupwizardlib/items/ItemGroupTest.java
e8e31761bf24c666e61c01aead1d089102e75918 14-Apr-2017 Maurice Lam <yukl@google.com> LinkSpan find listeners in wrapped contexts

Change LinkSpan to also find OnClickListeners in wrapped contexts,
so even if the TextView is inflated with a ContextWrapper, it will
still propagate the click correctly.

Test: ./gradlew test
Change-Id: Iad000023545d2111b6e844da75f81574e9fe942f
obotest/src/com/android/setupwizardlib/span/LinkSpanTest.java
6fa591591a061850317676527d96b2dd7f65022a 11-Apr-2017 Maurice Lam <yukl@google.com> Match direct boot unaware receivers for Partner

In Partner.java, since we don't actually execute code in the package,
it is safe to match direct boot unaware receivers as well.

Test: ./gradlew connectedAndroidTest test
Bug: 36984206
Change-Id: I5ad017458db7d4af2d5a753a3f7663721291402e
(cherry picked from commit a3f1dc094f749e873f0c182691dca2d9e928736e)
obotest/src/com/android/setupwizardlib/util/PartnerTest.java
a3f1dc094f749e873f0c182691dca2d9e928736e 11-Apr-2017 Maurice Lam <yukl@google.com> Match direct boot unaware receivers for Partner

In Partner.java, since we don't actually execute code in the package,
it is safe to match direct boot unaware receivers as well.

Test: ./gradlew connectedAndroidTest test
Bug: 36984206
Change-Id: I5ad017458db7d4af2d5a753a3f7663721291402e
obotest/src/com/android/setupwizardlib/util/PartnerTest.java
24885729e3571ebca96c3fb8041f882d79e0fc0c 06-Apr-2017 Maurice Lam <yukl@google.com> Fix description item with material theme

SuwItemTitle.Description style can be used with material theme and
therefore should not reference GLIF specific attributes. Created new
attribute suwItemDescriptionTitleStyle so that GLIF item can use a
GLIF specific style to adjust description text alignment, while
material theme will use the normal SuwTitle style.

Test: ./gradlew connectedAndroidTest test
Bug: 37033526
Change-Id: I0d162bf6984f6a2fbbf04143a256fb70862527b0
nstrumentation/src/com/android/setupwizardlib/test/ItemLayoutTest.java
e46be9bcf0dd195989b10768ceb57dd2c70095a9 03-Apr-2017 Maurice Lam <yukl@google.com> Rename GLIF Pixel to GLIF v2

Since we are giving the option to OEMs to use the center alignment
theme, rename it to something not Pixel specific.

Test: Tests updated. ./gradlew connectedAndroidTest test
Bug: 36857917
Change-Id: I09b0ebb743ccaa0ad6b215a12576ce1109a3fa31
nstrumentation/src/com/android/setupwizardlib/test/GlifLayoutTest.java
obotest/src/com/android/setupwizardlib/util/WizardManagerHelperTest.java
7204767830ba57c641422aeb98a74be719a51e08 28-Mar-2017 Maurice Lam <yukl@google.com> Notify the correct position when removing the last item

Change ItemGroup#getChildPosition to return the position even for
empty childrem, so that when removing the last item in a nested
ItemGroup, the notification propagation will still be correct.

Test: ./gradlew connectedAndroidTest test
Bug: 36634677
Change-Id: I612e0c624dabee1bfaa6133fe976527e85523634
(cherry picked from commit 4dd5de226fefd5c2fdf040543157357f53ea932e)
obotest/src/com/android/setupwizardlib/items/ItemGroupTest.java
0fa3a152a7486daf0b989d190aa44bb8572bbe1f 29-Mar-2017 Maurice Lam <yukl@google.com> Merge "Notify the correct position when removing the last item"
4dd5de226fefd5c2fdf040543157357f53ea932e 28-Mar-2017 Maurice Lam <yukl@google.com> Notify the correct position when removing the last item

Change ItemGroup#getChildPosition to return the position even for
empty childrem, so that when removing the last item in a nested
ItemGroup, the notification propagation will still be correct.

Test: ./gradlew connectedAndroidTest test
Bug: 36634677
Change-Id: I612e0c624dabee1bfaa6133fe976527e85523634
obotest/src/com/android/setupwizardlib/items/ItemGroupTest.java
339cbc0f38d81adda4d2f9bf44a5514e2f027031 27-Mar-2017 Maurice Lam <yukl@google.com> Don't set null tint color on Lollipop

There is a bug in Lollipop framework where setting a null progress
tint will cause NPE when drawn.

Test: ./gradlew connectedAndroidTest
Change-Id: I0ba0aa8847f6ab2b0608f55c96814d383de67277
nstrumentation/src/com/android/setupwizardlib/template/ProgressBarMixinTest.java
17e8d19de7fe82c0bc149265d787cfb40f227e81 25-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add ability to require scroll to GlifLayout"
0ceb8d53e39ebb5bc103863787afb39ec5c41ad8 18-Mar-2017 Maurice Lam <yukl@google.com> Add ability to require scroll to GlifLayout

Generalize RequireScrollHelper and turn it into a mixin to allow
GlifLayout to use require scrolling.
This is only applicable to GLIF with sticky footer, since inline
content button requires scrolling by definition.

Also added Robolectric test support for full-support, by moving
full-support/test's contents into full-support/test/instrumentation
and put the new Robolectric tests in full-support/test/robotest.

Bug: 36387078
Test: ./gradlew connectedAndroidTest test
Change-Id: Ib07ec0ddf07affa30c46e786f4e9be7853a243c4
nstrumentation/src/com/android/setupwizardlib/test/ListViewRequireScrollHelperTest.java
nstrumentation/src/com/android/setupwizardlib/test/RequireScrollHelperTest.java
obotest/src/com/android/setupwizardlib/template/ListViewScrollHandlingDelegateTest.java
obotest/src/com/android/setupwizardlib/template/RequireScrollMixinTest.java
obotest/src/com/android/setupwizardlib/template/ScrollViewScrollHandlingDelegateTest.java
e749c2c1f2f664d2798ea9c482375f33f5371bf0 24-Mar-2017 Maurice Lam <yukl@google.com> Add getThemeRes to WizardManagerHelper

Add helper method to get the base theme defined by setup wizard. This
is intended for use by clients who doesn't require extra theme
attributes in their activities (i.e. use @style/SuwThemeGlif directly
rather than extending it).

Test: ./gradlew test
Change-Id: I22872d918c346bd7adffe4be909d73fae23f44dc
obotest/src/com/android/setupwizardlib/util/WizardManagerHelperTest.java
ab45bdf67a01ba13efb45334cc43f9632de6f034 26-Feb-2016 Maurice Lam <yukl@google.com> Support RecyclerView notifications in items

Propagate the recycler view notifications
notifyItem{Changed/Removed/Inserted} in ItemHierarchy so that
recycler view animations can be used with ItemHierarchy more
easily.

Test: ./gradlew connectedAndroidTest test
Bug: 36388000
Change-Id: I583952044995b174baec2610422611f6d40a9a11
nstrumentation/src/com/android/setupwizardlib/test/ItemAdapterTest.java
nstrumentation/src/com/android/setupwizardlib/test/ItemGroupTest.java
nstrumentation/src/com/android/setupwizardlib/test/ItemTest.java
obotest/src/com/android/setupwizardlib/items/ItemGroupTest.java
f36d2262be89320b743610f90db70611d21b459a 20-Mar-2017 Maurice Lam <yukl@google.com> Merge "Add scroll indicator to bottom in GLIF theme"
53f9de0cc4b08886f1636cde9db67728ae9464f2 16-Mar-2017 Maurice Lam <yukl@google.com> Propagate EXTRA_THEME in WizardManagerHelper

The theme should be copied as a wizard manager extra.

Test: ./gradlew connectedAndroidTest test
Change-Id: I5750146fadc3f3d5365418f0076086e631a3598b
obotest/src/com/android/setupwizardlib/util/WizardManagerHelperTest.java
921c65f4b9dd01d331e8a80e3d165966c915d4fe 18-Mar-2017 Maurice Lam <yukl@google.com> Add scroll indicator to bottom in GLIF theme

With sticky footer in GLIF theme, the divider should be shown between
the footer and the content if there is more stuff below the fold.

Test: ./gradlew connectedAndroidTest
Change-Id: I05b2241fa58c74f5c9bea3aebd54a1dca38ea390
nstrumentation/src/com/android/setupwizardlib/test/GlifLayoutTest.java
48c121912f865be865e564a4d0a899988a100d37 07-Mar-2017 Maurice Lam <yukl@google.com> Add suwFooter attribute to GlifLayout

Add the suwFooter attribute so custom footer layouts can be easily
added, in conjunction with <aapt:attr> tag.

Test: ./gradlew connectedAndroidTest test
Bug: 36009807
Change-Id: Id7d937486451e34bdc30775a0f5f3dfcde47598f
obotest/src/com/android/setupwizardlib/GlifLayoutTest.java
eb7c2d1e90dec37cf5a9293e4e3f0dd857ca1ef9 04-Mar-2017 Maurice Lam <yukl@google.com> Merge "Add scroll indicators to GLIF Pixel theme"
d86822922f64ae9551cb40365996d1ecc31617b7 03-Mar-2017 Maurice Lam <yukl@google.com> Merge "Make status bar white on GLIF pixel theme"
58388e79699ef3d201d1c6707a6ee2f7ebd80f6e 03-Mar-2017 Maurice Lam <yukl@google.com> Merge "Add SuwGlifButton.Tertiary style"
039a55c144bc968ca9e242640ea107df10ac2867 03-Mar-2017 Maurice Lam <yukl@google.com> Add scroll indicators to GLIF Pixel theme

Add the scroll indicators to clearly indicate the divide between
status bar, content area, and footer, even though they all have the
same background color.

The scroll indicator will only be shown if there are content beyond
the fold.

Test: ./gradlew connectedAndroidTest test
Bug: 35446596
Change-Id: I5419e4f443a2414f8c983241b8fc61cadb48ef68
nstrumentation/src/com/android/setupwizardlib/test/GlifLayoutTest.java
39056e5dc4b068745c2d9be69e5cd0c008bdc117 03-Mar-2017 Maurice Lam <yukl@google.com> Make status bar white on GLIF pixel theme

Add attributes suwBackgroundBaseColor and suwBackgroundPatterned to
GlifLayout, which allows the GLIF Pixel theme to display a solid
off-white status bar background instead of the pattern in regular
GLIF.

Test: ./gradlew connectedAndroidTest test
Bug: 35446596
Change-Id: Icbf3608882367ce00188fd124df5d2ba0de00864
nstrumentation/src/com/android/setupwizardlib/test/GlifLayoutTest.java
obotest/src/com/android/setupwizardlib/GlifLayoutTest.java
d3ffc713be68823409d5dc6d2d44bb21bde5bfd0 28-Feb-2017 Maurice Lam <yukl@google.com> Add center alignment for 2017 themes

Add "GLIF Pixel" theme that is a drop-in replacement for
SuwThemeGlif, which will center align the header and description
text.

To use GLIF Pixel theme, simply set the activity theme (using
android:theme or Activity#setTheme) to SuwThemeGlifPixel and use the
GLIF layouts normally.

Other theme attributes like status bar background will be done in a
separate CL.

Test: ./gradlew connectedAndroidTest test
Bug: 35446596
Change-Id: I3edee9cf80c1c84018ed08f47f9859e51a3936e6
nstrumentation/src/com/android/setupwizardlib/test/GlifLayoutTest.java
nstrumentation/src/com/android/setupwizardlib/test/WizardManagerHelperTest.java
obotest/src/com/android/setupwizardlib/items/ButtonItemTest.java
obotest/src/com/android/setupwizardlib/util/WizardManagerHelperTest.java
4ed1ae46ef6bb3740b8dae7d307c1fd3d136f7dc 02-Mar-2017 Maurice Lam <yukl@google.com> Add SuwGlifButton.Tertiary style

The style is designed to be used by clients directly in the content
area, as "link buttons", where there is no touch feedback on the
button.

Test: ./gradlew test
Bug: 35447970
Change-Id: I07593bc850cbdad9b82856b86226d63e77f26513
obotest/src/com/android/setupwizardlib/util/GlifStyleTest.java
fca3ee628d9d5c1c1109f3df6e02cdd31c57c000 22-Feb-2017 Maurice Lam <yukl@google.com> Fix GLIF pattern for versions < L

For versions < L, setGlifPatternColor should still change the
background drawable, since they are visible on tablets.

Replaced the v21 specific attrs with attribute references in the
themes, removing the need for a separate version attrs.xml.

Moved GlifLayoutTest that doesn't require test XMLs to Robolectric,
so make SDK version testing easier. Robolectric on gradle doesn't
seem to have a good way to include test XMLs, so tests for XML
inflation are kept as instrumentation tests.

Test: ./gradlew connectedAndroidTest test
Change-Id: I36b3765848e462ee920c563a6fa335a0e67dd471
nstrumentation/src/com/android/setupwizardlib/test/GlifLayoutTest.java
obotest/src/com/android/setupwizardlib/GlifLayoutTest.java
97860ddbfea1075cfd281102b93a3982c2b66537 22-Feb-2017 Maurice Lam <yukl@google.com> Fix ListMixinTest and RecyclerMixinTest for KitKat

A dexmaker issue with KitKat makes it so that accessing package
private methods on a spy will throw IllegalAccessError. Use mock with
delegatesTo instead to workaround the issue.

Test: ./gradlew connectedAndroidTest
Change-Id: I18ad132593a646e6955024caaef0238486b69703
nstrumentation/src/com/android/setupwizardlib/template/ListMixinTest.java
db0a8d653fb37519e10134470201f8e30bdb2c75 21-Feb-2017 Maurice Lam <yukl@google.com> Merge "Implement ButtonFooterMixin"
8721e6e37afdda2d3aba487334f96e270a57ad19 10-Feb-2017 Maurice Lam <yukl@google.com> Implement ButtonFooterMixin

The ButtonFooterMixin allows creating GLIF-compatible sticky footer
with buttons. The mixin assumes that buttons on the start side
(left for LTR) are borderless buttons and buttons on the end side
(right for LTR) are accent colored raised buttons.

Bug: 35448201
Test: ./gradlew connectedAndroidTest test
Change-Id: I26fc1a19290308f8d39466652308366e9677afbd
nstrumentation/src/com/android/setupwizardlib/template/ButtonFooterMixinTest.java
obotest/src/com/android/setupwizardlib/util/GlifDimensionTest.java
9e8d18dc62c8a933a16f83a03ebab080897fd38e 18-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add theme fallback"
e2a8d27c2a43cf0b48b80e5b05f893222c541e04 17-Feb-2017 Maurice Lam <yukl@google.com> Add theme fallback

- Add FallbackThemeWrapper, which behaves like ContextThemeWrapper,
except that the base context's theme attributes takes precedence
over the wrapper context's.
- Use the FallbackThemeWrapper in TemplateLayout (SetupWizardLayout
and GlifLayout), so that inflating them with the wrong theme will
not crash, but rather look wrong.

This allows SuwLib to add required attributes without risking
crashing clients that for some reason doesn't use the right themes.

Test: ./gradlew connectedAndroidTest
Change-Id: I694ad7279ce733659f6aa5d72e2087a09d3f1e22
nstrumentation/res/values/styles.xml
nstrumentation/src/com/android/setupwizardlib/test/GlifLayoutTest.java
nstrumentation/src/com/android/setupwizardlib/test/SetupWizardLayoutTest.java
nstrumentation/src/com/android/setupwizardlib/util/FallbackThemeWrapperTest.java
2831318df83781bb5bada256e35726612d225052 14-Feb-2017 Maurice Lam <yukl@google.com> Fix ButtonItem theme in appcompat

Inflate the button from XML rather than calling the constructor
directly, so that AppCompatActivity can use the injected layout
inflater to tint the button drawables.

- Migrated existing ButtonItemTest to robolectric
- Added new ButtonItemDrawingTest as instrumentation test to test
the drawing behavior. Created DrawingTestHelper and
DrawingTestActivity to help in testing draw behaviors in normal and
AppCompat contexts.

Bug: 35325693
Test: ./gradlew connectedAndroidTest
Change-Id: Ic2215f5510c246a861ab109e3dffee49f9cf9b3c
nstrumentation/AndroidManifest.xml
nstrumentation/src/com/android/setupwizardlib/test/ButtonItemTest.java
nstrumentation/src/com/android/setupwizardlib/test/util/DrawingTestHelper.java
obotest/src/com/android/setupwizardlib/items/ButtonItemTest.java
b2ff57b17efb727c24b096ac7b1d7f8870bf1bde 11-Feb-2017 Maurice Lam <yukl@google.com> Use constants=BuildConfig.class for robolectric

In robolectric tests, use @Config(constants=BuildConfig.class), which
is the "gradle way" to configure Robolectric. Added the hacks that
are needed to make that happen in our setup, like
PatchedGradleManifestFactory and the custom build directory lookup.

Having this change allows Robolectric tests to run against merged
resources, which means different build variants will now resolve
resources correctly. Previously a test would fail in, say, resolving
@style/SuwThemeGlif.

Also migrated GlifDimensionTest to run on Robolectric.

Test: ./gradlew test
Change-Id: Ia7231f95818891a649678a0a6da0220a44031bf7
nstrumentation/src/com/android/setupwizardlib/test/GlifDimensionTest.java
obotest/src/com/android/setupwizardlib/BaseRobolectricTest.java
obotest/src/com/android/setupwizardlib/robolectric/PatchedGradleManifestFactory.java
obotest/src/com/android/setupwizardlib/robolectric/SuwLibRobolectricTestRunner.java
obotest/src/com/android/setupwizardlib/span/LinkSpanTest.java
obotest/src/com/android/setupwizardlib/util/GlifDimensionTest.java
obotest/src/com/android/setupwizardlib/util/PartnerTest.java
d349adb3941c88ae27ec451acd19641ba03205df 26-Jan-2017 Maurice Lam <yukl@google.com> Add ListMixin

Add ListMixin to allow common interface to a TemplateLayout containing
lists.

Test: ./gradlew connectedAndroidTest
Change-Id: I6ebd2c5a83b14db534cf66e5de7fe12584441537
nstrumentation/src/com/android/setupwizardlib/template/ListMixinTest.java
c274e39f369114aa0bc54f695db84d7f598783b1 21-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Migrate PartnerTest to Robolectric"
94b2ec08a88831548dcd811b016f953ca6f64ed5 18-Jan-2017 Maurice Lam <yukl@google.com> Merge "Remove material_blue constants"
5ed761c1df4f5165a14218b64579e14af29d68a6 13-Jan-2017 Maurice Lam <yukl@google.com> Fix ReflectionInflater

Don't append default package when the tag name itself is qualified
(i.e. contains a '.').

Also moved the inflater test cases into test/instrumentation to the
same place as other instrumentation tests. (Other tests were moved
with the introduction of Robolectric tests)

Bug: 34254689
Test: ./gradlew connectedAndroidTest
Change-Id: I2f22613f80b4e3a65a73c4a4f8bd084ad3d4654f
nstrumentation/res/layout/test_mixin_attributes.xml
nstrumentation/res/layout/test_progress_bar_template.xml
nstrumentation/res/xml/reflection_inflater_test.xml
nstrumentation/res/xml/reflection_inflater_test_with_default_package.xml
nstrumentation/res/xml/simple_inflater_test.xml
nstrumentation/src/com/android/setupwizardlib/template/ColoredHeaderMixinTest.java
nstrumentation/src/com/android/setupwizardlib/template/HeaderMixinTest.java
nstrumentation/src/com/android/setupwizardlib/template/IconMixinTest.java
nstrumentation/src/com/android/setupwizardlib/template/NavigationBarMixinTest.java
nstrumentation/src/com/android/setupwizardlib/template/ProgressBarMixinTest.java
nstrumentation/src/com/android/setupwizardlib/template/TemplateLayoutMixinTest.java
nstrumentation/src/com/android/setupwizardlib/test/ReflectionInflaterTest.java
nstrumentation/src/com/android/setupwizardlib/test/SimpleInflaterTest.java
es/layout/test_mixin_attributes.xml
es/layout/test_progress_bar_template.xml
es/xml/reflection_inflater_test.xml
es/xml/simple_inflater_test.xml
rc/com/android/setupwizardlib/template/ColoredHeaderMixinTest.java
rc/com/android/setupwizardlib/template/HeaderMixinTest.java
rc/com/android/setupwizardlib/template/IconMixinTest.java
rc/com/android/setupwizardlib/template/NavigationBarMixinTest.java
rc/com/android/setupwizardlib/template/ProgressBarMixinTest.java
rc/com/android/setupwizardlib/template/TemplateLayoutMixinTest.java
rc/com/android/setupwizardlib/test/ReflectionInflaterTest.java
rc/com/android/setupwizardlib/test/SimpleInflaterTest.java
ae6590148b2af0848e8d8be391b840a4c19109ef 12-Jan-2017 Maurice Lam <yukl@google.com> Remove material_blue constants

Those constants were never released and there are no references to
it on code search.

Test: Existing tests pass (./gradlew connectedAndroidTest)
Change-Id: I231a719414e436dc4204302d6211da8923282fa7
nstrumentation/src/com/android/setupwizardlib/test/WizardManagerHelperTest.java
199cec9d40aef7ac34dd0cd4badae4eb2e7373c5 29-Dec-2016 Maurice Lam <yukl@google.com> Migrate PartnerTest to Robolectric

Since PartnerTest depends on resources, add BaseRobolectricTest class
to configure the manifest (and the SDK version).
In addition, to work around a Robolectric issue, add dependency on
Open GL API.

Test: ./gradlew test
Bug: 32975598
Change-Id: I41a8099197412ce6353c1920fb7b59d83fb7c9d5
nstrumentation/src/com/android/setupwizardlib/test/PartnerTest.java
obotest/src/com/android/setupwizardlib/BaseRobolectricTest.java
obotest/src/com/android/setupwizardlib/span/LinkSpanTest.java
obotest/src/com/android/setupwizardlib/util/PartnerTest.java
c64c94744da6d3d139c24be7dd62cbb3ceae0eb5 06-Jan-2017 Maurice Lam <yukl@google.com> Refactor GenericInflater

Split GenericInflater into SimpleInflater, which wraps the XML parsing
into finding the tag name and an AttributeSet. The subclass is
responsible for creating the corresponding object for the given tag
name and AttributeSet.
ReflectionInflater is a subclass of SimpleInflater which will treat
the tag name as a class, and create the object via reflection using
the 2-argument constructor TagName(Context, AttributeSet).

Test: ./gradlew connectedAndroidTest
Change-Id: I81408f099f132b7bedb27a9b5425e3c18988aa52
es/xml/reflection_inflater_test.xml
es/xml/simple_inflater_test.xml
rc/com/android/setupwizardlib/test/ReflectionInflaterTest.java
rc/com/android/setupwizardlib/test/SimpleInflaterTest.java
2e634640f3ed1b101f3748849b415fa14d57991c 29-Dec-2016 Maurice Lam <yukl@google.com> Add robolectric test

Configure the build target and migrate LinkSpanTest to Robolectric.
Move existing instrumentation tests into test/instrumentation

Bug: 32975598
Test: ./gradlew test
Change-Id: I9bb39142c616a2c44fe38f48d92e89ab8ebda7ba
ndroidManifest.xml
nstrumentation/AndroidManifest.xml
nstrumentation/res/layout/test_glif_layout.xml
nstrumentation/res/layout/test_glif_layout_primary_color.xml
nstrumentation/res/layout/test_glif_list_layout.xml
nstrumentation/res/layout/test_layout.xml
nstrumentation/res/layout/test_list_layout.xml
nstrumentation/res/layout/test_template.xml
nstrumentation/res/layout/test_template_layout.xml
nstrumentation/res/values/config.xml
nstrumentation/res/xml/test_items.xml
nstrumentation/src/com/android/setupwizardlib/TemplateLayoutTest.java
nstrumentation/src/com/android/setupwizardlib/test/BottomScrollViewTest.java
nstrumentation/src/com/android/setupwizardlib/test/ButtonBarItemTest.java
nstrumentation/src/com/android/setupwizardlib/test/ButtonItemTest.java
nstrumentation/src/com/android/setupwizardlib/test/DrawableLayoutDirectionHelperTest.java
nstrumentation/src/com/android/setupwizardlib/test/GlifDimensionTest.java
nstrumentation/src/com/android/setupwizardlib/test/GlifLayoutTest.java
nstrumentation/src/com/android/setupwizardlib/test/GlifListLayoutTest.java
nstrumentation/src/com/android/setupwizardlib/test/GlifPatternDrawableTest.java
nstrumentation/src/com/android/setupwizardlib/test/IllustrationTest.java
nstrumentation/src/com/android/setupwizardlib/test/ItemAdapterTest.java
nstrumentation/src/com/android/setupwizardlib/test/ItemGroupTest.java
nstrumentation/src/com/android/setupwizardlib/test/ItemInflaterTest.java
nstrumentation/src/com/android/setupwizardlib/test/ItemTest.java
nstrumentation/src/com/android/setupwizardlib/test/ListViewRequireScrollHelperTest.java
nstrumentation/src/com/android/setupwizardlib/test/PartnerTest.java
nstrumentation/src/com/android/setupwizardlib/test/RequireScrollHelperTest.java
nstrumentation/src/com/android/setupwizardlib/test/SetupWizardLayoutTest.java
nstrumentation/src/com/android/setupwizardlib/test/SetupWizardListLayoutTest.java
nstrumentation/src/com/android/setupwizardlib/test/SpanHelperTest.java
nstrumentation/src/com/android/setupwizardlib/test/StatusBarBackgroundLayoutTest.java
nstrumentation/src/com/android/setupwizardlib/test/SystemBarHelperTest.java
nstrumentation/src/com/android/setupwizardlib/test/WizardManagerHelperTest.java
nstrumentation/src/com/android/setupwizardlib/test/util/MockWindow.java
es/layout/test_glif_layout.xml
es/layout/test_glif_layout_primary_color.xml
es/layout/test_glif_list_layout.xml
es/layout/test_layout.xml
es/layout/test_list_layout.xml
es/layout/test_template.xml
es/layout/test_template_layout.xml
es/values/config.xml
es/xml/test_items.xml
obotest/src/com/android/setupwizardlib/span/LinkSpanTest.java
rc/com/android/setupwizardlib/TemplateLayoutTest.java
rc/com/android/setupwizardlib/test/BottomScrollViewTest.java
rc/com/android/setupwizardlib/test/ButtonBarItemTest.java
rc/com/android/setupwizardlib/test/ButtonItemTest.java
rc/com/android/setupwizardlib/test/DrawableLayoutDirectionHelperTest.java
rc/com/android/setupwizardlib/test/GlifDimensionTest.java
rc/com/android/setupwizardlib/test/GlifLayoutTest.java
rc/com/android/setupwizardlib/test/GlifListLayoutTest.java
rc/com/android/setupwizardlib/test/GlifPatternDrawableTest.java
rc/com/android/setupwizardlib/test/IllustrationTest.java
rc/com/android/setupwizardlib/test/ItemAdapterTest.java
rc/com/android/setupwizardlib/test/ItemGroupTest.java
rc/com/android/setupwizardlib/test/ItemInflaterTest.java
rc/com/android/setupwizardlib/test/ItemTest.java
rc/com/android/setupwizardlib/test/LinkSpanTest.java
rc/com/android/setupwizardlib/test/ListViewRequireScrollHelperTest.java
rc/com/android/setupwizardlib/test/PartnerTest.java
rc/com/android/setupwizardlib/test/RequireScrollHelperTest.java
rc/com/android/setupwizardlib/test/SetupWizardLayoutTest.java
rc/com/android/setupwizardlib/test/SetupWizardListLayoutTest.java
rc/com/android/setupwizardlib/test/SpanHelperTest.java
rc/com/android/setupwizardlib/test/StatusBarBackgroundLayoutTest.java
rc/com/android/setupwizardlib/test/SystemBarHelperTest.java
rc/com/android/setupwizardlib/test/WizardManagerHelperTest.java
rc/com/android/setupwizardlib/test/util/MockWindow.java
4819fa7e3e121b60a4209c70a6a65687037cf6ca 11-Jan-2017 Maurice Lam <yukl@google.com> Merge "Implement Mixins for Templates"
7514f1cee29b3feb4822ce16945c1c312057d24f 19-Dec-2016 Maurice Lam <yukl@google.com> Implement Mixins for Templates

Implement Mixin functionalities, which defines part of a template
layout, making it reusable in different layouts. For example, the
HeaderMixin allows setting and getting the header text via the mixin,
which allows for clients which uses multiple different layuots to
simplify their code via something like
layout.getMixin(HeaderMixin.class).setText("Foobar");

Bug: 34163318
Test: ./gradlew connectedAndroidTest
Change-Id: I4348c8bb5b8e640b49c2be0c79c70aa85cf0ebc0
es/layout/test_mixin_attributes.xml
es/layout/test_progress_bar_template.xml
rc/com/android/setupwizardlib/TemplateLayoutTest.java
rc/com/android/setupwizardlib/template/ColoredHeaderMixinTest.java
rc/com/android/setupwizardlib/template/HeaderMixinTest.java
rc/com/android/setupwizardlib/template/IconMixinTest.java
rc/com/android/setupwizardlib/template/NavigationBarMixinTest.java
rc/com/android/setupwizardlib/template/ProgressBarMixinTest.java
rc/com/android/setupwizardlib/template/TemplateLayoutMixinTest.java
rc/com/android/setupwizardlib/test/GlifLayoutTest.java
rc/com/android/setupwizardlib/test/SetupWizardLayoutTest.java
rc/com/android/setupwizardlib/test/TemplateLayoutTest.java
e840c6ec69bee6b0ee00d0b646b1b4299a5450f2 10-Dec-2016 Maurice Lam <yukl@google.com> Upgrade build tools to 25.0.0

Test: Builds and existing tests pass -- ./gradlew connectedAndroid
Change-Id: I10f5ea5f8e0dfb26bdf2cf2ce8c49c274b0e1ec9
rc/com/android/setupwizardlib/test/util/MockWindow.java
63cdc5ccb7f1f61d0e752e38d7e57c690658a0ac 23-Nov-2016 Maurice Lam <yukl@google.com> [SuwLib] Turn on fatal lint

Fix (or suppress) lint warnings and make it fatal again in the build
process.
Additionally, warnings are treated as errors now. If there are
warnings that are not applicable, add @SuppressLint or tools:ignore
to suppress the warning, so code reviewers can be aware of the lint
issue too.

Test: ./gradlew lint
Change-Id: I63c83ff1b95a0817dc2ac777adce0fa9f9ebd45a
rc/com/android/setupwizardlib/test/DrawableLayoutDirectionHelperTest.java
rc/com/android/setupwizardlib/test/SetupWizardLayoutTest.java
07e92e75c51c9ea8c029abe679f16511522f2e25 02-Dec-2016 Maurice Lam <yukl@google.com> Merge "[SuwLib] Add support annotations"
2614260933341bd4ea7bb37a3435f46f82cacef7 10-Nov-2016 Maurice Lam <yukl@google.com> [SuwLib] Migrate to JUnit 4

Test: ./gradlew connectedAndroidTest
Bug: 30958393
Change-Id: I990618542c25d9c379d054feed10cb7b37becd36
ndroidManifest.xml
rc/com/android/setupwizardlib/test/BottomScrollViewTest.java
rc/com/android/setupwizardlib/test/ButtonBarItemTest.java
rc/com/android/setupwizardlib/test/ButtonItemTest.java
rc/com/android/setupwizardlib/test/DrawableLayoutDirectionHelperTest.java
rc/com/android/setupwizardlib/test/GlifDimensionTest.java
rc/com/android/setupwizardlib/test/GlifLayoutTest.java
rc/com/android/setupwizardlib/test/GlifListLayoutTest.java
rc/com/android/setupwizardlib/test/GlifPatternDrawableTest.java
rc/com/android/setupwizardlib/test/IllustrationTest.java
rc/com/android/setupwizardlib/test/ItemAdapterTest.java
rc/com/android/setupwizardlib/test/ItemGroupTest.java
rc/com/android/setupwizardlib/test/ItemInflaterTest.java
rc/com/android/setupwizardlib/test/ItemTest.java
rc/com/android/setupwizardlib/test/LinkSpanTest.java
rc/com/android/setupwizardlib/test/ListViewRequireScrollHelperTest.java
rc/com/android/setupwizardlib/test/PartnerTest.java
rc/com/android/setupwizardlib/test/RequireScrollHelperTest.java
rc/com/android/setupwizardlib/test/SetupWizardLayoutTest.java
rc/com/android/setupwizardlib/test/SetupWizardListLayoutTest.java
rc/com/android/setupwizardlib/test/SpanHelperTest.java
rc/com/android/setupwizardlib/test/StatusBarBackgroundLayoutTest.java
rc/com/android/setupwizardlib/test/SystemBarHelperTest.java
rc/com/android/setupwizardlib/test/TemplateLayoutTest.java
rc/com/android/setupwizardlib/test/WizardManagerHelperTest.java
4482fde98ebad2700ec1f8de5397abb90402b8b8 23-Nov-2016 Maurice Lam <yukl@google.com> [SuwLib] Add support annotations

Add support annotations dependency, and add the annotations in where
suitable.

Test: Manual. "Inspect code" in Android studio no longer shows
nullability errors. Existing automated tests pass
Bug: 21559567
Change-Id: I47b1072c9b2a9e032318df49db6b86b6af8d206e
rc/com/android/setupwizardlib/test/util/MockWindow.java
0d56446cc1c92346ec08b55ed50fe3920649193a 18-Nov-2016 Maurice Lam <yukl@google.com> Merge "[SuwLib] Fix SDK version check for isUserSetupComplete"
e0275b558e533bd0665b87e2e78267801c2472cd 16-Nov-2016 Maurice Lam <yukl@google.com> [SuwLib] Fix SDK version check for isUserSetupComplete

The system setting was introduced in JB MR1.

Test: ./gradlew connectedAndroidTest
Change-Id: I70b72981cf71eb39064048a80f6669c63b626070
rc/com/android/setupwizardlib/test/WizardManagerHelperTest.java
ad9269e9ce72bd6217893b5b4eb3e204fdbbf788 08-Nov-2016 Maurice Lam <yukl@google.com> [SuwLib] Fix divider inset for sw600dp

Test: ./gradlew connectedAndroidTest
Bug: 32722554
Change-Id: I405a079a0be25a29294de91ba8fc185426cbf63c
rc/com/android/setupwizardlib/test/GlifDimensionTest.java
a11c777f010e19a75e80b383ebef1817031d95ed 07-Nov-2016 Maurice Lam <yukl@google.com> Add missing XML header

Test: ./gradlew connectedAndroidTest
Change-Id: I616bc5d5c94c90dcbd6648c4c4f28960f00e2de1
es/layout/test_glif_layout_primary_color.xml
a6d30093e9308a88fc875b484cf16cda385c2f98 04-Nov-2016 Maurice Lam <yukl@google.com> [SuwLib] Replace colorPrimary with custom attribute

Replace android:colorPrimary with suwColorPrimary because the former
is only available on API 21 or above.

Test: ./gradlew connectedAndroidTest
Bug: 32405650
Change-Id: I57bb2b87771a5169004fca310b6284de88fb2f14
es/layout/test_glif_layout_primary_color.xml
rc/com/android/setupwizardlib/test/GlifLayoutTest.java
bc89919a0287256bf8255e8013c1c7c2ccf49f58 25-Oct-2016 Ajay Nadathur <ajayns@google.com> [SetupWizard] GLIF determinate progress bar should have blue background

Test: Manually tested and verified blue background present. Also added
unit test
bug: 32148755
Change-Id: I0e2e9e346ed6952bdcbae6e7bcc3eeab552ab262
rc/com/android/setupwizardlib/test/GlifLayoutTest.java
515c0b156d03f7ea348303c75e37ee4c16d90557 12-Aug-2016 Maurice Lam <yukl@google.com> Share GlifPatternDrawable bitmap cache

Reduce memory usage of GlifPatternDrawable by
- Setting max bitmap cache scale to 1.5x (similar to
VectorDrawableCompat, which caps at 2048px)
- Use ALPHA_8 mask instead of ARGB8888
- Share the cache across all pattern drawables, using a SoftReference

The memory allocation of a single bitmap cache, measured on Pixel C,
dropped from 17MB to 2.3MB.

Memory consumption was measured in Android studio.
1. Open SetupLibrarySample app in Android Studio
2. Run app
3. Open "Android Monitor" tab, and go to Monitors tab
4. Press "Trigger GC" in Studio
5. Press "Start Allocation Tracking"
6. Start a new activity in the test app
7. press "Stop Allocation Tracking"

Test: ./gradlew connectedAndroidTest
Bug: 30813561
Change-Id: Ic78d6f2bdfa6a18a7dd2afc73f9647e2a7ed4cf1
rc/com/android/setupwizardlib/test/GlifPatternDrawableTest.java
05acfbb2e7c7f2c992b530b98f8a9333ec6b17f0 30-Jul-2016 Ajay Nadathur <ajayns@google.com> [SetupWizard] Set id of ButtonItems.

bug:30511478
Change-Id: Ia7366dcee93ae1c8223990cab2e3f431fdc4418e
rc/com/android/setupwizardlib/test/ButtonItemTest.java
d66273847cb8cb69513db37e26e6ab0ee0590cc3 22-Jun-2016 Maurice Lam <yukl@google.com> [SuwLib] Null check if progress bar is not in template

Bug: 28848765
Change-Id: If447167cb0bb3d112d797389d0f8d790b02e3557
rc/com/android/setupwizardlib/test/GlifLayoutTest.java
b6fb8bb15f4c6b08eb7f875c21df1005a8679594 10-Jun-2016 Maurice Lam <yukl@google.com> [SuwLib] Allow peeking progress bar

Add GlifLayout.peekProgressBar that will get the progress bar from
the view if it is already installed.

Bug: 28848765
Change-Id: Ica686f843013007a7abe6b1d67e26de14b95ec75
rc/com/android/setupwizardlib/test/GlifLayoutTest.java
a8e0755e1b526174fe42b0d7215d3c6a6106aca2 21-May-2016 Maurice Lam <yukl@google.com> [SuwLib] Remove button from parent after createButton

Since the button for a ButtonItem is reused, it may be moved to a
different view parent after re-binding. In order to make sure the move
is successful, the button must be first removed from the current parent
before returning.

Bug: 28317915
Change-Id: Ice2a7d1a5f33870775dfd26c1bff816de70526e9
rc/com/android/setupwizardlib/test/ButtonItemTest.java
081551e44a801f439f0e0f30008303dd765c118f 03-May-2016 Maurice Lam <yukl@google.com> [SuwLib] GLIF pattern update

Implement GLIF pattern according to latest UX spec, which is to
overlay a grayscale pattern at 20% opacity on top of the solid accent
color.

Bug: 28601978
Change-Id: I89f54a434d54e1cac64363588fd06736d67c51e1
rc/com/android/setupwizardlib/test/GlifPatternDrawableTest.java
7f2a6e95f20408e055bb8b965b9e2bc664eec86b 28-Apr-2016 Maurice Lam <yukl@google.com> [SuwLib] Check instance state type before casting

Bug: 28390168
Change-Id: Ic8cb9c35b29fe05f1edc6c8fa7c0bd7d23cd4fdf
rc/com/android/setupwizardlib/test/SetupWizardLayoutTest.java
059321ff28f79a2cbe630b4d814a96ff9254643a 01-Apr-2016 Maurice Lam <yukl@google.com> [SuwLib] Fix unit tests

- Use DP for LinkAccessibilityHelperTest so that it is not device
specific.
- Remove LinkSpanTest context leak test, because System.GC does not
realiably remove references.

Bug: 27953236
Change-Id: I977c08b3f4c22b074a3bfa968847735ffe5af258
rc/com/android/setupwizardlib/test/LinkSpanTest.java
ccdce77ebc3a173c5cbe59abc4ba6dda9567a432 01-Apr-2016 Maurice Lam <yukl@google.com> [SuwLib] Remove recycled icon

Remove recycled icon before setting the state and level, so it will
not unintentionally change some other drawable's state and level.

Bug: 27944413
Change-Id: Id98096638781b207234794e9e2296c0463a51daf
rc/com/android/setupwizardlib/test/ItemTest.java
e1798444aa7e8bd6c81c5013c03bccb581d7f591 31-Mar-2016 Maurice Lam <yukl@google.com> Merge "[SuwLib] Upstream LinkSpan and AnnotatedTextView" into ub-setupwizard-belgarath
00358e4d12e6c7ba0f1da1fa9ad57f87da9b3b1a 25-Mar-2016 Maurice Lam <yukl@google.com> [SuwLib] Implement ButtonBarItem

Implement ButtonBarItem which can contain one or more buttons to be
displayed in a horizontal row.

Bug: 27600894
Change-Id: Id3879ee8fc0bd09c04bc8d98a0bbd301d1b410b8
rc/com/android/setupwizardlib/test/ButtonBarItemTest.java
rc/com/android/setupwizardlib/test/ButtonItemTest.java
d832154e333a3a45b5faecd518b664ddd297183c 25-Feb-2016 Maurice Lam <yukl@google.com> [SuwLib] Upstream LinkSpan and AnnotatedTextView

Upstream LinkSpan and AnnotatedTextView to easily create
accessibility-friendly rich text TextViews with links.

Bug: 27886391
Change-Id: I20137fb454c4b9d820263c8ce326380c1db2ef20
rc/com/android/setupwizardlib/test/LinkSpanTest.java
rc/com/android/setupwizardlib/test/SpanHelperTest.java
2def2bf2156581c6bde6d6baa4583ccd97f2f670 25-Mar-2016 Maurice Lam <yukl@google.com> Merge "[SuwLib] Cache GlifPatternDrawable in Bitmap" into ub-setupwizard-belgarath
a2f04916533b900d3661c9e8c9d98b71276fde13 24-Mar-2016 Maurice Lam <yukl@google.com> [SuwLib] Cache GlifPatternDrawable in Bitmap

Avoid rendering the path every time by caching the GlifPatternDrawable
on a Bitmap.

Bug: 27821812
Change-Id: I8eefcf662763ec05d11b53a0a02e3f39764075ae
rc/com/android/setupwizardlib/test/GlifPatternDrawableTest.java
8d5326358e2f2a48847b65223c21071647c0f7e5 24-Mar-2016 Maurice Lam <yukl@google.com> [SuwLib] Request apply window inset when attached

Bug: 25973134
Change-Id: Icaddf416e386624e9d8d4b06072a650e266ee9d6
rc/com/android/setupwizardlib/test/StatusBarBackgroundLayoutTest.java
99586481628659cd2982a0248bc0d09a6ec4590e 18-Mar-2016 Maurice Lam <yukl@google.com> [SuwLib] Improve wrong theme error message

Improve the error message in SetupWizardLayout and GlifLayout to
mention the correct themes when there is an InflateException.

Bug: 27153117
Change-Id: I0b76713b820fd26fd2c8808819887e360c3e87a3
rc/com/android/setupwizardlib/test/GlifLayoutTest.java
rc/com/android/setupwizardlib/test/SetupWizardLayoutTest.java
7bc6f176937ed369b180fa89f6c311d2801f206c 23-Jan-2016 Maurice Lam <yukl@google.com> [SuwLib] Allow requiring scroll in lists

Add ListViewRequireScrollHelper and RecyclerViewRequireScrollHelper
that will require scrolling in those layouts. SetupWizardListLayout
and SetupWizardRecyclerItemsLayout are now wired properly with the
requireScrollToBottom() method to require scrolling.

Change-Id: I1086fe02374bfbbeb1ac3f8c4ca6981f3ced0df9
rc/com/android/setupwizardlib/test/ListViewRequireScrollHelperTest.java
rc/com/android/setupwizardlib/test/RequireScrollHelperTest.java
d6fe3672c84594bf53882eb5ac5c26bbd6b714e7 23-Jan-2016 Maurice Lam <yukl@google.com> [SuwLib] Fix testSetPrimaryColor

Change-Id: I2d0d1f121a5d04f17fa5c61782a08e7203efbd9c
rc/com/android/setupwizardlib/test/GlifLayoutTest.java
ac40f3676511e1c7c09a948f5cb8481e5ea12d57 21-Jan-2016 Maurice Lam <yukl@google.com> [SetupWizard] Add GlifLayout.setPrimaryColor

Bug: 26458108
Change-Id: Ia7be66fcf1efd60e65a759006f72b3a0589d0401
rc/com/android/setupwizardlib/test/GlifLayoutTest.java
d6708911f6f2fa7dd060536a118b5efb3c5e174f 22-Dec-2015 Maurice Lam <yukl@google.com> [SuwLib] Add dark GLIF theme (placeholder)

Add placeholder for dark GLIF theme, which is an extension of the
dark system themes with same overlay values as the light variant.
The color values of the overlays will be updated as necessary.

Change-Id: If7aa2e4b849c26300d4d8ab606be7b74cc33620f
(cherry picked from commit 0c0f30d332afd782dd107ef11f7fa76fb2fdd165)
rc/com/android/setupwizardlib/test/WizardManagerHelperTest.java
38a3832bf55aeb5dc24904d4d1ddf391dffa7d7b 19-Dec-2015 Maurice Lam <yukl@google.com> [SuwLib] Add preference integration support

Change-Id: I2e756bcea1512886958ec70c80ae6f4616c9ed81
rc/com/android/setupwizardlib/test/DrawableLayoutDirectionHelperTest.java
575ec4f0150a3607d0b6902a9b52866c170822f9 14-Dec-2015 Maurice Lam <yukl@google.com> [SuwLib] Allow setting visibility of items

Added setVisible and android:visible to Item so that it will be
hidden if not visible.

Change-Id: If8d2e3ec95c2f1aaffe8991c283f5c474e1f459a
rc/com/android/setupwizardlib/test/ItemTest.java
c3eebe9f664af4b77e5948a14bf266b25dc25cc8 14-Nov-2015 Maurice Lam <yukl@google.com> [SuwLib] Implement pattern drawable background

- Implement the pattern background for GLIF using a custom drawable.
The drawable draws the paths manually as specified in the SVG, for
backwards compatibility.
- Use a FrameLayout subclass to draw the custom status bar background
in the case of phone layouts, and set draw the background directly
for tablet / clamshell layouts.

Bug: 25650709
Change-Id: I527bb47efa143ec43c1030b57087fd2414d7045b
rc/com/android/setupwizardlib/test/GlifPatternDrawableTest.java
rc/com/android/setupwizardlib/test/StatusBarBackgroundLayoutTest.java
5a4d6cdfb63240c41527ba80b7baddba8933d770 04-Dec-2015 Maurice Lam <yukl@google.com> [SuwLib] GLIF layout adjustment for headers

- Store the list item directly in the view holder and update in
onBindViewHolder, so that the click handler is not prone to adapter
position changes.
- Glif[List/Recycler]Layout now returns the wrapped adapter when
getAdapter is called.
- Disable dividers for header views

Change-Id: Ie782a4de06e2296d4996cb8b81b5d7d3fc834ccf
rc/com/android/setupwizardlib/test/GlifListLayoutTest.java
180360409c9e4e9163c670ff48663244b4057eaf 14-Nov-2015 Maurice Lam <yukl@google.com> [SuwLib] Add dividers to GLIF list layouts

Add dividers with inset support to GLIF list and recycler layouts.
Typical usage of this will be by specifying app:suwDividerInset to
either @dimen/suw_items_text_divider_inset or
@dimen/suw_items_icon_divider_inset (the default).

Bug: 25726515
Change-Id: I8f569680d71d1baba093b20f3d48570d53383acb
rc/com/android/setupwizardlib/test/DrawableLayoutDirectionHelperTest.java
rc/com/android/setupwizardlib/test/GlifListLayoutTest.java
e15b8a2489610e3a6fe0a5bc2e26625b067631e0 20-Nov-2015 Maurice Lam <yukl@google.com> [SuwLib] Implement GlifListLayout

Bug: 25726515
Change-Id: I192f33635e9919c02adfdb2c9afa1652dd84aab2
es/layout/test_glif_list_layout.xml
rc/com/android/setupwizardlib/test/GlifListLayoutTest.java
fce4cf6161b2a1644ad21034f0afe4087d659ab4 19-Nov-2015 Maurice Lam <yukl@google.com> [SetupWizard] Implement GlifLayout

Bug: 25726515
Change-Id: Ib4ba64e648e52a9859fb6509a9ce41c692a20aa2
es/layout/test_glif_layout.xml
rc/com/android/setupwizardlib/test/GlifLayoutTest.java
35cc29c9f307191962cd7124db14eb7b78c9407e 17-Nov-2015 Maurice Lam <yukl@google.com> [SuwLib] Add GLIF theme

Add a GLIF theme declaration to setup wizard library, which is just
a direct copy of SuwThemeMaterial.Light for now, and will be updated
as more of the new visual design is implemented.

Bug: 25726515
Change-Id: I3f55662192c05012b9a93d77f7b1303f4a792fe5
rc/com/android/setupwizardlib/test/WizardManagerHelperTest.java
647dc702649512dc47f88eaf5e9058f8452537c7 14-Nov-2015 Maurice Lam <yukl@google.com> Revert "[SuwLib] Remove material_blue theme values"

This reverts commit 7df47886e1d74fb2a5a25b129133f4dd9f1986bc.

Change-Id: Id21b1b89476612efd6cae04eb67b22a6dfbfe964
rc/com/android/setupwizardlib/test/WizardManagerHelperTest.java
7df47886e1d74fb2a5a25b129133f4dd9f1986bc 13-Nov-2015 Maurice Lam <yukl@google.com> [SuwLib] Remove material_blue theme values

The values are part of a plan that hasn't panned out, so cleaning up
the constants to avoid confusion.

Change-Id: I1501ffb59a0dad9145d8c20d16999bceda15dcfd
rc/com/android/setupwizardlib/test/WizardManagerHelperTest.java
c3a4e07feacd7e9cff6d0fc6ddbe86c90d6f7087 12-Nov-2015 Maurice Lam <yukl@google.com> [SuwLib] Add isLightTheme for strings

Add isLightTheme method to be able to directly tell whether a string
represents a light or dark theme.

Change-Id: Ib49cdcbb9047e235189a451b42f20b5cba5eb42a
rc/com/android/setupwizardlib/test/WizardManagerHelperTest.java
fd95620a24f1938a24036e8fb4150710e8a2ae90 30-Oct-2015 Maurice Lam <yukl@google.com> [SuwLib] Un-plural test names

Rename -Tests to -Test for consistency.

Change-Id: Ie903ef8e7cc35367968599be9ba55bc3f3b80eb2
rc/com/android/setupwizardlib/test/SetupWizardLayoutTest.java
rc/com/android/setupwizardlib/test/SetupWizardLayoutTests.java
rc/com/android/setupwizardlib/test/SetupWizardListLayoutTest.java
rc/com/android/setupwizardlib/test/SetupWizardListLayoutTests.java
960c0ea0b1d36904beef0f01715dd43a211e88ca 09-Oct-2015 Maurice Lam <yukl@google.com> [SuwLib] Add nested items support

Add nested items support to items framework, which allows ItemGroups
to be placed inside another ItemGroup. Handling of children elements
are at discretion of the parent, but for the case of ItemGroup it
will provide a flattened view of the items.

Change-Id: I17bfd8ee276bf47d388873e68e67324c755425b3
rc/com/android/setupwizardlib/test/ItemAdapterTest.java
rc/com/android/setupwizardlib/test/ItemGroupTest.java
rc/com/android/setupwizardlib/test/ItemInflaterTest.java
rc/com/android/setupwizardlib/test/ItemTest.java
48dd827be07471f59aae71eb026253cc1ab7ef97 12-Oct-2015 Maurice Lam <yukl@google.com> [SuwLib] Support icons in items framework

Change-Id: Idd6ce39a9d4be2914ae3f8747c86b173d578f468
rc/com/android/setupwizardlib/test/ItemTest.java
b922482e73fc63840d86b78898d0165ffcad1c72 09-Oct-2015 Maurice Lam <yukl@google.com> [SuwLib] Make Items editable

Add setters to the properties of items to make them editable.

Change-Id: I04ab8a0fd31f52e60a699198fe1422bed5163e61
rc/com/android/setupwizardlib/test/ItemTest.java
c5bf1cb9cb52f95f862eedb8d4f2c71c1ff1a79f 09-Oct-2015 Maurice Lam <yukl@google.com> [SuwLib] Single-line item

Hide the summary TextView if summary is not set, so that the title
will be centered vertically.

Change-Id: Idbc5f35f7ce48a7338eb0b7061ef5d02b74b7b65
rc/com/android/setupwizardlib/test/ItemTest.java
5bf291fde3dfd64f264d525534730514a279c8fc 06-Oct-2015 Maurice Lam <yukl@google.com> [SuwLib] Implement Items framework

Items framework is a framework modeled after preferences, which uses
XML to inflate a collection of items. Instead of using activity or
fragment directly like preferences, a ListAdapter is created and you
can use that with any existing ListViews.

SetupWizardItemsLayout is a convenient wrapper around
SetupWizardListLayout which will automatically inflates
android:entries in its attributes to populate the list.

Note: A recycler view adapter is under consideration

Change-Id: I5eb8853c160cf86fa5b6f21a01dfa4b0030643f6
es/xml/test_items.xml
rc/com/android/setupwizardlib/test/ItemAdapterTest.java
rc/com/android/setupwizardlib/test/ItemGroupTest.java
rc/com/android/setupwizardlib/test/ItemInflaterTest.java
rc/com/android/setupwizardlib/test/ItemTest.java
99231ff98b97a82811f889636ad6dae6d371275b 10-Jun-2015 Maurice Lam <yukl@google.com> [SetupWizardLib] Add showSystemBars method

Added showSystemBars method that will undo the visbility flags added
by hideSystemBars.

Change-Id: Iaaa2f2e96089ebf3696f747f51d9174dc0d2bb09
rc/com/android/setupwizardlib/test/SystemBarHelperTest.java
91051468dbc273da8d7e7608640e833a71d011e2 07-Aug-2015 Maurice Lam <yukl@google.com> [SuwLib] Tint navigation button icons

- Remove the dark variant of button icons, since it is now tinted
to the desired color
- Use DrawableCompat.setTintList to tint the drawables to the same
color used as text
- Use textColorPrimary as the navigation text color, since the spec
now matches the default textColorPrimary implementation of material
theme (This changes the disabled color from 20% alpha to 26% alpha)
- Configured the build to take two different implementations of
NavigationBarButton. The platform build is the same as Button,
since drawable tinting is natively supported. The comapt build
uses DrawableCompat in the support library to tint any compound
drawables
- Removed all xxxhdpi assets since that was introduced in L, but
vector assets are used in L instead.
- For the vector drawables, use tint instead of fillColor so that the
state in the ColorStateList will be taken into account.

Bug: 22129308
Change-Id: Id0c7b40ad3e71c2c66a0e89df4522865a61e923e
rc/com/android/setupwizardlib/test/PartnerTest.java
bdfc0132ff90a333de202adfbf204cdc8139e632 13-Aug-2015 Maurice Lam <yukl@google.com> [SuwLib] Refactor out TemplateLayout

Refactor TemplateLayout as a base class for SetupWizardLayout, which
is a generic layout that takes the "android:layout", inflates that as
a template and put its children in the "container".

Change-Id: Id7977787ffa6cdb5df7a4cb8172ce1fa6a52ed45
es/layout/test_template_layout.xml
rc/com/android/setupwizardlib/test/TemplateLayoutTest.java
899caf2cf473e512567832d283e9750679f0bf4d 08-Aug-2015 Maurice Lam <yukl@google.com> [SuwLib] Fix unit tests

hideSystemBars is no-op in versions < lollipop.

Change-Id: I2eaab0f044c4fe69511d09e6f0622c6c20979fe6
rc/com/android/setupwizardlib/test/SystemBarHelperTest.java
803f8b1dc47a4adebfab7434b6d8e410f80de14f 01-Aug-2015 Maurice Lam <yukl@google.com> [SuwLib] Avoid infinite loop in SystemBarHelper

Set the maximum number of retries allowed by SystemBarHelper to
peek for the decor view to 3.

Bug: 22846994
Change-Id: Ia69cb28deb8c182a7f31890d20cc687218b93200
rc/com/android/setupwizardlib/test/SystemBarHelperTest.java
rc/com/android/setupwizardlib/test/util/MockWindow.java
2d77e072fed129b34e473c7f77246a2b064fab7d 29-May-2015 Maurice Lam <yukl@google.com> [SetupWizardLib] Add support for require scrolling

Add SetupWizardLayout.requireScrollToBottom method that will register
a RequireScrollHelper on the layout. When the helper is registered
and the content view can scroll, the next button will be hidden and a
down-arrow button is shown, which will scroll the page down when
clicked.

Change-Id: Ib9ddcbeec24169cc00265fe107deb1b5099cba8d
rc/com/android/setupwizardlib/test/RequireScrollHelperTest.java
b5c78954c32ef124b5df7ab539d6579cb4506f50 21-May-2015 Maurice Lam <yukl@google.com> Merge "[SetupWizardLib] Fix illustration test" into ub-setupwizard-alatar
39619ac964ffe6b8737f2a128122bd3f84e75998 21-May-2015 Maurice Lam <yukl@google.com> [SetupWizardLib] Fix illustration test

Fix illustration test by fixing the context's density to 3 px per dp.

Change-Id: I7ea296f5750d828f8254caa05011f4786c143d06
rc/com/android/setupwizardlib/test/IllustrationTest.java
578dd1c111c2461620777b315eab3a95bee9ecd1 21-May-2015 Maurice Lam <yukl@google.com> [SetupWizardLib] Add tests for BottomScrollView

Test that BottomScrollView callbacks are called correctly.

Change-Id: Ia2e9e4149057b06794cdf85ba07c44efc0aec579
rc/com/android/setupwizardlib/test/BottomScrollViewTest.java
1e8fd1229a592e094929aa279482c7415954eedc 27-Apr-2015 Maurice Lam <yukl@google.com> [SetupWizardLib] Test aspect ratio for illustration

Add tests for Illustration's aspect ratio attribute

Change-Id: Ibd9d212cee2bb81cc32de635bfecafc34f76bd68
rc/com/android/setupwizardlib/test/IllustrationTest.java
56a19113d248d9ffdb462a0af6ba8a967635be66 08-Apr-2015 Maurice Lam <yukl@google.com> [SetupWizardLib] Add isLightTheme method

Add WizardManagerHelper.isLightTheme method to tell whether an
activity should use light theme or not.

Bug: 20110002
Change-Id: I41fc142489c9f1c1b9b91cd825f54447b856f58b
rc/com/android/setupwizardlib/test/WizardManagerHelperTest.java
0d6c44afe2731446e2b96c17ae0fd52e62ea1e54 07-Apr-2015 Maurice Lam <yukl@google.com> Merge "[SetupWizardLib] Adjust immersive flags for dialogs" into ub-setupwizard-alatar
64158e33c3ad618ed0eecef71fd20dd8e3c02568 07-Apr-2015 Maurice Lam <yukl@google.com> [SetupWizardLib] Fix Partner class and tests

Partner.java had a bug preventing it from fetching the default value
from the original package if the resource is not found in the
overlay. There is a corresponding issue in the test, which is using
its own resources for testing. Since the test package builds against
the source of the library, all resources in the library is also
available in the test package, and therefore the behavior of resource
not found in overlay package could not be tested. This CL fixes that
by using a MockResources object instead.

In addition, the attribute isOverlay was added to ResourceEntry so
clients can tell if the ResourceEntry came from the overlay or from
the fallback.

Change-Id: Ib0490277db502ea563171d79ab8491934dc43d01
es/values/config.xml
rc/com/android/setupwizardlib/test/PartnerTest.java
6be36beb1bdcd9211c504bbb1647d1f610ba2185 04-Apr-2015 Maurice Lam <yukl@google.com> [SetupWizardLib] Adjust immersive flags for dialogs

Remove the LAYOUT_ immersive flags and apply only HIDE_NAVIGATION and
IMMERSIVE_STICKY. This is because LAYOUT_ flags causes dialogs to not
resize for keyboard, and dialogs don't have to draw under the status
or navigation bars anyway.

Bug: 20091077
Change-Id: I96dc650a1d31046b30c6337b32c1bb91ee4548d2
rc/com/android/setupwizardlib/test/SystemBarHelperTest.java
d61674efcfaa9f591a44fc75d59566cdd5b409eb 03-Apr-2015 Maurice Lam <yukl@google.com> [SetupWizardLib] Add progress bar support

Added methods showProgressBar, hideProgressBar and isProgressBarShown
to SetupWizardLayout, that will show the bar if the corresponding
ViewStub exists.

This implementation has an improvement over existing Setup Wizard
implementations in that it supports ListViews as well as ScrollViews,
and the progress bar will be sticky together with the header instead
of being scrolled away.

Change-Id: Ifd7acae36a9b244d759b6528bb5dfdc3e1d15091
rc/com/android/setupwizardlib/test/SetupWizardLayoutTests.java
rc/com/android/setupwizardlib/test/SetupWizardListLayoutTests.java
bc60ae4e0ee0116facc9bdc21d6da8a470303ce3 27-Mar-2015 Maurice Lam <yukl@google.com> [SetupWizardLib] Add isSetupWizard

Add WizardManagerHelper.isSetupWizard for clients to tell whether an
intent came from Setup Wizard. Also added WizardManagerHelperTest.

Bug: 19964066
Change-Id: I71166571814be356c1bf34f37692795f99f4b592
rc/com/android/setupwizardlib/test/WizardManagerHelperTest.java
9f9367672191190f903955d09a4314d40869acc6 27-Mar-2015 Maurice Lam <yukl@google.com> [SetupWizardLib] Eclair compat build

Bug: 19929602
Change-Id: I0e3ed9024461ec50efe2258031c1d2648f0d333f
es/values/config.xml
rc/com/android/setupwizardlib/test/SetupWizardLayoutTests.java
rc/com/android/setupwizardlib/test/SystemBarHelperTest.java
e96ec75d23e82b352ab1393dbac8d6372ceb62d7 26-Mar-2015 Maurice Lam <yukl@google.com> [SetupWizardLib] Fix back button bug

Fix bug in SystemBarHelper.setBackButtonVisible and added unit tests
to the class.

Bug: 19936103
Change-Id: I252e0069ee7b21d25422859a51f51dcbe4c6a7d5
rc/com/android/setupwizardlib/test/SystemBarHelperTest.java
7e5f0f0ea3b3075258cac9d26f90fd97c1a71dca 23-Mar-2015 Maurice Lam <yukl@google.com> [SetupWizardLib] Add getNavigationBar

Add getNavigationBar method to SetupWizardLayout

Change-Id: I49eeb5cfee2917d5b4e3f552f9c3b68747dcd79a
rc/com/android/setupwizardlib/test/SetupWizardLayoutTests.java
16a7a7a87ca9db68b1889b37ef46d65055195e7d 13-Mar-2015 Maurice Lam <yukl@google.com> Merge "[SetupWizardLib] Implement Partner" into ub-setupwizard-alatar
d617ee5e12914b052682ee6f1bdf3ece28392f54 11-Mar-2015 Maurice Lam <yukl@google.com> [SetupWizardLib] Implement Partner

Implement Partner.java which helps to get resolve resources from an
overlay package provided by Partners.

Bug: 19680333
Change-Id: I11d3826398741fb48fb6cf40b1d66b18c42ea085
es/values/config.xml
rc/com/android/setupwizardlib/test/PartnerTest.java
24ab59ef4f9726316743d94d31c93bf9420e7717 12-Mar-2015 Maurice Lam <yukl@google.com> [SetupWizardLib] Fix tests for tablets

The layout requires SuwThemeMaterial to be the theme, and the tablet
layout will crash without the theme. In the tests, we don't create
activities so use a ContextThemeWrapper to apply the themes.

Change-Id: I70d9252ed3c44a341dc10076d15aafc7c75c7209
rc/com/android/setupwizardlib/test/SetupWizardLayoutTests.java
rc/com/android/setupwizardlib/test/SetupWizardListLayoutTests.java
66cb0ccabafc74069539fead8d10330635f31ff2 11-Mar-2015 Maurice Lam <yukl@google.com> [SetupWizardLib] Test ListLayout

Tests for SetupWizardListLayout

Change-Id: I210e7b989503a7fd247ebc916f46763d1be8ae87
es/layout/test_list_layout.xml
rc/com/android/setupwizardlib/test/SetupWizardListLayoutTests.java
170a720fe110de6cc1a8c1cd660e591295562cfa 10-Mar-2015 Maurice Lam <yukl@google.com> [SetupWizardLib] Tests

Set up the structure for tests in setup wizard library.
To run the tests, cd to the root of the tree and run
./gradlew connectedAndroidTest

Currently the tests fail for version lower than SDK 21, even for
IcsCompat because the resources aren't available yet.

Change-Id: I62106f531d99d7861be9474af8100fbc63ea8684
ndroidManifest.xml
es/layout/test_layout.xml
es/layout/test_template.xml
rc/com/android/setupwizardlib/test/SetupWizardLayoutTests.java