Merge "Add contextual card proto libraries."
This commit is contained in:
@@ -41,6 +41,7 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
|
||||
androidx.lifecycle_lifecycle-extensions \
|
||||
guava \
|
||||
jsr305 \
|
||||
settings-contextual-card-protos-lite \
|
||||
contextualcards \
|
||||
settings-logtags \
|
||||
|
||||
|
8
protos/Android.bp
Normal file
8
protos/Android.bp
Normal 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"],
|
||||
}
|
19
protos/contextual_card_list.proto
Normal file
19
protos/contextual_card_list.proto
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user