MCPcopy Index your code

hub / github.com/AdbAutoPlayer/AdbAutoPlayer / functions

Functions1,693 in github.com/AdbAutoPlayer/AdbAutoPlayer

↓ 379 callersMethodinfo
Serialno (real serial number), devpath, state.
src-tauri/src-python/adb_auto_player/device/adb/adb_device.py:145
↓ 324 callersMethodtap
(self, *args, **kwargs)
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/dream_realm.py:25
↓ 98 callersMethodgame_find_template_match
(self, *args, **kwargs)
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/dream_realm.py:26
↓ 74 callersFunction_make_scanner
Return a HeroScanner whose game reference is fully mocked.
src-tauri/src-python/tests/games/afk_journey/services/test_hero_scanner.py:26
↓ 69 callersMethodwait_for_template
(self, *args, **kwargs)
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/dream_realm.py:29
↓ 66 callersMethodsleep_navigation
(self)
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_setup.py:49
↓ 58 callersMethodwait_for_any_template
( self, templates: list[str], threshold: ConfidenceValue | None = None, graysc
src-tauri/src-python/adb_auto_player/game/_base.py:170
↓ 49 callersMethodfind_any_template
( self, templates: list[str], match_mode: MatchMode = MatchMode.BEST, threshol
src-tauri/src-python/adb_auto_player/game/_base.py:147
↓ 42 callersMethodload_image
Loads an image from disk or returns the cached version if available. Resizes the image if needed and stores it in the global template_cache.
src-tauri/src-python/adb_auto_player/image_manipulation/io.py:21
↓ 38 callersFunction_make_hero
(name: str, ascension: str)
src-tauri/src-python/tests/games/afk_journey/services/test_hero_scanner.py:396
↓ 34 callersMethodget_screenshot
(self)
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_setup.py:42
↓ 33 callersMethodpress_back_button
(self)
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/dream_realm.py:30
↓ 31 callersMethodcrop
Crop an image based on the specified crop regions. Args: image: The input image to be cropped as a numpy array crop_r
src-tauri/src-python/adb_auto_player/image_manipulation/cropping.py:12
↓ 30 callersMethodsleep_action
(self, *args, **kwargs)
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_setup.py:44
↓ 24 callersMethoddetect_text_blocks
Detect text blocks and return results with bounding boxes. Args: image: Input image as numpy array. min_confidence: M
src-tauri/src-python/adb_auto_player/ocr/_backend.py:30
↓ 23 callersMethodshell
Shell with retry.
src-tauri/src-python/adb_auto_player/device/adb/adb_device.py:32
↓ 21 callersMethodstart_up
(self, device_streaming: bool = True)
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/dream_realm.py:24
↓ 18 callersMethodcreate_solid_color_image
Create a solid color image.
src-tauri/src-python/tests/template_matching/test_image_creator.py:8
↓ 17 callersMethod_tap_till_template_disappears
( self, template: str, threshold: ConfidenceValue | None = None, grayscale: bo
src-tauri/src-python/adb_auto_player/game/_base.py:195
↓ 16 callersMethodcreate_test_image
Create a synthetic test image with distinguishable patterns. Args: width: Image width height: Image height
src-tauri/src-python/tests/image_manipulation/test_cropping.py:12
↓ 16 callersMethodstart
Start the screen streaming thread.
src-tauri/src-python/adb_auto_player/device/adb/device_stream.py:130
↓ 15 callersMethod_ocr_text_rapid
Run RapidOCR on an image and return the extracted text. Args: image: Image to process. crop: Unused — kept for signat
src-tauri/src-python/adb_auto_player/games/afk_journey/services/hero_scanner.py:1074
↓ 15 callersMethod_try_wait_and_tap
(self, *args, **kwargs)
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/dream_realm.py:27
↓ 14 callersMethodfind_template_match
Find a template image within a base image with different matching modes. Args: base_image: The image to search in tem
src-tauri/src-python/adb_auto_player/template_matching/template_matcher.py:67
↓ 14 callersMethodincrement
Increment the count for a specific item within a section. Args: section_header: The header under which the item belongs
src-tauri/src-python/adb_auto_player/util/summary_generator.py:33
↓ 13 callersMethodcontains
Check if a point is contained within the box. Args: coordinates: The point to check Returns: bool: True if t
src-tauri/src-python/adb_auto_player/models/geometry/box.py:131
↓ 13 callersMethodto_int_if_needed
Convert value to int if needed.
src-tauri/src-python/adb_auto_player/util/type_helper.py:12
↓ 13 callersMethodwith_offset
Return a new Box with coordinates offset. Args: offset: Coordinates representing the offset to add to the box coordinates
src-tauri/src-python/adb_auto_player/models/geometry/box.py:159
↓ 12 callersMethod_handle_overview_navigation
( self, overview: Overview = Overview.WORLD )
src-tauri/src-python/adb_auto_player/games/afk_journey/navigation.py:104
↓ 12 callersMethoddetect_text_blocks
Detect text blocks and return results with bounding boxes. Compatible with TesseractBackend.detect_text_blocks interface. Args:
src-tauri/src-python/adb_auto_player/ocr/rapidocr_backend.py:93
↓ 12 callersMethodhold
Hold a point on the screen. Args: coordinates (Coordinates): Point on the screen. duration (float, optional): Hold du
src-tauri/src-python/adb_auto_player/game/_input_mixin.py:211
↓ 11 callersMethod_parse_ex_level
( self, raw_text: str, current_ascension: str, hero_name: str = "Unknown" )
src-tauri/src-python/adb_auto_player/games/afk_journey/services/hero_scanner.py:999
↓ 11 callersMethodcrop_to_box
Crop an image to the specified box region. Args: image: The input image to be cropped as a numpy array box: Box objec
src-tauri/src-python/adb_auto_player/image_manipulation/cropping.py:84
↓ 11 callersMethodget_game_module
Derives the game-specific module from a module path string.
src-tauri/src-python/adb_auto_player/util/string_helper.py:28
↓ 11 callersMethodnavigate_to_world
(self)
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/dream_realm.py:28
↓ 11 callersMethodsanitize_path
Replaces the username in file paths with %USERPROFILE% or ~. Works with both Windows and Unix-style paths.
src-tauri/src-python/adb_auto_player/util/string_helper.py:90
↓ 11 callersMethodto_grayscale
Convert a color image (BGR or RGB) to grayscale. If the input image is already grayscale, it returns the image unchanged. Args:
src-tauri/src-python/adb_auto_player/image_manipulation/color.py:47
↓ 10 callersMethod_apply_bbox_rank_corrections
Correct Qwen rank misreads and strip podium hallucinations. Strategy 1: bbox found the same name at a different rank → trust bbox. St
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_rankings.py:532
↓ 10 callersMethod_match_ascension
(self, raw_text: str)
src-tauri/src-python/adb_auto_player/games/afk_journey/services/hero_scanner.py:954
↓ 10 callersMethod_match_hero_name
(self, raw_input: str | list[str])
src-tauri/src-python/adb_auto_player/games/afk_journey/services/hero_scanner.py:919
↓ 10 callersMethod_prepare_hero_matching_data
( self, raw_input: str | list[str] )
src-tauri/src-python/adb_auto_player/games/afk_journey/services/hero_scanner.py:798
↓ 10 callersMethodadb_settings
Locate and load the general settings AdbAutoPlayer.toml file.
src-tauri/src-python/adb_auto_player/file_loader/settings_loader.py:72
↓ 10 callersMethodcreate_log_message
Create a new LogMessage from a log record.
src-tauri/src-python/adb_auto_player/util/log_message_factory.py:24
↓ 10 callersMethodfind_all_template_matches
Find all non-overlapping occurrences of a template. Args: template (str | Path): Path to template image. threshold (C
src-tauri/src-python/adb_auto_player/game/_template_mixin.py:146
↓ 10 callersMethodfuzzy_substring_match
Check if pattern exists as a fuzzy substring in text. Args: text: The text to search in (OCR result) pattern: The pat
src-tauri/src-python/adb_auto_player/util/string_helper.py:51
↓ 10 callersMethodget_app_config_dir
Get App Config Dir.
src-tauri/src-python/adb_auto_player/file_loader/settings_loader.py:25
↓ 10 callersMethodrandom_point
Generate a random point inside the box, avoiding a margin near the edges. If there isn't enough room on one axis, returns center coordinate o
src-tauri/src-python/adb_auto_player/models/geometry/box.py:92
↓ 10 callersMethodrelease
(self)
src-tauri/src-python/adb_auto_player/games/blue_protocol_star_resonance/fishing.py:301
↓ 10 callersMethodset
Set a value for a specific item within a section. Args: section_header: The header under which the item belongs item:
src-tauri/src-python/adb_auto_player/util/summary_generator.py:60
↓ 10 callersMethodsimilar_image
Compares the similarity between two images. Args: base_image: The reference image. template_image: The image to compa
src-tauri/src-python/adb_auto_player/template_matching/template_matcher.py:17
↓ 9 callersMethod_bot
(self)
src-tauri/src-python/tests/games/afk_journey/mixins/test_guild_member_scan.py:124
↓ 9 callersMethod_click_confirm_on_popup
Confirm popups. Returns: bool: True if confirmed, False if not.
src-tauri/src-python/adb_auto_player/games/afk_journey/base.py:531
↓ 9 callersMethod_handle_task_error
(self, task: str, error: Exception | None)
src-tauri/src-python/adb_auto_player/game/_task_mixin.py:88
↓ 9 callersMethodfind_command_and_execute
Helper that iterates through the command list to execute the correct one.
src-tauri/src-python/adb_auto_player/util/execute.py:270
↓ 9 callersMethodhandle_popup_messages
Handles multiple popups.
src-tauri/src-python/adb_auto_player/games/afk_journey/popup_message_handler.py:207
↓ 9 callersMethodsendevent
ADB sendevent.
src-tauri/src-python/adb_auto_player/device/adb/adb_input_device.py:30
↓ 9 callersMethodstop
Stop the screen streaming thread.
src-tauri/src-python/adb_auto_player/device/adb/device_stream.py:167
↓ 8 callersMethod_canonicalize_observations
Group by rank, pick best name per player via frequency consensus.
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_names.py:17
↓ 8 callersMethod_compute_locked_tier
Determine the ascension tier for unresolved heroes from confirmed counts. Walks the unlock chain (S+→P1→P2→P3→P4) and returns the highest tie
src-tauri/src-python/adb_auto_player/games/afk_journey/services/hero_scanner.py:345
↓ 8 callersMethod_handle_legend_trials_battle
(self)
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/legend_trial.py:96
↓ 8 callersMethod_hold_stick
( self, x_val: int, y_val: int, magnitude: float, )
src-tauri/src-python/adb_auto_player/device/adb/xiaomi_joystick.py:82
↓ 8 callersMethodclose_popups
(self)
src-tauri/src-python/adb_auto_player/games/blue_protocol_star_resonance/blue_protocol_star_resonance.py:33
↓ 8 callersMethoddetect_text_lines
Detect text lines and return results with bounding boxes. Args: image: Input RGB image as numpy array config: Optiona
src-tauri/src-python/adb_auto_player/ocr/tesseract_backend.py:368
↓ 8 callersMethodev_syn
EV_SYN.
src-tauri/src-python/adb_auto_player/device/adb/adb_input_device.py:36
↓ 8 callersMethodrelease
(self, force: bool = False)
src-tauri/src-python/adb_auto_player/device/adb/xiaomi_joystick.py:77
↓ 8 callersMethodswipe_up
(self, *args, **kwargs)
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_setup.py:43
↓ 8 callersMethodwait_for_roi_change
( self, start_image: np.ndarray, threshold: ConfidenceValue | None = None, gra
src-tauri/src-python/adb_auto_player/game/_base.py:183
↓ 7 callersMethod_bot
(self)
src-tauri/src-python/tests/games/afk_journey/mixins/test_guild_member_scan.py:33
↓ 7 callersMethod_clean_member_name
Clean a name by removing suffix codes and noise words.
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_names.py:192
↓ 7 callersMethod_init_model
(self)
src-tauri/src-python/adb_auto_player/ocr/qwen2vl_backend.py:134
↓ 7 callersFunction_prepare_images_for_processing
Validates inputs and prepares images for template matching. Args: base_image (np.ndarray): The base image. template_image (np.nda
src-tauri/src-python/adb_auto_player/template_matching/template_matcher.py:291
↓ 7 callersMethoddetect_text
Detect text and return results with bounding boxes. Args: image: Input RGB image as numpy array config: Optional Tess
src-tauri/src-python/adb_auto_player/ocr/tesseract_backend.py:159
↓ 7 callersMethodextract_source_info
Extract source information from a log record, with traceback override. This function safely extracts source information, falling back to log
src-tauri/src-python/adb_auto_player/util/traceback_helper.py:26
↓ 7 callersMethodextract_text
Extract all text from an image as a single string. Args: image: Input image as numpy array (BGR or grayscale) Returns:
src-tauri/src-python/adb_auto_player/ocr/rapidocr_backend.py:62
↓ 7 callersMethodfrom_toml
Create a TomlSettings instance from a TOML file. Args: file_path (Path): Path to the TOML file. Returns: An
src-tauri/src-python/adb_auto_player/models/pydantic/toml_settings.py:13
↓ 7 callersMethodget_input_event_codes
Input event codes. https://raw.githubusercontent.com/torvalds/linux/master/include/uapi/linux/input-event-codes.h
src-tauri/src-python/adb_auto_player/device/adb/adb_input_device.py:41
↓ 7 callersMethodsnake_to_pascal
snake_case to PascalCase.
src-tauri/src-python/tests/utils/string_helper/test_snake_to_pascal.py:24
↓ 7 callersMethodswipe
Swipe from sx, sy to ex, ey over duration ms. Args: sx: start X-coordinate. sy: start Y-coordinate. ex: e
src-tauri/src-python/adb_auto_player/device/adb/adb_device.py:93
↓ 6 callersMethod_download_model_if_needed
Download model weights from HuggingFace with heartbeat progress logging. Checks the local HuggingFace cache first; if both ``config.json`` an
src-tauri/src-python/adb_auto_player/ocr/qwen2vl_backend.py:71
↓ 6 callersMethod_get_settings_for_mode
Retrieve Settings based on the current game mode. Args: attribute (str): The name of the Settings attribute to retrieve.
src-tauri/src-python/adb_auto_player/games/afk_journey/base.py:93
↓ 6 callersMethod_match_independent_strategies
( self, readings: list[str], hero_meta: list[dict], all_ocr_tokens: list[str] )
src-tauri/src-python/adb_auto_player/games/afk_journey/services/hero_scanner.py:830
↓ 6 callersMethod_match_synonym_strategies
( self, raw_text: str, text_clean: str, all_ocr_tokens: list[str] )
src-tauri/src-python/adb_auto_player/games/afk_journey/services/hero_scanner.py:866
↓ 6 callersMethod_select_a_crest
Crest selection.
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/arcane_labyrinth.py:181
↓ 6 callersMethod_torch_metadata
Return (has_cuda, (major, minor)) from torch dist-info METADATA. Reads the text file only — no .pyd loading, so the file stays unlocked
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_setup.py:278
↓ 6 callersMethodget_adb_client
Return AdbClient instance.
src-tauri/src-python/adb_auto_player/device/adb/adb_client.py:27
↓ 6 callersMethodget_screenshot
(self)
src-tauri/src-python/adb_auto_player/game/_base.py:112
↓ 6 callersMethodget_templates_from_dir
List all files inside a template subdirectory. Returns: Relative paths such as 'power_saving_mode/1.png'.
src-tauri/src-python/adb_auto_player/game/_template_mixin.py:567
↓ 6 callersMethodpush_legend_trials
Push Legend Trials.
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/legend_trial.py:35
↓ 6 callersMethodresolve_locked_paragons
Resolve heroes marked as 'Paragon Locked' or 'Pending S+/P4'. Args: full_data: Full tracker JSON data to update in-place.
src-tauri/src-python/adb_auto_player/games/afk_journey/services/hero_scanner.py:292
↓ 6 callersMethodset_app_config_dir
Set App Config Dir.
src-tauri/src-python/adb_auto_player/file_loader/settings_loader.py:33
↓ 5 callersFunction_cache_clear
Clear cache for a specific group.
src-tauri/src-python/adb_auto_player/__main__.py:352
↓ 5 callersMethod_execute_or_timeout
Poll *operation* until it succeeds or *timeout* elapses. Args: operation: Callable that returns a value on success or raises
src-tauri/src-python/adb_auto_player/game/_template_mixin.py:36
↓ 5 callersMethod_find_fuzzy_match
Return the matched seen name if similar to `name`, else None.
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_names.py:156
↓ 5 callersMethod_full_data
(self, heroes: list[dict])
src-tauri/src-python/tests/games/afk_journey/services/test_hero_scanner.py:401
↓ 5 callersMethod_match_fuzzy_fallback_strategies
(self, text_clean: str)
src-tauri/src-python/adb_auto_player/games/afk_journey/services/hero_scanner.py:895
↓ 5 callersMethod_prepare_image
Crop and resize screenshot to MAX_IMAGE_WIDTH_CAP; return PIL Image.
src-tauri/src-python/adb_auto_player/ocr/qwen2vl_backend.py:316
↓ 5 callersMethod_run_all_squads
Iterate through all 4 squad tabs and run battle attempts.
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/ravaged_realm.py:284
↓ 5 callersMethod_run_qwen_inference
Run Qwen2-VL inference on the given messages and return raw text output.
src-tauri/src-python/adb_auto_player/ocr/qwen2vl_backend.py:262
↓ 5 callersFunction_suppress_close_matches
Suppresses closely spaced matches to return distinct results. Uses a simple clustering method based on minimum distance.
src-tauri/src-python/adb_auto_player/template_matching/template_matcher.py:246
↓ 5 callersFunction_validate_template_size
Validate that the template image is smaller than the base image. Args: base_image: The base Image as ndarray template_image: The
src-tauri/src-python/adb_auto_player/template_matching/template_matcher.py:268
next →1–100 of 1,693, ranked by callers