Repository navigation
feat: optimize node matching with clickable ancestor bubbling and composite split-text recognition - #116
Merged
Conversation
…posite split-text recognition
- Implement findClickableAncestor: traverse up to 5 levels to locate an enclosing clickable container when the target text node is unclickable, avoiding slow gesture fallbacks (instant ACTION_CLICK <10ms vs ~350ms gesture).
- Support composite split text: recognize button containers where text is split across sibling/child nodes (e.g. TextView('跳') + TextView('过')).
- Support separated text keywords: normalize whitespace, newlines, and punctuation like '跳 过', '跳\n过', '跳·过', and '[跳过]'.
- Add unit tests in SkipAdRulesTest and TouchHelperServiceImplTest verifying bubbling, composite matching, and zero node leaks.
…gression runner - Add docs/verified_ad_apps.md recording 11 verified splash ad apps and their trigger modes. - Add scripts/benchmark_apps.json with structured app configurations. - Add scripts/run_ad_benchmark.py for one-command automated splash ad regression testing on real devices.
- Add scripts/test_mainstream_apps.py covering 16 consumer apps across social, video, e-commerce, and utility domains. - Add scripts/test_bank_apps.py covering 12 banking and financial apps for compatibility and splash ad skip testing. - Add scripts/README.md with usage documentation and environment prerequisites.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements Quick Wins node matching optimizations inspired by GKD:
findClickableAncestor): Traverses up to 5 parent levels when a matched text node is not clickable, invokingperformAction(ACTION_CLICK)on the clickable container. This reduces response time from ~350ms (gesture fallback) to <10ms (instant click).跳 过,跳\n过,[跳过],跳·过, etc.SkipAdRulesTestandTouchHelperServiceImplTestverifying ancestor bubbling, composite matching, and strict zero-leak node recycling.