/packages/apps/Dialer/src/com/android/dialer/dialpad/ |
D | SmartDialTrie.java | 110 final ArrayList<ContactNumber> result = Lists.newArrayList(); in getAllWithPrefix() local 112 return result; in getAllWithPrefix() 119 return result; in getAllWithPrefix() 123 getAll(current, result); in getAllWithPrefix() 124 return result; in getAllWithPrefix() 261 final byte[] result = new byte[length]; in parseToIndexes() 275 result[i] = (byte) (c - '0'); in parseToIndexes() 278 result[i] = (byte) (mCharacterMap[c - 'a'] - '0'); in parseToIndexes() 285 result[i] = -1; in parseToIndexes() 291 info.indexes = result; in parseToIndexes() [all …]
|
D | SmartDialCache.java | 375 final HashSet<String> result = new HashSet<String>(); in initNanpCountries() local 376 result.add("US"); // United States in initNanpCountries() 377 result.add("CA"); // Canada in initNanpCountries() 378 result.add("AS"); // American Samoa in initNanpCountries() 379 result.add("AI"); // Anguilla in initNanpCountries() 380 result.add("AG"); // Antigua and Barbuda in initNanpCountries() 381 result.add("BS"); // Bahamas in initNanpCountries() 382 result.add("BB"); // Barbados in initNanpCountries() 383 result.add("BM"); // Bermuda in initNanpCountries() 384 result.add("VG"); // British Virgin Islands in initNanpCountries() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarEventModel.java | 484 int result = 1; in hashCode() local 485 result = prime * result + (mAllDay ? 1231 : 1237); in hashCode() 486 result = prime * result + ((mAttendeesList == null) ? 0 : getAttendeesString().hashCode()); in hashCode() 487 result = prime * result + (int) (mCalendarId ^ (mCalendarId >>> 32)); in hashCode() 488 result = prime * result + ((mDescription == null) ? 0 : mDescription.hashCode()); in hashCode() 489 result = prime * result + ((mDuration == null) ? 0 : mDuration.hashCode()); in hashCode() 490 result = prime * result + (int) (mEnd ^ (mEnd >>> 32)); in hashCode() 491 result = prime * result + (mGuestsCanInviteOthers ? 1231 : 1237); in hashCode() 492 result = prime * result + (mGuestsCanModify ? 1231 : 1237); in hashCode() 493 result = prime * result + (mGuestsCanSeeGuests ? 1231 : 1237); in hashCode() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | MetadataDbHelper.java | 415 final ContentValues result = new ContentValues(COLUMN_COUNT); in makeContentValues() local 416 result.put(PENDINGID_COLUMN, pendingId); in makeContentValues() 417 result.put(TYPE_COLUMN, type); in makeContentValues() 418 result.put(WORDLISTID_COLUMN, wordlistId); in makeContentValues() 419 result.put(STATUS_COLUMN, status); in makeContentValues() 420 result.put(LOCALE_COLUMN, locale); in makeContentValues() 421 result.put(DESCRIPTION_COLUMN, description); in makeContentValues() 422 result.put(LOCAL_FILENAME_COLUMN, filename); in makeContentValues() 423 result.put(REMOTE_FILENAME_COLUMN, url); in makeContentValues() 424 result.put(DATE_COLUMN, date); in makeContentValues() [all …]
|
/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_btservice_AdapterService.cpp | 534 jboolean result = JNI_FALSE; in cleanupNative() local 535 if (!sBluetoothInterface) return result; in cleanupNative() 547 jboolean result = JNI_FALSE; in enableNative() local 548 if (!sBluetoothInterface) return result; in enableNative() 551 result = (ret == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in enableNative() 552 return result; in enableNative() 558 jboolean result = JNI_FALSE; in disableNative() local 559 if (!sBluetoothInterface) return result; in disableNative() 566 result = (ret == BT_STATUS_FAIL) ? JNI_FALSE : JNI_TRUE; in disableNative() 567 return result; in disableNative() [all …]
|
/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/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 …]
|
/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/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/Launcher2/src/com/android/launcher2/ |
D | CellLayout.java | 806 void pointToCellExact(int x, int y, int[] result) { in pointToCellExact() argument 810 result[0] = (x - hStartPadding) / (mCellWidth + mWidthGap); in pointToCellExact() 811 result[1] = (y - vStartPadding) / (mCellHeight + mHeightGap); in pointToCellExact() 816 if (result[0] < 0) result[0] = 0; in pointToCellExact() 817 if (result[0] >= xAxis) result[0] = xAxis - 1; in pointToCellExact() 818 if (result[1] < 0) result[1] = 0; in pointToCellExact() 819 if (result[1] >= yAxis) result[1] = yAxis - 1; in pointToCellExact() 828 void pointToCellRounded(int x, int y, int[] result) { in pointToCellRounded() argument 829 pointToCellExact(x + (mCellWidth / 2), y + (mCellHeight / 2), result); in pointToCellRounded() 840 void cellToPoint(int cellX, int cellY, int[] result) { in cellToPoint() argument [all …]
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | OpenWnnDictionaryImpl.java | 636 WnnWord result = new WnnWord( ); in getNextWord() local 649 result.stroke = mDbCursor.getString( 0 ); in getNextWord() 650 result.candidate = mDbCursor.getString( 1 ); in getNextWord() 651 result.partOfSpeech.left = mDbCursor.getInt( 2 ); in getNextWord() 652 result.partOfSpeech.right = mDbCursor.getInt( 3 ); in getNextWord() 655 result.frequency = mFrequencyOffsetOfUserDictionary; in getNextWord() 657 result.frequency = mFrequencyOffsetOfLearnDictionary; in getNextWord() 666 return result; in getNextWord() 670 result = null; in getNextWord() 675 result = null; in getNextWord() [all …]
|
/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/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
D | ndapi.c | 43 static void set_operation_id(NJ_SEARCH_LOCATION *dicinfo, NJ_UINT8 reverse, NJ_RESULT *result); 44 static NJ_INT16 get_word_and_search_next_word(NJ_CLASS *iwnn, NJ_CURSOR *cursor, NJ_RESULT *result,… 186 static NJ_INT16 get_word_and_search_next_word(NJ_CLASS *iwnn, NJ_CURSOR *cursor, NJ_RESULT *result, in get_word_and_search_next_word() argument 204 result->word = tmp_word; in get_word_and_search_next_word() 291 ((j == max_len) && (loctset->cache_freq > result->word.stem.hindo)) || in get_word_and_search_next_word() 294 set_operation_id(&(loctset->loct), 0, result); in get_word_and_search_next_word() 296 result->word = tmp_result.word; in get_word_and_search_next_word() 320 set_operation_id(&(loctset->loct), 0, result); in get_word_and_search_next_word() 322 result->word = tmp_result.word; in get_word_and_search_next_word() 413 static void set_operation_id(NJ_SEARCH_LOCATION *dicinfo, NJ_UINT8 reverse, NJ_RESULT *result) { in set_operation_id() argument [all …]
|
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/apps/Calendar/tests/src/com/android/calendar/ |
D | UtilsTests.java | 509 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear() local 511 assertEquals("Wednesday, April 12, 2000, 5:00PM \u2013 6:00PM", result); in testGetDisplayedDatetime_differentYear() 516 result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear() 518 assertEquals("Mon, Dec 31, 2012, 5:00PM – Tue, Jan 1, 2013, 6:00PM", result); in testGetDisplayedDatetime_differentYear() 526 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_sameYear() local 528 assertEquals("Thursday, April 12, 2012, 5:00PM \u2013 6:00PM", result); in testGetDisplayedDatetime_sameYear() 536 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_today() local 538 assertEquals("Today at 5:00PM \u2013 6:00PM", result); in testGetDisplayedDatetime_today() 546 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_todayMidnight() local 548 assertEquals("Today at 5:00PM \u2013 midnight", result); in testGetDisplayedDatetime_todayMidnight() [all …]
|
/packages/apps/Email/tests/src/com/android/emailcommon/mail/ |
D | AddressUnitTests.java | 175 Address[] result; in testEmptyParse() local 178 result = Address.parse(null); in testEmptyParse() 179 assertTrue("parsing null address", result != null && result.length == 0); in testEmptyParse() 182 result = Address.parse(""); in testEmptyParse() 183 assertTrue("parsing zero-length", result != null && result.length == 0); in testEmptyParse() 186 result = Address.parse(" "); in testEmptyParse() 187 assertTrue("parsing spaces", result != null && result.length == 0); in testEmptyParse() 190 result = Address.parse(" , "); in testEmptyParse() 191 assertTrue("parsing spaces with comma", result != null && result.length == 0); in testEmptyParse() 561 String result; in testEmptyPack() local [all …]
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/ |
D | OpenWnnDictionaryImplJni.c | 218 NJ_INT16 result; in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createWnnWork() local 262 result = njx_init( &( work->wnnClass ) ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createWnnWork() 264 if( result >= 0 ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createWnnWork() 409 jint result; in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_searchWord() local 427 result = ( jint )njx_search_word( &( work->wnnClass ), &( work->cursor ) ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_searchWord() 430 if( result == 1 ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_searchWord() 437 return result; in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_searchWord() 460 jint result; in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getNextWord() local 464 … result = ( jint )njx_get_word( &( work->wnnClass ), &( work->cursor ), &( work->result ) ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getNextWord() 467 … result = ( jint )njx_get_word( &( work->wnnClass ), &( work->cursor ), &( work->result ) ); in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getNextWord() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | ContactLoader.java | 312 final Contact result; in loadInBackground() local 318 result = new Contact(mRequestedUri, cachedResult); in loadInBackground() 321 result = loadContactEntity(resolver, uriCurrentFormat); in loadInBackground() 324 if (result.isLoaded()) { in loadInBackground() 325 if (result.isDirectoryEntry()) { in loadInBackground() 327 loadDirectoryMetaData(result); in loadInBackground() 330 if (result.getGroupMetaData() == null) { in loadInBackground() 331 loadGroupMetaData(result); in loadInBackground() 334 if (mLoadStreamItems && result.getStreamItems() == null) { in loadInBackground() 335 loadStreamItems(result); in loadInBackground() [all …]
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | HandoverManager.java | 501 BluetoothHandoverData result = new BluetoothHandoverData(); in parseNokia() local 502 result.valid = false; in parseNokia() 508 result.device = mBluetoothAdapter.getRemoteDevice(address); in parseNokia() 509 result.valid = true; in parseNokia() 514 result.name = new String(nameBytes, Charset.forName("UTF-8")); in parseNokia() 520 if (result.valid && result.name == null) result.name = ""; in parseNokia() 521 return result; in parseNokia() 525 BluetoothHandoverData result = new BluetoothHandoverData(); in parseBtOob() local 526 result.valid = false; in parseBtOob() 539 result.device = mBluetoothAdapter.getRemoteDevice(address); in parseBtOob() [all …]
|
/packages/apps/Gallery2/src/com/android/camera/ui/ |
D | CameraControls.java | 184 …ivate void center(View v, int l, int t, int r, int b, int orientation, int rotation, Rect result) { in center() argument 191 result.left = (r + l) / 2 - tw / 2 + lp.leftMargin; in center() 192 result.right = (r + l) / 2 + tw / 2 - lp.rightMargin; in center() 193 result.bottom = b - lp.bottomMargin; in center() 194 result.top = b - th + lp.topMargin; in center() 198 result.right = r - lp.rightMargin; in center() 199 result.left = r - tw + lp.leftMargin; in center() 200 result.top = (b + t) / 2 - th / 2 + lp.topMargin; in center() 201 result.bottom = (b + t) / 2 + th / 2 - lp.bottomMargin; in center() 205 result.left = (r + l) / 2 - tw / 2 + lp.leftMargin; in center() [all …]
|
/packages/apps/Mms/src/com/android/mms/data/ |
D | WorkingMessage.java | 330 Pair<String, String> result = new Pair<String, String>(draftText, subject); in loadDraft() local 331 return result; in loadDraft() 335 protected void onPostExecute(Pair<String, String> result) { in loadDraft() argument 336 if (!TextUtils.isEmpty(result.first)) { in loadDraft() 338 msg.setText(result.first); in loadDraft() 340 if (result.second != null) { in loadDraft() 342 if (!TextUtils.isEmpty(result.second)) { in loadDraft() 343 msg.setSubject(result.second, false); in loadDraft() 432 int result = OK; in setAttachment() local 453 result = append ? appendMedia(type, dataUri, slideShowEditor) in setAttachment() [all …]
|
/packages/apps/Nfc/nxp/jni/ |
D | com_android_nfc_NativeNfcTag.cpp | 240 jboolean result = JNI_FALSE; in com_android_nfc_NativeNfcTag_doWrite() local 281 result = JNI_TRUE; in com_android_nfc_NativeNfcTag_doWrite() 288 return result; in com_android_nfc_NativeNfcTag_doWrite() 571 jboolean result = JNI_FALSE; in com_android_nfc_NativeNfcTag_doDisconnect() local 594 result = JNI_TRUE; in com_android_nfc_NativeNfcTag_doDisconnect() 608 result = JNI_TRUE; in com_android_nfc_NativeNfcTag_doDisconnect() 633 result = JNI_TRUE; in com_android_nfc_NativeNfcTag_doDisconnect() 640 return result; in com_android_nfc_NativeNfcTag_doDisconnect() 708 jbyteArray result = NULL; in com_android_nfc_NativeNfcTag_doTransceive() local 855 result = e->NewByteArray(nfc_jni_transceive_buffer->length - 2); in com_android_nfc_NativeNfcTag_doTransceive() [all …]
|
/packages/apps/Calculator/src/com/android/calculator2/ |
D | Logic.java | 180 String result = evaluate(text); in evaluateAndShowResult() local 181 if (!text.equals(result)) { in evaluateAndShowResult() 183 mResult = result; in evaluateAndShowResult() 242 String result = ""; in evaluate() local 244 result = tryFormattingWithPrecision(value, precision); in evaluate() 245 if (result.length() <= mLineLength) { in evaluate() 249 return result.replace('-', MINUS).replace(INFINITY, INFINITY_UNICODE); in evaluate() 281 String result = String.format(Locale.US, "%" + mLineLength + "." + precision + "g", value); in tryFormattingWithPrecision() local 282 if (result.equals(NAN)) { // treat NaN as Error in tryFormattingWithPrecision() 286 String mantissa = result; in tryFormattingWithPrecision() [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/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapObexServer.java | 549 StringBuilder result = new StringBuilder(); in sendVcardListingXml() local 551 result.append("<?xml version=\"1.0\"?>"); in sendVcardListingXml() 552 result.append("<!DOCTYPE vcard-listing SYSTEM \"vcard-listing.dtd\">"); in sendVcardListingXml() 553 result.append("<vCard-listing version=\"1.0\">"); in sendVcardListingXml() 558 itemsFound = createList(maxListCount, listStartOffset, searchValue, result, in sendVcardListingXml() 561 itemsFound = createList(maxListCount, listStartOffset, searchValue, result, in sendVcardListingXml() 580 writeVCardEntry(j+1, nameList.get(j),result); in sendVcardListingXml() 583 result.append("</vCard-listing>"); in sendVcardListingXml() 587 return pushBytes(op, result.toString()); in sendVcardListingXml() 591 final String searchValue, StringBuilder result, String type) { in createList() argument [all …]
|