/external/android-mock/tests/com/google/android/testing/mocking/ |
SdkVersionTest.java | 30 List<SdkVersion> values = Arrays.asList(SdkVersion.values()); local 32 assertTrue(values.containsAll(versions)); 45 7, SdkVersion.values().length); 57 7, SdkVersion.values().length);
|
/external/antlr/src/org/antlr/runtime/misc/ |
DoubleKeyMap.java | 34 /** Get all values associated with primary key */ 35 public Collection<Value> values(Key1 k1) { method in class:DoubleKeyMap 38 return data2.values(); 53 public Collection<Value> values() { method in class:DoubleKeyMap 55 for (Map<Key2, Value> k2 : data.values()) { 56 for (Value v : k2.values()) {
|
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/x500/ |
X500NameBuilder.java | 39 public X500NameBuilder addMultiValuedRDN(ASN1ObjectIdentifier[] oids, String[] values) 41 ASN1Encodable[] vals = new ASN1Encodable[values.length]; 45 vals[i] = template.stringToValue(oids[i], values[i]); 51 public X500NameBuilder addMultiValuedRDN(ASN1ObjectIdentifier[] oids, ASN1Encodable[] values) 57 avs[i] = new AttributeTypeAndValue(oids[i], values[i]);
|
/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/emma/core/java12/com/vladium/util/ |
IntVector.java | 40 public int [] values () method in class:IntVector 128 final int [] values = new int [1 + (capacity << 1)]; local 131 for (int i = 0; i < capacity; ++ i) values [i] = m_values [i]; 135 System.arraycopy (m_values, 0, values, 0, capacity); 138 m_values = values;
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
ViewIdGenerator.java | 67 * @param values {@link ValuesDelta} associated with the view, or null if none exists. 71 public int getId(EntityDelta entity, DataKind kind, ValuesDelta values, 73 final String k = getMapKey(entity, kind, values, viewIndex); 84 private static String getMapKey(EntityDelta entity, DataKind kind, ValuesDelta values, 94 if (values != null) { 96 sWorkStringBuilder.append(values.getId());
|
/frameworks/base/core/java/android/animation/ |
KeyframeSet.java | 27 * values between those keyframes for a given animation. The class internal to the animation 50 public static KeyframeSet ofInt(int... values) { 51 int numKeyframes = values.length; 55 keyframes[1] = (IntKeyframe) Keyframe.ofInt(1f, values[0]); 57 keyframes[0] = (IntKeyframe) Keyframe.ofInt(0f, values[0]); 59 keyframes[i] = (IntKeyframe) Keyframe.ofInt((float) i / (numKeyframes - 1), values[i]); 65 public static KeyframeSet ofFloat(float... values) { 66 int numKeyframes = values.length; 70 keyframes[1] = (FloatKeyframe) Keyframe.ofFloat(1f, values[0]); 72 keyframes[0] = (FloatKeyframe) Keyframe.ofFloat(0f, values[0]) [all...] |
/frameworks/base/core/java/android/text/ |
PackedIntVector.java | 25 * offsetting the values in segments of a given column. 137 * Increments all values in the specified column whose row >= the 163 * Inserts a new row of values at the specified row offset. 168 * @param values the new values to be added. If this is null, 173 * values array is too small (values.length < width()). 175 public void insertAt(int row, int[] values) { 180 if ((values != null) && (values.length < width())) 292 final int[] values = mValues; local 320 final int[] values = mValues; local 344 final int[] values = mValues; local [all...] |
/packages/apps/Browser/src/com/android/browser/ |
DataController.java | 165 ContentValues values = new ContentValues(); local 166 values.put(History.VISITS, c.getInt(1) + 1); 167 values.put(History.DATE_LAST_VISITED, System.currentTimeMillis()); 169 values, null, null); local 172 ContentValues values = new ContentValues(); local 173 values.put(History.URL, url); 174 values.put(History.VISITS, 1); 175 values.put(History.DATE_LAST_VISITED, System.currentTimeMillis()); 176 values.put(History.TITLE, url); 177 values.put(History.DATE_CREATED, 0) 212 ContentValues values = new ContentValues(); local [all...] |
Bookmarks.java | 72 ContentValues values = new ContentValues(); local 75 values.put(BrowserContract.Bookmarks.TITLE, name); 76 values.put(BrowserContract.Bookmarks.URL, url); 77 values.put(BrowserContract.Bookmarks.IS_FOLDER, 0); 78 values.put(BrowserContract.Bookmarks.THUMBNAIL, 80 values.put(BrowserContract.Bookmarks.PARENT, parent); 81 context.getContentResolver().insert(BrowserContract.Bookmarks.CONTENT_URI, values); 209 ContentValues values = new ContentValues(); local 210 values.put(Images.FAVICON, os.toByteArray()); 211 updateImages(cr, originalUrl, values); [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Audio_Playlists_MembersTest.java | 140 ContentValues values = new ContentValues(); local 141 values.put(Playlists.NAME, "My favourites"); 142 values.put(Playlists.DATA, ""); 144 values.put(Playlists.DATE_ADDED, dateAdded); 146 values.put(Playlists.DATE_MODIFIED, dateModified); 148 Uri uri = mContentResolver.insert(Playlists.EXTERNAL_CONTENT_URI, values); 159 values.clear(); 160 values.put(Members.AUDIO_ID, mIdOfAudio1); 161 values.put(Members.PLAY_ORDER, 1); 164 Uri audioUri = mContentResolver.insert(membersUri, values); 366 ContentValues values = new ContentValues(); local [all...] |
/frameworks/base/media/libstagefright/codecs/aacenc/src/ |
bit_cnt.c | 42 static void count1_2_3_4_5_6_7_8_9_10_11(const Word16 *values, 60 t0= values[i+0]; 61 t1= values[i+1]; 62 t2= values[i+2]; 63 t3= values[i+3]; 118 static void count3_4_5_6_7_8_9_10_11(const Word16 *values, 135 t0= values[i+0]; 136 t1= values[i+1]; 137 t2= values[i+2]; 138 t3= values[i+3]; [all...] |
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
AlertActivity.java | 103 ContentValues values = new ContentValues(1 /* size */); local 104 values.put(PROJECTION[INDEX_STATE], CalendarAlerts.STATE_DISMISSED); 106 mQueryHandler.startUpdate(0, null, CalendarAlerts.CONTENT_URI, values, 111 ContentValues values = new ContentValues(1 /* size */); local 112 values.put(PROJECTION[INDEX_STATE], CalendarAlerts.STATE_DISMISSED); 114 mQueryHandler.startUpdate(0, null, CalendarAlerts.CONTENT_URI, values, 187 ContentValues values = new ContentValues(); local 188 values.put(CalendarAlerts.EVENT_ID, eventId); 189 values.put(CalendarAlerts.BEGIN, begin); 190 values.put(CalendarAlerts.END, end) 308 ContentValues values = local [all...] |
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
MmsProvider.java | 263 public Uri insert(Uri uri, ContentValues values) { 275 Object msgBoxObj = values.getAsInteger(Mms.MESSAGE_BOX); 323 boolean addDate = !values.containsKey(Mms.DATE); 324 boolean addMsgBox = !values.containsKey(Mms.MESSAGE_BOX); 327 filterUnsupportedKeys(values); 331 finalValues = new ContentValues(values); 349 Long threadId = values.getAsLong(Mms.THREAD_ID); 350 String address = values.getAsString(CanonicalAddressesColumns.ADDRESS); 364 finalValues = new ContentValues(values); 374 finalValues = new ContentValues(values); [all...] |
/cts/tests/tests/database/src/android/database/cts/ |
DatabaseUtils_InsertHelperTest.java | 226 ContentValues values = new ContentValues(); local 227 values.put("boolean_value", false); 228 values.put("int_value", 123); 229 values.put("long_value", 987654L); 230 values.put("double_value", 654.321); 231 values.put("float_value", 21.1f); 232 values.put("string_value", "insert another row"); 233 values.put("blob_value", blob); 234 values.putNull("null_value"); 235 id = mInsertHelper.insert(values); 392 ContentValues values = new ContentValues(); local [all...] |
/external/skia/src/animator/ |
SkDisplayTypes.cpp | 189 SK_MEMBER_ARRAY(values, Unknown) 199 SkDisplayArray::SkDisplayArray(SkTypedArray& copyFrom) : values(copyFrom) { 204 if (values.getType() == SkType_String) { 205 for (int index = 0; index < values.count(); index++) 206 delete values[index].fString; 209 if (values.getType() == SkType_Array) { 210 for (int index = 0; index < values.count(); index++) 211 delete values[index].fArray; 219 value->fOperand.fS32 = values.count();
|
SkOperandIterpolator.cpp | 47 bool SkOperandInterpolator::setKeyFrame(int index, SkMSec time, const SkOperand values[], SkScalar blend) 49 SkASSERT(values != NULL); 62 memcpy(dst, values, fElemCount * sizeof(SkOperand)); 67 SkInterpolatorBase::Result SkOperandInterpolator::timeToValues(SkMSec time, SkOperand values[]) const 73 if (values) 78 memcpy(values, nextSrc, fElemCount * sizeof(SkScalar)); 87 values[i].fScalar = SkScalarInterp(prevSrc[i].fScalar, nextSrc[i].fScalar, T); 92 values[i].fS32 = a + SkScalarRound((b - a) * T); 95 memcpy(values, prevSrc, sizeof(SkOperand) * fElemCount);
|
/external/webkit/Source/WebKit2/Shared/mac/ |
ShareableSurface.cpp | 97 const void *values[numKeys]; local 99 values[0] = CFNumberCreate(0, kCFNumberIntType, &width); 101 values[1] = CFNumberCreate(0, kCFNumberIntType, &height); 103 values[2] = CFNumberCreate(0, kCFNumberIntType, &pixelFormat); 105 values[3] = CFNumberCreate(0, kCFNumberIntType, &bytesPerElement); 107 values[4] = CFNumberCreate(0, kCFNumberLongType, &bytesPerRow); 109 values[5] = CFNumberCreate(0, kCFNumberLongType, &allocSize); 111 RetainPtr<CFDictionaryRef> dictionary(AdoptCF, CFDictionaryCreate(0, keys, values, numKeys, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks)); 113 CFRelease(values[i]);
|
/frameworks/base/tools/localize/ |
file_utils.cpp | 56 const char* values = p; local 61 rest = values; 62 values = p; 63 if (0 == strncmp("values", values+1, rest-values-1)) { 68 values++; 70 string result(str, values-str); 71 result.append(values, rest-values); [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
HandleSetAlarm.java | 84 ContentValues values = new ContentValues(); local 85 values.put(Alarm.Columns.HOUR, hour); 86 values.put(Alarm.Columns.MINUTES, minutes); 87 values.put(Alarm.Columns.MESSAGE, message); 88 values.put(Alarm.Columns.ENABLED, 1); 89 values.put(Alarm.Columns.VIBRATE, 1); 90 values.put(Alarm.Columns.DAYS_OF_WEEK, 0); 91 values.put(Alarm.Columns.ALARM_TIME, timeInMillis); 94 Uri result = cr.insert(Alarm.Columns.CONTENT_URI, values);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
AbstractContactsProvider.java | 105 public Uri insert(Uri uri, ContentValues values) { 108 Uri result = insertInTransaction(uri, values); 135 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { 138 int updated = updateInTransaction(uri, values, selection, selectionArgs); 150 public int bulkInsert(Uri uri, ContentValues[] values) { 152 int numValues = values.length; 156 insert(uri, values[i]); 249 protected abstract Uri insertInTransaction(Uri uri, ContentValues values); 253 protected abstract int updateInTransaction(Uri uri, ContentValues values, String selection,
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
AbstractCollectionTest.java | 142 String[] values = new String[] {"0", "1", "2"}; 145 return index < values.length; 149 return values[index++]; 153 removed[index - 1] = values[index - 1]; 184 String[] values = new String[] {"0", "1", "2"}; 187 return index < values.length; 191 return values[index++]; 195 removed[index - 1] = values[index - 1]; 220 String[] values = new String[] {"0", "1", "2"}; 223 return index < values.length [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/ |
SequenceTest.java | 81 Object[] values = (Object[]) in.content; 82 return new AppClass((Boolean) values[0], (List) values[1]); 85 protected void getValues(Object object, Object[] values) { 88 values[0] = obj.ok; 89 values[1] = obj.list; 100 // sequence : all values are default 206 protected void getValues(Object object, Object[] values) { 207 values = (Object[]) object; 224 protected void getValues(Object object, Object[] values) { [all...] |
/external/chromium/chrome/browser/chromeos/ |
wm_ipc.cc | 39 bool SetIntProperty(XID xid, Atom xatom, const std::vector<int>& values) { 40 DCHECK(!values.empty()); 42 // XChangeProperty expects values of type 32 to be longs. 43 scoped_array<long> data(new long[values.size()]); 44 for (size_t i = 0; i < values.size(); ++i) 45 data[i] = values[i]; 55 values.size()); // num items 72 std::vector<int> values; local 73 values.push_back(type); 75 values.insert(values.end(), params->begin(), params->end()) 159 std::vector<int> values; local 163 values); local [all...] |
/packages/apps/Calendar/src/com/android/calendar/event/ |
EventViewUtils.java | 71 * Finds the index of the given "minutes" in the "values" list. 73 * @param values the list of minutes corresponding to the spinner choices 74 * @param minutes the minutes to search for in the values list 75 * @return the index of "minutes" in the "values" list 77 public static int findMinutesInReminderList(ArrayList<Integer> values, int minutes) { 78 int index = values.indexOf(minutes); 95 * @param values the list of minutes corresponding to the spinner choices 96 * @param method the method to search for in the values list 97 * @return the index of the method in the "values" list 99 public static int findMethodInReminderList(ArrayList<Integer> values, int method) [all...] |