/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...] |
/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/ |
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/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...] |
/external/chromium_org/third_party/WebKit/Source/wtf/text/ |
AtomicStringTest.cpp | 38 TEST(AtomicStringTest, Number) 41 ASSERT_EQ(AtomicString::number(intValue), "1234"); 43 ASSERT_EQ(AtomicString::number(intValue), "-1234"); 45 ASSERT_EQ(AtomicString::number(unsignedValue), "1234"); 47 ASSERT_EQ(AtomicString::number(longValue), "6553500"); 49 ASSERT_EQ(AtomicString::number(longValue), "-6553500"); 51 ASSERT_EQ(AtomicString::number(unsignedLongValue), "4294967295"); 53 ASSERT_EQ(AtomicString::number(longlongValue), "9223372036854775807"); 55 ASSERT_EQ(AtomicString::number(longlongValue), "-9223372036854775807"); 57 ASSERT_EQ(AtomicString::number(unsignedLongLongValue), "18446744073709551615") [all...] |
/external/chromium/base/i18n/ |
number_formatting.h | 14 string16 FormatNumber(int64 number);
|
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/ |
shortnumberutil.cc | 29 bool ShortNumberUtil::ConnectsToEmergencyNumber(const string& number, 32 return short_info.ConnectsToEmergencyNumber(number, region_code); 35 bool ShortNumberUtil::IsEmergencyNumber(const string& number, 38 return short_info.IsEmergencyNumber(number, region_code);
|
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/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_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 | 36 + String::number(m_x1) + ", " 37 + String::number(m_y1) + ", " 38 + String::number(m_x2) + ", " 39 + String::number(m_y2) + ")"; 49 return "steps(" + String::number(m_steps) + ", " + (m_stepAtStart ? "start" : "end") + ')';
|
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/ |
TestPhoneNumberUtilsWrapper.java | 21 * that allows injecting the voicemail number. 31 public boolean isVoicemailNumber(CharSequence number) { 32 return mVoicemailNumber.equals(number);
|
/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::__anon11692 41 ASSERT_TRUE(ParseFileName(f, &number, &type)) << f; 43 ASSERT_EQ(cases[i].number, number) << f; 73 ASSERT_TRUE(!ParseFileName(f, &number, &type)) << f; 78 uint64_t number; local 84 ASSERT_TRUE(ParseFileName(fname.c_str() + 4, &number, &type)); 85 ASSERT_EQ(0, number); 90 ASSERT_TRUE(ParseFileName(fname.c_str() + 4, &number, &type)) [all...] |