Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25c0edc2 authored by Marcelo Arteiro's avatar Marcelo Arteiro
Browse files

Introduce state management dependencies for ThemeService

Adds the core data structures and logic for managing user-specific theme states.

- `ThemeState`: An immutable record to hold a user's theme settings.
- `ThemeStatePair`: Manages current and pending `ThemeState`, containing the logic to determine when to update overlays and handle deferrals.
- `ThemeInfo`: A parcelable used for IPC to request theme changes.

This change also includes comprehensive unit tests for the new components and a `FakeScheduledExecutorService` for testing.

Bug: 333694176
Test: atest FrameworksServicesTests_theme
Flag: android.server.enable_theme_service
EXPECTED_PROCESS_CRASH=system_server

Change-Id: I692a408a6e5479853182e2dc3f307518306d0f7b
parent 1059d0e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment