1 /** TODO: http://go/java-style#javadoc */ 2 package com.example.android.intentplayground; 3 4 import android.app.Fragment; 5 import android.content.ComponentName; 6 import android.content.Context; 7 import android.content.Intent; 8 import android.os.Parcel; 9 import android.os.Parcelable; 10 import android.view.View; 11 12 import java.util.List; 13 import java.util.Map; 14 15 class TestBase { 16 static final String EXPECTED_HIERARCHY = ""; 17 enum LaunchStyle { TASK_STACK_BUILDER, COMMAND_LINE, LAUNCH_FORWARD } TestBase(Context context, Node hierarchy)18 TestBase(Context context, Node hierarchy) {} setupActivities(LaunchStyle style)19 void setupActivities(LaunchStyle style) {} computeExpected(Intent intent)20 Node computeExpected(Intent intent) { return null; } describeTaskHierarchy(Context context)21 static Node describeTaskHierarchy(Context context) { return null; } 22 23 } 24 class TreeFragment extends Fragment { 25 static final String TREE_NODE = ""; 26 static final String FRAGMENT_TITLE = ""; 27 } 28 class CurrentTaskFragment extends Fragment {} 29 class IntentFragment extends Fragment {} 30 class IntentBuilderFragment extends Fragment implements View.OnClickListener { 31 ComponentName mActivityToLaunch; selectLaunchMode(View view)32 void selectLaunchMode(View view) {} onClick(View view)33 public void onClick(View view) {} clearFlags()34 void clearFlags() {} selectFlags(List<String> flags)35 void selectFlags(List<String> flags) {} 36 } 37 class BuildConfig { 38 static final boolean DEBUG = true; 39 } 40 class Node implements Parcelable, Comparable<Node> { 41 ComponentName name; 42 boolean isTaskNode; 43 int taskId; 44 static final String TAG = ""; 45 public static final Creator<Node> CREATOR = new Creator<Node>() { 46 @Override 47 public Node createFromParcel(Parcel in) { 48 return new Node(in); 49 } 50 51 @Override 52 public Node[] newArray(int size) { 53 return new Node[size]; 54 } 55 };; 56 List<Node> children; Node(ComponentName data)57 Node(ComponentName data) {} Node(int taskId)58 Node(int taskId) {} Node(Node other)59 Node(Node other) {} Node(Parcel in)60 Node(Parcel in) {} addChild(Node child)61 Node addChild(Node child) { return null; } equals(Node other)62 boolean equals(Node other) { return false; } compareTo(Node o)63 public int compareTo(Node o) {return 0;} 64 @Override writeToParcel(Parcel dest, int flags)65 public void writeToParcel(Parcel dest, int flags) {} 66 @Override describeContents()67 public int describeContents() { return 0; } 68 } 69 class FlagUtils { discoverFlags(Intent intent)70 static List<String> discoverFlags(Intent intent) { return null; } intentFlags()71 static List<String> intentFlags() { return null; } intentFlagsByCategory()72 static Map<String, List<String>> intentFlagsByCategory() { return null; } value(String flagName)73 static int value(String flagName) { return 0; } discoverActivityFlags()74 static List<String> discoverActivityFlags() { return null; } camelify(String snake)75 static String camelify(String snake) { return null; } 76 }