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

Commit 26575058 authored by lyn's avatar lyn
Browse files

New class hierarchy for pipeline bundling

Usage will be flagged

Bug: 395698521
Test: treehugger
Flag: com.android.systemui.notification_bundle_ui
Change-Id: I3fe490fe327431ef89d59a56115c9fabcce9126d
parent 2aade0e4
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2025 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.systemui.statusbar.notification.collection;

/**
 * Abstract class to represent notification section bundled by AI.
 */
public class BundleEntry extends PipelineEntry {

    public class BundleEntryAdapter implements EntryAdapter {
    }
}
+23 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2025 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.systemui.statusbar.notification.collection;

/**
 * Adapter interface for UI to get relevant info.
 */
public interface EntryAdapter {
}
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ import com.android.systemui.statusbar.notification.collection.listbuilder.NotifS
 * Abstract superclass for top-level entries, i.e. things that can appear in the final notification
 * list shown to users. In practice, this means either GroupEntries or NotificationEntries.
 */
public abstract class ListEntry {
public abstract class ListEntry extends PipelineEntry {
    private final String mKey;
    private final long mCreationTime;

+3 −0
Original line number Diff line number Diff line
@@ -270,6 +270,9 @@ public final class NotificationEntry extends ListEntry {
        setRanking(ranking);
    }

    public class NotifEntryAdapter implements EntryAdapter {
    }

    @Override
    public NotificationEntry getRepresentativeEntry() {
        return this;
+23 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2025 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.systemui.statusbar.notification.collection;

/**
 * Class to represent a notification, group, or bundle in the pipeline.
 */
public class PipelineEntry {
}