Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/AdbAutoPlayer/AdbAutoPlayer
/ functions
Functions
1,693 in github.com/AdbAutoPlayer/AdbAutoPlayer
⨍
Functions
1,693
◇
Types & classes
357
↳
Endpoints
51
↓ 5 callers
Method
convert_menu_item_to_menu_option
Convert MenuItem to MenuOption for GUI IPC.
src-tauri/src-python/adb_auto_player/ipc_util/ipc_model_converter.py:16
↓ 5 callers
Method
extract_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/_backend.py:18
↓ 5 callers
Method
game_find_template_match
Find a single template on the screen. Args: template (str | Path): Path to the template image (relative to templa
src-tauri/src-python/adb_auto_player/game/_template_mixin.py:70
↓ 5 callers
Method
get_bgr_np_array_from_png_bytes
Converts bytes to numpy array. Raises: OSError ValueError
src-tauri/src-python/adb_auto_player/image_manipulation/io.py:68
↓ 5 callers
Method
push_afk_stages
Entry for pushing AFK Stages. Args: season: Push Season Stage if True otherwise push regular AFK Stages
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/afk_stages.py:49
↓ 5 callers
Method
restart_game
(self)
src-tauri/src-python/adb_auto_player/game/_base.py:230
↓ 5 callers
Method
save
()
src/lib/stores.svelte.ts:92
↓ 5 callers
Method
set_resource_dir
Set resource dir. Expects contents to have the structure as the adb_auto_player project dir. ./games/afk_journey/templates/...
src-tauri/src-python/adb_auto_player/file_loader/settings_loader.py:46
↓ 5 callers
Method
settings_dir
Return the settings directory.
src-tauri/src-python/adb_auto_player/file_loader/settings_loader.py:66
↓ 4 callers
Method
__new__
Create or return the singleton instance of SummaryGenerator. Returns: The singleton instance of SummaryGenerator.
src-tauri/src-python/adb_auto_player/util/summary_generator.py:14
↓ 4 callers
Method
_backend
(self)
src-tauri/src-python/tests/ocr/test_qwen2vl_backend.py:26
↓ 4 callers
Function
_batch_shell_commands
(commands: list[str])
src-tauri/src-python/adb_auto_player/device/adb/blue_stacks_virtual_gamepad.py:225
↓ 4 callers
Method
_bot
(self)
src-tauri/src-python/tests/games/afk_journey/mixins/test_guild_member_scan.py:300
↓ 4 callers
Method
_claim_friend_rewards
Claim friend rewards.
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/dailies.py:373
↓ 4 callers
Function
_connect_to_device
(client: AdbClient, device_id: str)
src-tauri/src-python/adb_auto_player/device/adb/adb_client.py:221
↓ 4 callers
Function
_crop_height
Call _parse_rankings_rows with a mock Qwen and return the crop height.
src-tauri/src-python/tests/games/afk_journey/mixins/test_guild_member_scan.py:276
↓ 4 callers
Function
_crop_value_to_pixels
Convert a CropValue to pixels. Args: crop_value: The CropValue to convert dimension: The dimension (width or height) to calculate
src-tauri/src-python/adb_auto_player/image_manipulation/cropping.py:133
↓ 4 callers
Method
_downgrade_misread_paragons
(self, heroes: list)
src-tauri/src-python/adb_auto_player/games/afk_journey/services/hero_scanner.py:382
↓ 4 callers
Method
_execute_tasks
(self, tasks: dict[str, CustomRoutineEntry])
src-tauri/src-python/adb_auto_player/game/_task_mixin.py:73
↓ 4 callers
Method
_expected_height
(self, llm_y_min: int)
src-tauri/src-python/tests/games/afk_journey/mixins/test_guild_member_scan.py:303
↓ 4 callers
Method
_get_battle_over_templates
(self)
src-tauri/src-python/adb_auto_player/games/afk_journey/base.py:551
↓ 4 callers
Method
_get_engine
Lazy-initialize the RapidOCR engine.
src-tauri/src-python/adb_auto_player/ocr/rapidocr_backend.py:52
↓ 4 callers
Method
_handle_stream
Generic stream handler.
src-tauri/src-python/adb_auto_player/device/adb/device_stream.py:191
↓ 4 callers
Method
_hold
(self, x, y, magnitude)
src-tauri/src-python/adb_auto_player/device/adb/blue_stacks_virtual_gamepad.py:58
↓ 4 callers
Method
_hold_hat
(self, axis, value)
src-tauri/src-python/adb_auto_player/device/adb/blue_stacks_virtual_gamepad.py:181
↓ 4 callers
Method
_hold_hat
Hold single D-pad axis.
src-tauri/src-python/adb_auto_player/device/adb/xiaomi_joystick.py:232
↓ 4 callers
Method
_load_tracker
(self, file_path: str)
src-tauri/src-python/adb_auto_player/games/afk_journey/services/hero_scanner.py:429
↓ 4 callers
Function
_make_dist_info
(tmp_path: Path, version: str)
src-tauri/src-python/tests/games/afk_journey/mixins/test_guild_member_scan.py:407
↓ 4 callers
Method
_match_template
( image: cv2.typing.MatLike, templ: cv2.typing.MatLike, method: int, )
src-tauri/src-python/adb_auto_player/template_matching/template_matcher.py:46
↓ 4 callers
Method
_resolve_label_from_settings
( menu_item: MenuItem, game_metadata: GameMetadata, )
src-tauri/src-python/adb_auto_player/ipc_util/ipc_model_converter.py:140
↓ 4 callers
Method
_resolve_locked_heroes
(self, heroes: list, resolved_tier: str)
src-tauri/src-python/adb_auto_player/games/afk_journey/services/hero_scanner.py:398
↓ 4 callers
Method
_resolve_pending_heroes
(self, heroes: list, resolved_tier: str)
src-tauri/src-python/adb_auto_player/games/afk_journey/services/hero_scanner.py:368
↓ 4 callers
Method
_run_dream_realm_scan
Enter Dream Realm, select district rankings, scan configured dates.
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_rankings.py:24
↓ 4 callers
Method
_run_popup_ocr
Run OCR on the preprocessed popup image using the configured engine. Args: preprocess_result: The preprocessed popup screenshot d
src-tauri/src-python/adb_auto_player/games/afk_journey/popup_message_handler.py:318
↓ 4 callers
Method
_scan_visible_date_tabs
Scan visible date tabs, optionally ignoring the current day.
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_rankings.py:89
↓ 4 callers
Method
_swipe_direction
(self, params: _SwipeParams)
src-tauri/src-python/adb_auto_player/game/_input_mixin.py:174
↓ 4 callers
Function
best_match
Find the best matching guild member name using string similarity.
src-tauri/src-python/scripts/test_activeness_ocr.py:286
↓ 4 callers
Method
close
Clean up resources.
src-tauri/src-python/adb_auto_player/ocr/rapidocr_backend.py:58
↓ 4 callers
Method
detect_text_paragraphs
Detect text paragraphs and return results with bounding boxes. Args: image: Input RGB image as numpy array config: Op
src-tauri/src-python/adb_auto_player/ocr/tesseract_backend.py:345
↓ 4 callers
Method
emit
Store log message in memory. Args: record (logging.LogRecord): The log record to store.
src-tauri/src-python/adb_auto_player/__main__.py:164
↓ 4 callers
Method
emit
(self, *args, **kwargs)
src-tauri/src-python/tests/test_e2e_flow.py:18
↓ 4 callers
Function
emitLogMessageEvent
(message: LogMessage)
src/lib/log/log-events.ts:37
↓ 4 callers
Method
find_worst_template_match
Find the area in the base image that is most different from the template. This function creates a difference map between the template and all
src-tauri/src-python/adb_auto_player/template_matching/template_matcher.py:201
↓ 4 callers
Method
format_debug_info
Format debug information string from log record. Args: record (logging.LogRecord): The log record Returns: s
src-tauri/src-python/adb_auto_player/util/traceback_helper.py:78
↓ 4 callers
Method
from_string
Create a Resolution from a width x height string.
src-tauri/src-python/adb_auto_player/models/device/display.py:22
↓ 4 callers
Method
function
Execute the function with the given keyword arguments. Returns: Exception: The exception encountered during execution, if any. Sp
src-tauri/src-python/adb_auto_player/util/execute.py:54
↓ 4 callers
Method
get_backend_info
Get information about the backend. Returns: Backend information dictionary
src-tauri/src-python/adb_auto_player/ocr/tesseract_backend.py:391
↓ 4 callers
Method
get_display_info
Get display resolution and orientation. Raises: GenericAdbUnrecoverableError: Unable to determine screen resolution or
src-tauri/src-python/adb_auto_player/device/adb/adb_controller.py:36
↓ 4 callers
Method
get_filename_without_extension
Extracts filename without extension from path. Args: filename_with_path: Filename with path. Returns: Filena
src-tauri/src-python/adb_auto_player/util/string_helper.py:14
↓ 4 callers
Method
get_latest_frame
Get the most recent frame from the stream.
src-tauri/src-python/adb_auto_player/device/adb/device_stream.py:186
↓ 4 callers
Method
get_running_app
Get the currently running app. Returns: str | None: Currently running app name, or None if unable to determine.
src-tauri/src-python/adb_auto_player/device/adb/adb_controller.py:75
↓ 4 callers
Method
hold_release
Release touch at the given coordinates.
src-tauri/src-python/adb_auto_player/device/adb/adb_controller.py:192
↓ 4 callers
Function
internal_show_window
(app: &AppHandle)
src-tauri/src/window.rs:11
↓ 4 callers
Method
is_game_running
(self)
src-tauri/src-python/adb_auto_player/game/_base.py:224
↓ 4 callers
Method
navigate_to_battle_modes_screen
(self)
src-tauri/src-python/adb_auto_player/games/afk_journey/navigation.py:333
↓ 4 callers
Method
navigate_to_current_overview
(self)
src-tauri/src-python/adb_auto_player/games/afk_journey/navigation.py:49
↓ 4 callers
Method
open_eyes
Prepare the bot for operation. Validates device resolution, starts the stream (if requested), and ensures the game is running.
src-tauri/src-python/adb_auto_player/game/_lifecycle_mixin.py:15
↓ 4 callers
Method
read
Read chunks of video data.
src-tauri/src-python/tests/test_device_stream.py:24
↓ 4 callers
Method
release
(self, force=False)
src-tauri/src-python/adb_auto_player/device/adb/blue_stacks_virtual_gamepad.py:67
↓ 4 callers
Method
release
(self, force=True)
src-tauri/src-python/adb_auto_player/device/adb/blue_stacks_virtual_gamepad.py:127
↓ 4 callers
Method
release
Release any held direction on both axes.
src-tauri/src-python/adb_auto_player/device/adb/xiaomi_joystick.py:207
↓ 4 callers
Method
start_stream
(self)
src-tauri/src-python/adb_auto_player/game/_base.py:115
↓ 4 callers
Function
synthetic_image
(shape=(10, 10, 3))
src-tauri/src-python/tests/image_manipulation/io/test_io_load_image.py:9
↓ 4 callers
Method
tap
( self, coordinates: Coordinates, scale: bool = False, blocking: bool = True,
src-tauri/src-python/adb_auto_player/game/_base.py:97
↓ 4 callers
Method
to_bgr
Convert an RGB image to BGR format. Args: image (np.ndarray): Input image in RGB color format. Returns: np.n
src-tauri/src-python/adb_auto_player/image_manipulation/color.py:102
↓ 4 callers
Method
to_template_match_result
Generate a TemplateMatchResult.
src-tauri/src-python/adb_auto_player/models/template_matching/match_result.py:31
↓ 3 callers
Method
_batch
(self, cmds: list[str])
src-tauri/src-python/adb_auto_player/device/adb/blue_stacks_virtual_touch.py:87
↓ 3 callers
Method
_batch
(self, cmds: list[str])
src-tauri/src-python/adb_auto_player/device/adb/blue_stacks_at_translated_set_2_keyboard.py:75
↓ 3 callers
Method
_battle
Battle Arena opponent. Returns: bool: True if battle completed, False otherwise.
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/arena.py:128
↓ 3 callers
Method
_check_stamina_with_dimensions
Check stamina with specific crop dimensions. Args: hero_position: The template match result for the hero stamina_area
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/frostfire_showdown.py:237
↓ 3 callers
Method
_choose_opponent
Choose Arena opponent. Returns: bool: True if opponent chosen, False otherwise.
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/arena.py:98
↓ 3 callers
Method
_detect_difficulty
Detect the active difficulty level. Returns: Tuple of (difficulty_name, max_stamina, max_retries)
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/frostfire_showdown.py:30
↓ 3 callers
Method
_detect_text_grouping
( self, image: np.ndarray, config: TesseractConfig | None = None, min_confiden
src-tauri/src-python/adb_auto_player/ocr/tesseract_backend.py:235
↓ 3 callers
Method
_extras_dir
Return the directory used for runtime-installed optional packages.
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_setup.py:142
↓ 3 callers
Method
_find_any_excluded_hero
Find excluded hero templates. Args: excluded_heroes (dict[str, str]): Dictionary of excluded heroes. Returns:
src-tauri/src-python/adb_auto_player/games/afk_journey/base.py:458
↓ 3 callers
Method
_find_best_member_match
Find the closest guild member match and returns (best_match, ratio).
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_names.py:309
↓ 3 callers
Method
_find_in_battle_modes
( self, template: str, timeout_message: str )
src-tauri/src-python/adb_auto_player/games/afk_journey/navigation.py:384
↓ 3 callers
Method
_find_in_battle_modes
(self, *args, **kwargs)
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_setup.py:48
↓ 3 callers
Method
_find_quest_images
Find and click images relating to quests.
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/quests.py:169
↓ 3 callers
Function
_fuzzy_seen
(name: str, seen: set[str])
src-tauri/src-python/scripts/test_activeness_ocr.py:783
↓ 3 callers
Method
_get_menu_options_from_commands
Get menu options from commands in a specific module.
src-tauri/src-python/adb_auto_player/ipc_util/ipc_model_converter.py:109
↓ 3 callers
Method
_get_overview_navigation_templates
()
src-tauri/src-python/adb_auto_player/games/afk_journey/navigation.py:82
↓ 3 callers
Method
_get_supported_languages
Get list of supported languages. Returns: List of supported language codes
src-tauri/src-python/adb_auto_player/ocr/tesseract_backend.py:409
↓ 3 callers
Method
_handle_battle_screen
Handles logic for battle screen. Args: use_suggested_formations: if True copy formations from Records Returns:
src-tauri/src-python/adb_auto_player/games/afk_journey/base.py:123
↓ 3 callers
Function
_hf_mock
Return a minimal huggingface_hub module mock. Args: config_result: value returned for the config.json cache check. weights_result
src-tauri/src-python/tests/ocr/test_qwen2vl_backend.py:13
↓ 3 callers
Function
_is_dev
()
src-tauri/src-python/adb_auto_player/util/dev_helper.py:9
↓ 3 callers
Method
_load_image
( self, template: str | Path, grayscale: bool = False, )
src-tauri/src-python/adb_auto_player/game/_template_mixin.py:462
↓ 3 callers
Method
_navigate_menu_chain
Navigate through a sequence of menus by tapping each template until gone. Replaces repeated blocks of:: self._tap_till_template_
src-tauri/src-python/adb_auto_player/games/afk_journey/base.py:891
↓ 3 callers
Method
_navigate_to_guild_members_screen
Navigate to the Guild Members list screen. 1. Tap the 'Guild' tab in the bottom navigation bar (detected by OCR). 2. Wait for the gui
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_activeness.py:62
↓ 3 callers
Method
_navigate_to_overview
(self, destination: Overview = Overview.WORLD)
src-tauri/src-python/adb_auto_player/games/afk_journey/navigation.py:52
↓ 3 callers
Method
_parse_rankings_rows
( self, screenshot, ocr_backend: OCRBackend, fallback: OCRBackend | None = Non
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_rankings.py:408
↓ 3 callers
Method
_pick_canonical_name
Return best name from OCR observations: most frequent fuzzy cluster wins.
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_names.py:108
↓ 3 callers
Method
_quick_claim
(self)
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/dailies.py:477
↓ 3 callers
Method
_recover_supplement_names_qwen
Crop each bbox row whose name isn't in guild_set and ask Qwen. Handles members whose name the game font renders as Latin lookalikes (
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_rankings.py:594
↓ 3 callers
Method
_save_debug_screenshot
(self, screenshot, name: str)
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_setup.py:398
↓ 3 callers
Method
_save_ocr_debug
Write raw OCR frames to ocr_debug.json for troubleshooting.
src-tauri/src-python/adb_auto_player/games/afk_journey/mixins/_guild_scan_setup.py:407
↓ 3 callers
Method
_tap_coordinates_till_template_disappears
( self, coordinates: Coordinates, template: str, threshold: ConfidenceValue |
src-tauri/src-python/adb_auto_player/game/_base.py:207
↓ 3 callers
Function
_validate_pixel_value
(value: int, original: str | int | float)
src-tauri/src-python/adb_auto_player/models/image_manipulation/crop_value.py:92
↓ 3 callers
Method
close_fish_catch_popup
(self)
src-tauri/src-python/adb_auto_player/games/afk_journey/minigames/fishing.py:89
↓ 3 callers
Method
create_test_png_bytes
Creates a 1x1 black PNG image and returns its byte representation.
src-tauri/src-python/tests/image_manipulation/io/test_io_get_bgr_np_array_from_png_bytes.py:9
← previous
next →
101–200 of 1,693, ranked by callers