Home
last modified time | relevance | path

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

12345678910>>...12

/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberProviderTest.java132 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "123")); in testInsert()
133 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "+1-2-3")); in testInsert()
134 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "+1-408-454-1111")); in testInsert()
135 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "1-408-454-2222")); in testInsert()
137 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "1-408-454-2222", in testInsert()
140 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "1-408-4542222")); in testInsert()
142 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "045-381-1111", in testInsert()
145 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "12345")); in testInsert()
175 Uri uri = insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "14506507000")); in testChangesNotified()
186 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.java87 Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testInsert()
99 Uri uri = mResolver.insert(voicemailUri(), values); in testInsertReadMessageIsNotNew()
163 final Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testUpdateOwnPackageVoicemail_NotDirty()
175 final Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testUpdateOwnPackageVoicemail_RemovesDirtyStatus()
251 Uri uri = mResolver.insert(voicemailUri(), values); in testGetType_ItemUri()
267 mResolver.insert(Voicemails.CONTENT_URI, getTestVoicemailValues()); in testMustUsePackageUriWithoutFullPermission()
524 mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testNoPermissions()
557 mResolver.insert(voicemailUri(), values); in testCannotAccessCallLogSpecificFields_Insert()
598 Uri uri = mResolver.insert(statusUri(), values); in testStatusInsert()
618 mResolver.insert(statusUri(), values); in testStatusUpsert()
[all …]
DContactsDatabaseHelperTest.java142 final String insert = in testQueryIdWithOneArg_insertWithOneArgAndReturnId() local
152 final long id1 = ContactsDatabaseHelper.insertWithOneArgAndReturnId(mDb, insert, "value1"); in testQueryIdWithOneArg_insertWithOneArgAndReturnId()
160 final long id2 = ContactsDatabaseHelper.insertWithOneArgAndReturnId(mDb, insert, "value2"); in testQueryIdWithOneArg_insertWithOneArgAndReturnId()
167 assertEquals(-1, ContactsDatabaseHelper.insertWithOneArgAndReturnId(mDb, insert, "value2")); in testQueryIdWithOneArg_insertWithOneArgAndReturnId()
281 final long rawContactId = mDb.insert(Tables.RAW_CONTACTS,null, rawContactValues); in testUpgradeHashId()
296 assertTrue(mDb.insert(Tables.DATA, null, values) > 0); in testUpgradeHashId()
319 final long rawContactId = mDb.insert(Tables.RAW_CONTACTS,null, rawContactValues); in testUpgradeHashIdForPhoto()
330 assertTrue(mDb.insert(Tables.DATA, null, values) > 0); in testUpgradeHashIdForPhoto()
350 mDb.insert(Tables.RAW_CONTACTS, null, contentValues); in testUpgradeToVersion111_SetPrimaryPhonebookBucketToNumberBucket()
367 mDb.insert(Tables.RAW_CONTACTS, null, contentValues); in testUpgradeToVersion111_SetAltPhonebookBucketToNumberBucket()
[all …]
DCallLogProviderTest.java95 Uri uri = mResolver.insert(Calls.CONTENT_URI, values); in testInsert_RegularCallRecord()
119 mResolver.insert(Calls.CONTENT_URI, values); in testInsert_VoicemailCallRecord()
124 Uri uri = mResolver.insert(Calls.CONTENT_URI_WITH_VOICEMAIL, values); in testInsert_VoicemailCallRecord()
166 mResolver.insert(Calls.CONTENT_URI, values); in testCallLogFilter()
246 mResolver.insert(Calls.CONTENT_URI, getDefaultValues(Calls.INCOMING_TYPE)); in testLimitAndOffsetParamReturnsCorrectEntries()
249 mResolver.insert(Calls.CONTENT_URI, getDefaultValues(Calls.MISSED_TYPE)); in testLimitAndOffsetParamReturnsCorrectEntries()
304 mResolver.insert(Calls.CONTENT_URI, values); in testCannotAccessVoicemailSpecificFields_Insert()
345 mResolver.insert(Calls.CONTENT_URI_WITH_VOICEMAIL, getDefaultVoicemailValues()); in testVoicemailPermissions_Insert()
350 mResolver.insert(Calls.CONTENT_URI_WITH_VOICEMAIL, getDefaultVoicemailValues()); in testVoicemailPermissions_Insert()
423 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()
DContactsProvider2Test.java978 Uri rowUri = mResolver.insert(RawContacts.CONTENT_URI, values); in testRawContactsInsert()
1157 Uri dataUri = mResolver.insert(Data.CONTENT_URI, values); in testDataInsert()
1186 Uri dataUri = mResolver.insert(Data.CONTENT_URI, values); in testDataInsertAndUpdateHashId()
1246 Uri dataUri = mResolver.insert(Data.CONTENT_URI, values); in testDataInsertAndUpdateHashId_Photo()
1274 Uri dataUri = mResolver.insert(Data.CONTENT_URI, values); in testDataInsertPhoneNumberTooLongIsTrimmed()
1388 final Uri dataUri = mResolver.insert(Data.CONTENT_URI, values); in testPhonesNormalizedNumber()
1628 Uri rawContactUri = mResolver.insert(RawContacts.CONTENT_URI, values); in testPhoneLookup()
1665 Uri rawContactUri = mResolver.insert(RawContacts.CONTENT_URI, values); in testSipPhoneLookup()
1695 Uri rawContactUri = mResolver.insert(RawContacts.CONTENT_URI, values); in testPhoneLookupStarUseCases()
1700 rawContactUri = mResolver.insert(RawContacts.CONTENT_URI, values); in testPhoneLookupStarUseCases()
[all …]
DContactsActor.java581 Uri rawContactUri = resolver.insert(RawContacts.CONTENT_URI, values); in createRawContact()
603 Uri dataUri = resolver.insert(insertUri, values); in createName()
619 Uri dataUri = resolver.insert(insertUri, values); in createPhone()
634 Uri dataUri = resolver.insert(insertUri, values); in createEmail()
643 Uri dataUri = resolver.insert(StatusUpdates.CONTENT_URI, values); in createStatus()
701 Uri groupUri = resolver.insert(ContactsContract.Groups.CONTENT_URI, values); in createGroup()
713 Uri dataUri = resolver.insert(insertUri, values); in createGroupMembership()
/packages/apps/Dialer/java/com/android/dialer/database/
DDialerDatabaseHelper.java478 final SQLiteStatement insert = db.compileStatement(sqlInsert); in insertUpdatedContactsAndNumberPrefix() local
493 insert.clearBindings(); in insertUpdatedContactsAndNumberPrefix()
502 insert.bindString(2, number); in insertUpdatedContactsAndNumberPrefix()
509 insert.bindString(4, lookupKey); in insertUpdatedContactsAndNumberPrefix()
514 insert.bindString(5, mContext.getResources().getString(R.string.missing_name)); in insertUpdatedContactsAndNumberPrefix()
516 insert.bindString(5, displayName); in insertUpdatedContactsAndNumberPrefix()
518 insert.bindLong(1, updatedContactCursor.getLong(PhoneQuery.PHONE_ID)); in insertUpdatedContactsAndNumberPrefix()
519 insert.bindLong(3, updatedContactCursor.getLong(PhoneQuery.PHONE_CONTACT_ID)); in insertUpdatedContactsAndNumberPrefix()
520 insert.bindLong(6, updatedContactCursor.getLong(PhoneQuery.PHONE_PHOTO_ID)); in insertUpdatedContactsAndNumberPrefix()
521 insert.bindLong(7, updatedContactCursor.getLong(PhoneQuery.PHONE_LAST_TIME_USED)); in insertUpdatedContactsAndNumberPrefix()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DMessageData.java443 final SQLiteStatement insert = db.getStatementInTransaction( in getInsertStatement() local
445 insert.clearBindings(); in getInsertStatement()
446 insert.bindString(INDEX_CONVERSATION_ID, mConversationId); in getInsertStatement()
447 insert.bindString(INDEX_PARTICIPANT_ID, mParticipantId); in getInsertStatement()
448 insert.bindString(INDEX_SELF_ID, mSelfId); in getInsertStatement()
449 insert.bindLong(INDEX_SENT_TIMESTAMP, mSentTimestamp); in getInsertStatement()
450 insert.bindLong(INDEX_RECEIVED_TIMESTAMP, mReceivedTimestamp); in getInsertStatement()
451 insert.bindLong(INDEX_SEEN, mSeen ? 1 : 0); in getInsertStatement()
452 insert.bindLong(INDEX_READ, mRead ? 1 : 0); in getInsertStatement()
453 insert.bindLong(INDEX_PROTOCOL, mProtocol); in getInsertStatement()
[all …]
DMessagePartData.java256 final SQLiteStatement insert = db.getStatementInTransaction( in getInsertStatement() local
258 insert.clearBindings(); in getInsertStatement()
259 insert.bindString(INDEX_MESSAGE_ID, mMessageId); in getInsertStatement()
261 insert.bindString(INDEX_TEXT, mText); in getInsertStatement()
264 insert.bindString(INDEX_CONTENT_URI, mContentUri.toString()); in getInsertStatement()
267 insert.bindString(INDEX_CONTENT_TYPE, mContentType); in getInsertStatement()
269 insert.bindLong(INDEX_WIDTH, mWidth); in getInsertStatement()
270 insert.bindLong(INDEX_HEIGHT, mHeight); in getInsertStatement()
271 insert.bindString(INDEX_CONVERSATION_ID, conversationId); in getInsertStatement()
272 return insert; in getInsertStatement()
/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/Launcher2/
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/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/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/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
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()
/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()
DPhotoStore.java173 public long insert(PhotoProcessor photoProcessor) { in insert() method in PhotoStore
174 return insert(photoProcessor, false); in insert()
187 public long insert(PhotoProcessor photoProcessor, boolean allowSmallImageStorage) { in insert() method in PhotoStore
209 long id = mDb.insert(Tables.PHOTO_FILES, null, values); in insert()
DDataRowHandlerForPhoneNumber.java42 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, in insert() method in DataRowHandlerForPhoneNumber
46 final long dataId = super.insert(db, txContext, rawContactId, values); in insert()
127 db.insert(Tables.PHONE_LOOKUP, null, phoneValues); in updatePhoneLookup()
133 db.insert(Tables.PHONE_LOOKUP, null, phoneValues); in updatePhoneLookup()
/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/Test/connectivity/sl4n/utils/
Dcommand_receiver.cpp44 _funcMap->insert(std::make_pair("initiate", &initiate)); in CommandReceiver()
45 _funcMap->insert(std::make_pair("continue", &initiate)); in CommandReceiver()
68 _funcMap->insert(std::make_pair(name, command)); in RegisterCommand()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Ddynamic_pt_gc_event_listeners.cpp84 mDictPositionRelocationMap->mPtNodeArrayPositionRelocationMap.insert( in onDescend()
115 mDictPositionRelocationMap->mPtNodePositionRelocationMap.insert( in onVisitingPtNode()
121 mDictPositionRelocationMap->mPtNodePositionRelocationMap.insert( in onVisitingPtNode()

12345678910>>...12