Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 929) sorted by relevance

12345678910>>...38

/packages/apps/Email/tests/src/com/android/emailcommon/mail/
DPackedStringTests.java43 assertEquals("val1", ps.get("tag1")); in testPackedString()
44 assertEquals("val2", ps.get("tag2")); in testPackedString()
45 assertEquals("val3", ps.get("tag3")); in testPackedString()
46 assertEquals("val4", ps.get("tag4")); in testPackedString()
47 assertNull(ps.get("tag100")); in testPackedString()
61 assertEquals("value1", b2.get("tag1")); in testPackedStringBuilderCreate()
62 assertEquals("value2", b2.get("tag2")); in testPackedStringBuilderCreate()
63 assertEquals("value3", b2.get("tag3")); in testPackedStringBuilderCreate()
64 assertEquals("value4", b2.get("tag4")); in testPackedStringBuilderCreate()
65 assertNull(b2.get("tag100")); in testPackedStringBuilderCreate()
[all …]
/packages/apps/Email/tests/src/com/android/email/activity/
DRecentMailboxManagerTest.java101 mManager.touch(1L, mailbox.mId).get(); in testTouch()
132 assertEquals(mMailboxArray[1].mId, (long) testList.get(0)); // Drafts in testGetMostRecent01()
133 assertEquals(mMailboxArray[3].mId, (long) testList.get(1)); // Sent in testGetMostRecent01()
140 mMockClock.advance(1000L); mManager.touch(1L, mMailboxArray[7].mId).get(); // costello in testGetMostRecent02()
145 assertEquals(mMailboxArray[7].mId, (long) testList.get(0)); // costello in testGetMostRecent02()
146 assertEquals(mMailboxArray[1].mId, (long) testList.get(1)); // Drafts in testGetMostRecent02()
147 assertEquals(mMailboxArray[3].mId, (long) testList.get(2)); // Sent in testGetMostRecent02()
150 assertEquals(mMailboxArray[7].mId, (long) testList.get(0)); in testGetMostRecent02()
163 mMockClock.advance(1000L); mManager.touch(1L, mMailboxArray[9].mId).get(); // laurel in testGetMostRecent03()
168 assertEquals(mMailboxArray[8].mId, (long) testList.get(0)); // bud_lou in testGetMostRecent03()
[all …]
/packages/apps/Gallery2/tests/src/com/android/gallery3d/anim/
DAnimationTest.java34 assertTrue(a.get() == 0); // start value should be 0 in testFloatAnimation()
36 assertFloatEq(a.get(), 0.1f); in testFloatAnimation()
38 assertTrue(a.get() == 0.5);// in testFloatAnimation()
40 assertFloatEq(a.get(), 0.9f); in testFloatAnimation()
43 assertTrue(a.get() == 1.0);// in testFloatAnimation()
47 assertTrue(a.get() == 0); // start value should be 0 in testFloatAnimation()
49 assertFloatEq(a.get(), 0.9f); in testFloatAnimation()
63 assertTrue(a.get() == -2); // start value should be -2 in testInterpolator()
65 assertFloatEq(a.get(), -1.6f); in testInterpolator()
67 assertTrue(a.get() == 0); // in testInterpolator()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSuggestionCursorBackedCursor.java93 private Suggestion get() { in get() method in SuggestionCursorBackedCursor
100 SuggestionExtras extras = get().getExtras(); in getExtra()
102 return extras.getExtra(mExtraColumns.get(extraColumn)); in getExtra()
128 return get().getSuggestionText1(); in getString()
130 return get().getSuggestionText2(); in getString()
132 return get().getSuggestionText2Url(); in getString()
134 return get().getSuggestionIcon1(); in getString()
136 return get().getSuggestionIcon2(); in getString()
138 return get().getSuggestionIntentAction(); in getString()
140 return get().getSuggestionIntentDataString(); in getString()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPositionController.java251 Box b = mBoxes.get(0); in setViewSize()
272 Box b = mBoxes.get(index); in forceImageSize()
296 Box b = mBoxes.get(i); in setBoxSize()
344 Box b = mBoxes.get(0); in startOpeningAnimationIfNeeded()
361 Gap g = mGaps.get(i); in startOpeningAnimationIfNeeded()
392 Box b = mBoxes.get(i); in updateScaleAndGapLimit()
398 Gap g = mGaps.get(i); in updateScaleAndGapLimit()
407 Box a = mBoxes.get(i); in getDefaultGapSize()
408 Box b = mBoxes.get(i + 1); in getDefaultGapSize()
432 mBoxes.get(i).mAnimationStartTime = NO_ANIMATION; in stopAnimation()
[all …]
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/utility/
DCalendarUtilitiesTests.java213 assertEquals(cal.get(Calendar.YEAR), 2010); in testParseEmailDateTimeToMillis()
214 assertEquals(cal.get(Calendar.MONTH), 1); // 0 based in testParseEmailDateTimeToMillis()
215 assertEquals(cal.get(Calendar.DAY_OF_MONTH), 23); in testParseEmailDateTimeToMillis()
216 assertEquals(cal.get(Calendar.HOUR_OF_DAY), 16); in testParseEmailDateTimeToMillis()
217 assertEquals(cal.get(Calendar.MINUTE), 16); in testParseEmailDateTimeToMillis()
218 assertEquals(cal.get(Calendar.SECOND), 17); in testParseEmailDateTimeToMillis()
228 assertEquals(cal.get(Calendar.YEAR), 2010); in testParseDateTimeToMillis()
229 assertEquals(cal.get(Calendar.MONTH), 1); // 0 based in testParseDateTimeToMillis()
230 assertEquals(cal.get(Calendar.DAY_OF_MONTH), 23); in testParseDateTimeToMillis()
231 assertEquals(cal.get(Calendar.HOUR_OF_DAY), 16); in testParseDateTimeToMillis()
[all …]
/packages/apps/Exchange/tests/src/com/android/exchange/utility/
DCalendarUtilitiesTests.java223 assertEquals(cal.get(Calendar.YEAR), 2010); in testParseEmailDateTimeToMillis()
224 assertEquals(cal.get(Calendar.MONTH), 1); // 0 based in testParseEmailDateTimeToMillis()
225 assertEquals(cal.get(Calendar.DAY_OF_MONTH), 23); in testParseEmailDateTimeToMillis()
226 assertEquals(cal.get(Calendar.HOUR_OF_DAY), 16); in testParseEmailDateTimeToMillis()
227 assertEquals(cal.get(Calendar.MINUTE), 16); in testParseEmailDateTimeToMillis()
228 assertEquals(cal.get(Calendar.SECOND), 17); in testParseEmailDateTimeToMillis()
238 assertEquals(cal.get(Calendar.YEAR), 2010); in testParseDateTimeToMillis()
239 assertEquals(cal.get(Calendar.MONTH), 1); // 0 based in testParseDateTimeToMillis()
240 assertEquals(cal.get(Calendar.DAY_OF_MONTH), 23); in testParseDateTimeToMillis()
241 assertEquals(cal.get(Calendar.HOUR_OF_DAY), 16); in testParseDateTimeToMillis()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DFastScrollingIndexCacheTest.java94 assertNull(mCache.get(null, null, null, null, null)); in testPutAndGet()
95 assertNull(mCache.get(URI_A, "*s*", PROJECTION_0, "*so*", "*ce*")); in testPutAndGet()
96 assertNull(mCache.get(URI_A, "*s*", PROJECTION_1, "*so*", "*ce*")); in testPutAndGet()
97 assertNull(mCache.get(URI_B, "s", PROJECTION_2, "so", "ce")); in testPutAndGet()
114 assertBundle(TITLES_0, COUNTS_0, mCache.get(null, null, null, null, null)); in testPutAndGet()
115 assertBundle(TITLES_1, COUNTS_1, mCache.get(URI_A, "*s*", PROJECTION_0, "*so*", "*ce*")); in testPutAndGet()
116 assertBundle(TITLES_2, COUNTS_2, mCache.get(URI_A, "*s*", PROJECTION_1, "*so*", "*ce*")); in testPutAndGet()
117 assertBundle(TITLES_3, COUNTS_3, mCache.get(URI_B, "s", PROJECTION_2, "so", "ce")); in testPutAndGet()
123 assertNull(mCache.get(null, null, null, null, null)); in testPutAndGet()
124 assertNull(mCache.get(URI_A, "*s*", PROJECTION_0, "*so*", "*ce*")); in testPutAndGet()
[all …]
DContactsMockResources.java41 return mPackages.get(resId) + ":" + mTypes.get(resId) + "/" + mEntries.get(resId); in getResourceName()
49 return mPackages.get(resId); in getResourcePackageName()
57 return mTypes.get(resId); in getResourceTypeName()
65 return mEntries.get(resId); in getResourceEntryName()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DMockSuggestionProviderCursor.java41 public Object get(int column) { in get() method in MockSuggestionProviderCursor
42 return mRows.get(getPosition()).get(column); in get()
57 return mRows.get(getPosition()).getDouble(column); in getDouble()
62 return mRows.get(getPosition()).getFloat(column); in getFloat()
67 return mRows.get(getPosition()).getInt(column); in getInt()
72 return mRows.get(getPosition()).getLong(column); in getLong()
77 return mRows.get(getPosition()).getShort(column); in getShort()
82 return mRows.get(getPosition()).getString(column); in getString()
87 return mRows.get(getPosition()).isNull(column); in isNull()
107 public Object get(int column) { in get() method in MockSuggestionProviderCursor.Row
/packages/experimental/procstatlog/
Dprocstatreport.py148 writer.writerow([msec] + [values.get(n, "") for n in range(num_cols)])
156 "user": cgi.escape(os.environ.get("USER", "unknown")),
178 last = last_state.get("/proc/stat:cpu", "").split()
179 next = state.get("/proc/stat:cpu", "").split()
227 last = int(last_state.get(key, -1))
228 next = int(state.get(key, -1))
263 last = int(last_state.get("/proc/stat:ctxt", -1))
264 next = int(state.get("/proc/stat:ctxt", -1))
306 last = last_state.get(key, zero_stat).split()
307 next = state.get(key, "").split()
[all …]
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DSoftKeyboard.java188 KeyRow keyRow = mKeyRows.get(mKeyRows.size() - 1); in addSoftKey()
215 KeyRow keyRow = mKeyRows.get(row); in setSkbCoreSize()
221 SoftKey softKey = softKeys.get(i); in setSkbCoreSize()
281 KeyRow keyRow = mKeyRows.get(row); in getKeyRowForDisplay()
292 List<SoftKey> softKeys = mKeyRows.get(row).mSoftKeys; in getKey()
294 return softKeys.get(location); in getKey()
308 KeyRow keyRow = mKeyRows.get(row); in mapToKey()
316 SoftKey sKey = softKeys.get(i); in mapToKey()
329 KeyRow keyRow = mKeyRows.get(row); in mapToKey()
337 SoftKey sKey = softKeys.get(i); in mapToKey()
[all …]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DComposingText.java110 return strLayer.get(pos); in getStrSegment()
130 StrSegment ss = strLayer.get(i); in toString()
177 StrSegment last = strUplayer.get(strUplayer.size() - 1); in modifyUpper()
189 StrSegment ss = strUplayer.get(i); in modifyUpper()
222 StrSegment ss = strUplayer.get(uplayer_mod_from); in modifyUpper()
226 ss = strUplayer.get(next); in modifyUpper()
237 ss = strUplayer.get(i); in modifyUpper()
249 ss = strUplayer.get(i); in modifyUpper()
290 StrSegment ss = strLayer.get(j); in insertStrSegment()
369 fromL[1] = strLayer2.get(from).from; in deleteStrSegment()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DTransitionStore.java29 mStorage.put(key, get(key, valueIfNull)); in putIfNotPresent()
33 public <T> T get(Object key) { in get() method in TransitionStore
34 return (T) mStorage.get(key); in get()
38 public <T> T get(Object key, T valueIfNull) { in get() method in TransitionStore
39 T value = (T) mStorage.get(key); in get()
/packages/apps/Email/src/com/android/email/
DRefreshManager.java144 public Status get(long id) { in get() method in RefreshManager.RefreshStatusMap
145 Status s = mMap.get(id); in get()
213 final Status status = mMailboxListStatus.get(accountId); in refreshMailboxList()
226 return mClock.getTime() >= (mMessageListStatus.get(mailboxId).getLastRefreshTime() in isMailboxStale()
231 return mClock.getTime() >= (mMailboxListStatus.get(accountId).getLastRefreshTime() in isMailboxListStale()
251 final Status status = mMessageListStatus.get(mailboxId); in refreshMessageList()
303 return mMailboxListStatus.get(accountId).getLastRefreshTime(); in getLastMailboxListRefreshTime()
307 return mMessageListStatus.get(mailboxId).getLastRefreshTime(); in getLastMessageListRefreshTime()
311 return mMailboxListStatus.get(accountId).isRefreshing(); in isMailboxListRefreshing()
315 return mMessageListStatus.get(mailboxId).isRefreshing(); in isMessageListRefreshing()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DEventFieldEditorView.java122 final EditField editField = getKind().fieldList.get(0); in rebuildDateView()
138 final EditField editField = getKind().fieldList.get(0); in isEmpty()
163 final String column = getKind().fieldList.get(0).column; in onLabelRebuilt()
168 final int defaultYear = calendar.get(Calendar.YEAR); in onLabelRebuilt()
182 calendar.set(defaultYear, calendar.get(Calendar.MONTH), in onLabelRebuilt()
183 calendar.get(Calendar.DAY_OF_MONTH), DEFAULT_HOUR, 0, 0); in onLabelRebuilt()
194 final String column = getKind().fieldList.get(0).column; in createDatePickerDialog()
199 final int defaultYear = calendar.get(Calendar.YEAR); in createDatePickerDialog()
220 oldYear = calendar.get(Calendar.YEAR); in createDatePickerDialog()
221 oldMonth = calendar.get(Calendar.MONTH); in createDatePickerDialog()
[all …]
/packages/apps/Mms/tests/src/com/android/mms/
DSmsTestRunner.java68 String recipientPhoneNumber = (String) icicle.get("recipient"); in onCreate()
72 String numMsgStr = (String) icicle.get("messages"); in onCreate()
76 String msgFileNameStr = (String) icicle.get("messagefile"); in onCreate()
80 String recpFileNameStr = (String) icicle.get("recipientfile"); in onCreate()
85 String receiveTimerStr = (String) icicle.get("receivetimer"); in onCreate()
90 String sendIntervalStr = (String) icicle.get("sendinterval"); in onCreate()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DPointerTrackerQueue.java60 final Element element = expandableArray.get(index); in remove()
77 return (mArraySize == 0) ? null : mExpandableArrayOfActivePointers.get(0); in getOldestElement()
89 final Element element = expandableArray.get(index); in releaseAllPointersOlderThan()
106 final Element element = expandableArray.get(index); in releaseAllPointersOlderThan()
115 expandableArray.set(newSize, expandableArray.get(index)); in releaseAllPointersOlderThan()
139 final Element element = expandableArray.get(index); in releaseAllPointersExcept()
162 final Element element = expandableArray.get(index); in hasModifierKeyOlderThan()
177 final Element element = expandableArray.get(index); in isAnyInSlidingKeyInput()
191 final Element element = expandableArray.get(index); in toString()
/packages/apps/Mms/src/com/android/mms/ui/
DSlideshowEditor.java131 return mModel.get(position).removeText(); in removeText()
135 return mModel.get(position).removeImage(); in removeImage()
139 return mModel.get(position).removeVideo(); in removeVideo()
143 return mModel.get(position).removeAudio(); in removeAudio()
148 SlideModel slide = mModel.get(position); in changeText()
163 mModel.get(position).add(new ImageModel( in changeImage()
169 SlideModel slide = mModel.get(position); in changeAudio()
177 SlideModel slide = mModel.get(position); in changeVideo()
192 mModel.get(position).setDuration(dur); in changeDuration()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DFilterDeleteSet.java122 Deletion d = mCurrent.get(i); in getMediaItem()
128 Deletion d = mCurrent.get(j); in getMediaItem()
137 Deletion d = mCurrent.get(m); in getMediaItem()
153 Request r = mRequests.get(i); in reload()
160 if (mCurrent.get(j).path == r.path) break; in reload()
171 if (mCurrent.get(j).path == r.path) { in reload()
191 int minIndex = mCurrent.get(0).index; in reload()
194 Deletion d = mCurrent.get(i); in reload()
205 MediaItem item = items.get(i); in reload()
210 Deletion d = mCurrent.get(j); in reload()
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
DPointerInfo.java98 result.put(input2.get()); in toByteBuffer()
110 result2.put(input2.get()); in toByteBuffer()
122 result2.put(input2.get()); in toByteBuffer()
134 result2.put(input2.get()); in toByteBuffer()
146 result2.put(input2.get()); in toByteBuffer()
158 result2.put(input2.get()); in toByteBuffer()
170 result2.put(input2.get()); in toByteBuffer()
202 result[i] = byteBuffer.get(byteOffset); in getArrayElement()
206 result[i] = shortBuffer.get(byteOffset / 2); in getArrayElement()
210 result[i] = intBuffer.get(byteOffset / 4); in getArrayElement()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictIOTests.java88 sChainBigrams.get(i - 1).add(i); in BinaryDictIOTests()
94 sStarBigrams.get(0).add(i); in BinaryDictIOTests()
158 final String word = words.get(i); in addUnigrams()
161 for (final String shortcut : shortcutMap.get(word)) { in addUnigrams()
176 dict.setBigram(words.get(w1), words.get(w2), BIGRAM_FREQ); in addBigrams()
218 final CharGroup cg = FusionDictionary.findWordInTree(dict.mRoot, words.get(w1)); in checkDictionary()
219 assertNotNull(words.get(w1) + "," + words.get(w2), cg.getBigram(words.get(w2))); in checkDictionary()
346 final String word1 = expectedWords.get(expectedBigrams.keyAt(i)); in checkWordMap()
348 if (expBigrams.get(word1) == null) { in checkWordMap()
351 expBigrams.get(word1).add(expectedWords.get(w2)); in checkWordMap()
[all …]
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
DDelayedOperationsTests.java54 assertEquals(1, i.get()); in testEnueue()
60 assertEquals(7, i.get()); in testEnueue()
89 assertEquals(1, i.get()); in testCancel()
95 assertEquals(5, i.get()); in testCancel()
121 assertEquals(1, i.get()); in testCancelAll()
130 assertEquals(1, i.get()); in testCancelAll()
/packages/apps/Contacts/tests/src/com/android/contacts/
DRawContactDeltaTests.java236 final ContentProviderOperation oper = diff.get(0); in testEntityDiffNoneInsert()
240 final ContentProviderOperation oper = diff.get(1); in testEntityDiffNoneInsert()
245 final ContentProviderOperation oper = diff.get(2); in testEntityDiffNoneInsert()
250 final ContentProviderOperation oper = diff.get(3); in testEntityDiffNoneInsert()
276 final ContentProviderOperation oper = diff.get(0); in testEntityDiffUpdateInsert()
280 final ContentProviderOperation oper = diff.get(1); in testEntityDiffUpdateInsert()
285 final ContentProviderOperation oper = diff.get(2); in testEntityDiffUpdateInsert()
290 final ContentProviderOperation oper = diff.get(3); in testEntityDiffUpdateInsert()
295 final ContentProviderOperation oper = diff.get(4); in testEntityDiffUpdateInsert()
315 final ContentProviderOperation oper = diff.get(0); in testEntityDiffNoneUpdate()
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
DAlertServiceTest.java312 Alert a = mAlerts.get(expected.mAlertId); in validateNotificationsAndReset()
326 Alert a = mAlerts.get(expected.mAlertIdsInDigest[i]); in validateNotificationsAndReset()
328 + debugStr, a.mEventId, actual.mNw.get(i).mEventId); in validateNotificationsAndReset()
330 + debugStr, a.mBegin, actual.mNw.get(i).mBegin); in validateNotificationsAndReset()
332 + debugStr, a.mEnd, actual.mNw.get(i).mEnd); in validateNotificationsAndReset()
358 s.append(actual.mNw.get(digestIndex).mEventId + ","); in printActualNotifications()
771 assertEquals(acceptedEventId, highPriority.get(0).eventId); in testProcessQuery_skipDeclinedDismissed()
772 assertEquals(acceptedStartTime, highPriority.get(0).startMillis); in testProcessQuery_skipDeclinedDismissed()
773 assertEquals(acceptedEndTime, highPriority.get(0).endMillis); in testProcessQuery_skipDeclinedDismissed()
774 assertTrue(highPriority.get(0).allDay); in testProcessQuery_skipDeclinedDismissed()
[all …]

12345678910>>...38