This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "readme": "https://github.com/duckduckgo/privacy-configuration", | |
| "version": 1773658597902, | |
| "features": { | |
| "adAttributionReporting": { | |
| "state": "disabled", | |
| "exceptions": [], | |
| "hash": "c292bb627849854515cebbded288ef5a" | |
| }, | |
| "adBlockExtension": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| asd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MyOtherLeakRunListener: FailTestOnLeakRunListener() { | |
| override fun skipLeakDetectionReason(description: Description): String? { | |
| return if(description.getAnnotation(LeakTest::class.java) != null) | |
| null | |
| else | |
| "Skip Leak test" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class LeakActivity extends Activity { | |
| @Override protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_leak); | |
| View button = findViewById(R.id.button); | |
| button.setOnClickListener(new View.OnClickListener() { | |
| @Override | |
| public void onClick(View v) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| open class ActivityPerfTestRule<T: Activity>(activityClass: Class<T>): | |
| ActivityTestRule<T>(activityClass) { | |
| private var monitor: IMonitor? = null | |
| private var annotation: PerformanceTest? = null | |
| init { | |
| if (API_LEVEL_ACTUAL <= 22) { | |
| error("Not supported by current platform.") | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SixthTest { | |
| private lateinit var device: UiDevice | |
| @get:Rule | |
| var mainActivityActivityTestRule = ActivityPerfTestRule(MainActivity::class.java) | |
| @Before | |
| fun setup() { | |
| device = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SecondTest : JankTestBase() { | |
| private lateinit var device: UiDevice | |
| @Throws(Exception::class) | |
| public override fun setUp() { | |
| super.setUp() | |
| device = UiDevice.getInstance(instrumentation) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SecondTest : JankTestBase() { | |
| @JankTest( | |
| beforeTest = "launchApp", | |
| expectedFrames = EXPECTED_FRAMES, | |
| defaultIterationCount = 1 | |
| ) | |
| @GfxMonitor(processName = PACKAGE_NAME) | |
| fun testSecond() { | |
| for (i in 0 until INNER_LOOP) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .method private final startAsyncWork()V | |
| .registers 3 | |
| .line 20 | |
| new-instance v0, Lcom/marcosholgado/performancetest/KLeakActivity$startAsyncWork$work$1; | |
| invoke-direct {v0, p0}, | |
| Lcom/marcosholgado/performancetest/KLeakActivity$startAsyncWork$work$1; | |
| -><init>(Lcom/marcosholgado/performancetest/KLeakActivity;)V |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class KLeakActivity : Activity() { | |
| private var test: Int = 0 | |
| override fun onCreate(savedInstanceState: Bundle?) { | |
| super.onCreate(savedInstanceState) | |
| setContentView(R.layout.activity_leak) | |
| button.setOnClickListener { startAsyncWork() } | |
| } |
NewerOlder