Home
last modified time | relevance | path

Searched refs:Card (Results 1 – 11 of 11) sorted by relevance

/developers/build/prebuilts/gradle/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/cardstream/
DCardStreamFragment.java42 … private LinkedHashMap<String, Card> mVisibleCards = new LinkedHashMap<String, Card>(INITIAL_SIZE);
43 private HashMap<String, Card> mHiddenCards = new HashMap<String, Card>(INITIAL_SIZE);
72 public void addCard(Card card) { in addCard()
88 public void addCard(Card card, boolean show) { in addCard()
103 Card card = mVisibleCards.get(tag); in removeCard()
134 final Card card = mHiddenCards.get(tag); in showCard()
155 final Card card = mVisibleCards.get(tag); in hideCard()
169 final Card card = mVisibleCards.get(tag); in dismissCard()
198 public Card getCard(String tag) { in getCard()
199 final Card card = mVisibleCards.get(tag); in getCard()
[all …]
DCardStreamState.java26 protected Card[] visibleCards;
27 protected Card[] hiddenCards;
31 …protected CardStreamState(Card[] visible, Card[] hidden, HashSet<String> dismissible, String shown… in CardStreamState()
DCard.java40 public class Card { class
98 public Card() { in Card() method in Card
110 public Card setDescription(String desc) { in setDescription()
118 public Card setTitle(String title) { in setTitle()
142 public Card setState(int state) { in setState()
188 public Card setProgressType(int progressType) { in setProgressType()
216 public Card setProgress(int progress) { in setProgress()
228 public Card setMaxProgress(int max){ in setMaxProgress()
242 public Card setProgressLabel(String text) { in setProgressLabel()
257 public Card setProgressVisibility(boolean isVisible) { in setProgressVisibility()
[all …]
/developers/build/templates/CardStream/_MODULE_/src/template/java/_PACKAGE_/cardstream/
DCardStreamFragment.java.ftl42 … private LinkedHashMap<String, Card> mVisibleCards = new LinkedHashMap<String, Card>(INITIAL_SIZE);
43 private HashMap<String, Card> mHiddenCards = new HashMap<String, Card>(INITIAL_SIZE);
72 public void addCard(Card card) {
88 public void addCard(Card card, boolean show) {
103 Card card = mVisibleCards.get(tag);
105 // Card is visible, also remove from layout
110 // Card is hidden, no need to remove from layout
134 final Card card = mHiddenCards.get(tag);
155 final Card card = mVisibleCards.get(tag);
169 final Card card = mVisibleCards.get(tag);
[all …]
DCard.java.ftl37 * A Card contains a description and has a visual state. Optionally a card also contains a title,
40 public class Card {
87 * @see com.example.android.sensors.batchstepsensor.Card.CardAction
94 * a maximum of one progress indicator per Card.
98 public Card() {
110 public Card setDescription(String desc) {
118 public Card setTitle(String title) {
142 public Card setState(int state) {
179 * The progress type can only be changed if the Card was initially build with a progress
188 public Card setProgressType(int progressType) {
[all …]
DCardStreamState.java.ftl26 protected Card[] visibleCards;
27 protected Card[] hiddenCards;
31 …protected CardStreamState(Card[] visible, Card[] hidden, HashSet<String> dismissible, String shown…
/developers/samples/android/sensors/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/
DBatchStepSensorFragment.java29 import com.example.android.batchstepsensor.cardstream.Card;
488 Card c = new Card.Builder(this, CARD_INTRO) in showIntroCard()
521 Card c = new Card.Builder(this, CARD_COUNTING) in initialiseCards()
524 .addAction("Unregister Listener", ACTION_UNREGISTER, Card.ACTION_NEGATIVE) in initialiseCards()
529 c = new Card.Builder(this, CARD_REGISTER_DETECTOR) in initialiseCards()
533 ACTION_REGISTER_DETECT_NOBATCHING, Card.ACTION_NEUTRAL) in initialiseCards()
535 ACTION_REGISTER_DETECT_BATCHING_5s, Card.ACTION_NEUTRAL) in initialiseCards()
537 ACTION_REGISTER_DETECT_BATCHING_10s, Card.ACTION_NEUTRAL) in initialiseCards()
542 c = new Card.Builder(this, CARD_REGISTER_COUNTER) in initialiseCards()
546 ACTION_REGISTER_COUNT_NOBATCHING, Card.ACTION_NEUTRAL) in initialiseCards()
[all …]
/developers/build/prebuilts/gradle/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/
DBatchStepSensorFragment.java29 import com.example.android.batchstepsensor.cardstream.Card;
488 Card c = new Card.Builder(this, CARD_INTRO) in showIntroCard()
521 Card c = new Card.Builder(this, CARD_COUNTING) in initialiseCards()
524 .addAction("Unregister Listener", ACTION_UNREGISTER, Card.ACTION_NEGATIVE) in initialiseCards()
529 c = new Card.Builder(this, CARD_REGISTER_DETECTOR) in initialiseCards()
533 ACTION_REGISTER_DETECT_NOBATCHING, Card.ACTION_NEUTRAL) in initialiseCards()
535 ACTION_REGISTER_DETECT_BATCHING_5s, Card.ACTION_NEUTRAL) in initialiseCards()
537 ACTION_REGISTER_DETECT_BATCHING_10s, Card.ACTION_NEUTRAL) in initialiseCards()
542 c = new Card.Builder(this, CARD_REGISTER_COUNTER) in initialiseCards()
546 ACTION_REGISTER_COUNT_NOBATCHING, Card.ACTION_NEUTRAL) in initialiseCards()
[all …]
/developers/samples/android/sensors/BatchStepSensor/Application/
DREADME-CardStream.txt41 -Create a instance of Card.Builder with a tag String that *must* be unique among all cards.
43 Card.Builder builder = new Card.Builder(UNIQUE_TAG_STRING);
59 builder.addAction(actionLabel1, 0, Card.ACTION_NEUTRAL, new Card.CardActionCallback() {
67 -After finishing setup process, call Buidler.build() to return a new instance of a Card.
69 final Card card = builder.build(activity);
76 Card myCard = ...
/developers/build/templates/CardStream/_MODULE_/
DREADME-CardStream.txt41 -Create a instance of Card.Builder with a tag String that *must* be unique among all cards.
43 Card.Builder builder = new Card.Builder(UNIQUE_TAG_STRING);
59 builder.addAction(actionLabel1, 0, Card.ACTION_NEUTRAL, new Card.CardActionCallback() {
67 -After finishing setup process, call Buidler.build() to return a new instance of a Card.
69 final Card card = builder.build(activity);
76 Card myCard = ...
/developers/build/templates/CardStream/_MODULE_/src/template/res/layout/
Dcard.xml.ftl3 style="@style/Card"