Home
last modified time | relevance | path

Searched refs:first (Results 1 – 25 of 313) sorted by relevance

12345678910>>...13

/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactDeltaListTests.java367 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, in testMergeDataRemoteInsert() local
373 final RawContactDeltaList merged = RawContactDeltaList.mergeAfter(second, first); in testMergeDataRemoteInsert()
378 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, in testMergeDataLocalUpdateRemoteInsert() local
384 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED); in testMergeDataLocalUpdateRemoteInsert()
387 assertDiffPattern(first, in testMergeDataLocalUpdateRemoteInsert()
394 final RawContactDeltaList merged = RawContactDeltaList.mergeAfter(second, first); in testMergeDataLocalUpdateRemoteInsert()
403 final RawContactDeltaList first = buildSet(buildBeforeEntity(mContext, CONTACT_BOB, in testMergeDataLocalUpdateRemoteDelete() local
409 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED); in testMergeDataLocalUpdateRemoteDelete()
412 assertDiffPattern(first, in testMergeDataLocalUpdateRemoteDelete()
420 final RawContactDeltaList merged = RawContactDeltaList.mergeAfter(second, first); in testMergeDataLocalUpdateRemoteDelete()
[all …]
DRawContactModifierTests.java626 final ContentValues first = new ContentValues(); in testTrimUpdateRemain() local
627 first.put(Data._ID, TEST_ID); in testTrimUpdateRemain()
628 first.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testTrimUpdateRemain()
629 first.put(kindPhone.typeColumn, typeHome.rawValue); in testTrimUpdateRemain()
630 first.put(Phone.NUMBER, TEST_PHONE); in testTrimUpdateRemain()
638 final RawContactDelta state = getRawContact(TEST_ID, first, second); in testTrimUpdateRemain()
704 final ContentValues first = new ContentValues(); in testTrimUpdateUpdate() local
705 first.put(Data._ID, TEST_ID); in testTrimUpdateUpdate()
706 first.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testTrimUpdateUpdate()
707 first.put(kindPhone.typeColumn, typeHome.rawValue); in testTrimUpdateUpdate()
[all …]
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/utils/
DPreferenceListCacheTest.java63 Preference first = createPreference("first"); in testCacheAndRestoreAllPreferences() local
66 Preference[] preferences = new Preference[] {first, second, third}; in testCacheAndRestoreAllPreferences()
70 assertEquals(first, mCache.getCachedPreference("first")); in testCacheAndRestoreAllPreferences()
80 Preference first = createPreference("first"); in testRestoreSomePreferences() local
83 Preference[] preferences = new Preference[] {first, second, third}; in testRestoreSomePreferences()
87 assertEquals(first, mCache.getCachedPreference("first")); in testRestoreSomePreferences()
98 Preference first = createPreference("first"); in testRestoreZeroPreferences() local
101 Preference[] preferences = new Preference[] {first, second, third}; in testRestoreZeroPreferences()
109 verify(mGroup).removePreference(eq(first)); in testRestoreZeroPreferences()
116 Preference first = createPreference("first"); in testKeyCollisionThrows() local
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_indexing.cpp36 void db_LeanPartitionOnPivot(double pivot,double *dest,const double *source,long first,long last,lo… in db_LeanPartitionOnPivot() argument
44 s_point=source+first; in db_LeanPartitionOnPivot()
46 d_bottom=dest+first; in db_LeanPartitionOnPivot()
61 long first=0; in db_LeanQuickSelect() local
76 for(;last-first>2;) in db_LeanQuickSelect()
78 pivot=db_TripleMedian(source[first],source[last],source[(first+last)/2]); in db_LeanQuickSelect()
79 db_LeanPartitionOnPivot(pivot,dest,source,first,last,&first_equal,&last_equal); in db_LeanQuickSelect()
82 else if(last_equal<pos) first=last_equal+1; in db_LeanQuickSelect()
95 pivot=db_TripleMedian(source[first],source[last],source[(first+last)/2]); in db_LeanQuickSelect()
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/
Dtrie_map_test.cpp110 EXPECT_EQ(v.second, trieMap.getRoot(v.first).mValue); in TEST()
160 const int secondLevel = trieMap.getNextLevelBitmapEntryIndex(secondLevelKey.first); in TEST()
166 threeLevelMap[secondLevelKey.first][secondLevelKey.second][key] = value; in TEST()
170 EXPECT_EQ(firstLevelEntry.second, trieMap.getRoot(firstLevelEntry.first).mValue); in TEST()
174 const int secondLevel = trieMap.getNextLevelBitmapEntryIndex(firstLevelEntry.first); in TEST()
178 trieMap.get(secondLevelEntry.first, secondLevel).mValue); in TEST()
183 const int secondLevel = trieMap.getNextLevelBitmapEntryIndex(firstLevelEntry.first); in TEST()
187 trieMap.getNextLevelBitmapEntryIndex(secondLevelEntry.first, secondLevel); in TEST()
191 trieMap.get(thirdLevelEntry.first, thirdLevel).mValue); in TEST()
/packages/apps/Camera2/src/com/android/camera/widget/
DPreloader.java87 private void preload(int first, boolean increasing) { in preload() argument
91 start = Math.max(first, mLastEnd); in preload()
92 end = Math.min(first + mLoadAheadItems, mItemSource.getCount()); in preload()
94 start = Math.max(0, first - mLoadAheadItems); in preload()
95 end = Math.min(first, mLastStart); in preload()
98 Log.v(TAG, "preload first=" + first + " increasing=" + increasing + " start=" + start + in preload()
/packages/apps/TV/common/tests/robotests/src/com/android/tv/common/support/tis/
DBaseTvInputServiceTest.java106 WrappedSession first = tvInputService.onCreateSession("test"); in createSession_twice() local
107 assertThat(first).isNotNull(); in createSession_twice()
114 WrappedSession first = tvInputService.onCreateSession("test"); in createSession_release() local
115 assertThat(first).isNotNull(); in createSession_release()
116 first.onRelease(); in createSession_release()
119 assertThat(second).isNotSameInstanceAs(first); in createSession_release()
/packages/apps/TV/common/tests/robotests/src/com/android/tv/common/
DTvContentRatingCacheTest.java74 ImmutableList<TvContentRating> first = in testGetRatings_US_TV_MA_same() local
78 assertThat(first).isSameInstanceAs(second); in testGetRatings_US_TV_MA_same()
83 ImmutableList<TvContentRating> first = in testGetRatings_US_TV_MA_diffAfterClear() local
88 assertThat(first).isNotSameInstanceAs(second); in testGetRatings_US_TV_MA_diffAfterClear()
93 ImmutableList<TvContentRating> first = mCache.getRatings(MA_AND_Y7); in testGetRatings_TWO_orderDoesNotMatter() local
95 assertThat(first).isSameInstanceAs(second); in testGetRatings_TWO_orderDoesNotMatter()
/packages/apps/Car/libs/car-arch-common/tests/robotests/src/com/android/car/arch/common/
DLiveDataFunctionsTest.java653 testOperator(args -> () -> coalesceNull(Objects.requireNonNull(args.first), args.second), in testCoalesceNull_valueParams_truthTable()
712 Object first = new Object(); in testSplit() local
717 firstData.setValue(first); in testSplit()
734 assertThat(observedValues[0]).isSameAs(first); in testSplit()
760 Object first = new Object(); in testCombine() local
765 firstData.setValue(first); in testCombine()
774 assertThat(observedValue.first).isSameAs(first); in testCombine()
782 assertThat(observedValue.first).isSameAs(third); in testCombine()
826 testOperator(ops.apply(arg.first), arg.second); in testOperator()
840 testOperator(arg -> () -> op.apply(arg.first, arg.second), args); in testBinaryOperator()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DActionHandlerTest.java275 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testPickDocument_SetsCorrectResultAndFinishes_ActionPickCopyDestination()
303 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testPickDocument_SetsCorrectResultAndFinishes_ActionOpenTree()
333 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testSaveDocument_SetsCorrectResultAndFinishes()
383 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent()
410 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent_MultipleSelection()
435 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testFinishPicking_SetsCorrectResultAndFinishes_ActionOpen()
462 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testFinishPicking_SetsCorrectResultAndFinishes_ActionOpen_MultipleSelection()
487 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testFinishPicking_SetsCorrectResultAndFinishes_ActionCreate()
505 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testOnAppPickedResult_OnOK()
527 assertNotNull(mActivity.startActivityForResult.getLastValue().first); in testOpenAppRoot()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunControlSocket.java84 switch (tagAndValue.first) { in get()
161 if (receivedData == null || receivedData.first == null) { in sendAndReceive()
164 if (receivedData.first != type + 1) { in sendAndReceive()
165 if (DEBUG) Log.d(TAG, "Returned type incorrect: " + receivedData.first); in sendAndReceive()
199 if (result.first == HdHomeRunUtils.HDHOMERUN_TYPE_INVALID) { in receive()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DImapUtility.java103 int first = Integer.parseInt(range.substring(0, colonPos)); in getImapRangeValues() local
105 if (first < second) { in getImapRangeValues()
106 for (int i = first; i <= second; i++) { in getImapRangeValues()
110 for (int i = first; i >= second; i--) { in getImapRangeValues()
/packages/apps/TV/common/src/com/android/tv/common/util/
DCollectionUtils.java35 public static <T> T[] concatAll(T[] first, T[]... rest) { in concatAll() argument
36 int totalLength = first.length; in concatAll()
40 T[] result = Arrays.copyOf(first, totalLength); in concatAll()
41 int offset = first.length; in concatAll()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DBlend.cpp1132 double dx = (m_AllSites[ce->second].getVCenter().x - m_AllSites[ce->first].getVCenter().x); in ClipBlendRect()
1133 double dy = (m_AllSites[ce->second].getVCenter().y - m_AllSites[ce->first].getVCenter().y); in ClipBlendRect()
1134 double xmid = m_AllSites[ce->first].getVCenter().x + dx/2.0; in ClipBlendRect()
1135 double ymid = m_AllSites[ce->first].getVCenter().y + dy/2.0; in ClipBlendRect()
1195 MosaicFrame *first = frames[0]; in SelectRelevantFrames() local
1199 double fxpos = first->trs[0][2], fypos = first->trs[1][2]; in SelectRelevantFrames()
1203 double z = ProjZ(first->trs, midX, midY, 1.0); in SelectRelevantFrames()
1205 double prevX = firstX = ProjX(first->trs, midX, midY, z, 1.0); in SelectRelevantFrames()
1206 double prevY = firstY = ProjY(first->trs, midX, midY, z, 1.0); in SelectRelevantFrames()
1208 relevant_frames[0] = first; // Add first frame by default in SelectRelevantFrames()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dvaluetest.cpp865 for (unsigned first = 0; first < n; first++) { in TEST() local
866 for (unsigned last = first; last <= n; last++) { in TEST()
871 itr = x.Erase(x.Begin() + first, x.Begin() + last); in TEST()
875 EXPECT_EQ(x.Begin() + first, itr); in TEST()
877 size_t removeCount = last - first; in TEST()
879 for (unsigned i = 0; i < first; i++) in TEST()
881 for (unsigned i = first; i < n - removeCount; i++) in TEST()
1159 for (unsigned first = 0; first < n; first++) { in TEST() local
1160 for (unsigned last = first; last <= n; last++) { in TEST()
1165 itr = x.EraseMember(x.MemberBegin() + first, x.MemberBegin() + last); in TEST()
[all …]
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DPduParser.java1004 int first = temp & 0xFF; in parseValueLength() local
1006 if (first <= SHORT_LENGTH_MAX) { in parseValueLength()
1007 return first; in parseValueLength()
1008 } else if (first == LENGTH_QUOTE) { in parseValueLength()
1032 int first = temp & 0xFF; in parseEncodedStringValue() local
1033 if (first == 0) { in parseEncodedStringValue()
1038 if (first < TEXT_MIN) { in parseEncodedStringValue()
1385 int first = extractByteValue(pduDataStream); in parseContentTypeParams() local
1387 if (first > TEXT_MAX) { in parseContentTypeParams()
1545 int first = (temp & 0xFF); in parseContentType() local
[all …]
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduParser.java1038 int first = temp & 0xFF; in parseValueLength() local
1040 if (first <= SHORT_LENGTH_MAX) { in parseValueLength()
1041 return first; in parseValueLength()
1042 } else if (first == LENGTH_QUOTE) { in parseValueLength()
1067 int first = temp & 0xFF; in parseEncodedStringValue() local
1068 if (first == 0) { in parseEncodedStringValue()
1073 if (first < TEXT_MIN) { in parseEncodedStringValue()
1422 int first = extractByteValue(pduDataStream); in parseContentTypeParams() local
1424 if (first > TEXT_MAX) { in parseContentTypeParams()
1582 int first = (temp & 0xFF); in parseContentType() local
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/pictureinpicture/
DPictureInPictureSettings.java80 CharSequence sa = a.first.loadLabel(mPm); in compare()
81 if (sa == null) sa = a.first.name; in compare()
82 CharSequence sb = b.first.loadLabel(mPm); in compare()
83 if (sb == null) sb = b.first.name; in compare()
158 final ApplicationInfo appInfo = appData.first; in onResume()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/pictureinpicture/
DPictureInPictureSettings.java80 CharSequence sa = a.first.loadLabel(mPm); in compare()
81 if (sa == null) sa = a.first.name; in compare()
82 CharSequence sb = b.first.loadLabel(mPm); in compare()
83 if (sb == null) sb = b.first.name; in compare()
158 final ApplicationInfo appInfo = appData.first; in onResume()
/packages/apps/Contacts/tests/src/com/android/contacts/
DContactsUtilsTests.java90 final Intent imIntent = intents.first; in testImIntentCustom()
112 final Intent imIntent = intents.first; in testImIntent()
131 final Intent imIntent = intents.first; in testImIntentWithAudio()
153 final Intent imIntent = intents.first; in testImIntentWithVideo()
178 final Intent imIntent = intents.first; in testImEmailIntent()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DPageIndicator.java185 ImageView first = (ImageView) getChildAt(firstIndex); in animate()
187 if (first == null || second == null) { in animate()
192 second.setTranslationX(first.getX() - second.getX()); in animate()
194 playAnimation(first, getTransition(fromTransition, isAState, false)); in animate()
195 first.setAlpha(getAlpha(false)); in animate()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
DFilterStackDBHelper.java72 boolean first = true; in createTable()
74 if (!first) { in createTable()
77 first = false; in createTable()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DThreadingTest.java68 d.first.waitForStatus(DownloadManager.STATUS_SUCCESSFUL, startMillis); in testFilenameRace()
76 final String file = d.first.getStringField(DownloadManager.COLUMN_LOCAL_FILENAME); in testFilenameRace()
82 final String actual = d.first.getContents(); in testFilenameRace()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state_utils.cpp340 NearKeysDistanceMap::const_iterator itPP = prevPrevNearKeysDistances->find(it->first); in isPrevLocalMin()
341 NearKeysDistanceMap::const_iterator itC = currentNearKeysDistances->find(it->first); in isPrevLocalMin()
768 if (it->first == NOT_AN_INDEX) { in updateAlignPointProbabilities()
769 sstream << it->first in updateAlignPointProbabilities()
774 sstream << it->first in updateAlignPointProbabilities()
843 if (charProbability.first == NOT_AN_INDEX) { in updateSampledSearchKeySets()
846 (*sampledSearchKeySets)[i].set(charProbability.first); in updateSampledSearchKeySets()
884 std::unordered_map<int, float>::iterator it2 = (*charProbabilities)[index1].find(it->first); in suppressCharProbabilities()
948 const float logProbability = (it->first != NOT_AN_INDEX) in getMostProbableString()
952 character = it->first; in getMostProbableString()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DMultiDiscovery.java40 public MultiDiscovery(Discovery first, Discovery... rest) { in MultiDiscovery() argument
41 super(first.getPrintService()); in MultiDiscovery()
42 mDiscoveries.add(first); in MultiDiscovery()

12345678910>>...13