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

Commit a4c42eb0 authored by Fan Zhang's avatar Fan Zhang Committed by Android (Google) Code Review
Browse files

Merge "Add contextual card proto libraries."

parents 403beab3 8985efe3
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