- update contextual card proto interface to fit the new SettingsIntelligence - show sticky cards at the tail of the card area Bug: 149274976 Test: robotest Change-Id: Icca167825c1c037ec12d8836d82c5fdff4331a8e
35 lines
714 B
Protocol Buffer
35 lines
714 B
Protocol Buffer
syntax = "proto2";
|
|
|
|
package com.android.settings.intelligence;
|
|
option java_outer_classname = "ContextualCardProto";
|
|
|
|
message ContextualCardList {
|
|
repeated ContextualCard card = 1;
|
|
}
|
|
|
|
message ContextualCard {
|
|
|
|
/**
|
|
* The category of a card: this is a hint for how a card should be collected,
|
|
* ranked, and presented
|
|
*/
|
|
enum Category {
|
|
DEFAULT = 0;
|
|
SUGGESTION = 1;
|
|
POSSIBLE = 2;
|
|
IMPORTANT = 3;
|
|
DEFERRED_SETUP = 5;
|
|
STICKY = 6;
|
|
}
|
|
|
|
/** Slice uri of the contextual card */
|
|
optional string sliceUri = 1;
|
|
|
|
/** Name of the card. It should be identical in every app */
|
|
optional string cardName = 3;
|
|
|
|
optional Category card_category = 4;
|
|
|
|
optional double card_score = 5;
|
|
}
|