diff --git a/Android.mk b/Android.mk index f10b3ec2d08..3610e7774fb 100644 --- a/Android.mk +++ b/Android.mk @@ -41,6 +41,7 @@ LOCAL_STATIC_JAVA_LIBRARIES := \ androidx.lifecycle_lifecycle-extensions \ guava \ jsr305 \ + settings-contextual-card-protos-lite \ contextualcards \ settings-logtags \ diff --git a/protos/Android.bp b/protos/Android.bp new file mode 100644 index 00000000000..533dbca6564 --- /dev/null +++ b/protos/Android.bp @@ -0,0 +1,8 @@ +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 diff --git a/protos/contextual_card_list.proto b/protos/contextual_card_list.proto new file mode 100644 index 00000000000..89e6c138640 --- /dev/null +++ b/protos/contextual_card_list.proto @@ -0,0 +1,19 @@ +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