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

Commit eb17f780 authored by Vaibhav Devmurari's avatar Vaibhav Devmurari
Browse files

Update API name for keyboard capture

Based on API council review, change the API name

Bug: 425684704
Test: atest KeyboardCaptureTest
Flag: com.android.hardware.input.request_key_capture_api
Change-Id: Id84050f1e756a074b48c89284f87970de3b72bfb
parent 2b9da26f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -56424,8 +56424,8 @@ package android.view {
    method public void setFitInsetsTypes(int);
    method @FlaggedApi("android.view.flags.toolkit_set_frame_rate_read_only") public void setFrameRateBoostOnTouchEnabled(boolean);
    method @FlaggedApi("android.view.flags.toolkit_set_frame_rate_read_only") public void setFrameRatePowerSavingsBalanced(boolean);
    method @FlaggedApi("com.android.hardware.input.request_key_capture_api") @RequiresPermission(android.Manifest.permission.CAPTURE_KEYBOARD) public void setHasKeyboardCapture(boolean);
    method public void setHdrConversionEnabled(boolean);
    method @FlaggedApi("com.android.hardware.input.request_key_capture_api") @RequiresPermission(android.Manifest.permission.CAPTURE_KEYBOARD) public void setKeyboardCaptureEnabled(boolean);
    method public final void setTitle(CharSequence);
    method public void setWallpaperTouchEventsEnabled(boolean);
    method public void writeToParcel(android.os.Parcel, int);
+3 −3
Original line number Diff line number Diff line
@@ -4653,12 +4653,12 @@ public interface WindowManager extends ViewManager {
         * behavior of processing system shortcuts and actions.
         * </p>
         *
         * @param hasCapture whether the window should capture system shortcuts and actions.
         * @param enabled whether the window should capture system shortcuts and actions.
         */
        @FlaggedApi(com.android.hardware.input.Flags.FLAG_REQUEST_KEY_CAPTURE_API)
        @RequiresPermission(permission.CAPTURE_KEYBOARD)
        public void setHasKeyboardCapture(boolean hasCapture) {
            if (hasCapture) {
        public void setKeyboardCaptureEnabled(boolean enabled) {
            if (enabled) {
                inputFeatures |= INPUT_FEATURE_CAPTURE_KEYBOARD;
            } else {
                inputFeatures &= ~INPUT_FEATURE_CAPTURE_KEYBOARD;