Home
last modified time | relevance | path

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

12345678910>>...12

/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/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DCharMatcher.java980 int first;
983 for (first = 0; first < len; first++) {
984 if (!matches(sequence.charAt(first))) {
988 for (last = len - 1; last > first; last--) {
994 return sequence.subSequence(first, last + 1).toString();
1008 int first;
1010 for (first = 0; first < len; first++) {
1011 if (!matches(sequence.charAt(first))) {
1016 return sequence.subSequence(first, len).toString();
1061 int first = indexIn(sequence);
[all …]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/
DViewModeTests.java35 ViewMode first = new ViewMode(); in testBundleSaveRestorePreserveState() local
37 first.enterConversationListMode(); in testBundleSaveRestorePreserveState()
38 first.handleSaveInstanceState(state); in testBundleSaveRestorePreserveState()
74 ViewMode first = new ViewMode(); in testMultipleTransitionsFail() local
76 first.enterConversationListMode(); in testMultipleTransitionsFail()
77 assertEquals(ViewMode.CONVERSATION_LIST, first.getMode()); in testMultipleTransitionsFail()
79 first.enterConversationListMode(); in testMultipleTransitionsFail()
80 assertEquals(ViewMode.CONVERSATION_LIST, first.getMode()); in testMultipleTransitionsFail()
/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/Car/Dialer/src/com/android/car/dialer/ui/activecall/
DInCallFragment.java87 mNameView.setText(displayNameAndAvatarUri.first); in bindUserProfileView()
95 displayNameAndAvatarUri.first)) { in bindUserProfileView()
103 getContext(), displayNameAndAvatarUri.first); in bindUserProfileView()
129 if (callStateAndConnectTime == null || callStateAndConnectTime.first == null) { in updateCallDescription()
134 if (callStateAndConnectTime.first == Call.STATE_ACTIVE) { in updateCallDescription()
142 callStateAndConnectTime.first)); in updateCallDescription()
/packages/apps/Car/libs/car-arch-common/tests/robotests/src/com/android/car/arch/common/
DLiveDataFunctionsTest.java655 testOperator(args -> () -> coalesceNull(Objects.requireNonNull(args.first), args.second), in testCoalesceNull_valueParams_truthTable()
714 Object first = new Object(); in testSplit() local
719 firstData.setValue(first); in testSplit()
736 assertThat(observedValues[0]).isSameAs(first); in testSplit()
762 Object first = new Object(); in testCombine() local
767 firstData.setValue(first); in testCombine()
776 assertThat(observedValue.first).isSameAs(first); in testCombine()
784 assertThat(observedValue.first).isSameAs(third); in testCombine()
828 testOperator(ops.apply(arg.first), arg.second); in testOperator()
842 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/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/Email/provider_src/com/android/email/mail/store/imap/
DImapUtility.java107 int first = Integer.parseInt(range.substring(0, colonPos)); in getImapRangeValues() local
109 if (first < second) { in getImapRangeValues()
110 for (int i = first; i <= second; i++) { in getImapRangeValues()
114 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/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/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/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/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/UnifiedEmail/src/com/android/mail/providers/
DConversationInfo.java46 public ConversationInfo(int messageCount, int draft, String first, String firstUnread, in ConversationInfo() argument
51 set(messageCount, draft, first, firstUnread, last); in ConversationInfo()
112 public void set(int count, int draft, String first, String firstUnread, String last) { in set() argument
116 firstSnippet = first; in set()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
DMimeBoundaryInputStream.java41 private boolean first = true; field in MimeBoundaryInputStream
121 if (first) { in read()
122 first = false; in read()
/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()

12345678910>>...12