Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/
DDnsTlsQueryMap.cpp42 int32_t newId = getFreeId(); in recordQuery() local
43 if (newId < 0) { in recordQuery()
50 Query q = {.newId = static_cast<uint16_t>(newId), .query = std::move(tmp)}; in recordQuery()
52 const auto [it, inserted] = mQueries.try_emplace(newId, q); in recordQuery()
65 void DnsTlsQueryMap::markTried(uint16_t newId) { in markTried() argument
67 auto it = mQueries.find(newId); in markTried()
DDnsTlsQueryMap.h43 uint16_t newId; member
77 void markTried(uint16_t newId);
DDnsTlsTransport.cpp180 const bool sent = mSocket->query(q.newId, netdutils::drop(netdutils::makeSlice(q.query), 2)); in sendQuery()
182 mQueries.markTried(q.newId); in sendQuery()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DRestoreDbTask.java193 long newId = profileMapping.valueAt(i); in sanitizeDB() local
195 if (oldId != newId) { in sanitizeDB()
196 if (profileMapping.indexOfKey(newId) >= 0) { in sanitizeDB()
197 tempMigratedIds.put(numTempMigrations, newId); in sanitizeDB()
199 newId = tempLocationOffset + newId; in sanitizeDB()
201 migrateProfileId(db, oldId, newId); in sanitizeDB()
207 long newId = tempMigratedIds.valueAt(i); in sanitizeDB() local
208 migrateProfileId(db, tempLocationOffset + newId, newId); in sanitizeDB()
/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/modules/DnsResolver/tests/
Dresolv_tls_unit_test.cpp926 EXPECT_EQ(0, f0->query.newId); in TEST()
927 EXPECT_EQ(1, f1->query.newId); in TEST()
928 EXPECT_EQ(2, f2->query.newId); in TEST()
936 EXPECT_EQ(0, all[0].newId); in TEST()
937 EXPECT_EQ(1, all[1].newId); in TEST()
938 EXPECT_EQ(2, all[2].newId); in TEST()
983 EXPECT_EQ(i, futures[i]->query.newId); in TEST()
1005 EXPECT_EQ(40000, f->query.newId); in TEST()
/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.java114 .setId(CustomTheme.newId()) in loadAll()
333 .setId(CustomTheme.newId()) in addCustomThemes()
343 .setId(CustomTheme.newId()) in addCustomThemes()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DGridSizeMigrationTaskV2.java308 int newId = -1; in copyEntryAndUpdate() local
320 newId = LauncherSettings.Settings.call(context.getContentResolver(), in copyEntryAndUpdate()
323 values.put(LauncherSettings.Favorites._ID, newId); in copyEntryAndUpdate()
327 return newId; in copyEntryAndUpdate()
/packages/apps/TV/src/com/android/tv/dvr/data/
DIdGenerator.java37 public long newId() { in newId() method in IdGenerator
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DSnailSource.java59 public static synchronized int newId() { in newId() method in SnailSource
/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/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/providers/MediaProvider/src/com/android/providers/media/
DDatabaseHelper.java152 long newId, int newMediaType, boolean newIsDownload, in onUpdate() argument
287 final long newId = Long.parseLong(split[4]); in onConfigure()
297 oldMediaType, oldIsDownload, newId, newMediaType, newIsDownload, in onConfigure()
DMediaProvider.java684 long newId, int newMediaType, boolean newIsDownload,
688 handleUpdatedRowForFuse(oldPath, oldOwnerPackage, oldId, newId);
/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.java752 int newId = LauncherSettings.Settings.call(getContext().getContentResolver(), in commitExtraEmptyScreen() local
755 mWorkspaceScreens.put(newId, cl); in commitExtraEmptyScreen()
756 mScreenOrder.add(newId); in commitExtraEmptyScreen()
758 return newId; in commitExtraEmptyScreen()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoPage.java404 int id = SnailSource.newId(); in onCreate()