/frameworks/base/core/java/android/transition/ |
D | VisibilityPropagation.java | 43 public void captureValues(TransitionValues values) { in captureValues() argument 44 View view = values.view; in captureValues() 45 Integer visibility = (Integer) values.values.get(Visibility.PROPNAME_VISIBILITY); in captureValues() 49 values.values.put(PROPNAME_VISIBILITY, visibility); in captureValues() 56 values.values.put(PROPNAME_VIEW_CENTER, loc); in captureValues() 71 public int getViewVisibility(TransitionValues values) { in getViewVisibility() argument 72 if (values == null) { in getViewVisibility() 75 Integer visibility = (Integer) values.values.get(PROPNAME_VISIBILITY); in getViewVisibility() 89 public int getViewX(TransitionValues values) { in getViewX() argument 90 return getViewCoordinate(values, 0); in getViewX() [all …]
|
D | ChangeClipBounds.java | 53 private void captureValues(TransitionValues values) { in captureValues() argument 54 View view = values.view; in captureValues() 60 values.values.put(PROPNAME_CLIP, clip); in captureValues() 63 values.values.put(PROPNAME_BOUNDS, bounds); in captureValues() 81 || !startValues.values.containsKey(PROPNAME_CLIP) in createAnimator() 82 || !endValues.values.containsKey(PROPNAME_CLIP)) { in createAnimator() 85 Rect start = (Rect) startValues.values.get(PROPNAME_CLIP); in createAnimator() 86 Rect end = (Rect) endValues.values.get(PROPNAME_CLIP); in createAnimator() 92 start = (Rect) startValues.values.get(PROPNAME_BOUNDS); in createAnimator() 94 end = (Rect) endValues.values.get(PROPNAME_BOUNDS); in createAnimator()
|
D | ChangeTransform.java | 189 transitionValues.values.put(PROPNAME_PARENT, view.getParent()); in captureValues() 191 transitionValues.values.put(PROPNAME_TRANSFORMS, transforms); in captureValues() 198 transitionValues.values.put(PROPNAME_MATRIX, matrix); in captureValues() 204 transitionValues.values.put(PROPNAME_PARENT_MATRIX, parentMatrix); in captureValues() 205 transitionValues.values.put(PROPNAME_INTERMEDIATE_MATRIX, in captureValues() 207 transitionValues.values.put(PROPNAME_INTERMEDIATE_PARENT_MATRIX, in captureValues() 227 !startValues.values.containsKey(PROPNAME_PARENT) || in createAnimator() 228 !endValues.values.containsKey(PROPNAME_PARENT)) { in createAnimator() 232 ViewGroup startParent = (ViewGroup) startValues.values.get(PROPNAME_PARENT); in createAnimator() 233 ViewGroup endParent = (ViewGroup) endValues.values.get(PROPNAME_PARENT); in createAnimator() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsMessageBodyTest.java | 261 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/ |
D | SyncStateContract.java | 105 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 …]
|
D | CallLog.java | 453 ContentValues values = new ContentValues(6); in addCall() local 455 values.put(NUMBER, number); in addCall() 456 values.put(NUMBER_PRESENTATION, Integer.valueOf(numberPresentation)); in addCall() 457 values.put(TYPE, Integer.valueOf(callType)); in addCall() 458 values.put(FEATURES, features); in addCall() 459 values.put(DATE, Long.valueOf(start)); in addCall() 460 values.put(DURATION, Long.valueOf(duration)); in addCall() 462 values.put(DATA_USAGE, dataUsage); in addCall() 464 values.put(PHONE_ACCOUNT_COMPONENT_NAME, accountComponentString); in addCall() 465 values.put(PHONE_ACCOUNT_ID, accountId); in addCall() [all …]
|
/frameworks/base/core/java/android/animation/ |
D | PropertyValuesHolder.java | 157 public static PropertyValuesHolder ofInt(String propertyName, int... values) { in ofInt() argument 158 return new IntPropertyValuesHolder(propertyName, values); in ofInt() 168 public static PropertyValuesHolder ofInt(Property<?, Integer> property, int... values) { in ofInt() argument 169 return new IntPropertyValuesHolder(property, values); in ofInt() 186 public static PropertyValuesHolder ofMultiInt(String propertyName, int[][] values) { in ofMultiInt() argument 187 if (values.length < 2) { in ofMultiInt() 191 for (int i = 0; i < values.length; i++) { in ofMultiInt() 192 if (values[i] == null) { in ofMultiInt() 195 int length = values[i].length; in ofMultiInt() 203 return new MultiIntValuesHolder(propertyName, null, evaluator, (Object[]) values); in ofMultiInt() [all …]
|
D | ObjectAnimator.java | 217 public static ObjectAnimator ofInt(Object target, String propertyName, int... values) { in ofInt() argument 219 anim.setIntValues(values); in ofInt() 262 public static <T> ObjectAnimator ofInt(T target, Property<T, Integer> property, int... values) { in ofInt() argument 264 anim.setIntValues(values); in ofInt() 307 public static ObjectAnimator ofMultiInt(Object target, String propertyName, int[][] values) { in ofMultiInt() argument 308 PropertyValuesHolder pvh = PropertyValuesHolder.ofMultiInt(propertyName, values); in ofMultiInt() 352 TypeConverter<T, int[]> converter, TypeEvaluator<T> evaluator, T... values) { in ofMultiInt() argument 354 evaluator, values); in ofMultiInt() 372 public static ObjectAnimator ofArgb(Object target, String propertyName, int... values) { in ofArgb() argument 373 ObjectAnimator animator = ofInt(target, propertyName, values); in ofArgb() [all …]
|
D | KeyframeSet.java | 66 public static KeyframeSet ofInt(int... values) { in ofInt() argument 67 int numKeyframes = values.length; in ofInt() 71 keyframes[1] = (IntKeyframe) Keyframe.ofInt(1f, values[0]); in ofInt() 73 keyframes[0] = (IntKeyframe) Keyframe.ofInt(0f, values[0]); in ofInt() 76 (IntKeyframe) Keyframe.ofInt((float) i / (numKeyframes - 1), values[i]); in ofInt() 82 public static KeyframeSet ofFloat(float... values) { in ofFloat() argument 84 int numKeyframes = values.length; in ofFloat() 88 keyframes[1] = (FloatKeyframe) Keyframe.ofFloat(1f, values[0]); in ofFloat() 89 if (Float.isNaN(values[0])) { in ofFloat() 93 keyframes[0] = (FloatKeyframe) Keyframe.ofFloat(0f, values[0]); in ofFloat() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Interpolator.java | 73 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 …]
|
D | Matrix.java | 214 public void setValues(float[] values) { 758 public void getValues(float[] values) { in getValues() argument 759 if (values.length < 9) { in getValues() 762 native_getValues(native_instance, values); in getValues() 771 public void setValues(float[] values) { in setValues() argument 772 if (values.length < 9) { in setValues() 775 native_setValues(native_instance, values); in setValues() 798 float[] values = new float[9]; in toShortString() local 799 getValues(values); in toShortString() 801 sb.append(values[0]); sb.append(", "); sb.append(values[1]); sb.append(", "); in toShortString() [all …]
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
D | bit_cnt.c | 42 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/hardware/ |
D | LegacySensorManager.java | 259 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/android/content/ |
D | Entity.java | 34 public Entity(ContentValues values) { in Entity() argument 35 mValues = values; in Entity() 47 public void addSubValue(Uri uri, ContentValues values) { in addSubValue() argument 48 mSubValues.add(new Entity.NamedContentValues(uri, values)); in addSubValue() 53 public final ContentValues values; field in Entity.NamedContentValues 55 public NamedContentValues(Uri uri, ContentValues values) { in NamedContentValues() argument 57 this.values = values; in NamedContentValues() 66 sb.append("\n -> ").append(namedValue.values); in toString()
|
/frameworks/base/core/java/com/android/internal/net/ |
D | VpnProfile.java | 120 String[] values = new String(value, StandardCharsets.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/test-runner/src/junit/runner/ |
D | Sorter.java | 13 public void swap(Vector values, int left, int right); in swap() argument 16 public static void sortStrings(Vector values , int left, int right, Swapper swapper) { in sortStrings() argument 19 String mid= (String)values.elementAt((left + right) / 2); in sortStrings() 21 while (((String)(values.elementAt(left))).compareTo(mid) < 0) in sortStrings() 23 while (mid.compareTo((String)(values.elementAt(right))) < 0) in sortStrings() 26 swapper.swap(values, left, right); in sortStrings() 33 sortStrings(values, oleft, right, swapper); in sortStrings() 35 sortStrings(values, left, oright, swapper); in sortStrings()
|
/frameworks/ml/bordeaux/learning/multiclass_pa/jni/ |
D | jni_multiclass_pa.cpp | 26 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/opt/calendar/tests/src/com/android/calendarcommon2/ |
D | RecurrenceSetTest.java | 136 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/cmds/bootanimation/ |
D | AudioPlayer.cpp | 71 static bool setMixerValue(struct mixer* mixer, const char* name, const char* values) in setMixerValue() argument 88 for (int i = 0; i < numValues && values; i++) { in setMixerValue() 90 while (*values == ' ') values++; in setMixerValue() 91 if (*values == 0) break; in setMixerValue() 96 if (sscanf(values, "%d", &intValue) == 1) { in setMixerValue() 105 if (sscanf(values, "%s", stringValue) == 1) { in setMixerValue() 118 values = strchr(values, ' '); in setMixerValue() 175 const char* values = strchr(l, '='); in init() local 176 if (values) { in init() 177 values++; // skip '=' in init() [all …]
|
/frameworks/base/core/java/android/app/ |
D | DownloadManager.java | 708 ContentValues values = new ContentValues(); in toContentValues() local 710 values.put(Downloads.Impl.COLUMN_URI, mUri.toString()); in toContentValues() 711 values.put(Downloads.Impl.COLUMN_IS_PUBLIC_API, true); in toContentValues() 712 values.put(Downloads.Impl.COLUMN_NOTIFICATION_PACKAGE, packageName); in toContentValues() 715 values.put(Downloads.Impl.COLUMN_DESTINATION, Downloads.Impl.DESTINATION_FILE_URI); in toContentValues() 716 values.put(Downloads.Impl.COLUMN_FILE_NAME_HINT, mDestinationUri.toString()); in toContentValues() 718 values.put(Downloads.Impl.COLUMN_DESTINATION, in toContentValues() 724 values.put(Downloads.Impl.COLUMN_MEDIA_SCANNED, (mScannable) ? SCANNABLE_VALUE_YES : in toContentValues() 728 encodeHttpHeaders(values); in toContentValues() 731 putIfNonNull(values, Downloads.Impl.COLUMN_TITLE, mTitle); in toContentValues() [all …]
|
/frameworks/base/core/java/android/text/ |
D | PackedIntVector.java | 176 public void insertAt(int row, int[] values) { in insertAt() argument 181 if ((values != null) && (values.length < width())) { in insertAt() 182 throw new IndexOutOfBoundsException("value count " + values.length); in insertAt() 194 if (values == null) { in insertAt() 200 setValueInternal(row, i, values[i]); in insertAt() 293 final int[] values = mValues; in moveValueGapTo() local 300 values[i * columns + column] += valuegap[column + columns]; in moveValueGapTo() 304 values[i * columns + column] -= valuegap[column + columns]; in moveValueGapTo() 321 final int[] values = mValues; in moveRowGapTo() local 328 int val = values[i * columns+ j]; in moveRowGapTo() [all …]
|
/frameworks/base/core/java/android/preference/ |
D | MultiCheckPreference.java | 133 private void setEntryValuesCS(CharSequence[] values) { in setEntryValuesCS() argument 135 if (values != null) { in setEntryValuesCS() 136 mEntryValues = new String[values.length]; in setEntryValuesCS() 137 for (int i=0; i<values.length; i++) { in setEntryValuesCS() 138 mEntryValues[i] = values[i].toString(); in setEntryValuesCS() 169 public void setValues(boolean[] values) { in setValues() argument 173 if (values != null) { in setValues() 174 System.arraycopy(values, 0, mSetValues, 0, in setValues() 175 values.length < mSetValues.length ? values.length : mSetValues.length); in setValues() 289 myState.values = getValues(); in onSaveInstanceState() [all …]
|
/frameworks/base/core/java/android/database/ |
D | CursorJoiner.java | 204 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/tests/coretests/src/android/content/ |
D | ContentProviderOperationTest.java | 57 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/com/android/internal/os/ |
D | BatterySipper.java | 27 public double[] values; field in BatterySipper 65 public BatterySipper(DrainType drainType, Uid uid, double[] values) { in BatterySipper() argument 66 this.values = values; in BatterySipper() 67 if (values != null) value = values[0]; in BatterySipper() 73 return values; in getValues()
|