Home
last modified time | relevance | path

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

12345678910>>...42

/frameworks/av/drm/libmediadrm/tests/
DEventMetric_test.cpp30 std::map<int, EventStatistics> values; in TEST() local
34 values[attribute_value] = value; in TEST()
37 EXPECT_TRUE(values.empty()); in TEST()
43 std::map<int, EventStatistics> values; in TEST() local
55 values[attribute_value] = value; in TEST()
58 ASSERT_EQ(2u, values.size()); in TEST()
59 EXPECT_EQ(4, values[7].min); in TEST()
60 EXPECT_EQ(4, values[7].max); in TEST()
61 EXPECT_EQ(4, values[7].mean); in TEST()
62 EXPECT_EQ(1, values[7].count); in TEST()
[all …]
DCounterMetric_test.cpp32 std::map<int, int64_t> values; in TEST_F() local
36 values[attribute_value] = value; in TEST_F()
39 EXPECT_TRUE(values.empty()); in TEST_F()
45 std::map<int, int64_t> values; in TEST_F() local
53 values[attribute_value] = value; in TEST_F()
56 ASSERT_EQ(2u, values.size()); in TEST_F()
57 EXPECT_EQ(1, values[7]); in TEST_F()
58 EXPECT_EQ(2, values[8]); in TEST_F()
64 std::map<std::string, int64_t> values; in TEST_F() local
72 values[attribute_value] = value; in TEST_F()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDbHelperTest.java162 ContentValues values = new ContentValues(); in isRootOfTrustTableAvailable() local
163 values.put(RootOfTrustEntry.COLUMN_NAME_USER_ID, TEST_USER_ID); in isRootOfTrustTableAvailable()
164 values.put(RootOfTrustEntry.COLUMN_NAME_UID, TEST_UID); in isRootOfTrustTableAvailable()
165 values.put(RootOfTrustEntry.COLUMN_NAME_ROOT_ALIAS, TEST_ROOT_ALIAS); in isRootOfTrustTableAvailable()
166 values.put(RootOfTrustEntry.COLUMN_NAME_CERT_PATH, TEST_CERT_PATH); in isRootOfTrustTableAvailable()
167 values.put(RootOfTrustEntry.COLUMN_NAME_CERT_SERIAL, TEST_CERT_SERIAL); in isRootOfTrustTableAvailable()
168 return mDatabase.replace(RootOfTrustEntry.TABLE_NAME, /*nullColumnHack=*/ null, values) in isRootOfTrustTableAvailable()
174 ContentValues values = new ContentValues(); in checkAllColumns_v4() local
175 values.put(KeysEntry.COLUMN_NAME_USER_ID, TEST_USER_ID); in checkAllColumns_v4()
176 values.put(KeysEntry.COLUMN_NAME_UID, TEST_UID); in checkAllColumns_v4()
[all …]
/frameworks/base/core/java/android/transition/
DVisibilityPropagation.java43 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 …]
DChangeClipBounds.java54 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()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DStats.java28 public Stats(List<Long> values) { in Stats() argument
30 values = new ArrayList<>(values); in Stats()
31 final int size = values.size(); in Stats()
36 Collections.sort(values); in Stats()
38 mMin = values.get(0); in Stats()
39 mMax = values.get(values.size() - 1); in Stats()
41 mMedian = size % 2 == 0 ? (values.get(size / 2) + values.get(size / 2 - 1)) / 2 : in Stats()
42 values.get(size / 2); in Stats()
43 mPercentile90 = getPercentile(values, 90); in Stats()
44 mPercentile95 = getPercentile(values, 95); in Stats()
[all …]
/frameworks/base/cmds/statsd/src/matchers/
Dmatcher_util.cpp101 const vector<FieldValue>& values, int start, int end, int depth) { in matchesSimple() argument
117 int pos = values[i].mField.getPosAtDepth(depth); in matchesSimple()
147 int pos = values[i].mField.getPosAtDepth(depth); in matchesSimple()
161 if (values[i].mField.isLastPos(depth)) { in matchesSimple()
174 int currentPos = values[start].mField.getPosAtDepth(depth); in matchesSimple()
177 int newPos = values[i].mField.getPosAtDepth(depth); in matchesSimple()
205 if (!matchesSimple(uidMap, subMatcher, values, range.first, range.second, in matchesSimple()
220 if ((values[i].mValue.getType() == INT && in matchesSimple()
221 (values[i].mValue.int_value != 0) == matcher.eq_bool()) || in matchesSimple()
222 (values[i].mValue.getType() == LONG && in matchesSimple()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSmsMessageBodyTest.java255 int[] values = {0, 0, 0, SmsConstants.ENCODING_7BIT, 0, 0}; in testCalcLengthAscii() local
273 values[0] = sTestMsgCounts[i]; in testCalcLengthAscii()
274 values[1] = len; in testCalcLengthAscii()
275 values[2] = sSeptetUnitsRemaining[i]; in testCalcLengthAscii()
277 callGsmLengthMethods(testStr, false, values); in testCalcLengthAscii()
278 callGsmLengthMethods(testStr, true, values); in testCalcLengthAscii()
279 callCdmaLengthMethods(testStr, false, values); in testCalcLengthAscii()
280 callCdmaLengthMethods(testStr, true, values); in testCalcLengthAscii()
287 int[] values = {0, 0, 0, SmsConstants.ENCODING_16BIT, 0, 0}; in testCalcLengthUnicode() local
307 values[0] = sTestMsgCounts[i]; in testCalcLengthUnicode()
[all …]
/frameworks/av/media/libeffects/dynamicsproc/
DEffectDynamicsProcessing.cpp644 value_t *values = reinterpret_cast<value_t*>(pValue); in DP_getParameter() local
692 values[0].i = pContext->mCurrentVariant; in DP_getParameter()
693 values[1].f = pContext->mPreferredFrameDuration; in DP_getParameter()
694 values[2].i = pContext->mPDynamics->isPreEQInUse(); in DP_getParameter()
695 values[3].i = pContext->mPDynamics->getPreEqBandCount(); in DP_getParameter()
696 values[4].i = pContext->mPDynamics->isMbcInUse(); in DP_getParameter()
697 values[5].i = pContext->mPDynamics->getMbcBandCount(); in DP_getParameter()
698 values[6].i = pContext->mPDynamics->isPostEqInUse(); in DP_getParameter()
699 values[7].i = pContext->mPDynamics->getPostEqBandCount(); in DP_getParameter()
700 values[8].i = pContext->mPDynamics->isLimiterInUse(); in DP_getParameter()
[all …]
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpDatabase.java134 final ContentValues values = new ContentValues(); in queryRoots() local
150 values.clear(); in queryRoots()
163 DatabaseUtils.cursorRowToContentValues(deviceRoot, values); in queryRoots()
183 values.put(Root.COLUMN_CAPACITY_BYTES, capacityBytes); in queryRoots()
184 values.put(Root.COLUMN_AVAILABLE_BYTES, availableBytes); in queryRoots()
186 values.putNull(Root.COLUMN_CAPACITY_BYTES); in queryRoots()
187 values.putNull(Root.COLUMN_AVAILABLE_BYTES); in queryRoots()
189 if (storageCursor.getCount() == 1 && values.containsKey(Root.COLUMN_TITLE)) { in queryRoots()
192 values.put( in queryRoots()
196 values.getAsString(Root.COLUMN_TITLE), in queryRoots()
[all …]
/frameworks/base/core/java/android/animation/
DPropertyValuesHolder.java156 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 …]
DObjectAnimator.java243 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 …]
/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/opt/calendar/tests/src/com/android/calendarcommon2/
DRecurrenceSetTest.java43 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/ml/nn/tools/systrace_parser/parser/
Doutput.py40 for tracker in tracker_map.values():
69 values = dict()
75 values[make_tag(layer, phase)] = t
81 values[make_tag(LAYER_TOTAL, phase)] = times_to_use[phase][LAYER_TOTAL]
83 values[make_tag(layer, PHASE_EXECUTION_LESS_IO_AND_RESULTS)] = (
84 values[make_tag(layer, PHASE_EXECUTION)] -
85 values[make_tag(layer, PHASE_INPUTS_AND_OUTPUTS)] -
86 values[make_tag(layer, PHASE_RESULTS)])
87 values[make_tag(layer, PHASE_OVERALL)] = times_to_use[PHASE_OVERALL][layer]
90 if values[make_tag(LAYER_TOTAL, PHASE_EXECUTION)] > 0.0:
[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 …]
/frameworks/base/core/java/com/android/internal/net/
DVpnProfile.java246 String[] values = new String(value, StandardCharsets.UTF_8).split(VALUE_DELIMITER, -1); in decode() local
251 if ((values.length < 14 || values.length > 19) in decode()
252 && values.length != 24 && values.length != 25) { in decode()
257 if (values.length >= 25) { in decode()
258 isRestrictedToTestNetworks = Boolean.parseBoolean(values[24]); in decode()
264 profile.name = values[0]; in decode()
265 profile.type = Integer.parseInt(values[1]); in decode()
269 profile.server = values[2]; in decode()
270 profile.username = values[3]; in decode()
271 profile.password = values[4]; in decode()
[all …]
/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java260 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/services/tests/servicestests/src/com/android/server/power/batterysaver/
DFileUpdaterTest.java147 final ArrayMap<String, String> values = new ArrayMap<>(); in testNoWrites() local
149 mInstance.writeFiles(values); in testNoWrites()
171 final ArrayMap<String, String> values = new ArrayMap<>(); in testSimpleWrite() local
172 values.put("file1", "11"); in testSimpleWrite()
174 mInstance.writeFiles(values); in testSimpleWrite()
196 final ArrayMap<String, String> values = new ArrayMap<>(); in testMultiWrites() local
197 values.put("file1", "11"); in testMultiWrites()
198 values.put("file2", "22"); in testMultiWrites()
199 values.put("file3", "33"); in testMultiWrites()
201 mInstance.writeFiles(values); in testMultiWrites()
[all …]
/frameworks/base/core/java/com/android/internal/transition/
DEpicenterTranslateClipReveal.java105 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/base/services/robotests/src/com/android/server/testing/shadows/
DShadowEventLog.java35 protected static int writeEvent(int tag, Object... values) { in writeEvent() argument
36 ENTRIES.add(new Entry(tag, Arrays.asList(values))); in writeEvent()
57 public final List<Object> values; field in ShadowEventLog.Entry
59 public Entry(int tag, List<Object> values) { in Entry() argument
61 this.values = values; in Entry()
69 return tag == entry.tag && values.equals(entry.values); in equals()
75 result = 31 * result + values.hashCode(); in hashCode()
81 return "Entry{" + tag + ", " + values + '}'; in toString()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyEventLogger.java127 public DevicePolicyEventLogger setStrings(String... values) { in setStrings() argument
128 mStringArrayValue = values; in setStrings()
138 public DevicePolicyEventLogger setStrings(String value, String[] values) { in setStrings() argument
139 Preconditions.checkNotNull(values, "values parameter cannot be null"); in setStrings()
140 mStringArrayValue = new String[values.length + 1]; in setStrings()
142 System.arraycopy(values, 0, mStringArrayValue, 1, values.length); in setStrings()
152 public DevicePolicyEventLogger setStrings(String value1, String value2, String[] values) { in setStrings() argument
153 Preconditions.checkNotNull(values, "values parameter cannot be null"); in setStrings()
154 mStringArrayValue = new String[values.length + 2]; in setStrings()
157 System.arraycopy(values, 0, mStringArrayValue, 2, values.length); in setStrings()
/frameworks/base/core/java/android/content/
DEntity.java38 public Entity(ContentValues values) { in Entity() argument
39 mValues = values; in Entity()
51 public void addSubValue(Uri uri, ContentValues values) { in addSubValue() argument
52 mSubValues.add(new Entity.NamedContentValues(uri, values)); in addSubValue()
57 public final ContentValues values; field in Entity.NamedContentValues
59 public NamedContentValues(Uri uri, ContentValues values) { in NamedContentValues() argument
61 this.values = values; in NamedContentValues()
70 sb.append("\n -> ").append(namedValue.values); in toString()
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DMediaStoreSaver.java59 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/
DMediaStoreSaver.java59 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 …]

12345678910>>...42