Home
last modified time | relevance | path

Searched refs:insert (Results 1 – 25 of 320) sorted by relevance

12345678910>>...13

/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberProviderTest.java134 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "123")); in testInsert()
135 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "+1-2-3")); in testInsert()
136 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "+1-408-454-1111")); in testInsert()
137 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "1-408-454-2222")); in testInsert()
139 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "1-408-454-2222", in testInsert()
142 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "1-408-4542222")); in testInsert()
144 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "045-381-1111", in testInsert()
147 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "12345")); in testInsert()
177 Uri uri = insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "14506507000")); in testChangesNotified()
188 private Uri insert(ContentValues cv) { in insert() method in BlockedNumberProviderTest
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DLegacyContactsProviderTest.java81 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleInsert()
94 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleUpdate()
116 Uri personId = mResolver.insert(People.CONTENT_URI, values); in testPeopleDelete()
133 mResolver.insert(People.CONTENT_URI, values); in testPeopleFilter()
137 mResolver.insert(People.CONTENT_URI, values); in testPeopleFilter()
141 mResolver.insert(People.CONTENT_URI, values); in testPeopleFilter()
152 Uri personUri = mResolver.insert(People.CONTENT_URI, values); in testDefaultDisplayName()
158 final Uri personUri = mResolver.insert(People.CONTENT_URI, values); in testPrimaryOrganization()
167 Uri orgUri1 = mResolver.insert(Organizations.CONTENT_URI, values); in testPrimaryOrganization()
174 Uri orgUri2 = mResolver.insert(Organizations.CONTENT_URI, values); in testPrimaryOrganization()
[all …]
DVoicemailProviderTest.java111 Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testInsert()
124 Uri uri = mResolver.insert(voicemailUri(), values); in testInsertReadMessageIsNotNew()
197 final Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testUpdateOwnPackageVoicemail_NotDirty()
232 final Uri uri = mResolver.insert(voicemailUri(), values); in testUpdateOwnPackageVoicemail_RemovesDirtyStatus()
246 final Uri uri = mResolver.insert(voicemailUri(), values); in testUpdateOwnPackageVoicemail_retainDirtyStatus_dirty()
262 final Uri uri = mResolver.insert(voicemailUri(), values); in testUpdateOwnPackageVoicemail_retainDirtyStatus_notDirty()
278 final Uri uri = mResolver.insert(voicemailUri(), values); in testUpdateOwnPackageVoicemail_retainDirtyStatus_noOtherValues()
356 Uri uri = mResolver.insert(voicemailUri(), values); in testGetType_ItemUri()
378 mResolver.insert(Voicemails.CONTENT_URI, getTestVoicemailValues()); in assertBaseUriThrowsSecurityExceptions()
650 mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testNoPermissions()
[all …]
DContactsDatabaseHelperTest.java141 final String insert = in testQueryIdWithOneArg_insertWithOneArgAndReturnId() local
151 final long id1 = ContactsDatabaseHelper.insertWithOneArgAndReturnId(mDb, insert, "value1"); in testQueryIdWithOneArg_insertWithOneArgAndReturnId()
159 final long id2 = ContactsDatabaseHelper.insertWithOneArgAndReturnId(mDb, insert, "value2"); in testQueryIdWithOneArg_insertWithOneArgAndReturnId()
166 assertEquals(-1, ContactsDatabaseHelper.insertWithOneArgAndReturnId(mDb, insert, "value2")); in testQueryIdWithOneArg_insertWithOneArgAndReturnId()
280 final long rawContactId = mDb.insert(Tables.RAW_CONTACTS,null, rawContactValues); in testUpgradeHashId()
295 assertTrue(mDb.insert(Tables.DATA, null, values) > 0); in testUpgradeHashId()
318 final long rawContactId = mDb.insert(Tables.RAW_CONTACTS,null, rawContactValues); in testUpgradeHashIdForPhoto()
329 assertTrue(mDb.insert(Tables.DATA, null, values) > 0); in testUpgradeHashIdForPhoto()
349 mDb.insert(Tables.RAW_CONTACTS, null, contentValues); in testUpgradeToVersion111_SetPrimaryPhonebookBucketToNumberBucket()
366 mDb.insert(Tables.RAW_CONTACTS, null, contentValues); in testUpgradeToVersion111_SetAltPhonebookBucketToNumberBucket()
[all …]
DCallLogProviderTest.java100 Uri uri = mResolver.insert(Calls.CONTENT_URI, values); in testInsert_RegularCallRecord()
124 mResolver.insert(Calls.CONTENT_URI, values); in testInsert_VoicemailCallRecord()
129 Uri uri = mResolver.insert(Calls.CONTENT_URI_WITH_VOICEMAIL, values); in testInsert_VoicemailCallRecord()
171 mResolver.insert(Calls.CONTENT_URI, values); in testCallLogFilter()
250 mResolver.insert(Calls.CONTENT_URI, getDefaultValues(Calls.INCOMING_TYPE)); in testLimitAndOffsetParamReturnsCorrectEntries()
253 mResolver.insert(Calls.CONTENT_URI, getDefaultValues(Calls.MISSED_TYPE)); in testLimitAndOffsetParamReturnsCorrectEntries()
308 mResolver.insert(Calls.CONTENT_URI, values); in testCannotAccessVoicemailSpecificFields_Insert()
349 mResolver.insert(Calls.CONTENT_URI_WITH_VOICEMAIL, getDefaultVoicemailValues()); in testVoicemailPermissions_Insert()
354 mResolver.insert(Calls.CONTENT_URI_WITH_VOICEMAIL, getDefaultVoicemailValues()); in testVoicemailPermissions_Insert()
427 mResolver.insert(Calls.CONTENT_URI, getTestCallLogValues(1)); in testCopyEntriesFromCursor_DuplicatesIgnoredCorrectly()
[all …]
DBaseContactsProvider2Test.java219 return ContentUris.parseId(mResolver.insert(uri, values)); in createGroup()
237 mResolver.insert(Settings.CONTENT_URI, values); in createSettings()
260 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertOrganization()
296 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertPhoneNumber()
333 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertEmail()
350 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertSipAddress()
361 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertNickname()
371 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertPostalAddress()
378 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertPostalAddress()
387 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertPhoto()
[all …]
DContactsProvider2TransactionTest.java67 mResolver.insert(RawContacts.CONTENT_URI, values); in testTransactionCallback_insert()
77 mResolver.insert(Profile.CONTENT_RAW_CONTACTS_URI, values); in testTransactionCallback_insert()
93 mResolver.insert(RawContacts.CONTENT_URI, values); in testTransactionCallback_update()
94 mResolver.insert(Profile.CONTENT_RAW_CONTACTS_URI, values); in testTransactionCallback_update()
127 mResolver.insert(RawContacts.CONTENT_URI, values); in testTransactionCallback_delete()
128 mResolver.insert(Profile.CONTENT_RAW_CONTACTS_URI, values); in testTransactionCallback_delete()
DContactMetadataProviderTest.java112 mResolver.insert(Uri.withAppendedPath(MetadataSync.METADATA_AUTHORITY_URI, in testInsertWithInvalidUri()
167 mResolver.insert(MetadataSync.CONTENT_URI, newValues); in testFailOnInsertMetadataForSameAccountIdAndBackupId()
213 Uri metadataUri = mResolver.insert(MetadataSync.CONTENT_URI, insertedValues); in testInsertAndUpdateMetadataSync()
249 mResolver.insert(MetadataSync.CONTENT_URI, updatedValues); in testInsertAndUpdateMetadataSync()
286 Uri metadataUri = mResolver.insert(MetadataSync.CONTENT_URI, insertedValues); in testInsertMetadata()
318 mResolver.insert(MetadataSync.CONTENT_URI, newValues); in testFailUpdateDeletedMetadata()
337 mResolver.insert(MetadataSync.CONTENT_URI, newValues); in testInsertWithNullData()
568 return ContentUris.parseId(mResolver.insert(MetadataSync.CONTENT_URI, values)); in insertMetadata()
573 return ContentUris.parseId(mResolver.insert(MetadataSyncState.CONTENT_URI, in insertMetadataSyncState()
DPhotoStoreTest.java72 assertEquals(0, mPhotoStore.insert(newPhotoProcessor(photo, false))); in testStoreThumbnailPhoto()
130 long photoFileId = mPhotoStore.insert(newPhotoProcessor(photo, false)); in runStorageTestForResource()
160 long photoFileId = mPhotoStore.insert(newPhotoProcessor(photo, true)); in runStorageTestForResourceWithCrop()
177 long photoFileId = mPhotoStore.insert(newPhotoProcessor(photo, false)); in testRemoveEntry()
204 long photoFileId = mPhotoStore.insert( in testCleanup()
/packages/apps/Launcher3/
Dfill_screens.py65insert = "INSERT into favorites (_id, title, intent, container, screen, cellX, cellY, spanX, spanY…
66 insert = insert % (id, "title", "", -100, s, x, y, 1, 1, 2, -1, 0)
67 c.execute(insert)
73insert = "INSERT into favorites (_id, title, intent, container, screen, cellX, cellY, spanX, spanY…
74 insert = insert % (id, "title", intent, folder_id, 0, 0, 0, 1, 1, 0, -1, 0)
75 c.execute(insert)
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DMessageData.java445 final SQLiteStatement insert = db.getStatementInTransaction( in getInsertStatement() local
447 insert.clearBindings(); in getInsertStatement()
448 insert.bindString(INDEX_CONVERSATION_ID, mConversationId); in getInsertStatement()
449 insert.bindString(INDEX_PARTICIPANT_ID, mParticipantId); in getInsertStatement()
450 insert.bindString(INDEX_SELF_ID, mSelfId); in getInsertStatement()
451 insert.bindLong(INDEX_SENT_TIMESTAMP, mSentTimestamp); in getInsertStatement()
452 insert.bindLong(INDEX_RECEIVED_TIMESTAMP, mReceivedTimestamp); in getInsertStatement()
453 insert.bindLong(INDEX_SEEN, mSeen ? 1 : 0); in getInsertStatement()
454 insert.bindLong(INDEX_READ, mRead ? 1 : 0); in getInsertStatement()
455 insert.bindLong(INDEX_PROTOCOL, mProtocol); in getInsertStatement()
[all …]
DMessagePartData.java269 final SQLiteStatement insert = db.getStatementInTransaction( in getInsertStatement() local
271 insert.clearBindings(); in getInsertStatement()
272 insert.bindString(INDEX_MESSAGE_ID, mMessageId); in getInsertStatement()
274 insert.bindString(INDEX_TEXT, mText); in getInsertStatement()
277 insert.bindString(INDEX_CONTENT_URI, mContentUri.toString()); in getInsertStatement()
280 insert.bindString(INDEX_CONTENT_TYPE, mContentType); in getInsertStatement()
282 insert.bindLong(INDEX_WIDTH, mWidth); in getInsertStatement()
283 insert.bindLong(INDEX_HEIGHT, mHeight); in getInsertStatement()
284 insert.bindString(INDEX_CONVERSATION_ID, conversationId); in getInsertStatement()
285 return insert; in getInsertStatement()
/packages/apps/Dialer/java/com/android/dialer/database/
DDialerDatabaseHelper.java536 final SQLiteStatement insert = db.compileStatement(sqlInsert); in insertUpdatedContactsAndNumberPrefix() local
551 insert.clearBindings(); in insertUpdatedContactsAndNumberPrefix()
567 insert.bindString(2, number); in insertUpdatedContactsAndNumberPrefix()
574 insert.bindString(4, lookupKey); in insertUpdatedContactsAndNumberPrefix()
579 insert.bindString(5, context.getResources().getString(R.string.missing_name)); in insertUpdatedContactsAndNumberPrefix()
581 insert.bindString(5, displayName); in insertUpdatedContactsAndNumberPrefix()
583 insert.bindLong(1, updatedContactCursor.getLong(PhoneQuery.PHONE_ID)); in insertUpdatedContactsAndNumberPrefix()
584 insert.bindLong(3, updatedContactCursor.getLong(PhoneQuery.PHONE_CONTACT_ID)); in insertUpdatedContactsAndNumberPrefix()
585 insert.bindLong(6, updatedContactCursor.getLong(PhoneQuery.PHONE_PHOTO_ID)); in insertUpdatedContactsAndNumberPrefix()
586 insert.bindLong(7, updatedContactCursor.getLong(PhoneQuery.PHONE_LAST_TIME_USED)); in insertUpdatedContactsAndNumberPrefix()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockContentProvider.java278 Insert insert = (Insert) o; in equals() local
279 return mAnyNumberOfTimes == insert.mAnyNumberOfTimes && in equals()
280 mIsExecuted == insert.mIsExecuted && in equals()
281 Objects.equals(mUri, insert.mUri) && in equals()
282 Objects.equals(mContentValues, insert.mContentValues) && in equals()
283 Objects.equals(mResultUri, insert.mResultUri); in equals()
555 public Uri insert(Uri uri, ContentValues values) { in insert() method in MockContentProvider
560 Insert insert = iterator.next(); in insert() local
561 if (insert.equals(uri, values)) { in insert()
562 insert.mIsExecuted = true; in insert()
[all …]
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DSmsProviderTest.java176 mContentResolver.insert(Uri.parse("content://sms"), values)); in testInsertUri()
178 mContentResolver.insert(Uri.parse("content://sms"), values)); in testInsertUri()
187 mContentResolver.insert(Uri.parse("content://sms/attachments"), values)); in testInsertUri()
195 mContentResolver.insert(mRawUri, getFakeRawValue())); in testRawTableInsert()
215 mContentResolver.insert(mRawUri, getFakeRawValue())); in testRawTableInsert()
217 mContentResolver.insert(mRawUri, getFakeRawValue())); in testRawTableInsert()
226 mContentResolver.insert(mRawUri, getFakeRawValue())); in testRawTableDelete()
247 mContentResolver.insert(mRawUri, getFakeRawValue())); in testRawTableDelete()
249 mContentResolver.insert(mRawUri, getFakeRawValue())); in testRawTableDelete()
DTelephonyProviderTest.java406 Uri row1 = mContentResolver.insert(Carriers.CONTENT_URI, contentValues); in testUpdateConflictingCarriers()
407 Uri row2 = mContentResolver.insert(Carriers.CONTENT_URI, contentValues2); in testUpdateConflictingCarriers()
458 mContentResolver.insert(uri, contentValues); in doSimpleTestForUri()
512 mContentResolver.insert(Carriers.CONTENT_URI, contentValues); in testOwnedBy()
581 mContentResolver.insert(SimInfo.CONTENT_URI, contentValues); in testSimTable()
636 Uri resultUri = mContentResolver.insert(uri, contentValues); in insertApnRecord()
1026 mContentResolver.insert(URI_DPC, contentValuesDPC); in testAccessUrlDpcThrowSecurityExceptionFromOtherUid()
1137 assertNotNull(mContentResolver.insert(URI_TELEPHONY, editedValue)); in preserveEditedValueInMerge()
1150 mContentResolver.insert(URI_TELEPHONY, values); in preserveEditedValueInMerge()
1186 assertNotNull(mContentResolver.insert(URI_TELEPHONY, editedValue)); in preserveDeletedValueInMerge()
[all …]
DCarrierProviderTest.java157 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testInsertCertificates()
193 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testUpdateCertificates()
247 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testMultipleCertificates()
248 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValuesNew); in testMultipleCertificates()
281 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testDuplicateFailure()
286 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testDuplicateFailure()
310 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testDelete()
DCarrierIdProviderTest.java171 mContentResolver.insert(CarrierId.All.CONTENT_URI, createCarrierInfoInternal()); in testInsertCarrierInfo()
193 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testDuplicateInsertionCarrierInfo()
194 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testDuplicateInsertionCarrierInfo()
210 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testInvalidInsertionCarrierInfo()
224 mContentResolver.insert(CarrierId.All.CONTENT_URI, in testDeleteCarrierInfo()
251 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testUpdateCarrierInfo()
284 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testMultiRowInsertionQuery()
289 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testMultiRowInsertionQuery()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCellBroadcastProviderTest.java101 Uri uri = mContentResolver.insert(CONTENT_URI, cv); in testUpdate()
127 Uri uri = mContentResolver.insert(CONTENT_URI, cv); in testUpdate_WithoutWritePermission_fail()
149 mContentResolver.insert(CONTENT_URI, cv); in testGetAllCellBroadcast()
156 mContentResolver.insert(CONTENT_URI, cv); in testGetAllCellBroadcast()
171 Uri uri = mContentResolver.insert(CONTENT_URI, fakeCellBroadcast()); in testDelete_withoutWritePermission_throwSecurityException()
191 Uri uri = mContentResolver.insert(CONTENT_URI, cv); in testDelete_oneRecord_success()
217 mContentResolver.insert(CONTENT_URI, fakeCellBroadcast()); in testDelete_all_success()
218 mContentResolver.insert(CONTENT_URI, fakeCellBroadcast()); in testDelete_all_success()
244 mContentResolver.insert(CONTENT_URI, fakeCellBroadcast()); in testInsert_withoutWritePermission_fail()
254 Uri uri = mContentResolver.insert(CONTENT_URI, fakeCellBroadcast()); in testInsertAndQuery()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DPrivateLog.java75 insert(db, "Created table"); in onCreate()
84 insert(db, "Upgrade finished"); in onUpgrade()
87 static void insert(SQLiteDatabase db, String event) { in insert() method in PrivateLog.DebugHelper
92 db.insert(LOG_TABLE_NAME, null, c); in insert()
100 DebugHelper.insert(l, event); in log()
/packages/apps/Dialer/java/com/android/dialer/speeddial/database/
DSpeedDialEntryDatabaseHelper.java153 public ImmutableMap<SpeedDialEntry, Long> insert(ImmutableList<SpeedDialEntry> entries) { in insert() method in SpeedDialEntryDatabaseHelper
161 ImmutableMap<SpeedDialEntry, Long> insertedEntriesToIdsMap = insert(db, entries); in insert()
170 private ImmutableMap<SpeedDialEntry, Long> insert( in insert() method in SpeedDialEntryDatabaseHelper
175 long id = writeableDatabase.insert(TABLE_NAME, null, buildContentValuesWithoutId(entry)); in insert()
189 public long insert(SpeedDialEntry entry) { in insert() method in SpeedDialEntryDatabaseHelper
192 updateRowId = db.insert(TABLE_NAME, null, buildContentValuesWithoutId(entry)); in insert()
296 ImmutableMap<SpeedDialEntry, Long> insertedEntriesToIdsMap = insert(db, entriesToInsert); in insertUpdateAndDelete()
/packages/apps/Dialer/java/com/android/voicemail/impl/utils/
DVoicemailDatabaseUtil.java38 public static Uri insert(Context context, Voicemail voicemail) { in insert() method in VoicemailDatabaseUtil
41 return contentResolver.insert( in insert()
53 public static int insert(Context context, List<Voicemail> voicemails) { in insert() method in VoicemailDatabaseUtil
55 insert(context, voicemail); in insert()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DCardContentProviderTest.java75 mResolver.insert(mUri, generateOneRow()); in cardData_insert()
92 mResolver.insert(mUri, generateOneRow()); in cardData_query()
105 mResolver.insert(mUri, generateOneRow()); in cardData_update()
120 mProvider.insert(mUri, generateOneRow()); in insert_isMainThread_shouldEnableStrictMode()
140 mProvider.insert(mUri, generateOneRow()); in insert_notMainThread_shouldNotEnableStrictMode()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLocaleUtils.java486 keyPinyin.insert(0, token.target); in getPinyinNameLookupKeys()
487 keyInitial.insert(0, token.target.charAt(0)); in getPinyinNameLookupKeys()
491 keyPinyin.insert(0, ' '); in getPinyinNameLookupKeys()
494 keyOriginal.insert(0, ' '); in getPinyinNameLookupKeys()
496 keyPinyin.insert(0, token.source); in getPinyinNameLookupKeys()
497 keyInitial.insert(0, token.source.charAt(0)); in getPinyinNameLookupKeys()
499 keyOriginal.insert(0, token.source); in getPinyinNameLookupKeys()
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/voicemail/
DVoicemailDataSource.java66 for (Entry<Long, ContentValues> insert : mutations.getInserts().entrySet()) { in fill()
67 insert.getValue().put(AnnotatedCallLog.IS_VOICEMAIL_CALL, 0); in fill()
75 for (Entry<Long, ContentValues> insert : mutations.getInserts().entrySet()) { in fill()
76 ContentValues values = insert.getValue(); in fill()

12345678910>>...13