Add a config for contextual dismissal. This config is used to determine whether the existing dismissal timestamp should be kept before an insertion. The new dismissal behaviour design replaces the boolean value(isDismissed) with a long value(dismissedTimestamp) to give this behaviour more flexibility. Utilizing the timestamp allows developers to define new criteria of card's display (e.g cards being dismissed can be shown again after a period of time). While newly inserted data from SettingsIntelligence or other clients may not have dismissal timestamp recorded. Turning on the config gives the capability to persist dismissal timestamp, and more customized behaviour can be created. Bug: 143055685 Test: robotests Change-Id: I9d095955e9c51f2aa3332d49ee230d3ded9ae744
Running Settings Robolectric tests
The full suite
$ croot
$ make RunSettingsRoboTests
Running a single test class
$ croot
$ make RunSettingsRoboTests ROBOTEST_FILTER=<ClassName>
For example:
make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
You can also use partial class name in ROBOTEST_FILTER. If the partial class name matches multiple file names, all of them will be executed.