HomeSort by relevance Sort by last modified time
    Searched refs:rating (Results 1 - 25 of 36) sorted by null

1 2

  /development/samples/ApiDemos/src/com/example/android/apis/view/
RatingBar1.java 27 * Demonstrates how to use a rating bar
40 mRatingText = (TextView) findViewById(R.id.rating);
42 // We copy the most recently changed rating on to these indicator-only
43 // rating bars
47 // The different rating bars in the layout. Assign the listener to us.
52 public void onRatingChanged(RatingBar ratingBar, float rating, boolean fromTouch) {
55 getString(R.string.ratingbar_rating) + " " + rating + "/" + numStars);
57 // Since this rating bar is updated to reflect any of the other rating
63 if (mIndicatorRatingBar.getRating() != rating) {
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowRatingBar.java 23 final float rating = attributeSet.getAttributeFloatValue("android", "rating", -1); local
36 if (rating >= 0) {
37 setRating(rating);
56 public void setRating(float rating) {
57 setProgress(Math.round(rating * getProgressPerStar()));
  /frameworks/base/core/java/android/widget/
RatingBar.java 30 * A RatingBar is an extension of SeekBar and ProgressBar that shows a rating in
31 * stars. The user can touch/drag or use arrow keys to set the rating when using
55 * A callback that notifies clients when the rating has been changed. This
63 * Notification that the rating has changed. Clients can use the
66 * while the user is dragging, only when the user finalizes a rating by
69 * @param ratingBar The RatingBar whose rating has changed.
70 * @param rating The current rating. This will be in the range
72 * @param fromUser True if the rating change was initiated by a user's
75 void onRatingChanged(RatingBar ratingBar, float rating, boolean fromUser)
92 final float rating = a.getFloat(R.styleable.RatingBar_rating, -1); local
    [all...]
  /external/lzma/CPP/7zip/UI/Console/
BenchCon.cpp 20 UInt64 Rating;
23 void Init() { NumIterations = 0; Rating = 0; Usage = 0; RPU = 0; }
28 Rating /= NumIterations;
35 Rating = (r1.Rating + r2.Rating) / 2;
82 static void PrintRating(FILE *f, UInt64 rating)
84 PrintNumber(f, rating / 1000000, 6);
87 static void PrintResults(FILE *f, UInt64 usage, UInt64 rpu, UInt64 rating)
91 PrintRating(f, rating);
121 UInt64 rating = GetCompressRating(dictionarySize, info.GlobalTime, info.GlobalFreq, info.UnpackSize); local
136 UInt64 rating = GetDecompressRating(info.GlobalTime, info.GlobalFreq, info.UnpackSize, info.PackSize, info.NumIterations); local
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
RatingBarTest.java 53 public void onRatingChanged(RatingBar ratingBar, float rating, boolean fromUser) {
54 transcript.add("onRatingChanged() - " + rating);
  /external/lzma/Java/SevenZip/
LzmaBench.java 269 static void PrintRating(long rating)
271 PrintValue(rating / 1000000);
284 long rating; local
286 rating = GetDecompressRating(elapsedTime, size, secondSize);
288 rating = GetCompressRating(dictionarySize, elapsedTime, size);
289 PrintRating(rating);
  /external/libmtp/examples/
tracks.c 74 if (track->rating != 0) {
75 printf(" User rating: %u (out of 100)\n", track->rating);
  /frameworks/base/media/java/android/media/
Rating.java 25 * A class to encapsulate rating information used as content metadata.
26 * A rating is defined by its rating style (see {@link #RATING_HEART},
28 * {@link #RATING_5_STARS} or {@link #RATING_PERCENTAGE}) and the actual rating value (which may
29 * be defined as "unrated"), both of which are defined when the rating instance is constructed
32 public final class Rating implements Parcelable {
34 private final static String TAG = "Rating";
37 * A rating style with a single degree of rating, "heart" vs "no heart". Can be used to
43 * A rating style for "thumb up" vs "thumb down"
    [all...]
RemoteController.java 490 Rating rating = (Rating) getObject( local
494 rating);
500 // metadata (e.g. user changes the rating of a song more than once during playback)
    [all...]
  /external/lzma/CPP/7zip/UI/Common/
Bench.h 27 UInt64 GetRatingPerUsage(const CBenchInfo &info, UInt64 rating);
Bench.cpp 424 UInt64 GetRatingPerUsage(const CBenchInfo &info, UInt64 rating)
436 return userFreq * globalTime / globalFreq * rating / userTime;
  /external/lzma/CS/7zip/Compress/LzmaAlone/
LzmaBench.cs 218 static void PrintRating(UInt64 rating)
220 PrintValue(rating / 1000000);
233 UInt64 rating;
235 rating = GetDecompressRating(elapsedTime, size, secondSize);
237 rating = GetCompressRating(dictionarySize, elapsedTime, size);
238 PrintRating(rating);
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/extractstring/
ReplaceStringsVisitor.java 351 * Sort them by rating in the results map.
360 * The rating is reversed: the lowest rating integer is used for the best candidate.
364 * @param results The map that accumulates the rating=>expression results. The lower
365 * rating number is the best candidate.
394 Integer rating = Integer.valueOf(10000 + 1000 * superType + argsLen); local
395 if (!results.containsKey(rating)) {
398 results.put(rating, mi);
414 Integer rating = Integer.valueOf(superType); local
415 results.put(rating, mAst.newSimpleName(var.getName()))
    [all...]
  /libcore/luni/src/test/java/tests/java/sql/
SelectFunctionalityTest.java 395 String selectQuery = "SELECT rating, SUM(snum) AS sum FROM "
396 + DatabaseCreator.CUSTOMERS_TABLE + " GROUP BY rating";
405 int rating = result.getInt("rating"); local
407 assertTrue("Wrong value of rating field", values
408 .containsKey(rating));
409 assertEquals("Wrong value of sum field", values.get(rating),
411 assertEquals(new Integer(sum), values.remove(rating));
455 String selectQuery = "SELECT DISTINCT rating FROM "
465 Integer rating = result.getInt("rating") local
    [all...]
  /frameworks/base/sax/tests/saxtests/src/android/sax/
SafeSaxTest.java 319 entry.getChild(GDATA_NAMESPACE, "rating")
323 video.rating = average == null
441 if (localName.equals("rating")) {
443 video.rating = average == null
532 public float rating; // ranges from 0.0 to 5.0 field in class:SafeSaxTest.YouTubeVideo
  /external/chromium_org/chrome/browser/ui/views/extensions/
extension_install_dialog_view.cc 311 // | rating | | | rating | |
419 // Also span the rating, user_count and store_link rows.
440 views::View* rating = new views::View(); local
441 rating->SetLayoutManager(new views::BoxLayout(
443 layout->AddView(rating);
444 prompt.AppendRatingStars(AddResourceIcon, rating);
448 // Add some space between the stars and the rating count.
450 rating->AddChildView(rating_count);
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
RatingBarTest.java 118 // set Rating
205 * (RatingBar ratingBar, float rating, boolean fromTouch)
207 public void onRatingChanged(RatingBar ratingBar, float rating, boolean fromTouch) {
  /external/libmtp/src/
libmtp.h 643 uint16_t rating; /**< User rating 0-100 (0x00-0x64) */ member in struct:LIBMTP_track_struct
    [all...]
libmtp.h.in 641 uint16_t rating; /**< User rating 0-100 (0x00-0x64) */
libmtp.c 533 register_property("Rating", LIBMTP_PROPERTY_Rating, PTP_OPC_Rating);
543 register_property("Parental Rating", LIBMTP_PROPERTY_ParentalRating, PTP_OPC_ParentalRating);
546 register_property("Effective Rating", LIBMTP_PROPERTY_EffectiveRating, PTP_OPC_EffectiveRating);
    [all...]
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
org.eclipse.jdt.core_3.6.2.v_A76_R36x.jar 
  /prebuilts/sdk/14/
android.jar 
  /prebuilts/sdk/15/
android.jar 
  /prebuilts/sdk/4/
android.jar 
  /prebuilts/sdk/6/
android.jar 

Completed in 1603 milliseconds

1 2