Loading core/res/res/values/config.xml +4 −0 Original line number Diff line number Diff line Loading @@ -6559,6 +6559,10 @@ serialization, a default vibration will be used. Note that, indefinitely repeating vibrations are not allowed as shutdown vibrations. --> <string name="config_defaultShutdownVibrationFile" /> <!-- Whether single finger panning is enabled when magnification is on --> <bool name="config_enable_a11y_magnification_single_panning">false</bool> <!-- The file path in which custom vibrations are provided for haptic feedbacks. If the device does not specify any such file path here, if the file path specified here does not exist, or if the contents of the file does not make up a valid customization Loading core/res/res/values/symbols.xml +3 −0 Original line number Diff line number Diff line Loading @@ -5179,5 +5179,8 @@ <java-symbol type="drawable" name="focus_event_pressed_key_background" /> <java-symbol type="string" name="config_defaultShutdownVibrationFile" /> <java-symbol type="string" name="lockscreen_too_many_failed_attempts_countdown" /> <java-symbol type="bool" name="config_enable_a11y_magnification_single_panning" /> <java-symbol type="string" name="config_hapticFeedbackCustomizationFile" /> </resources> services/accessibility/java/com/android/server/accessibility/magnification/FullScreenMagnificationGestureHandler.java +3 −1 Original line number Diff line number Diff line Loading @@ -204,7 +204,9 @@ public class FullScreenMagnificationGestureHandler extends MagnificationGestureH mViewportDraggingState = new ViewportDraggingState(); mPanningScalingState = new PanningScalingState(context); mSinglePanningState = new SinglePanningState(context); setSinglePanningEnabled(false); setSinglePanningEnabled( context.getResources() .getBoolean(R.bool.config_enable_a11y_magnification_single_panning)); if (mDetectShortcutTrigger) { mScreenStateReceiver = new ScreenStateReceiver(context, this); Loading Loading
core/res/res/values/config.xml +4 −0 Original line number Diff line number Diff line Loading @@ -6559,6 +6559,10 @@ serialization, a default vibration will be used. Note that, indefinitely repeating vibrations are not allowed as shutdown vibrations. --> <string name="config_defaultShutdownVibrationFile" /> <!-- Whether single finger panning is enabled when magnification is on --> <bool name="config_enable_a11y_magnification_single_panning">false</bool> <!-- The file path in which custom vibrations are provided for haptic feedbacks. If the device does not specify any such file path here, if the file path specified here does not exist, or if the contents of the file does not make up a valid customization Loading
core/res/res/values/symbols.xml +3 −0 Original line number Diff line number Diff line Loading @@ -5179,5 +5179,8 @@ <java-symbol type="drawable" name="focus_event_pressed_key_background" /> <java-symbol type="string" name="config_defaultShutdownVibrationFile" /> <java-symbol type="string" name="lockscreen_too_many_failed_attempts_countdown" /> <java-symbol type="bool" name="config_enable_a11y_magnification_single_panning" /> <java-symbol type="string" name="config_hapticFeedbackCustomizationFile" /> </resources>
services/accessibility/java/com/android/server/accessibility/magnification/FullScreenMagnificationGestureHandler.java +3 −1 Original line number Diff line number Diff line Loading @@ -204,7 +204,9 @@ public class FullScreenMagnificationGestureHandler extends MagnificationGestureH mViewportDraggingState = new ViewportDraggingState(); mPanningScalingState = new PanningScalingState(context); mSinglePanningState = new SinglePanningState(context); setSinglePanningEnabled(false); setSinglePanningEnabled( context.getResources() .getBoolean(R.bool.config_enable_a11y_magnification_single_panning)); if (mDetectShortcutTrigger) { mScreenStateReceiver = new ScreenStateReceiver(context, this); Loading