/packages/apps/Dialer/src/com/android/dialer/dialpad/ |
D | SmartDialPrefix.java | 131 final ArrayList<String> result = Lists.newArrayList(); in parseToIndexTokens() local 146 result.add(currentIndexToken.toString()); in parseToIndexTokens() 154 result.add(currentIndexToken.toString()); in parseToIndexTokens() 156 return result; in parseToIndexTokens() 167 final ArrayList<String> result = Lists.newArrayList(); in generateNamePrefixes() local 181 result.add(fullNameToken.toString()); in generateNamePrefixes() 192 final int recursiveNameStart = result.size(); in generateNamePrefixes() 193 int recursiveNameEnd = result.size(); in generateNamePrefixes() 202 result.add(initial + fullNames.get(j)); in generateNamePrefixes() 205 result.add(initial + result.get(j)); in generateNamePrefixes() [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/apps/Email/tests/src/com/android/email/service/ |
D | AttachmentServiceTests.java | 58 final boolean result = dq.addRequest(dr); in testDownloadQueueAddRequest() 59 assertTrue(result); in testDownloadQueueAddRequest() 81 boolean result = dq.addRequest(dr); in testDownloadQueueAddRequestExisting() 82 assertTrue(result); in testDownloadQueueAddRequestExisting() 87 result = dq.addRequest(dr); in testDownloadQueueAddRequestExisting() 88 assertTrue(result); in testDownloadQueueAddRequestExisting() 97 boolean result = dq.addRequest(dr); in testDownloadQueueRemoveRequest() 98 assertTrue(result); in testDownloadQueueRemoveRequest() 103 result = dq.removeRequest(dr); in testDownloadQueueRemoveRequest() 104 assertTrue(result); in testDownloadQueueRemoveRequest() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | MetadataDbHelper.java | 486 final ContentValues result = new ContentValues(COLUMN_COUNT); in makeContentValues() local 487 result.put(PENDINGID_COLUMN, pendingId); in makeContentValues() 488 result.put(TYPE_COLUMN, type); in makeContentValues() 489 result.put(WORDLISTID_COLUMN, wordlistId); in makeContentValues() 490 result.put(STATUS_COLUMN, status); in makeContentValues() 491 result.put(LOCALE_COLUMN, locale); in makeContentValues() 492 result.put(DESCRIPTION_COLUMN, description); in makeContentValues() 493 result.put(LOCAL_FILENAME_COLUMN, filename); in makeContentValues() 494 result.put(REMOTE_FILENAME_COLUMN, url); in makeContentValues() 495 result.put(DATE_COLUMN, date); in makeContentValues() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaDocumentsProvider.java | 106 private void copyNotificationUri(MatrixCursor result, Cursor cursor) { in copyNotificationUri() argument 107 result.setNotificationUri(getContext().getContentResolver(), cursor.getNotificationUri()); in copyNotificationUri() 221 final MatrixCursor result = new MatrixCursor(resolveRootProjection(projection)); in queryRoots() local 222 includeImagesRoot(result); in queryRoots() 223 includeVideosRoot(result); in queryRoots() 224 includeAudioRoot(result); in queryRoots() 225 return result; in queryRoots() 231 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in queryDocument() local 239 includeImagesRootDocument(result); in queryDocument() 245 copyNotificationUri(result, cursor); in queryDocument() [all …]
|
/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_btservice_AdapterService.cpp | 694 jboolean result = JNI_FALSE; in cleanupNative() local 695 if (!sBluetoothInterface) return result; in cleanupNative() 708 jboolean result = JNI_FALSE; in enableNative() local 709 if (!sBluetoothInterface) return result; in enableNative() 711 result = (ret == BT_STATUS_SUCCESS || ret == BT_STATUS_DONE) ? JNI_TRUE : JNI_FALSE; in enableNative() 712 return result; in enableNative() 718 jboolean result = JNI_FALSE; in disableNative() local 719 if (!sBluetoothInterface) return result; in disableNative() 726 result = (ret == BT_STATUS_FAIL) ? JNI_FALSE : JNI_TRUE; in disableNative() 727 return result; in disableNative() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | Attachment.java | 354 final JSONObject result = new JSONObject(); in toJSON() local 356 result.put(AttachmentColumns.NAME, name); in toJSON() 357 result.put(AttachmentColumns.SIZE, size); in toJSON() 358 result.put(AttachmentColumns.URI, stringify(uri)); in toJSON() 359 result.put(AttachmentColumns.CONTENT_TYPE, contentType); in toJSON() 360 result.put(AttachmentColumns.STATE, state); in toJSON() 361 result.put(AttachmentColumns.DESTINATION, destination); in toJSON() 362 result.put(AttachmentColumns.DOWNLOADED_SIZE, downloadedSize); in toJSON() 363 result.put(AttachmentColumns.CONTENT_URI, stringify(contentUri)); in toJSON() 364 result.put(AttachmentColumns.THUMBNAIL_URI, stringify(thumbnailUri)); in toJSON() [all …]
|
/packages/services/Telephony/src/com/android/phone/ |
D | PhoneInterfaceManager.java | 199 public Object result; field in PhoneInterfaceManager.MainThreadRequest 251 request.result = phone != null ? in handleMessage() 271 if (ar.exception == null && ar.result != null) { in handleMessage() 272 request.result = ar.result; in handleMessage() 275 request.result = new ArrayList<NeighboringCellInfo>(0); in handleMessage() 310 request.result = hungUp; in handleMessage() 322 request.result = new IccIoResult(0x6F, 0, (byte[])null); in handleMessage() 339 if (ar.exception == null && ar.result != null) { in handleMessage() 340 request.result = ar.result; in handleMessage() 342 request.result = new IccIoResult(0x6F, 0, (byte[])null); in handleMessage() [all …]
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | HandoverDataParser.java | 340 BluetoothHandoverData result = new BluetoothHandoverData(); in parseNokia() local 341 result.valid = false; in parseNokia() 347 result.device = mBluetoothAdapter.getRemoteDevice(address); in parseNokia() 348 result.valid = true; in parseNokia() 353 result.name = new String(nameBytes, StandardCharsets.UTF_8); in parseNokia() 359 if (result.valid && result.name == null) result.name = ""; in parseNokia() 360 return result; in parseNokia() 364 BluetoothHandoverData result = new BluetoothHandoverData(); in parseBtOob() local 365 result.valid = false; in parseBtOob() 370 result.device = mBluetoothAdapter.getRemoteDevice(address); in parseBtOob() [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/ExactCalculator/src/com/android/calculator2/ |
D | CalculatorResult.java | 373 String result = in; in formatResult() local 374 if (truncated || (negative && result.charAt(0) != '-')) { in formatResult() 375 result = KeyMaps.ELLIPSIS + result.substring(1, result.length()); in formatResult() 378 final int decIndex = result.indexOf('.'); in formatResult() 390 && result.length() - msdIndex + 1 + minusSpace in formatResult() 398 final int resLen = result.length(); in formatResult() 399 String fraction = result.substring(msdIndex + 1, resLen); in formatResult() 400 result = (negative ? "-" : "") + result.substring(msdIndex, msdIndex + 1) in formatResult() 415 if (dropDigits >= result.length() - 1) { in formatResult() 417 dropDigits = Math.max(result.length() - 2, 0); in formatResult() [all …]
|
D | Evaluator.java | 385 protected void onPostExecute(InitialResult result) { in onPostExecute() argument 388 if (result.isError()) { in onPostExecute() 389 if (result.errorResourceId == R.string.timeout) { in onPostExecute() 395 mCalculator.onError(result.errorResourceId); in onPostExecute() 399 mVal = result.val; in onPostExecute() 400 mRatVal = result.ratVal; in onPostExecute() 405 mResultString = result.newResultString; in onPostExecute() 406 mResultStringOffset = result.newResultStringOffset; in onPostExecute() 413 int initPrecOffset = result.initDisplayOffset; in onPostExecute() 426 protected void onCancelled(InitialResult result) { in onCancelled() 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/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/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadStorageProvider.java | 84 private void copyNotificationUri(MatrixCursor result, Cursor cursor) { in copyNotificationUri() argument 85 result.setNotificationUri(getContext().getContentResolver(), cursor.getNotificationUri()); in copyNotificationUri() 95 final MatrixCursor result = new MatrixCursor(resolveRootProjection(projection)); in queryRoots() local 96 final RowBuilder row = result.newRow(); in queryRoots() 103 return result; in queryRoots() 155 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in queryDocument() local 158 includeDefaultDocument(result); in queryDocument() 165 copyNotificationUri(result, cursor); in queryDocument() 167 includeDownloadFromCursor(result, cursor); in queryDocument() 174 return result; in queryDocument() [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/Messaging/src/com/android/messaging/ui/photoviewer/ |
D | BuglePhotoBitmapLoader.java | 57 final BitmapResult result = new BitmapResult(); in loadInBackground() local 73 result.status = BitmapResult.STATUS_SUCCESS; in loadInBackground() 74 result.drawable = mImageResource.getDrawable(context.getResources()); in loadInBackground() 77 result.status = BitmapResult.STATUS_EXCEPTION; in loadInBackground() 80 result.status = BitmapResult.STATUS_EXCEPTION; in loadInBackground() 82 return result; in loadInBackground() 90 public void deliverResult(BitmapResult result) { in deliverResult() argument 91 final Drawable drawable = result != null ? result.drawable : null; in deliverResult() 103 super.deliverResult(result); in deliverResult() 115 final BitmapResult result = new BitmapResult(); in onStartLoading() local [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | CellLayout.java | 696 public void pointToCellExact(int x, int y, int[] result) { in pointToCellExact() argument 700 result[0] = (x - hStartPadding) / (mCellWidth + mWidthGap); in pointToCellExact() 701 result[1] = (y - vStartPadding) / (mCellHeight + mHeightGap); in pointToCellExact() 706 if (result[0] < 0) result[0] = 0; in pointToCellExact() 707 if (result[0] >= xAxis) result[0] = xAxis - 1; in pointToCellExact() 708 if (result[1] < 0) result[1] = 0; in pointToCellExact() 709 if (result[1] >= yAxis) result[1] = yAxis - 1; in pointToCellExact() 718 void pointToCellRounded(int x, int y, int[] result) { in pointToCellRounded() argument 719 pointToCellExact(x + (mCellWidth / 2), y + (mCellHeight / 2), result); in pointToCellRounded() 730 void cellToPoint(int cellX, int cellY, int[] result) { in cellToPoint() argument [all …]
|
/packages/services/Mms/src/com/android/mms/service/ |
D | MmsRequest.java | 137 int result = SmsManager.MMS_ERROR_UNSPECIFIED; in execute() local 144 result = SmsManager.MMS_ERROR_CONFIGURATION_ERROR; in execute() 147 result = SmsManager.MMS_ERROR_IO_ERROR; in execute() 172 result = Activity.RESULT_OK; in execute() 180 result = SmsManager.MMS_ERROR_INVALID_APN; in execute() 184 result = SmsManager.MMS_ERROR_UNABLE_CONNECT_MMS; in execute() 188 result = SmsManager.MMS_ERROR_HTTP_FAILURE; in execute() 193 result = SmsManager.MMS_ERROR_UNSPECIFIED; in execute() 202 processResult(context, result, response, httpStatusCode); in execute() 213 public void processResult(Context context, int result, byte[] response, int httpStatusCode) { in processResult() argument [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/UnifiedEmail/tests/src/com/android/emailcommon/mail/ |
D | AddressUnitTests.java | 189 Address[] result; in testEmptyParse() local 192 result = Address.parse(null); in testEmptyParse() 193 assertTrue("parsing null address", result != null && result.length == 0); in testEmptyParse() 196 result = Address.parse(""); in testEmptyParse() 197 assertTrue("parsing zero-length", result != null && result.length == 0); in testEmptyParse() 200 result = Address.parse(" "); in testEmptyParse() 201 assertTrue("parsing spaces", result != null && result.length == 0); in testEmptyParse() 204 result = Address.parse(" , "); in testEmptyParse() 205 assertTrue("parsing spaces with comma", result != null && result.length == 0); in testEmptyParse() 575 String result; in testEmptyToHeader() local [all …]
|
/packages/apps/CarrierConfig/src/com/android/carrierconfig/ |
D | DefaultCarrierConfigService.java | 166 boolean result = true; in checkFilters() 172 result = result && value.equals(id.getMcc()); in checkFilters() 175 result = result && value.equals(id.getMnc()); in checkFilters() 178 result = result && value.equals(id.getGid1()); in checkFilters() 181 result = result && value.equals(id.getGid2()); in checkFilters() 184 result = result && value.equals(id.getSpn()); in checkFilters() 187 result = result && value.equals(Build.DEVICE); in checkFilters() 191 result = false; in checkFilters() 195 return result; in checkFilters()
|