feat(A11yFeedback): Implements page ID to feedback bucket ID mapping

This change adds a new API to a Pixel overlay feature provider,
allowing Android to map page IDs to feedback bucket IDs.

Bug: 393980229
Test: Manual testing for Pixel and non-Pixel overlay in real device
Test: atest AccessibilitySettingsTest
            FeedbackManagerTest
Flag: com.android.server.accessibility.enable_low_vision_generic_feedback
Change-Id: I8a110b08816cac9c8a8e8c3e1218530fffb6f121
This commit is contained in:
Menghan Li
2025-02-27 08:02:33 +00:00
parent 4cbc560d1d
commit c26eb7fd24
5 changed files with 13 additions and 36 deletions

View File

@@ -15,8 +15,6 @@
*/
package com.android.settings.accessibility;
import android.content.ComponentName;
import androidx.annotation.Nullable;
/** Default implementation of {@link AccessibilityFeedbackFeatureProvider}. */
@@ -25,7 +23,7 @@ public class AccessibilityFeedbackFeatureProviderImpl implements
@Override
@Nullable
public String getCategory(@Nullable ComponentName componentName) {
return "";
public String getCategory(int pageId) {
return null;
}
}