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

Commit ba030ceb authored by Adrian Roos's avatar Adrian Roos
Browse files

UiAutomation: report flags to better diagnose unintentionally disabling a11y

Bug: 345389851
Test: atest AccessibilityInputMethodTest
Flag: NONE trivial change
Change-Id: I6f79aa8a02e2e88976ae58abc20239a9727da2fd
parent dee17d54
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -101,8 +101,10 @@ class UiAutomationManager {
            SystemActionPerformer systemActionPerformer,
            AccessibilityWindowManager awm, int flags) {
        accessibilityServiceInfo.setComponentName(COMPONENT_NAME);
        Slogf.i(LOG_TAG, "Registering UiTestAutomationService (id=%s) when called by user %d",
                accessibilityServiceInfo.getId(), Binder.getCallingUserHandle().getIdentifier());
        Slogf.i(LOG_TAG, "Registering UiTestAutomationService (id=%s, flags=0x%x) when"
                        + " called by user %d",
                accessibilityServiceInfo.getId(), flags,
                Binder.getCallingUserHandle().getIdentifier());
        if (mUiAutomationService != null) {
            throw new IllegalStateException(
                    "UiAutomationService " + mUiAutomationService.mServiceInterface