/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/provider/ |
D | TouristAttractions.java | 135 double distance = SphericalUtil.computeDistanceBetween(curLatLng, entry.getValue()); in getClosestCity() local 136 if (minDistance == 0 || distance < minDistance) { in getClosestCity() 137 minDistance = distance; in getClosestCity()
|
/development/samples/browseable/XYZTouristAttractions/Shared/src/com.example.android.xyztouristattractions.common/ |
D | Utils.java | 79 double distance = Math.round(SphericalUtil.computeDistanceBetween(point1, point2)); in formatDistanceBetween() local 83 if (distance >= 1000) { in formatDistanceBetween() 85 return numberFormat.format(distance / 1000) + DISTANCE_KM_POSTFIX; in formatDistanceBetween() 87 return numberFormat.format(distance) + DISTANCE_M_POSTFIX; in formatDistanceBetween()
|
D | Attraction.java | 39 public String distance; field in Attraction
|
/development/samples/browseable/WatchFace/ |
D | _index.jd | 18 For the Fit Distance related watch face, authentication IS a requirement to request distance from 19 Google Fit on Wear. Otherwise, distance will always come back as zero (or stay at whatever the 20 distance was prior to you de-authorizing the watch face).
|
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/ui/ |
D | DetailFragment.java | 88 String distance = Utils.formatDistanceBetween(location, mAttraction.location); in onCreateView() local 89 if (TextUtils.isEmpty(distance)) { in onCreateView() 94 distanceTextView.setText(distance); in onCreateView()
|
D | AttractionListFragment.java | 169 String distance = in onBindViewHolder() local 171 if (TextUtils.isEmpty(distance)) { in onBindViewHolder() 175 holder.mOverlayTextView.setText(distance); in onBindViewHolder()
|
/development/samples/browseable/Notifications/Wearable/src/com.example.android.support.wearable.notifications/ |
D | AnimatedNotificationDisplayActivity.java | 75 float distance = (float) Math.sqrt(Math.pow(endX - startX, 2) + Math.pow(endY - startY, 2)); in createNextAnimation() local 83 (int) (distance * BASE_ANIMATION_DURATION_MS / mAnimationRange))); in createNextAnimation()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | TouchPaint.java | 453 float distance, float tilt) { in paint() argument 476 drawSplat(mCanvas, x, y, orientation, distance, tilt, mPaint); in paint() 514 float distance, float tilt, Paint paint) { in drawSplat() argument 515 float z = distance * 2 + 10; in drawSplat()
|
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/service/ |
D | UtilityService.java | 382 String distance = Utils.formatDistanceBetween( in showNotification() local 388 .setContentText(distance) in showNotification() 452 String distance = Utils.formatDistanceBetween( in sendDataToWearable() local 461 attractionData.putString(Constants.EXTRA_DISTANCE, distance); in sendDataToWearable()
|
/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/ui/ |
D | AttractionsGridPagerAdapter.java | 130 if (TextUtils.isEmpty(attraction.distance)) { in instantiateItem() 134 R.string.map_caption, attraction.distance)); in instantiateItem()
|
D | AttractionsActivity.java | 223 attraction.distance = in doInBackground()
|
/development/samples/SearchableDictionary/res/raw/ |
D | definitions.txt | 157 commute - n. a regular journey of some distance to and from your place of work 278 distant - j. separated in space or coming from or going to a distance 712 perspective - n. the appearance of things relative to one another as determined by their distance f…
|