/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Audio_PlaylistsTest.java | 64 ContentValues values = new ContentValues(); local 65 values.put(Playlists.NAME, "My favourites"); 66 values.put(Playlists.DATA, externalPlaylistPath); 69 values.put(Playlists.DATE_MODIFIED, dateModified); 71 Uri uri = mContentResolver.insert(Playlists.EXTERNAL_CONTENT_URI, values); 90 values.clear(); 91 values.put(Playlists.NAME, "xxx"); 93 values.put(Playlists.DATE_MODIFIED, dateModified); 94 assertEquals(1, mContentResolver.update(uri, values, null, null)); 110 ContentValues values = new ContentValues() local [all...] |
ContactsContract_StreamItemPhotosTest.java | 49 ContentValues values = new ContentValues(); local 50 values.put(StreamItemPhotos.SORT_INDEX, 1); 51 values.put(StreamItemPhotos.PHOTO, photoData); 56 Uri uri = mResolver.insert(insertUri, values); 64 ContentValues values = new ContentValues(); local 65 values.put(StreamItemPhotos.STREAM_ITEM_ID, mStreamItemId); 66 values.put(StreamItemPhotos.SORT_INDEX, 1); 67 values.put(StreamItemPhotos.PHOTO, photoData); 69 Uri uri = mResolver.insert(StreamItems.CONTENT_PHOTO_URI, values);
|
/dalvik/dx/src/com/android/dx/cf/code/ |
SwitchList.java | 28 /** {@code non-null;} list of test values */ 29 private final IntList values; field in class:SwitchList 32 * {@code non-null;} list of targets corresponding to the test values; there 48 this.values = new IntList(size); 56 values.setImmutable(); 77 return values.get(n); 112 * Gets the list of all case values. 117 return values; 154 values.add(value); 180 values.set(at, values.get(i)) [all...] |
/development/samples/NotePad/src/com/example/android/notepad/ |
TitleEditor.java | 89 null, // No where columns are used, so no where values are needed. 140 // Creates a values map for updating the provider. 141 ContentValues values = new ContentValues(); local 143 // In the values map, sets the title to the current contents of the edit box. 144 values.put(NotePad.Notes.COLUMN_NAME_TITLE, mText.getText().toString()); 156 values, // The values map containing the columns to update and the values to use. 158 null // No "where" columns are used, so no "where" values are needed.
|
/frameworks/base/core/java/android/provider/ |
UserDictionary.java | 75 * The frequency column. A value between 1 and 255. Higher values imply higher frequency. 170 ContentValues values = new ContentValues(COLUMN_COUNT); local 172 values.put(WORD, word); 173 values.put(FREQUENCY, frequency); 174 values.put(LOCALE, null == locale ? null : locale.toString()); 175 values.put(APP_ID, 0); // TODO: Get App UID 176 values.put(SHORTCUT, shortcut); 178 Uri result = resolver.insert(CONTENT_URI, values);
|
/packages/apps/Browser/tests/src/com/android/browser/tests/ |
BP2UriObserverTests.java | 60 ContentValues values = new ContentValues(); local 61 values.put(Bookmarks.FAVICON, rawFavicon); 62 values.put(Bookmarks.TITLE, "Stub1"); 65 assertTrue(updateBookmark(toUpdate, values)); 96 ContentValues values = new ContentValues(); local 97 values.put(History.FAVICON, rawFavicon); 98 values.put(History.TITLE, "Stub1"); 101 assertTrue(updateHistory(toUpdate, values));
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
DismissAlarmsService.java | 74 ContentValues values = new ContentValues(); local 75 values.put(PROJECTION[COLUMN_INDEX_STATE], CalendarAlerts.STATE_DISMISSED); 76 resolver.update(uri, values, selection, null);
|
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/ |
SerializerTests.java | 38 ContentValues values = new ContentValues(); local 44 s.writeStringValue(values, KEY, Tags.COMPOSE_ACCOUNT_ID); 45 values.put(KEY, ID); 46 s.writeStringValue(values, KEY, Tags.COMPOSE_ACCOUNT_ID);
|
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/ |
SerializerTests.java | 38 ContentValues values = new ContentValues(); local 44 s.writeStringValue(values, KEY, Tags.COMPOSE_ACCOUNT_ID); 45 values.put(KEY, ID); 46 s.writeStringValue(values, KEY, Tags.COMPOSE_ACCOUNT_ID);
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
RecurrenceSetTest.java | 107 ContentValues values = new ContentValues(); local 108 values.put(CalendarContract.Events.DTSTART, 0); 109 values.put(CalendarContract.Events.DURATION, "P3600S"); 110 values.put(CalendarContract.Events.RRULE, RRULE_LESS_THAN_75_CHARS); 112 assertTrue(RecurrenceSet.populateComponent(values, component)); 123 values = new ContentValues(); 124 values.put(CalendarContract.Events.DTSTART, 0); 125 values.put(CalendarContract.Events.DURATION, "P3600S"); 126 values.put(CalendarContract.Events.RRULE, RRULE_MORE_THAN_75_CHARS); 128 assertTrue(RecurrenceSet.populateComponent(values, component)) [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ProfileDatabaseHelper.java | 69 ContentValues values = new ContentValues(); local 70 values.put(SEQUENCE_NAME, table); 71 values.put(SEQUENCE_SEQ, Profile.MIN_ID); 72 db.insert(SEQUENCE_TABLE, null, values);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
DirectoryTest.java | 45 ContentValues values = new ContentValues(); local 49 values.put(Directory.PACKAGE_NAME, "contactsTestPackage"); 50 values.put(Directory.DIRECTORY_AUTHORITY, ContactsContract.AUTHORITY); 51 values.put(Directory.TYPE_RESOURCE_ID, R.string.default_directory); 52 values.put(Directory.EXPORT_SUPPORT, Directory.EXPORT_SUPPORT_NONE); 53 values.putNull(Directory.ACCOUNT_NAME); 54 values.putNull(Directory.ACCOUNT_TYPE); 55 values.putNull(Directory.DISPLAY_NAME); 57 assertStoredValues(defaultDirectoryUri, values); 61 ContentValues values = new ContentValues() local [all...] |
/packages/providers/DownloadProvider/tests/permission/src/com/android/providers/downloads/permission/tests/ |
DownloadProviderPermissionsTest.java | 77 ContentValues values = new ContentValues(); local 78 values.put(Downloads.Impl.COLUMN_URI, "foo"); 79 mContentResolver.insert(Downloads.Impl.CONTENT_URI, values);
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
StructArrayTest.java | 30 int[] values = {0, 1, 2, 3, 4}; local 31 S.set_i(0, values, true);
|
/external/apache-harmony/annotation/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
ElementTypeTest.java | 56 * @tests java.lang.annotation.ElementType#values() 60 ElementType[] values = ElementType.values(); local 61 assertTrue(values.length > 1); 62 Arrays.sort(values); 63 assertTrue(Arrays.binarySearch(values, ElementType.METHOD) >= 0);
|
RetentionPolicyTest.java | 51 * @tests java.lang.annotation.RetentionPolicy#values() 55 RetentionPolicy[] values = RetentionPolicy.values(); local 56 assertTrue(values.length > 1); 57 Arrays.sort(values); 58 assertTrue(Arrays.binarySearch(values, RetentionPolicy.RUNTIME) >= 0);
|
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/x500/ |
RDN.java | 14 private ASN1Set values; field in class:RDN 16 private RDN(ASN1Set values) 18 this.values = values; 48 this.values = new DERSet(new DERSequence(v)); 53 this.values = new DERSet(attrTAndV); 61 this.values = new DERSet(aAndVs); 66 return this.values.size() > 1; 71 if (this.values.size() == 0) 76 return AttributeTypeAndValue.getInstance(this.values.getObjectAt(0)) [all...] |
/external/chromium/base/ |
string_split_unittest.cc | 16 std::vector<std::string> values; member in class:base::SplitStringIntoKeyValuesTest 22 &key, &values)); 24 EXPECT_TRUE(values.empty()); 30 &key, &values)); 32 EXPECT_TRUE(values.empty()); 38 &key, &values)); 40 ASSERT_EQ(1U, values.size()); 46 &key, &values)); 48 ASSERT_EQ(1U, values.size()); 49 EXPECT_EQ("value1, value2 value3", values[0]) [all...] |
/external/chromium/base/threading/ |
thread_local_storage_unittest.cc | 74 int values[kNumThreads]; local 82 values[index] = kInitialTlsValue; 83 thread_delegates[index] = new ThreadLocalStorageRunner(&values[index]); 96 EXPECT_EQ(values[index], kInitialTlsValue);
|
/external/chromium/chrome/browser/extensions/ |
extension_override_apitest.cc | 25 ListValue* values = NULL; local 26 if (!overrides->GetList("history", &values)) 30 for (size_t i = 0; i < values->GetSize(); ++i) { 32 if (!values->GetString(i, &value))
|
/external/guava/guava/src/com/google/common/collect/ |
AbstractSortedSetMultimap.java | 42 * values 53 * Returns a collection view of all values associated with a key. If no 60 * <p>Because a {@code SortedSetMultimap} has unique sorted values for a given 69 * Removes all values associated with a given key. The returned collection is 72 * <p>Because a {@code SortedSetMultimap} has unique sorted values for a given 81 * Stores a collection of values with the same key, replacing any existing 82 * values for that key. The returned collection is immutable. 84 * <p>Because a {@code SortedSetMultimap} has unique sorted values for a given 88 * <p>Any duplicates in {@code values} will be stored in the multimap once. 91 K key, Iterable<? extends V> values) { 119 @Override public Collection<V> values() { method in class:AbstractSortedSetMultimap [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
TestMapEntrySetGenerator.java | 24 * Creates map entries using sample keys and sample values. 33 private final SampleElements<V> values; field in class:TestMapEntrySetGenerator 36 SampleElements<K> keys, SampleElements<V> values) { 38 this.values = values; 43 return SampleElements.mapEntries(keys, values);
|
/external/guava/guava-tests/test/com/google/common/collect/ |
MapsTransformValuesUnmodifiableIteratorTest.java | 74 @Override public Collection<V> values() { method 77 return delegate.values(); 80 return Iterators.unmodifiableIterator(delegate.values().iterator()); 83 return delegate.values().removeAll(c); 86 return delegate.values().retainAll(c); 142 Collection<?> expectedValues = expected.values(); 143 Collection<?> mapValues = map.values(); 269 Collection<String> values = map.values(); 270 values.remove("4") [all...] |
/external/hamcrest/src/org/hamcrest/core/ |
DescribedAs.java | 18 private final Object[] values;
field in class:DescribedAs 22 public DescribedAs(String descriptionTemplate, Matcher<T> matcher, Object[] values) {
25 this.values = values.clone();
39 description.appendValue(values[argIndex]);
52 public static <T> Matcher<T> describedAs(String description, Matcher<T> matcher, Object... values) {
53 return new DescribedAs<T>(description, matcher, values);
|
/external/jsilver/src/com/google/clearsilver/jsilver/values/ |
NumberValue.java | 17 package com.google.clearsilver.jsilver.values;
|