Home
last modified time | relevance | path

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

12345678910>>...23

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSmsMessageBodyTest.java261 int[] values = {0, 0, 0, SmsConstants.ENCODING_7BIT, 0, 0}; in testCalcLengthAscii() local
279 values[0] = sTestMsgCounts[i]; in testCalcLengthAscii()
280 values[1] = len; in testCalcLengthAscii()
281 values[2] = sSeptetUnitsRemaining[i]; in testCalcLengthAscii()
283 callGsmLengthMethods(testStr, false, values); in testCalcLengthAscii()
284 callGsmLengthMethods(testStr, true, values); in testCalcLengthAscii()
285 callCdmaLengthMethods(testStr, false, values); in testCalcLengthAscii()
286 callCdmaLengthMethods(testStr, true, values); in testCalcLengthAscii()
293 int[] values = {0, 0, 0, SmsConstants.ENCODING_16BIT, 0, 0}; in testCalcLengthUnicode() local
313 values[0] = sTestMsgCounts[i]; in testCalcLengthUnicode()
[all …]
/frameworks/base/core/java/android/provider/
DSyncStateContract.java105 ContentValues values = new ContentValues(); in set() local
106 values.put(Columns.DATA, data); in set()
107 values.put(Columns.ACCOUNT_NAME, account.name); in set()
108 values.put(Columns.ACCOUNT_TYPE, account.type); in set()
109 provider.insert(uri, values); in set()
114 ContentValues values = new ContentValues(); in insert() local
115 values.put(Columns.DATA, data); in insert()
116 values.put(Columns.ACCOUNT_NAME, account.name); in insert()
117 values.put(Columns.ACCOUNT_TYPE, account.type); in insert()
118 return provider.insert(uri, values); in insert()
[all …]
/frameworks/base/core/java/android/animation/
DObjectAnimator.java177 public static ObjectAnimator ofInt(Object target, String propertyName, int... values) { in ofInt() argument
179 anim.setIntValues(values); in ofInt()
195 public static <T> ObjectAnimator ofInt(T target, Property<T, Integer> property, int... values) { in ofInt() argument
197 anim.setIntValues(values); in ofInt()
215 public static ObjectAnimator ofFloat(Object target, String propertyName, float... values) { in ofFloat() argument
217 anim.setFloatValues(values); in ofFloat()
234 float... values) { in ofFloat() argument
236 anim.setFloatValues(values); in ofFloat()
258 TypeEvaluator evaluator, Object... values) { in ofObject() argument
260 anim.setObjectValues(values); in ofObject()
[all …]
DPropertyValuesHolder.java152 public static PropertyValuesHolder ofInt(String propertyName, int... values) { in ofInt() argument
153 return new IntPropertyValuesHolder(propertyName, values); in ofInt()
163 public static PropertyValuesHolder ofInt(Property<?, Integer> property, int... values) { in ofInt() argument
164 return new IntPropertyValuesHolder(property, values); in ofInt()
174 public static PropertyValuesHolder ofFloat(String propertyName, float... values) { in ofFloat() argument
175 return new FloatPropertyValuesHolder(propertyName, values); in ofFloat()
185 public static PropertyValuesHolder ofFloat(Property<?, Float> property, float... values) { in ofFloat() argument
186 return new FloatPropertyValuesHolder(property, values); in ofFloat()
202 Object... values) { in ofObject() argument
204 pvh.setObjectValues(values); in ofObject()
[all …]
DKeyframeSet.java50 public static KeyframeSet ofInt(int... values) { in ofInt() argument
51 int numKeyframes = values.length; in ofInt()
55 keyframes[1] = (IntKeyframe) Keyframe.ofInt(1f, values[0]); in ofInt()
57 keyframes[0] = (IntKeyframe) Keyframe.ofInt(0f, values[0]); in ofInt()
59 … keyframes[i] = (IntKeyframe) Keyframe.ofInt((float) i / (numKeyframes - 1), values[i]); in ofInt()
65 public static KeyframeSet ofFloat(float... values) { in ofFloat() argument
66 int numKeyframes = values.length; in ofFloat()
70 keyframes[1] = (FloatKeyframe) Keyframe.ofFloat(1f, values[0]); in ofFloat()
72 keyframes[0] = (FloatKeyframe) Keyframe.ofFloat(0f, values[0]); in ofFloat()
74 … keyframes[i] = (FloatKeyframe) Keyframe.ofFloat((float) i / (numKeyframes - 1), values[i]); in ofFloat()
[all …]
DValueAnimator.java260 public static ValueAnimator ofInt(int... values) { in ofInt() argument
262 anim.setIntValues(values); in ofInt()
277 public static ValueAnimator ofFloat(float... values) { in ofFloat() argument
279 anim.setFloatValues(values); in ofFloat()
291 public static ValueAnimator ofPropertyValuesHolder(PropertyValuesHolder... values) { in ofPropertyValuesHolder() argument
293 anim.setValues(values); in ofPropertyValuesHolder()
314 public static ValueAnimator ofObject(TypeEvaluator evaluator, Object... values) { in ofObject() argument
316 anim.setObjectValues(values); in ofObject()
335 public void setIntValues(int... values) { in setIntValues() argument
336 if (values == null || values.length == 0) { in setIntValues()
[all …]
/frameworks/base/keystore/java/android/security/
DKeyStore.java75 ArrayList<byte[]> values = execute('g', key); in get() local
76 return (values == null || values.isEmpty()) ? null : values.get(0); in get()
111 ArrayList<byte[]> values = execute('s', prefix); in saw() local
112 return (values == null) ? null : values.toArray(new byte[values.size()][]); in saw()
116 byte[][] values = saw(getKeyBytes(prefix)); in saw()
117 if (values == null) { in saw()
120 String[] strings = new String[values.length]; in saw()
121 for (int i = 0; i < values.length; ++i) { in saw()
122 strings[i] = toKeyString(values[i]); in saw()
179 ArrayList<byte[]> values = execute('b', key); in getPubkey() local
[all …]
/frameworks/av/media/libstagefright/codecs/aacenc/src/
Dbit_cnt.c42 static void count1_2_3_4_5_6_7_8_9_10_11(const Word16 *values, in count1_2_3_4_5_6_7_8_9_10_11() argument
60 t0= values[i+0]; in count1_2_3_4_5_6_7_8_9_10_11()
61 t1= values[i+1]; in count1_2_3_4_5_6_7_8_9_10_11()
62 t2= values[i+2]; in count1_2_3_4_5_6_7_8_9_10_11()
63 t3= values[i+3]; in count1_2_3_4_5_6_7_8_9_10_11()
118 static void count3_4_5_6_7_8_9_10_11(const Word16 *values, in count3_4_5_6_7_8_9_10_11() argument
135 t0= values[i+0]; in count3_4_5_6_7_8_9_10_11()
136 t1= values[i+1]; in count3_4_5_6_7_8_9_10_11()
137 t2= values[i+2]; in count3_4_5_6_7_8_9_10_11()
138 t3= values[i+3]; in count3_4_5_6_7_8_9_10_11()
[all …]
/frameworks/base/core/java/android/webkit/
DWebStorageClassic.java69 Map values = (Map) msg.obj; in createUIHandler()
70 Map origins = (Map) values.get(ORIGINS); in createUIHandler()
71 ValueCallback<Map> callback = (ValueCallback<Map>) values.get(CALLBACK); in createUIHandler()
76 Map values = (Map) msg.obj; in createUIHandler()
77 … ValueCallback<Long> callback = (ValueCallback<Long>) values.get(CALLBACK); in createUIHandler()
78 callback.onReceiveValue((Long)values.get(USAGE)); in createUIHandler()
82 Map values = (Map) msg.obj; in createUIHandler()
83 … ValueCallback<Long> callback = (ValueCallback<Long>) values.get(CALLBACK); in createUIHandler()
84 callback.onReceiveValue((Long)values.get(QUOTA)); in createUIHandler()
121 Map values = new HashMap<String, Object>(); in createHandler()
[all …]
DGeolocationPermissionsClassic.java74 Map values = (Map) msg.obj; in createUIHandler()
75 Set<String> origins = (Set<String>) values.get(ORIGINS); in createUIHandler()
76 … ValueCallback<Set<String> > callback = (ValueCallback<Set<String> >) values.get(CALLBACK); in createUIHandler()
80 Map values = (Map) msg.obj; in createUIHandler()
81 Boolean allowed = (Boolean) values.get(ALLOWED); in createUIHandler()
82 … ValueCallback<Boolean> callback = (ValueCallback<Boolean>) values.get(CALLBACK); in createUIHandler()
105 Map values = new HashMap<String, Object>(); in createHandler()
106 values.put(CALLBACK, callback); in createHandler()
107 values.put(ORIGINS, origins); in createHandler()
108 postUIMessage(Message.obtain(null, RETURN_ORIGINS, values)); in createHandler()
[all …]
/frameworks/base/graphics/java/android/graphics/
DInterpolator.java73 public void setKeyFrame(int index, int msec, float[] values) { in setKeyFrame() argument
74 setKeyFrame(index, msec, values, null); in setKeyFrame()
87 public void setKeyFrame(int index, int msec, float[] values, float[] blend) { in setKeyFrame() argument
91 if (values.length < mValueCount) { in setKeyFrame()
97 nativeSetKeyFrame(native_instance, index, msec, values, blend); in setKeyFrame()
121 public Result timeToValues(float[] values) { in timeToValues() argument
122 return timeToValues((int)SystemClock.uptimeMillis(), values); in timeToValues()
136 public Result timeToValues(int msec, float[] values) { in timeToValues() argument
137 if (values != null && values.length < mValueCount) { in timeToValues()
140 switch (nativeTimeToValues(native_instance, msec, values)) { in timeToValues()
[all …]
DMatrix.java217 public void setValues(float[] values) {
719 public void getValues(float[] values) { in getValues() argument
720 if (values.length < 9) { in getValues()
723 native_getValues(native_instance, values); in getValues()
732 public void setValues(float[] values) { in setValues() argument
733 if (values.length < 9) { in setValues()
736 native_setValues(native_instance, values); in setValues()
758 float[] values = new float[9]; in toShortString() local
759 getValues(values); in toShortString()
761 sb.append(values[0]); sb.append(", "); sb.append(values[1]); sb.append(", "); in toShortString()
[all …]
/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java259 v[0] = event.values[0]; in onSensorChanged()
260 v[1] = event.values[1]; in onSensorChanged()
261 v[2] = event.values[2]; in onSensorChanged()
287 float[] values, int orientation) { in mapSensorDataToWindow() argument
288 float x = values[0]; in mapSensorDataToWindow()
289 float y = values[1]; in mapSensorDataToWindow()
290 float z = values[2]; in mapSensorDataToWindow()
307 values[0] = x; in mapSensorDataToWindow()
308 values[1] = y; in mapSensorDataToWindow()
309 values[2] = z; in mapSensorDataToWindow()
[all …]
/frameworks/base/core/java/com/android/internal/net/
DVpnProfile.java120 String[] values = new String(value, Charsets.UTF_8).split("\0", -1); in decode() local
122 if (values.length < 14 || values.length > 15) { in decode()
127 profile.name = values[0]; in decode()
128 profile.type = Integer.valueOf(values[1]); in decode()
132 profile.server = values[2]; in decode()
133 profile.username = values[3]; in decode()
134 profile.password = values[4]; in decode()
135 profile.dnsServers = values[5]; in decode()
136 profile.searchDomains = values[6]; in decode()
137 profile.routes = values[7]; in decode()
[all …]
/frameworks/base/core/java/android/content/
DEntity.java37 public Entity(ContentValues values) { in Entity() argument
38 mValues = values; in Entity()
50 public void addSubValue(Uri uri, ContentValues values) { in addSubValue() argument
51 mSubValues.add(new Entity.NamedContentValues(uri, values)); in addSubValue()
56 public final ContentValues values; field in Entity.NamedContentValues
58 public NamedContentValues(Uri uri, ContentValues values) { in NamedContentValues() argument
60 this.values = values; in NamedContentValues()
69 sb.append("\n -> ").append(namedValue.values); in toString()
/frameworks/ml/bordeaux/learning/multiclass_pa/jni/
Djni_multiclass_pa.cpp26 void CreateIndexValuePairs(const int* indices, const float* values, in CreateIndexValuePairs() argument
31 pair<int, float> new_pair(indices[i], values[i]); in CreateIndexValuePairs()
66 jfloat* values = env->GetFloatArrayElements(value_array, NULL); in Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample() local
71 if (values && indices && value_len == index_len) { in Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample()
74 CreateIndexValuePairs(indices, values, value_len, &inputs); in Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample()
77 env->ReleaseFloatArrayElements(value_array, values, JNI_ABORT); in Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample()
82 env->ReleaseFloatArrayElements(value_array, values, JNI_ABORT); in Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample()
99 jfloat* values = env->GetFloatArrayElements(value_array, NULL); in Java_android_bordeaux_learning_MulticlassPA_nativeSparseGetClass() local
104 if (values && indices && value_len == index_len) { in Java_android_bordeaux_learning_MulticlassPA_nativeSparseGetClass()
106 CreateIndexValuePairs(indices, values, value_len, &inputs); in Java_android_bordeaux_learning_MulticlassPA_nativeSparseGetClass()
[all …]
/frameworks/base/test-runner/src/junit/runner/
DSorter.java15 public void swap(Vector values, int left, int right); in swap() argument
18 public static void sortStrings(Vector values , int left, int right, Swapper swapper) { in sortStrings() argument
21 String mid= (String)values.elementAt((left + right) / 2); in sortStrings()
23 while (((String)(values.elementAt(left))).compareTo(mid) < 0) in sortStrings()
25 while (mid.compareTo((String)(values.elementAt(right))) < 0) in sortStrings()
28 swapper.swap(values, left, right); in sortStrings()
35 sortStrings(values, oleft, right, swapper); in sortStrings()
37 sortStrings(values, left, oright, swapper); in sortStrings()
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DRecurrenceSetTest.java136 ContentValues values = new ContentValues(); in verifyPopulateContentValues() local
137 boolean result = RecurrenceSet.populateContentValues(recurrenceComponent, values); in verifyPopulateContentValues()
138 Log.d("KS", "values " + values); in verifyPopulateContentValues()
144 assertEquals(rrule, values.get(android.provider.CalendarContract.Events.RRULE)); in verifyPopulateContentValues()
145 assertEquals(rdate, values.get(android.provider.CalendarContract.Events.RDATE)); in verifyPopulateContentValues()
146 assertEquals(exrule, values.get(android.provider.CalendarContract.Events.EXRULE)); in verifyPopulateContentValues()
147 assertEquals(exdate, values.get(android.provider.CalendarContract.Events.EXDATE)); in verifyPopulateContentValues()
148 assertEquals(dtstart, (long) values.getAsLong(CalendarContract.Events.DTSTART)); in verifyPopulateContentValues()
149 assertEquals(tzid, values.get(android.provider.CalendarContract.Events.EVENT_TIMEZONE)); in verifyPopulateContentValues()
150 assertEquals(duration, values.get(android.provider.CalendarContract.Events.DURATION)); in verifyPopulateContentValues()
[all …]
/frameworks/base/core/java/android/preference/
DMultiCheckPreference.java124 private void setEntryValuesCS(CharSequence[] values) { in setEntryValuesCS() argument
126 if (values != null) { in setEntryValuesCS()
127 mEntryValues = new String[values.length]; in setEntryValuesCS()
128 for (int i=0; i<values.length; i++) { in setEntryValuesCS()
129 mEntryValues[i] = values[i].toString(); in setEntryValuesCS()
160 public void setValues(boolean[] values) { in setValues() argument
164 if (values != null) { in setValues()
165 System.arraycopy(values, 0, mSetValues, 0, in setValues()
166 values.length < mSetValues.length ? values.length : mSetValues.length); in setValues()
280 myState.values = getValues(); in onSaveInstanceState()
[all …]
DMultiSelectListPreference.java127 public void setValues(Set<String> values) { in setValues() argument
129 mValues.addAll(values); in setValues()
131 persistStringSet(values); in setValues()
186 final Set<String> values = mValues; in getSelectedItems() local
190 result[i] = values.contains(entries[i].toString()); in getSelectedItems()
201 final Set<String> values = mNewValues; in onDialogClosed() local
202 if (callChangeListener(values)) { in onDialogClosed()
203 setValues(values); in onDialogClosed()
236 myState.values = getValues(); in onSaveInstanceState()
241 Set<String> values; field in MultiSelectListPreference.SavedState
[all …]
/frameworks/base/core/tests/coretests/src/android/content/
DContentProviderOperationTest.java57 public Uri insert(Uri uri, ContentValues values) { in testInsert()
59 assertEquals(sTestValues1.toString(), values.toString()); in testInsert()
70 public Uri insert(Uri uri, ContentValues values) { in testInsertNoValues()
72 assertNull(values); in testInsertNoValues()
85 public Uri insert(Uri uri, ContentValues values) { in testInsertFailed()
87 assertEquals(sTestValues1.toString(), values.toString()); in testInsertFailed()
109 public Uri insert(Uri uri, ContentValues values) { in testInsertWithBackRefs()
114 assertEquals(expected.toString(), values.toString()); in testInsertWithBackRefs()
127 public Uri insert(Uri uri, ContentValues values) { in testUpdate()
129 assertEquals(sTestValues1.toString(), values.toString()); in testUpdate()
[all …]
/frameworks/base/core/java/android/text/
DPackedIntVector.java175 public void insertAt(int row, int[] values) { in insertAt() argument
180 if ((values != null) && (values.length < width())) { in insertAt()
181 throw new IndexOutOfBoundsException("value count " + values.length); in insertAt()
193 if (values == null) { in insertAt()
199 setValueInternal(row, i, values[i]); in insertAt()
292 final int[] values = mValues; in moveValueGapTo() local
299 values[i * columns + column] += valuegap[column + columns]; in moveValueGapTo()
303 values[i * columns + column] -= valuegap[column + columns]; in moveValueGapTo()
320 final int[] values = mValues; in moveRowGapTo() local
327 int val = values[i * columns+ j]; in moveRowGapTo()
[all …]
/frameworks/base/core/java/android/app/
DDownloadManager.java673 ContentValues values = new ContentValues(); in toContentValues() local
675 values.put(Downloads.Impl.COLUMN_URI, mUri.toString()); in toContentValues()
676 values.put(Downloads.Impl.COLUMN_IS_PUBLIC_API, true); in toContentValues()
677 values.put(Downloads.Impl.COLUMN_NOTIFICATION_PACKAGE, packageName); in toContentValues()
680 values.put(Downloads.Impl.COLUMN_DESTINATION, Downloads.Impl.DESTINATION_FILE_URI); in toContentValues()
681 values.put(Downloads.Impl.COLUMN_FILE_NAME_HINT, mDestinationUri.toString()); in toContentValues()
683 values.put(Downloads.Impl.COLUMN_DESTINATION, in toContentValues()
689 values.put(Downloads.Impl.COLUMN_MEDIA_SCANNED, (mScannable) ? SCANNABLE_VALUE_YES : in toContentValues()
693 encodeHttpHeaders(values); in toContentValues()
696 putIfNonNull(values, Downloads.Impl.COLUMN_TITLE, mTitle); in toContentValues()
[all …]
/frameworks/base/core/java/android/database/
DCursorJoiner.java204 private static void populateValues(String[] values, Cursor cursor, int[] columnIndicies, in populateValues() argument
208 values[startingIndex + i*2] = cursor.getString(columnIndicies[i]); in populateValues()
242 private static int compareStrings(String... values) { in compareStrings() argument
243 if ((values.length % 2) != 0) { in compareStrings()
247 for (int index = 0; index < values.length; index+=2) { in compareStrings()
248 if (values[index] == null) { in compareStrings()
249 if (values[index+1] == null) continue; in compareStrings()
253 if (values[index+1] == null) { in compareStrings()
257 int comp = values[index].compareTo(values[index+1]); in compareStrings()
/frameworks/base/core/jni/android/graphics/
DInterpolator.cpp29 float* values = autoValues.ptr(); in Interpolator_setKeyFrame() local
36 scalars[i] = SkFloatToScalar(values[i]); in Interpolator_setKeyFrame()
40 values = autoBlend.ptr(); in Interpolator_setKeyFrame()
42 blendStorage[i] = SkFloatToScalar(values[i]); in Interpolator_setKeyFrame()
62 float* values = valueArray ? env->GetFloatArrayElements(valueArray, NULL) : NULL; in Interpolator_timeToValues() local
63 result = interp->timeToValues(msec, (SkScalar*)values); in Interpolator_timeToValues()
68 values[i] = SkScalarToFloat(*(SkScalar*)&values[i]); in Interpolator_timeToValues()
70 env->ReleaseFloatArrayElements(valueArray, values, 0); in Interpolator_timeToValues()

12345678910>>...23