From 8985efe3b03e79cd54f8e3384d29e582af06c16b Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Tue, 9 Oct 2018 16:12:34 -0700 Subject: [PATCH] Add contextual card proto libraries. Test: rebuild Change-Id: Ifd105a91be4ce3b3ae35766e069d4b4663e54b0f --- Android.mk | 1 + protos/Android.bp | 8 ++++++++ protos/contextual_card_list.proto | 19 +++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 protos/Android.bp create mode 100644 protos/contextual_card_list.proto 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