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

Commit 8985efe3 authored by Fan Zhang's avatar Fan Zhang
Browse files

Add contextual card proto libraries.

Test: rebuild
Change-Id: Ifd105a91be4ce3b3ae35766e069d4b4663e54b0f
parent 3ce67421
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
    androidx.lifecycle_lifecycle-extensions \
    guava \
    jsr305 \
    settings-contextual-card-protos-lite \
    contextualcards \
    settings-logtags \

protos/Android.bp

0 → 100644
+8 −0
Original line number Diff line number Diff line
java_library_static {
    name: "settings-contextual-card-protos-lite",
    host_supported: true,
    proto: {
        type: "lite",
    },
    srcs: ["contextual_card_list.proto"],
}
 No newline at end of file
+19 −0
Original line number Diff line number Diff line
syntax = "proto2";

package com.android.settings.intelligence;
option java_outer_classname = "ContextualCardProto";

message ContextualCardList {
  repeated ContextualCard card = 1;
}

message ContextualCard {
  // Slice uri of the contextual card
  optional string sliceUri = 1;

  // {@link ContextualCardCategory}.
  optional int32 category = 2;

  // Name of the card. It should be identical in every app
  optional string cardName = 3;
}
 No newline at end of file