Home
last modified time | relevance | path

Searched refs:newId (Results 1 – 17 of 17) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/provider/
DRestoreDbTask.java142 long newId = profileMapping.valueAt(i); in sanitizeDB() local
144 if (oldId != newId) { in sanitizeDB()
145 if (profileMapping.indexOfKey(newId) >= 0) { in sanitizeDB()
146 tempMigratedIds.put(numTempMigrations, newId); in sanitizeDB()
148 newId = tempLocationOffset + newId; in sanitizeDB()
150 migrateProfileId(db, oldId, newId); in sanitizeDB()
156 long newId = tempMigratedIds.valueAt(i); in sanitizeDB() local
157 migrateProfileId(db, tempLocationOffset + newId, newId); in sanitizeDB()
/packages/modules/DnsResolver/
DDnsTlsQueryMap.cpp35 int32_t newId = getFreeId(); in recordQuery() local
36 if (newId < 0) { in recordQuery()
43 Query q = {.newId = static_cast<uint16_t>(newId), .query = std::move(tmp)}; in recordQuery()
45 const auto [it, inserted] = mQueries.try_emplace(newId, q); in recordQuery()
58 void DnsTlsQueryMap::markTried(uint16_t newId) { in markTried() argument
60 auto it = mQueries.find(newId); in markTried()
Dresolv_tls_unit_test.cpp876 EXPECT_EQ(0, f0->query.newId); in TEST()
877 EXPECT_EQ(1, f1->query.newId); in TEST()
878 EXPECT_EQ(2, f2->query.newId); in TEST()
886 EXPECT_EQ(0, all[0].newId); in TEST()
887 EXPECT_EQ(1, all[1].newId); in TEST()
888 EXPECT_EQ(2, all[2].newId); in TEST()
933 EXPECT_EQ(i, futures[i]->query.newId); in TEST()
955 EXPECT_EQ(40000, f->query.newId); in TEST()
DDnsTlsQueryMap.h41 uint16_t newId; member
75 void markTried(uint16_t newId);
DDnsTlsTransport.cpp63 const bool sent = mSocket->query(q.newId, netdutils::drop(netdutils::makeSlice(q.query), 2)); in sendQuery()
65 mQueries.markTried(q.newId); in sendQuery()
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
DDynamicShortcuts.java198 String newId = entry.getKey(); in computeDelta() local
200 if (!containsShortcut(oldDynamicShortcuts, newId)) { in computeDelta()
203 delta.shortcutsToAddById.put(newId, newShortcut); in computeDelta()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarDatabaseHelper.java3396 final long newId = DatabaseUtils.longForQuery( in duplicateEvent() local
3398 if (newId < 0) { in duplicateEvent()
3403 Log.v(TAG, "Duplicating event " + id + " into new event " + newId); in duplicateEvent()
3406 copyEventRelatedTables(db, newId, id); in duplicateEvent()
3417 static void copyEventRelatedTables(SQLiteDatabase db, long newId, long id) { in copyEventRelatedTables() argument
3424 new Object[] {newId, id}); in copyEventRelatedTables()
3431 new Object[] {newId, id}); in copyEventRelatedTables()
3438 new Object[]{newId, id}); in copyEventRelatedTables()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/
DDefaultThemeProvider.java395 mThemes.add(new CustomTheme(CustomTheme.newId(), in addCustomThemes()
403 mThemes.add(new CustomTheme(CustomTheme.newId(), mContext.getString( in addCustomThemes()
411 mThemes.add(new CustomTheme(CustomTheme.newId(), mContext.getString( in addCustomThemes()
/packages/apps/TV/src/com/android/tv/dvr/data/
DIdGenerator.java37 public long newId() { in newId() method in IdGenerator
/packages/apps/Contacts/src/com/android/contacts/editor/
DAggregationSuggestionEngine.java355 for (final Long newId : newIds) { in updateSuggestedContactIds()
356 mSuggestedContactIds[i++] = newId; in updateSuggestedContactIds()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DSnailSource.java59 public static synchronized int newId() { in newId() method in SnailSource
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
DCustomTheme.java33 public static String newId() { in newId() method in CustomTheme
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/
DContactAggregatorTest.java1776 long newId = RawContactUtil.createRawContact(mResolver, in testNotAggregate_TooManyRawContactsInCandidate() local
1778 DataUtil.insertStructuredName(mResolver, newId, "John", "Doe"); in testNotAggregate_TooManyRawContactsInCandidate()
1779 assertNotAggregated(preId, newId); in testNotAggregate_TooManyRawContactsInCandidate()
1780 assertTrue(queryContactId(newId) > 0); in testNotAggregate_TooManyRawContactsInCandidate()
DContactAggregator2Test.java1786 long newId = RawContactUtil.createRawContact(mResolver, in testNotAggregate_TooManyRawContactsInCandidate() local
1788 DataUtil.insertStructuredName(mResolver, newId, "John", "Doe"); in testNotAggregate_TooManyRawContactsInCandidate()
1789 assertNotAggregated(preId, newId); in testNotAggregate_TooManyRawContactsInCandidate()
1790 assertTrue(queryContactId(newId) > 0); in testNotAggregate_TooManyRawContactsInCandidate()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrDataManagerImpl.java662 r.setId(IdGenerator.SCHEDULED_RECORDING.newId()); in addScheduledRecording()
682 r.setId(IdGenerator.SERIES_RECORDING.newId()); in addSeriesRecording()
/packages/apps/Launcher3/src/com/android/launcher3/
DWorkspace.java736 int newId = LauncherSettings.Settings.call(getContext().getContentResolver(), in commitExtraEmptyScreen() local
739 mWorkspaceScreens.put(newId, cl); in commitExtraEmptyScreen()
740 mScreenOrder.add(newId); in commitExtraEmptyScreen()
742 return newId; in commitExtraEmptyScreen()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoPage.java404 int id = SnailSource.newId(); in onCreate()