Home
last modified time | relevance | path

Searched refs:values (Results 1 – 25 of 1272) sorted by relevance

12345678910>>...51

/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/createtzs2protodatafile/data/
Dmerged_tzs2ranges.prototxt9 values: "Europe/Paris"
14 values: "Europe/Paris"
19 values: "Europe/Paris"
24 values: "Europe/Paris"
29 values: "Europe/Paris"
34 values: "Europe/Paris"
39 values: "Europe/Paris"
44 values: "Europe/Paris"
49 values: "Europe/Paris"
54 values: "Europe/Paris"
[all …]
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/mergetzs2ranges/data/
Dmerged_tzs2ranges.prototxt9 values: "Europe/Paris"
14 values: "Europe/Paris"
19 values: "Europe/Paris"
24 values: "Europe/Paris"
29 values: "Europe/Paris"
34 values: "Europe/Paris"
39 values: "Europe/Paris"
44 values: "Europe/Paris"
49 values: "Europe/Paris"
54 values: "Europe/Paris"
[all …]
DEurope_London_tzs2ranges.prototxt9 values: "Europe/London"
14 values: "Europe/London"
19 values: "Europe/London"
24 values: "Europe/London"
29 values: "Europe/London"
34 values: "Europe/London"
39 values: "Europe/London"
44 values: "Europe/London"
49 values: "Europe/London"
54 values: "Europe/London"
[all …]
DEurope_Paris_tzs2ranges.prototxt9 values: "Europe/Paris"
14 values: "Europe/Paris"
19 values: "Europe/Paris"
24 values: "Europe/Paris"
29 values: "Europe/Paris"
34 values: "Europe/Paris"
39 values: "Europe/Paris"
44 values: "Europe/Paris"
49 values: "Europe/Paris"
54 values: "Europe/Paris"
[all …]
DEurope_Isle_of_Man_tzs2ranges.prototxt9 values: "Europe/Isle_of_Man"
14 values: "Europe/Isle_of_Man"
19 values: "Europe/Isle_of_Man"
24 values: "Europe/Isle_of_Man"
29 values: "Europe/Isle_of_Man"
34 values: "Europe/Isle_of_Man"
39 values: "Europe/Isle_of_Man"
44 values: "Europe/Isle_of_Man"
49 values: "Europe/Isle_of_Man"
54 values: "Europe/Isle_of_Man"
[all …]
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/tzs2cellunions_to_tzs2ranges/data/
DEurope_London_tzs2ranges.prototxt9 values: "Europe/London"
14 values: "Europe/London"
19 values: "Europe/London"
24 values: "Europe/London"
29 values: "Europe/London"
34 values: "Europe/London"
39 values: "Europe/London"
44 values: "Europe/London"
49 values: "Europe/London"
54 values: "Europe/London"
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DLegacyContactsProviderTest.java78 ContentValues values = new ContentValues(); in testPeopleInsert() local
79 putContactValues(values); in testPeopleInsert()
81 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleInsert()
83 values = noStats(values); in testPeopleInsert()
85 assertStoredValues(uri, values); in testPeopleInsert()
87 assertSelection(People.CONTENT_URI, values, "people", People._ID, ContentUris.parseId(uri)); in testPeopleInsert()
91 ContentValues values = new ContentValues(); in testPeopleUpdate() local
92 putContactValues(values); in testPeopleUpdate()
94 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleUpdate()
95 values = noStats(values); in testPeopleUpdate()
[all …]
DCallLogProviderTest.java149 final ContentValues values = new ContentValues(); in getMockCallLogDatabaseHelper() local
150 values.put(Calls.PHONE_ACCOUNT_COMPONENT_NAME, in getMockCallLogDatabaseHelper()
152 values.put(Calls.IS_PHONE_ACCOUNT_MIGRATION_PENDING, 1); in getMockCallLogDatabaseHelper()
153 values.put(Calls.PHONE_ACCOUNT_ID, TEST_PHONE_ACCOUNT_HANDLE_ICC_ID1); in getMockCallLogDatabaseHelper()
154 db.insert(CallLogDatabaseHelper.Tables.CALLS, null, values); in getMockCallLogDatabaseHelper()
157 final ContentValues values = new ContentValues(); in getMockCallLogDatabaseHelper() local
158 values.put(Calls.PHONE_ACCOUNT_COMPONENT_NAME, in getMockCallLogDatabaseHelper()
160 values.put(Calls.IS_PHONE_ACCOUNT_MIGRATION_PENDING, 1); in getMockCallLogDatabaseHelper()
161 values.put(Calls.PHONE_ACCOUNT_ID, TEST_PHONE_ACCOUNT_HANDLE_ICC_ID1); in getMockCallLogDatabaseHelper()
162 db.insert(CallLogDatabaseHelper.Tables.CALLS, null, values); in getMockCallLogDatabaseHelper()
[all …]
DVoicemailProviderTest.java122 ContentValues values = getTestReadVoicemailValues(); in testInsertReadMessageIsNotNew() local
123 values.remove(Voicemails.NEW); in testInsertReadMessageIsNotNew()
124 Uri uri = mResolver.insert(voicemailUri(), values); in testInsertReadMessageIsNotNew()
138 assertCursorValues(c, values); in testInsertReadMessageIsNotNew()
176 ContentValues values = new ContentValues(); in testUpdate() local
177 values.put(Voicemails.NUMBER, "1-800-263-7643"); in testUpdate()
178 values.put(Voicemails.DATE, 2000); in testUpdate()
179 values.put(Voicemails.DURATION, 40); in testUpdate()
180 values.put(Voicemails.TRANSCRIPTION, "Testing 123"); in testUpdate()
181 values.put(Voicemails.STATE, 2); in testUpdate()
[all …]
DBaseContactsProvider2Test.java203 ContentValues values = new ContentValues(); in updateItem() local
204 CommonDatabaseUtils.extrasVarArgsToValues(values, extras); in updateItem()
205 return mResolver.update(uri, values, null, null); in updateItem()
223 ContentValues values = new ContentValues(); in createGroup() local
224 values.put(Groups.SOURCE_ID, sourceId); in createGroup()
225 values.put(Groups.TITLE, title); in createGroup()
226 values.put(Groups.GROUP_VISIBLE, visible); in createGroup()
227 values.put(Groups.AUTO_ADD, autoAdd ? 1 : 0); in createGroup()
228 values.put(Groups.FAVORITES, favorite ? 1 : 0); in createGroup()
230 return ContentUris.parseId(mResolver.insert(uri, values)); in createGroup()
[all …]
DContactsProvider2Test.java184 final ContentValues values = new ContentValues(); in getMockContactsDatabaseHelper() local
185 values.put(ContactsDatabaseHelper.DataColumns.MIMETYPE_ID, 6666); in getMockContactsDatabaseHelper()
186 values.put(Data.RAW_CONTACT_ID, 6666); in getMockContactsDatabaseHelper()
187 values.put(Data.PREFERRED_PHONE_ACCOUNT_COMPONENT_NAME, in getMockContactsDatabaseHelper()
189 values.put(Data.IS_PHONE_ACCOUNT_MIGRATION_PENDING, 1); in getMockContactsDatabaseHelper()
190 values.put(Data.PREFERRED_PHONE_ACCOUNT_ID, TEST_PHONE_ACCOUNT_HANDLE_ICC_ID1); in getMockContactsDatabaseHelper()
191 long count = db.insert(ContactsDatabaseHelper.Tables.DATA, null, values); in getMockContactsDatabaseHelper()
194 final ContentValues values = new ContentValues(); in getMockContactsDatabaseHelper() local
195 values.put(ContactsDatabaseHelper.DataColumns.MIMETYPE_ID, 6666); in getMockContactsDatabaseHelper()
196 values.put(Data.RAW_CONTACT_ID, 6666); in getMockContactsDatabaseHelper()
[all …]
DSearchIndexManagerTest.java55 ContentValues values = new ContentValues(); in testSearchIndexForStructuredName() local
56 values.put(StructuredName.DISPLAY_NAME, "Bob I. Parr"); in testSearchIndexForStructuredName()
57 DataUtil.insertStructuredName(mResolver, rawContactId, values); in testSearchIndexForStructuredName()
58 values.clear(); in testSearchIndexForStructuredName()
59 values.put(StructuredName.PREFIX, "Mrs."); in testSearchIndexForStructuredName()
60 values.put(StructuredName.GIVEN_NAME, "Helen"); in testSearchIndexForStructuredName()
61 values.put(StructuredName.MIDDLE_NAME, "I."); in testSearchIndexForStructuredName()
62 values.put(StructuredName.FAMILY_NAME, "Parr"); in testSearchIndexForStructuredName()
63 values.put(StructuredName.SUFFIX, "PhD"); in testSearchIndexForStructuredName()
64 values.put(StructuredName.PHONETIC_FAMILY_NAME, "par"); in testSearchIndexForStructuredName()
[all …]
DGroupsTest.java162 ContentValues values = new ContentValues(); in testMarkAsDirtyParameter() local
163 values.put(Groups.NOTES, "New notes"); in testMarkAsDirtyParameter()
164 mResolver.update(updateUri, values, null, null); in testMarkAsDirtyParameter()
173 ContentValues values = new ContentValues(); in testGroupDirtyClearedWhenSetExplicitly() local
174 values.put(Groups.DIRTY, 0); in testGroupDirtyClearedWhenSetExplicitly()
175 values.put(Groups.NOTES, "other notes"); in testGroupDirtyClearedWhenSetExplicitly()
176 assertEquals(1, mResolver.update(uri, values, null, null)); in testGroupDirtyClearedWhenSetExplicitly()
209 ContentValues values = new ContentValues(); in testGroupVersionUpdates() local
210 values.put(Groups.TITLE, "title2"); in testGroupVersionUpdates()
211 mResolver.update(uri, values, null, null); in testGroupVersionUpdates()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/
DPickerDatabaseHelperTest.java92 ContentValues values = getBasicContentValues(); in testMediaColumns() local
93 values.put(KEY_LOCAL_ID, LOCAL_ID); in testMediaColumns()
94 values.put(KEY_CLOUD_ID, CLOUD_ID); in testMediaColumns()
95 values.put(KEY_IS_VISIBLE, 1); in testMediaColumns()
96 assertThat(db.insert(MEDIA_TABLE, null, values)).isNotEqualTo(-1); in testMediaColumns()
134 ContentValues values = getBasicContentValues(); in testAlbumMediaColumns() local
135 values.put(KEY_LOCAL_ID, LOCAL_ID); in testAlbumMediaColumns()
136 values.put(KEY_ALBUM_ID, ALBUM_ID); in testAlbumMediaColumns()
137 assertThat(db.insert(ALBUM_MEDIA_TABLE, null, values)).isNotEqualTo(-1); in testAlbumMediaColumns()
163 ContentValues values = getBasicContentValues(); in testCheck_cloudOrLocal() local
[all …]
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DFakeContactsProvider.java156 private static void addEmail(long contactId, ContentValues values) { in addEmail() argument
157 values.put(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE); in addEmail()
158 values.put(Data._ID, contactId); in addEmail()
159 values.put(Data.IS_PRIMARY, calculateIsPrimary(contactId)); in addEmail()
160 values.put(Data.IS_SUPER_PRIMARY, calculateIsSuperPrimary(contactId)); in addEmail()
161 values.put(Email.ADDRESS, String.format("emailAddress%d@google.com", contactId)); in addEmail()
162 values.put(Email.TYPE, EMAIL_TYPES[(int) (contactId % EMAIL_TYPES.length)]); in addEmail()
163 values.put(Email.LABEL, String.format("emailLabel%d", contactId)); in addEmail()
167 private static void addNickname(long contactId, ContentValues values) { in addNickname() argument
168 values.put(Data.MIMETYPE, Nickname.CONTENT_ITEM_TYPE); in addNickname()
[all …]
DContactDataHandlerTest.java55 private static Cursor makeCursorFromContentValues(ContentValues values) { in makeCursorFromContentValues() argument
56 MatrixCursor cursor = new MatrixCursor(values.keySet().toArray(new String[0])); in makeCursorFromContentValues()
58 for (String key : values.keySet()) { in makeCursorFromContentValues()
59 builder.add(key, values.get(key)); in makeCursorFromContentValues()
111 ContentValues values = new ContentValues(); in testConvertCurrentRowToPerson_labelCustom_typeCustom() local
112 values.put(Data.MIMETYPE, CommonDataKinds.Email.CONTENT_ITEM_TYPE); in testConvertCurrentRowToPerson_labelCustom_typeCustom()
113 values.put(CommonDataKinds.Email.ADDRESS, address); in testConvertCurrentRowToPerson_labelCustom_typeCustom()
114 values.put(CommonDataKinds.Email.TYPE, type); in testConvertCurrentRowToPerson_labelCustom_typeCustom()
115 values.put(CommonDataKinds.Email.LABEL, label); in testConvertCurrentRowToPerson_labelCustom_typeCustom()
116 Cursor cursor = makeCursorFromContentValues(values); in testConvertCurrentRowToPerson_labelCustom_typeCustom()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DDatabaseHelperTest.java86 final ContentValues values = new ContentValues(); in testFilterVolumeNames() local
87 values.put(FileColumns.MEDIA_TYPE, FileColumns.MEDIA_TYPE_AUDIO); in testFilterVolumeNames()
88 values.put(FileColumns.VOLUME_NAME, VOLUME_EXTERNAL_PRIMARY); in testFilterVolumeNames()
89 values.put(FileColumns.DATA, "/storage/emulated/0/Coldplay-Clocks.mp3"); in testFilterVolumeNames()
90 values.put(AudioColumns.TITLE, "Clocks"); in testFilterVolumeNames()
91 values.put(AudioColumns.ALBUM, "A Rush of Blood"); in testFilterVolumeNames()
92 values.put(AudioColumns.ARTIST, "Coldplay"); in testFilterVolumeNames()
93 values.put(AudioColumns.GENRE, "Rock"); in testFilterVolumeNames()
94 values.put(AudioColumns.IS_MUSIC, true); in testFilterVolumeNames()
95 MediaProvider.computeAudioKeyValues(values); in testFilterVolumeNames()
[all …]
/packages/providers/DownloadProvider/tests/public_api_access/src/com/android/providers/downloads/public_api_access_tests/
DPublicApiAccessTest.java91 ContentValues values = buildValidValues(); in testMaximalValidWrite() local
92 values.put(Downloads.Impl.COLUMN_TITLE, "foo"); in testMaximalValidWrite()
93 values.put(Downloads.Impl.COLUMN_DESCRIPTION, "foo"); in testMaximalValidWrite()
94 values.put(Downloads.Impl.COLUMN_MIME_TYPE, "foo"); in testMaximalValidWrite()
95 values.put(Downloads.Impl.COLUMN_NOTIFICATION_PACKAGE, "foo"); in testMaximalValidWrite()
96 values.put(Downloads.Impl.COLUMN_ALLOWED_NETWORK_TYPES, 0); in testMaximalValidWrite()
97 values.put(Downloads.Impl.COLUMN_ALLOW_ROAMING, true); in testMaximalValidWrite()
98 values.put(Downloads.Impl.RequestHeaders.INSERT_KEY_PREFIX + "0", "X-Some-Header: value"); in testMaximalValidWrite()
99 mContentResolver.insert(Downloads.Impl.CONTENT_URI, values); in testMaximalValidWrite()
103 ContentValues values = new ContentValues(); in buildValidValues() local
[all …]
/packages/services/Mtp/src/com/android/mtp/
DMtpDatabase.java138 final ContentValues values = new ContentValues(); in queryRoots() local
154 values.clear(); in queryRoots()
167 DatabaseUtils.cursorRowToContentValues(deviceRoot, values); in queryRoots()
187 values.put(Root.COLUMN_CAPACITY_BYTES, capacityBytes); in queryRoots()
188 values.put(Root.COLUMN_AVAILABLE_BYTES, availableBytes); in queryRoots()
190 values.putNull(Root.COLUMN_CAPACITY_BYTES); in queryRoots()
191 values.putNull(Root.COLUMN_AVAILABLE_BYTES); in queryRoots()
193 if (storageCursor.getCount() == 1 && values.containsKey(Root.COLUMN_TITLE)) { in queryRoots()
196 values.put( in queryRoots()
200 values.getAsString(Root.COLUMN_TITLE), in queryRoots()
[all …]
/packages/modules/StatsD/statsd/src/matchers/
Dmatcher_util.cpp101 const vector<FieldValue>& values, int start, int end, int depth) { in matchesSimple() argument
117 int pos = values[i].mField.getPosAtDepth(depth); in matchesSimple()
147 int pos = values[i].mField.getPosAtDepth(depth); in matchesSimple()
161 if (values[i].mField.isLastPos(depth)) { in matchesSimple()
174 int currentPos = values[start].mField.getPosAtDepth(depth); in matchesSimple()
177 int newPos = values[i].mField.getPosAtDepth(depth); in matchesSimple()
205 if (!matchesSimple(uidMap, subMatcher, values, range.first, range.second, in matchesSimple()
220 if ((values[i].mValue.getType() == INT && in matchesSimple()
221 (values[i].mValue.int_value != 0) == matcher.eq_bool()) || in matchesSimple()
222 (values[i].mValue.getType() == LONG && in matchesSimple()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryHistEntry.java79 public BatteryHistEntry(ContentValues values) { in BatteryHistEntry() argument
80 mUid = getLong(values, KEY_UID); in BatteryHistEntry()
81 mUserId = getLong(values, KEY_USER_ID); in BatteryHistEntry()
82 mAppLabel = getString(values, KEY_APP_LABEL); in BatteryHistEntry()
83 mPackageName = getString(values, KEY_PACKAGE_NAME); in BatteryHistEntry()
84 mIsHidden = getBoolean(values, KEY_IS_HIDDEN); in BatteryHistEntry()
85 mBootTimestamp = getLong(values, KEY_BOOT_TIMESTAMP); in BatteryHistEntry()
86 mTimestamp = getLong(values, KEY_TIMESTAMP); in BatteryHistEntry()
87 mZoneId = getString(values, KEY_ZONE_ID); in BatteryHistEntry()
88 mTotalPower = getDouble(values, KEY_TOTAL_POWER); in BatteryHistEntry()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDbModifierWithNotification.java109 public long insert(String table, String nullColumnHack, ContentValues values) { in insert() argument
110 Set<String> packagesModified = getModifiedPackages(values); in insert()
112 values.put(Calls.LAST_MODIFIED, getTimeMillis()); in insert()
114 long rowId = mDb.insert(table, nullColumnHack, values); in insert()
126 public long insert(ContentValues values) { in insert() argument
127 Set<String> packagesModified = getModifiedPackages(values); in insert()
129 values.put(Calls.LAST_MODIFIED, getTimeMillis()); in insert()
131 long rowId = mInsertHelper.insert(values); in insert()
173 public int update(Uri uri, String table, ContentValues values, String whereClause, in update() argument
176 packagesModified.addAll(getModifiedPackages(values)); in update()
[all …]
DDataRowHandlerForPhoto.java59 ContentValues values) { in insert() argument
61 if (values.containsKey(SKIP_PROCESSING_KEY)) { in insert()
62 values.remove(SKIP_PROCESSING_KEY); in insert()
65 if (!preProcessPhoto(values)) { in insert()
70 long dataId = super.insert(db, txContext, rawContactId, values); in insert()
78 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, in update() argument
82 if (values.containsKey(SKIP_PROCESSING_KEY)) { in update()
83 values.remove(SKIP_PROCESSING_KEY); in update()
86 if (!preProcessPhoto(values)) { in update()
92 if (!super.update(db, txContext, values, c, callerIsSyncAdapter)) { in update()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/
DContactsUtilsTests.java81 final ContentValues values = new ContentValues(); in testImIntentCustom() local
82 values.put(Im.MIMETYPE, Im.CONTENT_ITEM_TYPE); in testImIntentCustom()
83 values.put(Im.TYPE, Im.TYPE_HOME); in testImIntentCustom()
84 values.put(Im.PROTOCOL, Im.PROTOCOL_CUSTOM); in testImIntentCustom()
85 values.put(Im.CUSTOM_PROTOCOL, TEST_PROTOCOL); in testImIntentCustom()
86 values.put(Im.DATA, TEST_ADDRESS); in testImIntentCustom()
87 final ImDataItem im = (ImDataItem) DataItem.createFrom(values); in testImIntentCustom()
104 final ContentValues values = new ContentValues(); in testImIntent() local
105 values.put(Im.MIMETYPE, Im.CONTENT_ITEM_TYPE); in testImIntent()
106 values.put(Im.TYPE, Im.TYPE_HOME); in testImIntent()
[all …]
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/
DLegacyProviderMigrationTest.java144 final ContentValues values = new ContentValues(); in generateValues() local
145 values.put(FileColumns.MEDIA_TYPE, mediaType); in generateValues()
146 values.put(MediaColumns.DATA, file.getAbsolutePath()); in generateValues()
147 values.put(MediaColumns.DISPLAY_NAME, file.getName()); in generateValues()
148 values.put(MediaColumns.MIME_TYPE, mimeType); in generateValues()
149 values.put(MediaColumns.VOLUME_NAME, mVolumeName); in generateValues()
150 values.put(MediaColumns.DATE_ADDED, String.valueOf(System.currentTimeMillis() / 1_000)); in generateValues()
151 values.put(MediaColumns.OWNER_PACKAGE_NAME, in generateValues()
153 return values; in generateValues()
169 final ContentValues values = generateValues(FileColumns.MEDIA_TYPE_IMAGE, in testLegacy_Orientation() local
[all …]

12345678910>>...51