/external/mockito/src/org/mockito/internal/reporting/ |
Pluralizer.java | 9 public static String pluralize(int number) {
10 return number == 1 ? "1 time" : number + " times";
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
NumberTest.java | 23 * @tests java.lang.Number#byteValue() 26 int number = 1231243; local 27 assertTrue("Incorrect byte returned for: " + number, 28 ((byte) new Integer(number).intValue()) == new Integer(number) 30 number = 0; 31 assertTrue("Incorrect byte returned for: " + number, 32 ((byte) new Integer(number).intValue()) == new Integer(number) 34 number = -1 48 int number = 1231243; local [all...] |
/external/chromium_org/base/ |
float_util.h | 17 inline bool IsFinite(const Float& number) { 19 return std::isfinite(number) != 0; 21 return _finite(number) != 0; 26 inline bool IsNaN(const Float& number) { 28 return std::isnan(number) != 0; 30 return _isnan(number) != 0;
|
rand_util_win.cc | 15 uint32 number; local 16 CHECK_EQ(rand_s(&number), 0); 17 return number;
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
PhoneNumberWatcherTest.java | 30 SpannableStringBuilder number = new SpannableStringBuilder(); local 32 textWatcher.beforeTextChanged(number, 0, 0, multiChars.length()); 33 number.append(multiChars); 34 Selection.setSelection(number, number.length()); 35 textWatcher.onTextChanged(number, 0, 0, number.length()); 36 textWatcher.afterTextChanged(number); 37 assertEquals(formatted1, number.toString()); 38 assertEquals(formatted1.length(), Selection.getSelectionEnd(number)); 57 SpannableStringBuilder number = new SpannableStringBuilder(init); local 83 SpannableStringBuilder number = new SpannableStringBuilder(init); local 111 SpannableStringBuilder number = new SpannableStringBuilder(init); local 154 SpannableStringBuilder number = new SpannableStringBuilder(init); local 204 SpannableStringBuilder number = new SpannableStringBuilder(init); local 275 SpannableStringBuilder number = new SpannableStringBuilder(init); local [all...] |
/external/chromium_org/v8/src/ |
v8conversions.h | 36 // Convert from Number object to C integer. 37 inline int32_t NumberToInt32(Object* number) { 38 if (number->IsSmi()) return Smi::cast(number)->value(); 39 return DoubleToInt32(number->Number()); 43 inline uint32_t NumberToUint32(Object* number) { 44 if (number->IsSmi()) return Smi::cast(number)->value(); 45 return DoubleToUint32(number->Number()) [all...] |
/external/chromium/base/ |
float_util.h | 20 inline bool IsFinite(const double& number) { 22 return finite(number) != 0; 24 return _finite(number) != 0;
|
rand_util_win.cc | 15 uint32 number; local 16 CHECK_EQ(rand_s(&number), 0); 17 return number;
|
/external/chromium_org/third_party/WebKit/Source/core/platform/ |
FloatConversion.h | 38 inline float narrowPrecisionToFloat(double number) 40 return static_cast<float>(number);
|
/external/v8/src/ |
v8conversions.h | 36 // Convert from Number object to C integer. 37 inline int32_t NumberToInt32(Object* number) { 38 if (number->IsSmi()) return Smi::cast(number)->value(); 39 return DoubleToInt32(number->Number()); 43 inline uint32_t NumberToUint32(Object* number) { 44 if (number->IsSmi()) return Smi::cast(number)->value(); 45 return DoubleToUint32(number->Number()) [all...] |
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
PhoneNumberUtilsWrapper.java | 34 /** Returns true if it is possible to place a call to the given number. */ 35 public static boolean canPlaceCallsTo(CharSequence number, int presentation) { 37 && !TextUtils.isEmpty(number) && !isLegacyUnknownNumbers(number); 41 * Returns true if it is possible to send an SMS to the given number. 43 public boolean canSendSmsTo(CharSequence number, int presentation) { 44 return canPlaceCallsTo(number, presentation) && !isVoicemailNumber(number) && !isSipNumber( 45 number); 49 * Returns true if the given number is the number of the configured voicemail. To be able t [all...] |
/external/chromium/base/i18n/ |
number_formatting.h | 14 string16 FormatNumber(int64 number);
|
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
SVGPathStringBuilder.cpp | 41 m_stringBuilder.append("M " + String::number(targetPoint.x()) + ' ' + String::number(targetPoint.y()) + ' '); 43 m_stringBuilder.append("m " + String::number(targetPoint.x()) + ' ' + String::number(targetPoint.y()) + ' '); 49 m_stringBuilder.append("L " + String::number(targetPoint.x()) + ' ' + String::number(targetPoint.y()) + ' '); 51 m_stringBuilder.append("l " + String::number(targetPoint.x()) + ' ' + String::number(targetPoint.y()) + ' '); 57 m_stringBuilder.append("H " + String::number(x) + ' '); 59 m_stringBuilder.append("h " + String::number(x) + ' ') [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/ |
CRLNumber.java | 18 private BigInteger number; field in class:CRLNumber 21 BigInteger number) 23 this.number = number; 28 return number; 38 return new ASN1Integer(number);
|
/external/chromium_org/third_party/libxml/src/ |
trionan.h | 36 * Return NaN (Not-a-Number). 56 * If number is a NaN return non-zero, otherwise return zero. 58 TRIO_PUBLIC int trio_isnan TRIO_PROTO((double number)); 61 * If number is positive infinity return 1, if number is negative 64 TRIO_PUBLIC int trio_isinf TRIO_PROTO((double number)); 67 * If number is finite return non-zero, otherwise return zero. 71 TRIO_PUBLIC int trio_isfinite TRIO_PROTO((double number)); 73 TRIO_PUBLIC int trio_fpclassify TRIO_PROTO((double number)); 76 TRIO_PUBLIC int trio_signbit TRIO_PROTO((double number)); [all...] |
/external/libxml2/ |
trionan.h | 36 * Return NaN (Not-a-Number). 56 * If number is a NaN return non-zero, otherwise return zero. 58 TRIO_PUBLIC int trio_isnan TRIO_PROTO((double number)); 61 * If number is positive infinity return 1, if number is negative 64 TRIO_PUBLIC int trio_isinf TRIO_PROTO((double number)); 67 * If number is finite return non-zero, otherwise return zero. 71 TRIO_PUBLIC int trio_isfinite TRIO_PROTO((double number)); 73 TRIO_PUBLIC int trio_fpclassify TRIO_PROTO((double number)); 76 TRIO_PUBLIC int trio_signbit TRIO_PROTO((double number)); [all...] |
/external/chromium_org/base/i18n/ |
number_formatting.h | 14 // Return a number formatted with separators in the user's locale. 17 BASE_I18N_EXPORT string16 FormatNumber(int64 number); 19 // Return a number formatted with separators in the user's locale. 22 BASE_I18N_EXPORT string16 FormatDouble(double number, int fractional_digits);
|
/external/chromium_org/third_party/WebKit/Source/core/css/ |
CSSAspectRatioValue.cpp | 36 return String::number(m_numeratorValue) + '/' + String::number(m_denominatorValue);
|
CSSTimingFunctionValue.cpp | 41 + String::number(m_x1) + ", " 42 + String::number(m_y1) + ", " 43 + String::number(m_x2) + ", " 44 + String::number(m_y2) + ")"; 54 return "steps(" + String::number(m_steps) + ", " + (m_stepAtStart ? "start" : "end") + ')';
|
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/ |
shortnumberutil.h | 43 // Returns true if the number might be used to connect to an emergency service 46 // This method takes into account cases where the number might contain 49 bool ConnectsToEmergencyNumber(const string& number, 52 // Returns true if the number exactly matches an emergency service number in 55 // This method takes into account cases where the number might contain 57 bool IsEmergencyNumber(const string& number, 63 bool MatchesEmergencyNumberHelper(const string& number,
|
phonenumbermatch.h | 17 // A mutable match of a phone number within a piece of text. 20 // A match consists of the phone number as well as the start and end offsets of 25 // searched text, the match offsets, and the parsed number: 30 // // Find the first phone number match: 37 // // raw_string() contains the phone number as it appears in the text. 44 // // number() returns the the same result as PhoneNumberUtil::Parse() 47 // util.Parse(match.raw_string(), country).Equals(match.number()); 69 // - number is the matched phone number. 72 const PhoneNumber& number); [all...] |
/external/chromium_org/components/autofill/core/browser/ |
phone_number_i18n_unittest.cc | 47 base::string16 number; local 57 &number, 59 EXPECT_EQ(base::string16(), number); local 68 &number, 70 EXPECT_EQ(base::string16(), number); local 75 // Not a valid number - starts with 1 80 &number, 82 EXPECT_EQ(base::string16(), number); local 86 // Not a valid number - does not have area code. 91 &number, 93 EXPECT_EQ(base::string16(), number); local 105 EXPECT_EQ(base::string16(), number); local 118 EXPECT_EQ(base::string16(), number); local 131 EXPECT_EQ(base::string16(), number); local 142 EXPECT_EQ(base::string16(), number); local 177 EXPECT_EQ(base::string16(), number); local 276 base::string16 number; local [all...] |
/external/chromium_org/third_party/leveldatabase/src/db/ |
filename_test.cc | 19 uint64_t number; local 24 uint64_t number; member in struct:leveldb::__anon13658 40 ASSERT_TRUE(ParseFileName(f, &number, &type)) << f; 42 ASSERT_EQ(cases[i].number, number) << f; 72 ASSERT_TRUE(!ParseFileName(f, &number, &type)) << f; 77 uint64_t number; local 83 ASSERT_TRUE(ParseFileName(fname.c_str() + 4, &number, &type)); 84 ASSERT_EQ(0, number); 89 ASSERT_TRUE(ParseFileName(fname.c_str() + 4, &number, &type)) [all...] |
/packages/apps/InCallUI/src/com/android/incallui/ |
CallerInfoUtils.java | 38 * information about the phone number label, user's name, etc). 43 String number = info.phoneNumber; local 48 // Start the query with the number provided from the call. 50 CallerInfoAsyncQuery.startQuery(QUERY_TOKEN, context, number, listener, call); 59 // here regardless of whether the number is empty or not). 65 String number = identification.getNumber(); local 66 if (!TextUtils.isEmpty(number)) { 67 final String[] numbers = number.split("&"); 68 number = numbers[0]; 73 number = modifyForSpecialCnapCases(context, info, number, info.numberPresentation) [all...] |
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/ |
PhoneNumberMatch.java | 24 * The immutable match of a phone number within a piece of text. Matches may be found using 27 * <p>A match consists of the {@linkplain #number() phone number} as well as the 32 * match offsets, and the parsed number: 39 * // Find the first phone number match: 42 * // rawString() contains the phone number as it appears in the text. 49 * // number() returns the the same result as PhoneNumberUtil.{@link PhoneNumberUtil#parse parse()} 51 * util.parse(m.rawString(), country).equals(m.number()); 61 /** The matched phone number. */ 62 private final PhoneNumber number; field in class:PhoneNumberMatch 84 public PhoneNumber number() { method in class:PhoneNumberMatch [all...] |