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

Commit 7b985dda authored by Ats Jenk's avatar Ats Jenk
Browse files

Expose API to set bubble bar location from launcher

Allows launcher to update the bubble bar location.

Bug: 330585397
Test: manual
Change-Id: I2ad28e35ff4f4abba91c1f3674092efec9b54c51
parent 635ede2a
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -2329,6 +2329,12 @@ public class BubbleController implements ConfigurationChangeListener,
            mMainExecutor.execute(() ->
            mMainExecutor.execute(() ->
                    mController.showUserEducation(new Point(positionX, positionY)));
                    mController.showUserEducation(new Point(positionX, positionY)));
        }
        }

        @Override
        public void setBubbleBarLocation(BubbleBarLocation location) {
            mMainExecutor.execute(() ->
                    mController.setBubbleBarLocation(location));
        }
    }
    }


    private class BubblesImpl implements Bubbles {
    private class BubblesImpl implements Bubbles {
+2 −0
Original line number Original line Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.wm.shell.bubbles;
import android.content.Intent;
import android.content.Intent;
import android.graphics.Rect;
import android.graphics.Rect;
import com.android.wm.shell.bubbles.IBubblesListener;
import com.android.wm.shell.bubbles.IBubblesListener;
import com.android.wm.shell.common.bubbles.BubbleBarLocation;


/**
/**
 * Interface that is exposed to remote callers (launcher) to manipulate the bubbles feature when
 * Interface that is exposed to remote callers (launcher) to manipulate the bubbles feature when
@@ -42,4 +43,5 @@ interface IBubbles {


    oneway void showUserEducation(in int positionX, in int positionY) = 8;
    oneway void showUserEducation(in int positionX, in int positionY) = 8;


    oneway void setBubbleBarLocation(in BubbleBarLocation location) = 9;
}
}
 No newline at end of file
+19 −0
Original line number Original line Diff line number Diff line
/*
 * Copyright (C) 2024 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.android.wm.shell.common.bubbles;

parcelable BubbleBarLocation;
 No newline at end of file