Home
last modified time | relevance | path

Searched refs:isValid (Results 1 – 22 of 22) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DUserHistoryForgettingCurveUtils.java48 public ForgettingCurveParams(boolean isValid) { in ForgettingCurveParams() argument
49 this(System.currentTimeMillis(), isValid); in ForgettingCurveParams()
52 private ForgettingCurveParams(long now, boolean isValid) { in ForgettingCurveParams() argument
53 this((int)pushCount((byte)0, isValid), now, now, isValid); in ForgettingCurveParams()
64 private ForgettingCurveParams(int fc, long now, long last, boolean isValid) { in ForgettingCurveParams() argument
65 mIsValid = isValid; in ForgettingCurveParams()
71 public boolean isValid() { in isValid() method in UserHistoryForgettingCurveUtils.ForgettingCurveParams
165 public static byte pushCount(byte fc, boolean isValid) { in pushCount() argument
169 if ((elapsedTime == 0 && count >= COUNT_MAX) || (isValid && level == 0)) { in pushCount()
187 public static boolean needsToSave(byte fc, boolean isValid, boolean addLevel0Bigram) { in needsToSave() argument
[all …]
DUserHistoryDictionary.java178 public int addToUserHistory(final String word1, String word2, boolean isValid) { in addToUserHistory() argument
192 word1, word2, new ForgettingCurveParams(isValid)); in addToUserHistory()
478 final boolean isValid = fcp.isValid(); in doLoadTaskLocked()
492 needsToSave(fc, isValid, addLevel0Bigram)) { in doLoadTaskLocked()
/packages/apps/Email/tests/src/com/android/email/provider/
DContentCacheTests.java93 assertTrue(token1a.isValid()); in testTokenList()
97 assertTrue(token1b.isValid()); in testTokenList()
109 assertFalse(token1a.isValid()); in testTokenList()
110 assertFalse(token1b.isValid()); in testTokenList()
112 assertTrue(token2.isValid()); in testTokenList()
125 assertTrue(token3a.isValid()); in testTokenList()
126 assertTrue(token3b.isValid()); in testTokenList()
127 assertTrue(token3c.isValid()); in testTokenList()
/packages/apps/Email/src/com/android/email/activity/
DChipsAddressTextView.java36 public boolean isValid(CharSequence text) { in isValid() method in ChipsAddressTextView.ForwardValidator
37 return mValidator != null ? mValidator.isValid(text) : true; in isValid()
DAddressTextView.java38 public boolean isValid(CharSequence text) { in isValid() method in AddressTextView.ForwardValidator
39 return mValidator != null ? mValidator.isValid(text) : true; in isValid()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
DPhoneNumberTestService.java97 boolean isValid = false; in dump_PhoneNumberUtil_format()
101 isValid = util.isValidNumber(pn); in dump_PhoneNumberUtil_format()
107 + ") = " + formatted + (isValid ? " (valid)" : " (invalid)")); in dump_PhoneNumberUtil_format()
/packages/apps/Email/src/com/android/email/
DEmailAddressValidator.java28 public boolean isValid(CharSequence text) { in isValid() method in EmailAddressValidator
/packages/apps/Contacts/src/com/android/contacts/util/
DDataStatus.java62 if (isValid() && !hasTimestamp) return; in possibleUpdate()
85 public boolean isValid() { in isValid() method in DataStatus
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/
DDataStatus.java60 if (isValid() && !hasTimestamp) return; in possibleUpdate()
83 public boolean isValid() { in isValid() method in DataStatus
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DPanoramaActivity.java190 this.isValid = true; in MosaicJpeg()
197 this.isValid = false; in MosaicJpeg()
203 public final boolean isValid; field in PanoramaActivity.MosaicJpeg
625 if (jpeg != null && jpeg.isValid) { in stopCapture()
849 } else if (!jpeg.isValid) { // Error when generating mosaic. in saveHighResMosaic()
/packages/apps/Camera/src/com/android/camera/
DPanoramaActivity.java185 this.isValid = true; in MosaicJpeg()
192 this.isValid = false; in MosaicJpeg()
198 public final boolean isValid; field in PanoramaActivity.MosaicJpeg
596 if (jpeg != null && jpeg.isValid) { in stopCapture()
801 } else if (!jpeg.isValid) { // Error when generating mosaic. in saveHighResMosaic()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactsRequest.java162 public boolean isValid() { in isValid() method in ContactsRequest
/packages/apps/Email/src/com/android/email/provider/
DContentCache.java254 /*package*/ boolean isValid() { in isValid() method in ContentCache.CacheToken
484 if (!token.isValid()) { in putCursorImpl()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DProximityInfo.java162 if (touchPositionCorrection != null && touchPositionCorrection.isValid()) { in createNativeProximityInfo()
DKeyboard.java316 public boolean isValid() { in isValid() method in Keyboard.Params.TouchPositionCorrection
/packages/apps/Mms/src/com/android/mms/ui/
DRecipientsEditor.java67 public boolean isValid(CharSequence text) { in isValid() method in RecipientsEditor.AddressValidator
/packages/apps/Contacts/src/com/android/contacts/activities/
DContactSelectionActivity.java114 if (!mRequest.isValid()) { in onCreate()
DPeopleActivity.java303 if (!mRequest.isValid()) { in processIntent()
/packages/apps/Calendar/src/com/android/calendar/event/
DEditEventHelper.java251 if (!model.isValid()) { in saveEvent()
548 if (!validator.isValid(address.getAddress())) { in getAddressesFromList()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupBasics.java395 && mEmailValidator.isValid(mEmailView.getText().toString().trim()); in validateFields()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarEventModel.java352 public boolean isValid() { in isValid() method in CalendarEventModel
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
DContactFragment.java581 if (fillData && status.isValid()) { in applyStatus()