/frameworks/base/packages/Osu/src/com/android/hotspot2/omadm/ |
D | MultiValueMap.java | 15 ArrayList<T> values = mMap.get(key); in put() local 16 if (values == null) { in put() 17 values = new ArrayList<>(); in put() 18 mMap.put(key, values); in put() 20 values.add(value); in put() 25 List<T> values = mMap.get(key); in get() local 26 if (values == null) { in get() 28 } else if (values.size() == 1) { in get() 29 return values.get(0); in get() 37 List<T> values = mMap.get(key); in replace() local [all …]
|
/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 | 54 private void captureValues(TransitionValues values) { in captureValues() argument 55 View view = values.view; in captureValues() 61 values.values.put(PROPNAME_CLIP, clip); in captureValues() 64 values.values.put(PROPNAME_BOUNDS, bounds); in captureValues() 82 || !startValues.values.containsKey(PROPNAME_CLIP) in createAnimator() 83 || !endValues.values.containsKey(PROPNAME_CLIP)) { in createAnimator() 86 Rect start = (Rect) startValues.values.get(PROPNAME_CLIP); in createAnimator() 87 Rect end = (Rect) endValues.values.get(PROPNAME_CLIP); in createAnimator() 94 start = (Rect) startValues.values.get(PROPNAME_BOUNDS); in createAnimator() 96 end = (Rect) endValues.values.get(PROPNAME_BOUNDS); in createAnimator()
|
D | ChangeTransform.java | 191 transitionValues.values.put(PROPNAME_PARENT, view.getParent()); in captureValues() 193 transitionValues.values.put(PROPNAME_TRANSFORMS, transforms); in captureValues() 200 transitionValues.values.put(PROPNAME_MATRIX, matrix); in captureValues() 206 transitionValues.values.put(PROPNAME_PARENT_MATRIX, parentMatrix); in captureValues() 207 transitionValues.values.put(PROPNAME_INTERMEDIATE_MATRIX, in captureValues() 209 transitionValues.values.put(PROPNAME_INTERMEDIATE_PARENT_MATRIX, in captureValues() 229 !startValues.values.containsKey(PROPNAME_PARENT) || in createAnimator() 230 !endValues.values.containsKey(PROPNAME_PARENT)) { in createAnimator() 234 ViewGroup startParent = (ViewGroup) startValues.values.get(PROPNAME_PARENT); in createAnimator() 235 ViewGroup endParent = (ViewGroup) endValues.values.get(PROPNAME_PARENT); in createAnimator() [all …]
|
/frameworks/support/transition/src/android/support/transition/ |
D | VisibilityPropagation.java | 44 public void captureValues(TransitionValues values) { in captureValues() argument 45 View view = values.view; in captureValues() 46 Integer visibility = (Integer) values.values.get(Visibility.PROPNAME_VISIBILITY); in captureValues() 50 values.values.put(PROPNAME_VISIBILITY, visibility); in captureValues() 57 values.values.put(PROPNAME_VIEW_CENTER, loc); in captureValues() 72 public int getViewVisibility(TransitionValues values) { in getViewVisibility() argument 73 if (values == null) { in getViewVisibility() 76 Integer visibility = (Integer) values.values.get(PROPNAME_VISIBILITY); in getViewVisibility() 90 public int getViewX(TransitionValues values) { in getViewX() argument 91 return getViewCoordinate(values, 0); in getViewX() [all …]
|
D | ChangeClipBounds.java | 57 private void captureValues(TransitionValues values) { in captureValues() argument 58 View view = values.view; in captureValues() 64 values.values.put(PROPNAME_CLIP, clip); in captureValues() 67 values.values.put(PROPNAME_BOUNDS, bounds); in captureValues() 85 || !startValues.values.containsKey(PROPNAME_CLIP) in createAnimator() 86 || !endValues.values.containsKey(PROPNAME_CLIP)) { in createAnimator() 89 Rect start = (Rect) startValues.values.get(PROPNAME_CLIP); in createAnimator() 90 Rect end = (Rect) endValues.values.get(PROPNAME_CLIP); in createAnimator() 97 start = (Rect) startValues.values.get(PROPNAME_BOUNDS); in createAnimator() 99 end = (Rect) endValues.values.get(PROPNAME_BOUNDS); in createAnimator()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsMessageBodyTest.java | 262 int[] values = {0, 0, 0, SmsConstants.ENCODING_7BIT, 0, 0}; in testCalcLengthAscii() local 280 values[0] = sTestMsgCounts[i]; in testCalcLengthAscii() 281 values[1] = len; in testCalcLengthAscii() 282 values[2] = sSeptetUnitsRemaining[i]; in testCalcLengthAscii() 284 callGsmLengthMethods(testStr, false, values); in testCalcLengthAscii() 285 callGsmLengthMethods(testStr, true, values); in testCalcLengthAscii() 286 callCdmaLengthMethods(testStr, false, values); in testCalcLengthAscii() 287 callCdmaLengthMethods(testStr, true, values); in testCalcLengthAscii() 294 int[] values = {0, 0, 0, SmsConstants.ENCODING_16BIT, 0, 0}; in testCalcLengthUnicode() local 314 values[0] = sTestMsgCounts[i]; in testCalcLengthUnicode() [all …]
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | MtpDatabase.java | 133 final ContentValues values = new ContentValues(); in queryRoots() local 149 values.clear(); in queryRoots() 162 DatabaseUtils.cursorRowToContentValues(deviceRoot, values); in queryRoots() 182 values.put(Root.COLUMN_CAPACITY_BYTES, capacityBytes); in queryRoots() 183 values.put(Root.COLUMN_AVAILABLE_BYTES, availableBytes); in queryRoots() 185 values.putNull(Root.COLUMN_CAPACITY_BYTES); in queryRoots() 186 values.putNull(Root.COLUMN_AVAILABLE_BYTES); in queryRoots() 188 if (storageCursor.getCount() == 1 && values.containsKey(Root.COLUMN_TITLE)) { in queryRoots() 191 values.put( in queryRoots() 195 values.getAsString(Root.COLUMN_TITLE), in queryRoots() [all …]
|
/frameworks/base/core/java/android/animation/ |
D | PropertyValuesHolder.java | 156 public static PropertyValuesHolder ofInt(String propertyName, int... values) { in ofInt() argument 157 return new IntPropertyValuesHolder(propertyName, values); in ofInt() 167 public static PropertyValuesHolder ofInt(Property<?, Integer> property, int... values) { in ofInt() argument 168 return new IntPropertyValuesHolder(property, values); in ofInt() 185 public static PropertyValuesHolder ofMultiInt(String propertyName, int[][] values) { in ofMultiInt() argument 186 if (values.length < 2) { in ofMultiInt() 190 for (int i = 0; i < values.length; i++) { in ofMultiInt() 191 if (values[i] == null) { in ofMultiInt() 194 int length = values[i].length; in ofMultiInt() 202 return new MultiIntValuesHolder(propertyName, null, evaluator, (Object[]) values); in ofMultiInt() [all …]
|
D | ObjectAnimator.java | 243 public static ObjectAnimator ofInt(Object target, String propertyName, int... values) { in ofInt() argument 245 anim.setIntValues(values); in ofInt() 289 public static <T> ObjectAnimator ofInt(T target, Property<T, Integer> property, int... values) { in ofInt() argument 291 anim.setIntValues(values); in ofInt() 334 public static ObjectAnimator ofMultiInt(Object target, String propertyName, int[][] values) { in ofMultiInt() argument 335 PropertyValuesHolder pvh = PropertyValuesHolder.ofMultiInt(propertyName, values); in ofMultiInt() 380 TypeConverter<T, int[]> converter, TypeEvaluator<T> evaluator, T... values) { in ofMultiInt() argument 382 evaluator, values); in ofMultiInt() 401 public static ObjectAnimator ofArgb(Object target, String propertyName, int... values) { in ofArgb() argument 402 ObjectAnimator animator = ofInt(target, propertyName, values); in ofArgb() [all …]
|
D | KeyframeSet.java | 58 public static KeyframeSet ofInt(int... values) { in ofInt() argument 59 int numKeyframes = values.length; in ofInt() 63 keyframes[1] = (IntKeyframe) Keyframe.ofInt(1f, values[0]); in ofInt() 65 keyframes[0] = (IntKeyframe) Keyframe.ofInt(0f, values[0]); in ofInt() 68 (IntKeyframe) Keyframe.ofInt((float) i / (numKeyframes - 1), values[i]); in ofInt() 74 public static KeyframeSet ofFloat(float... values) { in ofFloat() argument 76 int numKeyframes = values.length; in ofFloat() 80 keyframes[1] = (FloatKeyframe) Keyframe.ofFloat(1f, values[0]); in ofFloat() 81 if (Float.isNaN(values[0])) { in ofFloat() 85 keyframes[0] = (FloatKeyframe) Keyframe.ofFloat(0f, values[0]); in ofFloat() [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 …]
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
D | RecurrenceSetTest.java | 43 final ContentValues values = verifyPopulateContentValues(recurrence, in testRecurrenceSet0() local 46 verifyRecurrenceSetInitialization(new RecurrenceSet(values), in testRecurrenceSet0() 56 final ContentValues values = verifyPopulateContentValues(recurrence, in testRecurrenceSet1() local 58 verifyRecurrenceSetInitialization(new RecurrenceSet(values), in testRecurrenceSet1() 67 final ContentValues values = verifyPopulateContentValues(recurrence, in testRecurrenceSet2() local 69 verifyRecurrenceSetInitialization(new RecurrenceSet(values), in testRecurrenceSet2() 80 final ContentValues values = verifyPopulateContentValues(recurrence, in testRecurrenceSet3() local 84 verifyRecurrenceSetInitialization(new RecurrenceSet(values), in testRecurrenceSet3() 95 final ContentValues values = verifyPopulateContentValues(recurrence, null, in testRecurrenceSet4() local 100 verifyRecurrenceSetInitialization(new RecurrenceSet(values), in testRecurrenceSet4() [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 | 218 public void setValues(float[] values) { 749 public void getValues(float[] values) { in getValues() argument 750 if (values.length < 9) { in getValues() 753 nGetValues(native_instance, values); in getValues() 761 public void setValues(float[] values) { in setValues() argument 762 if (values.length < 9) { in setValues() 765 nSetValues(native_instance, values); in setValues() 788 float[] values = new float[9]; in toShortString() local 789 getValues(values); in toShortString() 791 sb.append(values[0]); 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 | 260 v[0] = event.values[0]; in onSensorChanged() 261 v[1] = event.values[1]; in onSensorChanged() 262 v[2] = event.values[2]; in onSensorChanged() 288 float[] values, int orientation) { in mapSensorDataToWindow() argument 289 float x = values[0]; in mapSensorDataToWindow() 290 float y = values[1]; in mapSensorDataToWindow() 291 float z = values[2]; in mapSensorDataToWindow() 308 values[0] = x; in mapSensorDataToWindow() 309 values[1] = y; in mapSensorDataToWindow() 310 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 | 119 String[] values = new String(value, StandardCharsets.UTF_8).split("\0", -1); in decode() local 121 if (values.length < 14 || values.length > 15) { in decode() 126 profile.name = values[0]; in decode() 127 profile.type = Integer.parseInt(values[1]); in decode() 131 profile.server = values[2]; in decode() 132 profile.username = values[3]; in decode() 133 profile.password = values[4]; in decode() 134 profile.dnsServers = values[5]; in decode() 135 profile.searchDomains = values[6]; in decode() 136 profile.routes = values[7]; in decode() [all …]
|
/frameworks/base/core/java/com/android/internal/transition/ |
D | EpicenterTranslateClipReveal.java | 105 private void captureValues(TransitionValues values) { in captureValues() argument 106 final View view = values.view; in captureValues() 112 values.values.put(PROPNAME_BOUNDS, bounds); in captureValues() 113 values.values.put(PROPNAME_TRANSLATE_X, view.getTranslationX()); in captureValues() 114 values.values.put(PROPNAME_TRANSLATE_Y, view.getTranslationY()); in captureValues() 115 values.values.put(PROPNAME_TRANSLATE_Z, view.getTranslationZ()); in captureValues() 116 values.values.put(PROPNAME_Z, view.getZ()); in captureValues() 119 values.values.put(PROPNAME_CLIP, clip); in captureValues() 129 final Rect endBounds = (Rect) endValues.values.get(PROPNAME_BOUNDS); in onAppear() 133 final float startZ = 0 - (float) endValues.values.get(PROPNAME_Z); in onAppear() [all …]
|
/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/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/ |
D | MediaStoreSaver.java | 59 ContentValues values = new ContentValues(); in insertImage() local 60 values.put(Images.Media.TITLE, title); in insertImage() 61 values.put(Images.Media.DISPLAY_NAME, title); in insertImage() 62 values.put(Images.Media.DESCRIPTION, description); in insertImage() 63 values.put(Images.Media.MIME_TYPE, "image/jpeg"); in insertImage() 65 values.put(Images.Media.DATE_ADDED, System.currentTimeMillis()); in insertImage() 66 values.put(Images.Media.DATE_TAKEN, System.currentTimeMillis()); in insertImage() 72 url = cr.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); in insertImage() 134 ContentValues values = new ContentValues(4); in storeThumbnail() local 135 values.put(Images.Thumbnails.KIND, kind); in storeThumbnail() [all …]
|
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
D | MediaStoreSaver.java | 59 ContentValues values = new ContentValues(); in insertImage() local 60 values.put(Images.Media.TITLE, title); in insertImage() 61 values.put(Images.Media.DISPLAY_NAME, title); in insertImage() 62 values.put(Images.Media.DESCRIPTION, description); in insertImage() 63 values.put(Images.Media.MIME_TYPE, "image/jpeg"); in insertImage() 65 values.put(Images.Media.DATE_ADDED, System.currentTimeMillis()); in insertImage() 66 values.put(Images.Media.DATE_TAKEN, System.currentTimeMillis()); in insertImage() 72 url = cr.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); in insertImage() 134 ContentValues values = new ContentValues(4); in storeThumbnail() local 135 values.put(Images.Thumbnails.KIND, kind); in storeThumbnail() [all …]
|
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/adapter/ |
D | GenericConverter.java | 25 public static <T> String convertArrayList(ArrayList<T> values) { in convertArrayList() argument 26 return convert(values); in convertArrayList() 30 public static String convertLinkedList(LinkedList<?> values) { in convertLinkedList() argument 31 return convert(values); in convertLinkedList() 34 private static <T> String convert(List<T> values) { in convert() argument 35 if (values == null) { in convert() 39 for (T val : values) { in convert()
|
/frameworks/base/core/java/android/preference/ |
D | MultiCheckPreference.java | 134 private void setEntryValuesCS(CharSequence[] values) { in setEntryValuesCS() argument 136 if (values != null) { in setEntryValuesCS() 137 mEntryValues = new String[values.length]; in setEntryValuesCS() 138 for (int i=0; i<values.length; i++) { in setEntryValuesCS() 139 mEntryValues[i] = values[i].toString(); in setEntryValuesCS() 170 public void setValues(boolean[] values) { in setValues() argument 174 if (values != null) { in setValues() 175 System.arraycopy(values, 0, mSetValues, 0, in setValues() 176 values.length < mSetValues.length ? values.length : mSetValues.length); in setValues() 290 myState.values = getValues(); in onSaveInstanceState() [all …]
|