/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/ |
D | DataItem.java | 45 private final ContentValues mContentValues; field in DataItem 49 mContentValues = values; in DataItem() 95 return mContentValues; in getContentValues() 99 return mContentValues.getAsLong(Data.RAW_CONTACT_ID); in getRawContactId() 103 mContentValues.put(Data.RAW_CONTACT_ID, rawContactId); in setRawContactId() 108 return mContentValues.getAsLong(Data._ID); in getId() 113 return mContentValues.getAsString(Data.MIMETYPE); in getMimeType() 117 mContentValues.put(Data.MIMETYPE, mimeType); in setMimeType() 121 Integer primary = mContentValues.getAsInteger(Data.IS_PRIMARY); in isPrimary() 126 Integer superPrimary = mContentValues.getAsInteger(Data.IS_SUPER_PRIMARY); in isSuperPrimary() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/ |
D | MapClientContentTest.java | 154 Assert.assertEquals(0, mMockSmsContentProvider.mContentValues.size()); in testCreateMapClientContent() 166 Assert.assertEquals(1, mMockSmsContentProvider.mContentValues.size()); in testCleanDirtyDatabase() 168 Assert.assertEquals(0, mMockSmsContentProvider.mContentValues.size()); in testCleanDirtyDatabase() 180 Assert.assertEquals(1, mMockSmsContentProvider.mContentValues.size()); in testStoreTwoSMS() 183 Assert.assertEquals(2, mMockSmsContentProvider.mContentValues.size()); in testStoreTwoSMS() 184 Assert.assertEquals(0, mMockMmsContentProvider.mContentValues.size()); in testStoreTwoSMS() 187 Assert.assertEquals(0, mMockSmsContentProvider.mContentValues.size()); in testStoreTwoSMS() 188 Assert.assertEquals(0, mMockThreadContentProvider.mContentValues.size()); in testStoreTwoSMS() 200 Assert.assertEquals(1, mMockMmsContentProvider.mContentValues.size()); in testStoreTwoMMS() 203 Assert.assertEquals(2, mMockMmsContentProvider.mContentValues.size()); in testStoreTwoMMS() [all …]
|
D | MapClientStateMachineTest.java | 413 Map<Uri, ContentValues> mContentValues = new HashMap<>(); field in MapClientStateMachineTest.MockSmsContentProvider 435 when(cursor.getLong(anyInt())).thenReturn((long) mContentValues.size()); in query() 436 when(cursor.getString(anyInt())).thenReturn(String.valueOf(mContentValues.size())); in query()
|
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/ |
D | DataItem.java | 46 private final ContentValues mContentValues; field in DataItem 50 mContentValues = values; in DataItem() 98 return mContentValues; in getContentValues() 102 mContentValues.put(Data.RAW_CONTACT_ID, rawContactId); in setRawContactId() 106 return mContentValues.getAsLong(Data.RAW_CONTACT_ID); in getRawContactId() 113 return mContentValues.getAsLong(Data._ID); in getId() 120 return mContentValues.getAsString(Data.MIMETYPE); in getMimeType() 124 mContentValues.put(Data.MIMETYPE, mimeType); in setMimeType() 128 Integer primary = mContentValues.getAsInteger(Data.IS_PRIMARY); in isPrimary() 133 Integer superPrimary = mContentValues.getAsInteger(Data.IS_SUPER_PRIMARY); in isSuperPrimary() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | RawContact.java | 70 public final ContentValues mContentValues; field in RawContact.NamedDataItem 74 this.mContentValues = values; in NamedDataItem() 79 this.mContentValues = parcel.readParcelable(ContentValues.class.getClassLoader()); in NamedDataItem() 90 parcel.writeParcelable(mContentValues, i); in writeToParcel() 109 return Objects.hashCode(mUri, mContentValues); in hashCode() 119 Objects.equal(mContentValues, other.mContentValues); in equals() 328 list.add(dataItem.mContentValues); in getContentValues() 338 list.add(DataItem.createFrom(dataItem.mContentValues)); in getDataItems() 349 sb.append("\n -> ").append(namedDataItem.mContentValues); in toString()
|
/packages/apps/Dialer/java/com/android/contacts/common/model/ |
D | RawContact.java | 238 list.add(dataItem.mContentValues); in getContentValues() 248 list.add(DataItem.createFrom(dataItem.mContentValues)); in getDataItems() 259 sb.append("\n -> ").append(namedDataItem.mContentValues); in toString() 309 public final ContentValues mContentValues; field in RawContact.NamedDataItem 313 this.mContentValues = values; in NamedDataItem() 318 this.mContentValues = parcel.readParcelable(ContentValues.class.getClassLoader()); in NamedDataItem() 329 parcel.writeParcelable(mContentValues, i); in writeToParcel() 334 return Objects.hash(mUri, mContentValues); in hashCode() 348 && Objects.equals(mContentValues, other.mContentValues); in equals()
|
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
D | MockContentProvider.java | 236 private final ContentValues mContentValues; field in MockContentProvider.Insert 251 mContentValues = Preconditions.checkNotNull(contentValues); in Insert() 267 return mUri.equals(uri) && mContentValues.equals(contentValues); in equals() 282 Objects.equals(mContentValues, insert.mContentValues) && in equals() 288 return Objects.hash(mUri, mContentValues, mResultUri, mAnyNumberOfTimes, mIsExecuted); in hashCode() 295 ", mContentValues=" + mContentValues + in toString() 376 private final ContentValues mContentValues; field in MockContentProvider.Update 396 mContentValues = Preconditions.checkNotNull(contentValues); in Update() 427 return mUri.equals(uri) && mContentValues.equals(contentValues) && in equals() 444 Objects.equals(mContentValues, update.mContentValues) && in equals() [all …]
|