2025-10-30 18:12:56 +01:00
|
|
|
# Core framework
|
2025-10-30 11:42:42 +01:00
|
|
|
from .app.app import App
|
|
|
|
|
from .app.activity import Activity
|
|
|
|
|
from .content.intent import Intent
|
2025-11-01 08:12:20 +01:00
|
|
|
from .activity_navigator import ActivityNavigator
|
2026-01-23 15:31:47 +01:00
|
|
|
|
2026-01-25 00:19:38 +01:00
|
|
|
from .content.app_manager import AppManager
|
2026-01-23 15:31:47 +01:00
|
|
|
from .config import SharedPreferences
|
|
|
|
|
from .net.connectivity_manager import ConnectivityManager
|
|
|
|
|
from .net.wifi_service import WifiService
|
2026-01-26 13:13:54 +01:00
|
|
|
from .audio.audiomanager import AudioManager
|
2026-01-23 15:31:47 +01:00
|
|
|
from .net.download_manager import DownloadManager
|
2025-12-11 12:43:00 +01:00
|
|
|
from .task_manager import TaskManager
|
2026-01-23 15:31:47 +01:00
|
|
|
from .camera_manager import CameraManager
|
|
|
|
|
from .sensor_manager import SensorManager
|
2026-01-24 19:31:54 +01:00
|
|
|
from .time_zone import TimeZone
|
2026-01-24 23:32:10 +01:00
|
|
|
from .device_info import DeviceInfo
|
|
|
|
|
from .build_info import BuildInfo
|
2025-10-30 11:42:42 +01:00
|
|
|
|
2026-01-25 23:22:53 +01:00
|
|
|
# Battery manager (imported early for UI dependencies)
|
|
|
|
|
from .battery_manager import BatteryManager
|
2026-03-17 19:30:34 +01:00
|
|
|
from .webserver.webserver import WebServer
|
2026-01-25 23:22:53 +01:00
|
|
|
|
2026-01-13 00:38:17 +01:00
|
|
|
# Common activities
|
2025-10-30 11:42:42 +01:00
|
|
|
from .app.activities.chooser import ChooserActivity
|
|
|
|
|
from .app.activities.view import ViewActivity
|
|
|
|
|
from .app.activities.share import ShareActivity
|
2025-10-30 11:59:53 +01:00
|
|
|
|
2026-01-10 08:45:45 +01:00
|
|
|
from .ui.setting_activity import SettingActivity
|
2026-01-12 10:52:39 +01:00
|
|
|
from .ui.settings_activity import SettingsActivity
|
2026-01-12 23:07:15 +01:00
|
|
|
from .ui.camera_activity import CameraActivity
|
2026-01-13 00:38:17 +01:00
|
|
|
from .ui.keyboard import MposKeyboard
|
|
|
|
|
from .ui.testing import (
|
2026-01-13 01:02:03 +01:00
|
|
|
wait_for_render, capture_screenshot, simulate_click, get_widget_coords,
|
|
|
|
|
find_label_with_text, verify_text_present, print_screen_labels, find_text_on_screen,
|
|
|
|
|
click_button, click_label, click_keyboard_button, find_button_with_text,
|
2026-03-25 14:23:53 +01:00
|
|
|
get_all_widgets_with_text, find_setting_value_label, get_setting_value_text,
|
|
|
|
|
verify_setting_value_text, find_dropdown_widget, get_dropdown_options,
|
|
|
|
|
find_dropdown_option_index, select_dropdown_option_by_text
|
2026-01-13 00:38:17 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# UI utility functions
|
2026-01-23 20:46:36 +01:00
|
|
|
from .ui.display_metrics import DisplayMetrics
|
2026-01-25 21:17:20 +01:00
|
|
|
from .ui.input_manager import InputManager
|
2026-01-23 22:26:01 +01:00
|
|
|
from .ui.appearance_manager import AppearanceManager
|
2026-01-13 00:38:17 +01:00
|
|
|
from .ui.event import get_event_name, print_event
|
|
|
|
|
from .ui.view import setContentView, back_screen
|
2026-01-23 22:26:01 +01:00
|
|
|
from .ui.topmenu import open_bar, close_bar, open_drawer, drawer_open
|
2026-01-13 00:38:17 +01:00
|
|
|
from .ui.focus import save_and_clear_current_focusgroup
|
|
|
|
|
from .ui.gesture_navigation import handle_back_swipe, handle_top_swipe
|
|
|
|
|
from .ui.util import shutdown, set_foreground_app, get_foreground_app
|
2026-01-23 21:37:53 +01:00
|
|
|
from .ui.widget_animator import WidgetAnimator
|
2026-01-13 00:38:17 +01:00
|
|
|
from .ui import focus_direction
|
|
|
|
|
|
|
|
|
|
# Utility modules
|
|
|
|
|
from . import ui
|
|
|
|
|
from . import config
|
|
|
|
|
from . import net
|
|
|
|
|
from . import content
|
|
|
|
|
from . import time
|
|
|
|
|
from . import sensor_manager
|
2026-01-14 19:16:19 +01:00
|
|
|
from . import camera_manager
|
2026-01-13 00:38:17 +01:00
|
|
|
from . import sdcard
|
|
|
|
|
from . import audio
|
|
|
|
|
from . import hardware
|
|
|
|
|
|
2025-10-30 18:12:56 +01:00
|
|
|
__all__ = [
|
2026-01-13 00:38:17 +01:00
|
|
|
# Core framework
|
2026-01-10 19:35:55 +01:00
|
|
|
"App",
|
|
|
|
|
"Activity",
|
|
|
|
|
"SharedPreferences",
|
2026-01-26 13:13:54 +01:00
|
|
|
"ConnectivityManager", "DownloadManager", "WifiService", "AudioManager", "Intent",
|
2026-03-17 19:30:34 +01:00
|
|
|
"ActivityNavigator", "AppManager", "TaskManager", "CameraManager", "BatteryManager", "WebServer",
|
2026-01-24 23:32:10 +01:00
|
|
|
# Device and build info
|
|
|
|
|
"DeviceInfo", "BuildInfo",
|
2026-01-13 00:38:17 +01:00
|
|
|
# Common activities
|
2026-01-10 08:45:45 +01:00
|
|
|
"ChooserActivity", "ViewActivity", "ShareActivity",
|
2026-01-13 00:38:17 +01:00
|
|
|
"SettingActivity", "SettingsActivity", "CameraActivity",
|
|
|
|
|
# UI components
|
|
|
|
|
"MposKeyboard",
|
2026-01-25 21:17:20 +01:00
|
|
|
# UI utility - DisplayMetrics, InputManager and AppearanceManager
|
2026-01-23 20:46:36 +01:00
|
|
|
"DisplayMetrics",
|
2026-01-25 21:17:20 +01:00
|
|
|
"InputManager",
|
2026-01-23 22:26:01 +01:00
|
|
|
"AppearanceManager",
|
2026-01-13 00:38:17 +01:00
|
|
|
"get_event_name", "print_event",
|
|
|
|
|
"setContentView", "back_screen",
|
2026-01-23 22:26:01 +01:00
|
|
|
"open_bar", "close_bar", "open_drawer", "drawer_open",
|
2026-01-13 00:38:17 +01:00
|
|
|
"save_and_clear_current_focusgroup",
|
|
|
|
|
"handle_back_swipe", "handle_top_swipe",
|
|
|
|
|
"shutdown", "set_foreground_app", "get_foreground_app",
|
2026-01-23 21:37:53 +01:00
|
|
|
"WidgetAnimator",
|
2026-01-13 00:38:17 +01:00
|
|
|
"focus_direction",
|
|
|
|
|
# Testing utilities
|
2026-01-13 01:02:03 +01:00
|
|
|
"wait_for_render", "capture_screenshot", "simulate_click", "get_widget_coords",
|
|
|
|
|
"find_label_with_text", "verify_text_present", "print_screen_labels", "find_text_on_screen",
|
|
|
|
|
"click_button", "click_label", "click_keyboard_button", "find_button_with_text",
|
2026-03-25 14:23:53 +01:00
|
|
|
"get_all_widgets_with_text", "find_setting_value_label", "get_setting_value_text",
|
|
|
|
|
"verify_setting_value_text", "find_dropdown_widget", "get_dropdown_options",
|
|
|
|
|
"find_dropdown_option_index", "select_dropdown_option_by_text",
|
2026-01-13 00:38:17 +01:00
|
|
|
# Submodules
|
2026-01-25 00:08:01 +01:00
|
|
|
"ui", "config", "net", "content", "time", "sensor_manager",
|
2026-01-25 23:37:39 +01:00
|
|
|
"camera_manager", "sdcard", "audio", "hardware",
|
2026-01-24 19:31:54 +01:00
|
|
|
# Timezone utilities
|
|
|
|
|
"TimeZone"
|
2025-10-30 18:12:56 +01:00
|
|
|
]
|