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)
ndroid/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
ndroid/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
ndroid/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
ndroid/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)
ndroid/setupwizardlib/span/LinkSpanTest.java
ndroid/setupwizardlib/view/RichTextViewTest.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)
ndroid/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
ndroid/setupwizardlib/shadow/ShadowLog.java
ndroid/setupwizardlib/view/IllustrationVideoViewTest.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
ndroid/setupwizardlib/util/PartnerTest.java
|
f2c8c89ad6048dd304f36928f1cddacbe7dbd920 |
30-Jan-2018 |
Maurice Lam <yukl@google.com> |
Add timeout to consecutive tap gesture Test: ./gradlew test Bug: 72202690 Change-Id: Ia227cc38cfb54e4f33d34adfffdc6c38543060d5
ndroid/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
ndroid/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
ndroid/setupwizardlib/GlifLayoutTest.java
ndroid/setupwizardlib/util/GlifV3StyleTest.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
ndroid/setupwizardlib/GlifLayoutTest.java
|
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
ndroid/setupwizardlib/GlifLayoutTest.java
ndroid/setupwizardlib/items/ButtonItemTest.java
ndroid/setupwizardlib/items/ItemGroupTest.java
ndroid/setupwizardlib/robolectric/PatchedGradleManifestFactory.java
ndroid/setupwizardlib/robolectric/SuwLibRobolectricTestRunner.java
ndroid/setupwizardlib/span/LinkSpanTest.java
ndroid/setupwizardlib/template/ListViewScrollHandlingDelegateTest.java
ndroid/setupwizardlib/template/RequireScrollMixinTest.java
ndroid/setupwizardlib/template/ScrollViewScrollHandlingDelegateTest.java
ndroid/setupwizardlib/util/GlifDimensionTest.java
ndroid/setupwizardlib/util/GlifStyleTest.java
ndroid/setupwizardlib/util/PartnerTest.java
ndroid/setupwizardlib/util/WizardManagerHelperTest.java
ndroid/setupwizardlib/view/FillContentLayoutTest.java
ndroid/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
ndroid/setupwizardlib/GlifLayoutTest.java
ndroid/setupwizardlib/items/ButtonItemTest.java
ndroid/setupwizardlib/items/ItemGroupTest.java
ndroid/setupwizardlib/robolectric/PatchedGradleManifestFactory.java
ndroid/setupwizardlib/robolectric/SuwLibRobolectricTestRunner.java
ndroid/setupwizardlib/span/LinkSpanTest.java
ndroid/setupwizardlib/template/ListViewScrollHandlingDelegateTest.java
ndroid/setupwizardlib/template/RequireScrollMixinTest.java
ndroid/setupwizardlib/template/ScrollViewScrollHandlingDelegateTest.java
ndroid/setupwizardlib/util/GlifDimensionTest.java
ndroid/setupwizardlib/util/GlifStyleTest.java
ndroid/setupwizardlib/util/PartnerTest.java
ndroid/setupwizardlib/util/WizardManagerHelperTest.java
ndroid/setupwizardlib/view/FillContentLayoutTest.java
ndroid/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
ndroid/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
ndroid/setupwizardlib/GlifLayoutTest.java
ndroid/setupwizardlib/items/ButtonItemTest.java
ndroid/setupwizardlib/items/ItemGroupTest.java
ndroid/setupwizardlib/robolectric/PatchedGradleManifestFactory.java
ndroid/setupwizardlib/robolectric/SuwLibRobolectricTestRunner.java
ndroid/setupwizardlib/span/LinkSpanTest.java
ndroid/setupwizardlib/template/ListViewScrollHandlingDelegateTest.java
ndroid/setupwizardlib/template/RequireScrollMixinTest.java
ndroid/setupwizardlib/template/ScrollViewScrollHandlingDelegateTest.java
ndroid/setupwizardlib/util/GlifDimensionTest.java
ndroid/setupwizardlib/util/GlifStyleTest.java
ndroid/setupwizardlib/util/PartnerTest.java
ndroid/setupwizardlib/util/WizardManagerHelperTest.java
ndroid/setupwizardlib/view/FillContentLayoutTest.java
ndroid/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
ndroid/setupwizardlib/util/WizardManagerHelperTest.java
|
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
ndroid/setupwizardlib/GlifLayoutTest.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
ndroid/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
ndroid/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
ndroid/setupwizardlib/util/PartnerTest.java
ndroid/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
ndroid/setupwizardlib/util/GlifStyleTest.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
ndroid/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
ndroid/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
ndroid/setupwizardlib/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
ndroid/setupwizardlib/util/WizardManagerHelperTest.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
ndroid/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
ndroid/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)
ndroid/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
ndroid/setupwizardlib/util/PartnerTest.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
ndroid/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)
ndroid/setupwizardlib/items/ItemGroupTest.java
|
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
ndroid/setupwizardlib/items/ItemGroupTest.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
ndroid/setupwizardlib/template/ListViewScrollHandlingDelegateTest.java
ndroid/setupwizardlib/template/RequireScrollMixinTest.java
ndroid/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
ndroid/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
ndroid/setupwizardlib/items/ItemGroupTest.java
|
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
ndroid/setupwizardlib/util/WizardManagerHelperTest.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
ndroid/setupwizardlib/GlifLayoutTest.java
|
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"
|
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
ndroid/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
ndroid/setupwizardlib/items/ButtonItemTest.java
ndroid/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
ndroid/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
ndroid/setupwizardlib/GlifLayoutTest.java
|
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
ndroid/setupwizardlib/util/GlifDimensionTest.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
ndroid/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
ndroid/setupwizardlib/BaseRobolectricTest.java
ndroid/setupwizardlib/robolectric/PatchedGradleManifestFactory.java
ndroid/setupwizardlib/robolectric/SuwLibRobolectricTestRunner.java
ndroid/setupwizardlib/span/LinkSpanTest.java
ndroid/setupwizardlib/util/GlifDimensionTest.java
ndroid/setupwizardlib/util/PartnerTest.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
ndroid/setupwizardlib/BaseRobolectricTest.java
ndroid/setupwizardlib/span/LinkSpanTest.java
ndroid/setupwizardlib/util/PartnerTest.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
ndroid/setupwizardlib/span/LinkSpanTest.java
|