Add the jank detection to Settings toggles
Add jank detection when click the following preferences, - SwitchPreference Single target, detect click in InstrumentedPreferenceFragment - PrimarySwitchPreference Two target, only detect click switch in switch's onClick() - MainSwitchPreference Single target, detect click in TogglePreferenceController - SettingsMainSwitchPreference Single target, detect click in its onSwitchChanged() Bug: 230285829 Test: manual & robo tests Change-Id: I97a13e05a601237b16cd2d903ba2fb6ec4a69a74
This commit is contained in:
@@ -23,6 +23,10 @@ import com.android.internal.jank.InteractionJankMonitor;
|
||||
import org.robolectric.annotation.Implementation;
|
||||
import org.robolectric.annotation.Implements;
|
||||
|
||||
/**
|
||||
* @deprecated use {@link com.android.settingslib.testutils.shadow.ShadowInteractionJankMonitor}
|
||||
*/
|
||||
@Deprecated
|
||||
@Implements(InteractionJankMonitor.class)
|
||||
public class ShadowInteractionJankMonitor {
|
||||
|
||||
|
Reference in New Issue
Block a user