/packages/apps/Email/tests/src/com/android/email/activity/ |
D | MessagesAdapterTests.java | 74 MessagesAdapter.MessagesCursor result = getLoaderResult(accountId, mailboxId); in testLoad() local 75 assertTrue(result.mIsFound); in testLoad() 76 assertEquals(accountId, result.mAccount.mId); in testLoad() 77 assertEquals(mailboxId, result.mMailbox.mId); in testLoad() 78 assertFalse(result.mIsEasAccount); in testLoad() 79 assertTrue(result.mIsRefreshable); in testLoad() 89 MessagesAdapter.MessagesCursor result = getLoaderResult(accountId, mailboxId); in testLoadEas() local 90 assertTrue(result.mIsFound); in testLoadEas() 91 assertEquals(accountId, result.mAccount.mId); in testLoadEas() 92 assertEquals(mailboxId, result.mMailbox.mId); in testLoadEas() [all …]
|
/packages/experimental/UiAutomation/library/src/com/android/testing/uiautomation/ |
D | AutomationProvider.java | 95 String result = null; in getCurrentActivityName() local 97 result = mService.getCurrentActivityName(); in getCurrentActivityName() 102 mTraceLogger.logTrace(TraceLogger.FUNC_GET_CURR_ACTIVITY_NAME, result); in getCurrentActivityName() 103 return result; in getCurrentActivityName() 112 String result = null; in getCurrentActivityPackage() local 114 result = mService.getCurrentActivityPackage(); in getCurrentActivityPackage() 119 mTraceLogger.logTrace(TraceLogger.FUNC_GET_CURR_ACTIVITY_PKG, result); in getCurrentActivityPackage() 120 return result; in getCurrentActivityPackage() 129 String result = null; in getCurrentActivityClass() local 131 result = mService.getCurrentActivityClass(); in getCurrentActivityClass() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarEventModel.java | 454 int result = 1; in hashCode() local 455 result = prime * result + (mAllDay ? 1231 : 1237); in hashCode() 456 result = prime * result + ((mAttendeesList == null) ? 0 : getAttendeesString().hashCode()); in hashCode() 457 result = prime * result + (int) (mCalendarId ^ (mCalendarId >>> 32)); in hashCode() 458 result = prime * result + ((mDescription == null) ? 0 : mDescription.hashCode()); in hashCode() 459 result = prime * result + ((mDuration == null) ? 0 : mDuration.hashCode()); in hashCode() 460 result = prime * result + (int) (mEnd ^ (mEnd >>> 32)); in hashCode() 461 result = prime * result + (mGuestsCanInviteOthers ? 1231 : 1237); in hashCode() 462 result = prime * result + (mGuestsCanModify ? 1231 : 1237); in hashCode() 463 result = prime * result + (mGuestsCanSeeGuests ? 1231 : 1237); in hashCode() [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SuggestionData.java | 223 int result = 1; in hashCode() local 224 result = prime * result + ((mFormat == null) ? 0 : mFormat.hashCode()); in hashCode() 225 result = prime * result + ((mIcon1 == null) ? 0 : mIcon1.hashCode()); in hashCode() 226 result = prime * result + ((mIcon2 == null) ? 0 : mIcon2.hashCode()); in hashCode() 227 result = prime * result + ((mIntentAction == null) ? 0 : mIntentAction.hashCode()); in hashCode() 228 result = prime * result + ((mIntentData == null) ? 0 : mIntentData.hashCode()); in hashCode() 229 result = prime * result + ((mIntentExtraData == null) ? 0 : mIntentExtraData.hashCode()); in hashCode() 230 result = prime * result + ((mLogType == null) ? 0 : mLogType.hashCode()); in hashCode() 231 result = prime * result + ((mShortcutId == null) ? 0 : mShortcutId.hashCode()); in hashCode() 232 result = prime * result + ((mSource == null) ? 0 : mSource.hashCode()); in hashCode() [all …]
|
D | RankAwarePromoter.java | 129 for (CorpusResult result : suggestions) { in partitionSuggestionsByRank() 130 if (result.getCount() > 0) { in partitionSuggestionsByRank() 131 result.moveTo(0); in partitionSuggestionsByRank() 132 Corpus corpus = result.getCorpus(); in partitionSuggestionsByRank() 134 highRankingSuggestions.add(result); in partitionSuggestionsByRank() 136 lowRankingSuggestions.add(result); in partitionSuggestionsByRank() 174 CorpusResult result = iter.next(); in roundRobin() local 175 count += promote(result, stripeSize, promoted); in roundRobin() 176 if (result.getPosition() == result.getCount()) { in roundRobin()
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
D | neapi.c | 24 static NJ_INT16 set_previous_selection(NJ_CLASS *iwnn, NJ_RESULT *result); 25 static NJ_INT16 set_learn_word_info(NJ_CLASS *iwnn, NJ_LEARN_WORD_INFO *lword, NJ_RESULT *result); 70 NJ_EXTERN NJ_INT16 njx_get_candidate(NJ_CLASS *iwnn, NJ_RESULT *result, NJ_CHAR *buf, NJ_UINT16 buf… in njx_get_candidate() argument 78 if (result == NULL) { in njx_get_candidate() 86 switch (NJ_GET_RESULT_OP(result->operation_id)) { in njx_get_candidate() 88 ret = njd_get_candidate(iwnn, result, buf, buf_size); in njx_get_candidate() 100 NJ_EXTERN NJ_INT16 njx_get_stroke(NJ_CLASS *iwnn, NJ_RESULT *result, NJ_CHAR *buf, NJ_UINT16 buf_si… in njx_get_stroke() argument 108 if (result == NULL) { in njx_get_stroke() 116 switch (NJ_GET_RESULT_OP(result->operation_id)) { in njx_get_stroke() 118 ret = njd_get_stroke(iwnn, result, buf, buf_size); in njx_get_stroke() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | InstrumentedCursorWrapper.java | 76 boolean result = super.moveToFirst(); in moveToFirst() 78 return result; in moveToFirst() 83 boolean result = super.moveToLast(); in moveToLast() 85 return result; in moveToLast() 90 boolean result = super.move(offset); in move() 92 return result; in move() 97 boolean result = super.moveToPosition(position); in moveToPosition() 99 return result; in moveToPosition() 104 boolean result = super.moveToNext(); in moveToNext() 106 return result; in moveToNext() [all …]
|
D | AccountWithDataSet.java | 60 int result = mAccountName != null ? mAccountName.hashCode() : 0; in hashCode() local 61 result = 31 * result + (mAccountType != null ? mAccountType.hashCode() : 0); in hashCode() 62 result = 31 * result + (mDataSet != null ? mDataSet.hashCode() : 0); in hashCode() 63 return result; in hashCode()
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/ |
D | PointerInfo.java | 88 ByteBuffer result = null; in toByteBuffer() local 96 result = ByteBuffer.allocate(byteCount).order(input2.order()); in toByteBuffer() 98 result.put(input2.get()); in toByteBuffer() 107 result = ByteBuffer.allocate(byteCount).order(input2.order()); in toByteBuffer() 108 CharBuffer result2 = result.asCharBuffer(); in toByteBuffer() 119 result = ByteBuffer.allocate(byteCount).order(input2.order()); in toByteBuffer() 120 ShortBuffer result2 = result.asShortBuffer(); in toByteBuffer() 131 result = ByteBuffer.allocate(byteCount).order(input2.order()); in toByteBuffer() 132 IntBuffer result2 = result.asIntBuffer(); in toByteBuffer() 143 result = ByteBuffer.allocate(byteCount).order(input2.order()); in toByteBuffer() [all …]
|
/packages/apps/Mms/src/com/android/mms/dom/smil/ |
D | TimeImpl.java | 132 float result = 0; in parseClockValue() local 139 result = parseFloat(clockValue, 2, true); in parseClockValue() 141 result = 1000*parseFloat(clockValue, 1, true); in parseClockValue() 143 result = 60000*parseFloat(clockValue, 3, true); in parseClockValue() 145 result = 3600000*parseFloat(clockValue, 1, true); in parseClockValue() 162 result = 3600000*(int)parseFloat(timeValues[0], 0, false); in parseClockValue() 171 result += 60000*minutes; in parseClockValue() 179 result += 60000*seconds; in parseClockValue() 185 return result; in parseClockValue() 211 float result; in parseFloat() local [all …]
|
/packages/apps/Email/src/com/android/email/ |
D | ControllerResultUiThreadWrapper.java | 61 public void loadAttachmentCallback(final MessagingException result, final long accountId, in loadAttachmentCallback() argument 70 mWrappee.loadAttachmentCallback(result, accountId, messageId, attachmentId, in loadAttachmentCallback() 77 public void loadMessageForViewCallback(final MessagingException result, final long accountId, in loadMessageForViewCallback() argument 82 mWrappee.loadMessageForViewCallback(result, accountId, messageId, progress); in loadMessageForViewCallback() 88 public void sendMailCallback(final MessagingException result, final long accountId, in sendMailCallback() argument 93 mWrappee.sendMailCallback(result, accountId, messageId, progress); in sendMailCallback() 99 public void serviceCheckMailCallback(final MessagingException result, final long accountId, in serviceCheckMailCallback() argument 104 mWrappee.serviceCheckMailCallback(result, accountId, mailboxId, progress, tag); in serviceCheckMailCallback() 110 public void updateMailboxCallback(final MessagingException result, final long accountId, in updateMailboxCallback() argument 116 mWrappee.updateMailboxCallback(result, accountId, mailboxId, progress, in updateMailboxCallback() [all …]
|
/packages/apps/Nfc/jni/ |
D | com_android_nfc_list.cpp | 58 bool result; in listAdd() local 64 result = false; in listAdd() 93 result = true; in listAdd() 97 return result; in listAdd() 104 bool result; in listRemove() local 112 result = false; in listRemove() 140 result = false; in listRemove() 156 result = true; in listRemove() 160 return result; in listRemove() 166 bool result; in listGetAndRemoveNext() local [all …]
|
/packages/apps/Email/emailcommon/src/org/apache/commons/io/output/ |
D | CountingOutputStream.java | 99 long result = getByteCount(); in getCount() local 100 if (result > Integer.MAX_VALUE) { in getCount() 101 …throw new ArithmeticException("The byte count " + result + " is too large to be converted to an in… in getCount() 103 return (int) result; in getCount() 117 long result = resetByteCount(); in resetCount() local 118 if (result > Integer.MAX_VALUE) { in resetCount() 119 …throw new ArithmeticException("The byte count " + result + " is too large to be converted to an in… in resetCount() 121 return (int) result; in resetCount()
|
/packages/apps/Email/emailcommon/src/org/apache/commons/io/input/ |
D | CountingInputStream.java | 120 long result = getByteCount(); in getCount() local 121 if (result > Integer.MAX_VALUE) { in getCount() 122 …throw new ArithmeticException("The byte count " + result + " is too large to be converted to an in… in getCount() 124 return (int) result; in getCount() 138 long result = resetByteCount(); in resetCount() local 139 if (result > Integer.MAX_VALUE) { in resetCount() 140 …throw new ArithmeticException("The byte count " + result + " is too large to be converted to an in… in resetCount() 142 return (int) result; in resetCount()
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetModel.java | 124 int result = 1; in hashCode() local 125 result = prime * result + (allDay ? 1231 : 1237); in hashCode() 126 result = prime * result + (int) (id ^ (id >>> 32)); in hashCode() 127 result = prime * result + (int) (end ^ (end >>> 32)); in hashCode() 128 result = prime * result + (int) (start ^ (start >>> 32)); in hashCode() 129 result = prime * result + ((title == null) ? 0 : title.hashCode()); in hashCode() 130 result = prime * result + visibTitle; in hashCode() 131 result = prime * result + visibWhen; in hashCode() 132 result = prime * result + visibWhere; in hashCode() 133 result = prime * result + ((when == null) ? 0 : when.hashCode()); in hashCode() [all …]
|
/packages/apps/Camera/src/com/android/camera/ |
D | IntArray.java | 38 public int[] toArray(int[] result) { in toArray() argument 39 if (result == null || result.length < mSize) { in toArray() 40 result = new int[mSize]; in toArray() 42 System.arraycopy(mData, 0, result, 0, mSize); in toArray() 43 return result; in toArray()
|
/packages/apps/Exchange/tests/src/com/android/exchange/provider/ |
D | ExchangeDirectoryProviderTests.java | 52 GalResult result = new GalResult(); in testBuildSimpleGalResultCursor() local 53 result.addGalData(1, "Alice Aardvark", "alice@aardvark.com"); in testBuildSimpleGalResultCursor() 54 result.addGalData(2, "Bob Badger", "bob@badger.com"); in testBuildSimpleGalResultCursor() 55 result.addGalData(3, "Clark Cougar", "clark@cougar.com"); in testBuildSimpleGalResultCursor() 56 result.addGalData(4, "Dan Dolphin", "dan@dolphin.com"); in testBuildSimpleGalResultCursor() 59 Cursor c = provider.buildGalResultCursor(GAL_RESULT_PROJECTION, result); in testBuildSimpleGalResultCursor() 64 GalData data = result.galData.get(i); in testBuildSimpleGalResultCursor() 86 GalResult result = new GalResult(); in getTestDisplayNameResult() local 93 result.addGalData(galData); in getTestDisplayNameResult() 95 return result; in getTestDisplayNameResult() [all …]
|
/packages/apps/Camera/tests/src/com/android/camera/ |
D | StressTests.java | 39 TestSuite result = new TestSuite(); in suite() local 40 result.addTestSuite(SwitchPreview.class); in suite() 41 result.addTestSuite(ImageCapture.class); in suite() 42 result.addTestSuite(CameraLatency.class); in suite() 43 result.addTestSuite(CameraStartUp.class); in suite() 44 return result; in suite()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | IntArray.java | 38 public int[] toArray(int[] result) { in toArray() argument 39 if (result == null || result.length < mSize) { in toArray() 40 result = new int[mSize]; in toArray() 42 System.arraycopy(mData, 0, result, 0, mSize); in toArray() 43 return result; in toArray()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | AccessPoint.java | 86 private static int getSecurity(ScanResult result) { in getSecurity() argument 87 if (result.capabilities.contains("WEP")) { in getSecurity() 89 } else if (result.capabilities.contains("PSK")) { in getSecurity() 91 } else if (result.capabilities.contains("EAP")) { in getSecurity() 128 private static PskType getPskType(ScanResult result) { in getPskType() argument 129 boolean wpa = result.capabilities.contains("WPA-PSK"); in getPskType() 130 boolean wpa2 = result.capabilities.contains("WPA2-PSK"); in getPskType() 138 Log.w(TAG, "Received abnormal flag string: " + result.capabilities); in getPskType() 150 AccessPoint(Context context, ScanResult result) { in AccessPoint() argument 153 loadResult(result); in AccessPoint() [all …]
|
/packages/apps/Calculator/src/com/android/calculator2/ |
D | Logic.java | 170 String result = evaluate(text); in evaluateAndShowResult() local 171 if (!text.equals(result)) { in evaluateAndShowResult() 173 mResult = result; in evaluateAndShowResult() 232 String result = ""; in evaluate() local 234 result = tryFormattingWithPrecision(value, precision); in evaluate() 235 if (result.length() <= mLineLength) { in evaluate() 239 return result.replace('-', MINUS).replace(INFINITY, INFINITY_UNICODE); in evaluate() 245 String result = String.format(Locale.US, "%" + mLineLength + "." + precision + "g", value); in tryFormattingWithPrecision() local 246 if (result.equals(NAN)) { // treat NaN as Error in tryFormattingWithPrecision() 250 String mantissa = result; in tryFormattingWithPrecision() [all …]
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DrmConvertSession.java | 83 byte[] result = null; in convert() 98 result = convertedStatus.convertedData; in convert() 110 return result; in convert() 125 int result = Downloads.Impl.STATUS_UNKNOWN_ERROR; in close() local 132 result = Downloads.Impl.STATUS_NOT_ACCEPTABLE; in close() 139 result = Downloads.Impl.STATUS_SUCCESS; in close() 141 result = Downloads.Impl.STATUS_FILE_ERROR; in close() 144 result = Downloads.Impl.STATUS_FILE_ERROR; in close() 147 result = Downloads.Impl.STATUS_FILE_ERROR; in close() 157 result = Downloads.Impl.STATUS_FILE_ERROR; in close() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | FilterUtils.java | 80 int[] result = new int[6]; in setupMenuItems() local 81 getAppliedFilters(path, result); in setupMenuItems() 82 int ctype = result[CLUSTER_TYPE]; in setupMenuItems() 83 int ftype = result[FILTER_TYPE]; in setupMenuItems() 84 int ftypef = result[FILTER_TYPE_F]; in setupMenuItems() 85 int ccurrent = result[CLUSTER_CURRENT_TYPE]; in setupMenuItems() 86 int fcurrent = result[FILTER_CURRENT_TYPE]; in setupMenuItems() 117 private static void getAppliedFilters(Path path, int[] result) { in getAppliedFilters() argument 118 getAppliedFilters(path, result, false); in getAppliedFilters() 121 private static void getAppliedFilters(Path path, int[] result, boolean underCluster) { in getAppliedFilters() argument [all …]
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | OpenWnnDictionaryImpl.java | 632 WnnWord result = new WnnWord( ); in getNextWord() local 645 result.stroke = mDbCursor.getString( 0 ); in getNextWord() 646 result.candidate = mDbCursor.getString( 1 ); in getNextWord() 647 result.partOfSpeech.left = mDbCursor.getInt( 2 ); in getNextWord() 648 result.partOfSpeech.right = mDbCursor.getInt( 3 ); in getNextWord() 651 result.frequency = mFrequencyOffsetOfUserDictionary; in getNextWord() 653 result.frequency = mFrequencyOffsetOfLearnDictionary; in getNextWord() 662 return result; in getNextWord() 666 result = null; in getNextWord() 671 result = null; in getNextWord() [all …]
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | ContactLoader.java | 61 ContactData result = new ContactData(); in loadInBackground() local 75 result.uri = contactUri; in loadInBackground() 92 result.statuses = statuses; in loadInBackground() 105 result.nameRawContactId = cursor.getLong(cursor in loadInBackground() 107 result.displayNameSource = cursor.getInt(cursor in loadInBackground() 130 result.entities = entities; in loadInBackground() 133 return result; in loadInBackground() 137 public void deliverResult(ContactData result) { in deliverResult() argument 143 mContact = result; in deliverResult() 144 if (result != null) { in deliverResult() [all …]
|