/external/mockito/src/org/mockito/internal/reporting/ |
Pluralizer.java | 9 public static String pluralize(int number) {
10 return number == 1 ? "1 time" : number + " times";
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
NumberTest.java | 23 * 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;
|
/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 | 36 /** Returns true if it is possible to place a call to the given number. */ 37 public static boolean canPlaceCallsTo(CharSequence number, int presentation) { 39 && !TextUtils.isEmpty(number) && !isLegacyUnknownNumbers(number); 43 * Returns true if it is possible to send an SMS to the given number. 45 public boolean canSendSmsTo(CharSequence number, int presentation) { 46 return canPlaceCallsTo(number, presentation) && !isVoicemailNumber(number) && !isSipNumber( 47 number); 51 * Returns true if the given number is the number of the configured voicemail. To be able t [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/ |
FloatConversion.h | 38 inline float narrowPrecisionToFloat(double number) 40 return static_cast<float>(number);
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
LongParcelable.java | 25 private long number; field in class:LongParcelable 28 this.number = 0; 31 public LongParcelable(long number) { 32 this.number = number; 59 dest.writeLong(number); 63 number = in.readLong(); 67 return number; 70 public void setNumber(long number) { 71 this.number = number [all...] |
/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/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);
|
/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/libphonenumber/java/src/com/android/i18n/phonenumbers/ |
ShortNumberUtil.java | 53 * Returns true if the number might be used to connect to an emergency service in the given 56 * This method takes into account cases where the number might contain formatting, or might have 59 * @param number the phone number to test 60 * @param regionCode the region where the phone number is being dialed 61 * @return if the number might be used to connect to an emergency service in the given region. 63 public boolean connectsToEmergencyNumber(String number, String regionCode) { 64 return ShortNumberInfo.getInstance().connectsToEmergencyNumber(number, regionCode); 68 * Returns true if the number exactly matches an emergency service number in the given region [all...] |
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()); 59 /** The matched phone number. */ 60 private final PhoneNumber number; field in class:PhoneNumberMatch 82 public PhoneNumber number() { method in class:PhoneNumberMatch [all...] |
/frameworks/base/libs/androidfw/tests/data/app/ |
R.h | 9 number = 0x7f010000, // default enumerator in enum:app::R::attr::__anon38489
|
/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_org/third_party/leveldatabase/src/db/ |
filename_test.cc | 19 uint64_t number; local 24 uint64_t number; member in struct:leveldb::__anon16095 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...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
CallUtil.java | 39 public static Intent getCallIntent(String number) { 40 return getCallIntent(number, null, null); 55 public static Intent getCallIntent(String number, String callOrigin) { 56 return getCallIntent(getCallUri(number), callOrigin, null); 62 public static Intent getCallIntent(String number, PhoneAccountHandle accountHandle) { 63 return getCallIntent(number, null, accountHandle); 77 String number, String callOrigin, PhoneAccountHandle accountHandle) { 78 return getCallIntent(getCallUri(number), callOrigin, accountHandle); 95 public static Intent getVideoCallIntent(String number, String callOrigin) { 96 return getCallIntent(getCallUri(number), callOrigin, null [all...] |
/external/chromium_org/third_party/protobuf/src/google/protobuf/ |
extension_set.h | 80 // A function which, given an integer value, returns true if the number 83 typedef bool EnumValidityFunc(int number); 87 typedef bool EnumValidityFuncWithArg(const void* arg, int number); 122 // Find the extension with the given containing type and number. 123 virtual bool Find(int number, ExtensionInfo* output) = 0; 135 virtual bool Find(int number, ExtensionInfo* output); 152 // ExtensionSet. When parsing, if a tag number is encountered which is 166 int number, FieldType type, 169 int number, FieldType type, 173 int number, FieldType type 851 inline int number() const { return number_; } function in class:google::protobuf::internal::ExtensionIdentifier [all...] |
/packages/apps/InCallUI/src/com/android/incallui/ |
CallerInfoUtils.java | 36 * information about the phone number label, user's name, etc). 45 // Start the query with the number provided from the call. 56 // here regardless of whether the number is empty or not). 62 String number = call.getNumber(); local 63 if (!TextUtils.isEmpty(number)) { 64 final String[] numbers = number.split("&"); 65 number = numbers[0]; 70 number = modifyForSpecialCnapCases(context, info, number, info.numberPresentation); 71 info.phoneNumber = number; [all...] |
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/ |
function.js | 6 * @return {number} 13 * @return {number} 21 * @return {number} 29 * @returns {number} 37 * @return number 39 function badReturnShouldBeTypedFunc() // ERROR - number, not {number}. 45 * @param number foo 55 * @returns {number} 63 * @returns {number} [all...] |
/external/chromium_org/components/autofill/core/browser/ |
phone_number_i18n_unittest.cc | 54 std::string number; member in struct:autofill::test_case 64 // Not a valid number - starts with 1 66 // Not a valid number - does not have area code. 68 // Valid Canadian toll-free number. 78 // Should give back phone number and city code. 81 // This one going to fail because of the incorrect number (starts with 1). 85 // Should give back phone number and city code. 89 // rest is too short for international number - the parsing should fail. 94 // 011 is a correct "dial out" prefix in the USA but the rest of the number 95 // can't parse as a US number 118 base::string16 country_code, city_code, number; local 129 EXPECT_EQ(ASCIIToUTF16(test_cases[i].number), number); local 137 base::string16 number; local [all...] |