Home
last modified time | relevance | path

Searched refs:Attraction (Results 1 – 7 of 7) sorted by relevance

/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/provider/
DTouristAttractions.java21 import com.example.android.xyztouristattractions.common.Attraction;
52 public static final HashMap<String, List<Attraction>> ATTRACTIONS =
53 new HashMap<String, List<Attraction>>() {{
55 put(CITY_SYDNEY, new ArrayList<Attraction>() {{
56 add(new Attraction(
66 add(new Attraction(
76 add(new Attraction(
86 add(new Attraction(
96 add(new Attraction(
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/ui/
DAttractionListFragment.java37 import com.example.android.xyztouristattractions.common.Attraction;
74 List<Attraction> attractions = loadAttractionsFromLocation(mLatestLocation); in onCreateView()
114 private static List<Attraction> loadAttractionsFromLocation(final LatLng curLatLng) { in loadAttractionsFromLocation()
117 List<Attraction> attractions = ATTRACTIONS.get(closestCity); in loadAttractionsFromLocation()
120 new Comparator<Attraction>() { in loadAttractionsFromLocation()
122 public int compare(Attraction lhs, Attraction rhs) { in loadAttractionsFromLocation()
140 public List<Attraction> mAttractionList;
143 public AttractionAdapter(Context context, List<Attraction> attractions) { in AttractionAdapter()
158 Attraction attraction = mAttractionList.get(position); in onBindViewHolder()
DDetailFragment.java38 import com.example.android.xyztouristattractions.common.Attraction;
56 private Attraction mAttraction;
155 private Attraction findAttraction(String attractionName) { in findAttraction()
156 for (Map.Entry<String, List<Attraction>> attractionsList : ATTRACTIONS.entrySet()) { in findAttraction()
157 List<Attraction> attractions = attractionsList.getValue(); in findAttraction()
158 for (Attraction attraction : attractions) { in findAttraction()
/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/ui/
DAttractionsActivity.java38 import com.example.android.xyztouristattractions.common.Attraction;
73 private ArrayList<Attraction> mAttractions = new ArrayList<Attraction>();
178 AsyncTask<Uri, Void, ArrayList<Attraction>> {
187 protected ArrayList<Attraction> doInBackground(Uri... params) { in doInBackground()
218 Attraction attraction = new Attraction(); in doInBackground()
243 protected void onPostExecute(ArrayList<Attraction> result) { in onPostExecute()
DAttractionsGridPagerAdapter.java43 import com.example.android.xyztouristattractions.common.Attraction;
68 private ArrayList<Attraction> mAttractions;
74 Context context, ArrayList<Attraction> attractions) { in AttractionsGridPagerAdapter()
81 public void setData(ArrayList<Attraction> attractions) { in setData()
102 final Attraction attraction = mAttractions.get(row); in instantiateItem()
224 private void startAction(Attraction attraction, String pathName, int confirmAnimationType) { in startAction()
240 private View.OnClickListener getStartActionClickListener(final Attraction attraction, in getStartActionClickListener()
/development/samples/browseable/XYZTouristAttractions/Shared/src/com.example.android.xyztouristattractions.common/
DAttraction.java28 public class Attraction { class
41 public Attraction() {} in Attraction() method in Attraction
43 public Attraction(String name, String description, String longDescription, Uri imageUrl, in Attraction() method in Attraction
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/service/
DUtilityService.java35 import com.example.android.xyztouristattractions.common.Attraction;
318 List<Attraction> attractions = ATTRACTIONS.get(cityId); in showNotification()
326 Attraction attraction = attractions.get(0); in showNotification()
407 private void sendDataToWearable(List<Attraction> attractions) { in sendDataToWearable()
424 Attraction attraction = attractions.get(i); in sendDataToWearable()