Merge "Add contextual card proto libraries."

This commit is contained in:
Fan Zhang
2018-10-10 17:24:02 +00:00
committed by Android (Google) Code Review
3 changed files with 28 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
androidx.lifecycle_lifecycle-extensions \ androidx.lifecycle_lifecycle-extensions \
guava \ guava \
jsr305 \ jsr305 \
settings-contextual-card-protos-lite \
contextualcards \ contextualcards \
settings-logtags \ settings-logtags \

8
protos/Android.bp Normal file
View File

@@ -0,0 +1,8 @@
java_library_static {
name: "settings-contextual-card-protos-lite",
host_supported: true,
proto: {
type: "lite",
},
srcs: ["contextual_card_list.proto"],
}

View File

@@ -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;
}