Home
last modified time | relevance | path

Searched refs:vals (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/libs/hwui/jni/
Dandroid_graphics_ColorSpace.cpp28 xyzMatrix.vals[0][0] = array[0]; in getNativeXYZMatrix()
29 xyzMatrix.vals[1][0] = array[1]; in getNativeXYZMatrix()
30 xyzMatrix.vals[2][0] = array[2]; in getNativeXYZMatrix()
31 xyzMatrix.vals[0][1] = array[3]; in getNativeXYZMatrix()
32 xyzMatrix.vals[1][1] = array[4]; in getNativeXYZMatrix()
33 xyzMatrix.vals[2][1] = array[5]; in getNativeXYZMatrix()
34 xyzMatrix.vals[0][2] = array[6]; in getNativeXYZMatrix()
35 xyzMatrix.vals[1][2] = array[7]; in getNativeXYZMatrix()
36 xyzMatrix.vals[2][2] = array[8]; in getNativeXYZMatrix()
/frameworks/av/media/libeffects/loudness/common/core/
Dbyte_swapper.h123 const T *SwapBytes(const T *vals, unsigned int num_items, bool force_swap) {
126 T *writeable_vals = const_cast<T *>(vals);
128 writeable_vals[i] = ByteSwapper<T, sizeof(T)>::Swap(vals[i]);
132 return vals;
136 return vals;
138 T *writeable_vals = const_cast<T *>(vals);
140 writeable_vals[i] = ByteSwapper<T, sizeof(T)>::Swap(vals[i]);
/frameworks/base/services/tests/servicestests/src/com/android/server/display/whitebalance/
DAmbientLuxTest.java449 private void setBrightnesses(float... vals) { in setBrightnesses() argument
450 setFloatArrayResource(mBrightnesses, vals); in setBrightnesses()
453 private void setBiases(float... vals) { in setBiases() argument
454 setFloatArrayResource(mBiases, vals); in setBiases()
457 private void setHighLightBrightnesses(float... vals) { in setHighLightBrightnesses() argument
458 setFloatArrayResource(mHighLightBrightnesses, vals); in setHighLightBrightnesses()
461 private void setHighLightBiases(float... vals) { in setHighLightBiases() argument
462 setFloatArrayResource(mHighLightBiases, vals); in setHighLightBiases()
465 private void setAmbientColorTemperatures(float... vals) { in setAmbientColorTemperatures() argument
466 setFloatArrayResource(mAmbientColorTemperatures, vals); in setAmbientColorTemperatures()
[all …]
/frameworks/native/libs/cputimeinstate/
Dcputimeinstate.cpp249 std::vector<tis_val_t> vals(gNCpus); in getUidCpuFreqTimes() local
253 if (findMapEntry(gTisMapFd, &key, vals.data())) { in getUidCpuFreqTimes()
266 std::transform(begin, end, std::begin(vals[cpu].ar), begin, std::plus<uint64_t>()); in getUidCpuFreqTimes()
314 std::vector<tis_val_t> vals(gNCpus); in getUidsUpdatedCpuFreqTimes() local
321 if (findMapEntry(gTisMapFd, &key, vals.data())) return {}; in getUidsUpdatedCpuFreqTimes()
332 std::transform(begin, end, std::begin(vals[cpu].ar), begin, std::plus<uint64_t>()); in getUidsUpdatedCpuFreqTimes()
361 std::vector<concurrent_val_t> vals(gNCpus); in getUidConcurrentTimes() local
364 if (findMapEntry(gConcurrentMapFd, &key, vals.data())) { in getUidConcurrentTimes()
375 std::transform(activeBegin, activeEnd, std::begin(vals[cpu].active), activeBegin, in getUidConcurrentTimes()
386 std::transform(policyBegin, policyEnd, std::begin(vals[cpu].policy), policyBegin, in getUidConcurrentTimes()
[all …]
Dtesttimeinstate.cpp425 std::vector<tis_val_t> vals(get_nprocs_conf()); in TEST() local
426 ASSERT_FALSE(findMapEntry(fd, &k, vals.data())); in TEST()
429 ASSERT_FALSE(writeToMapEntry(fd, &k, vals.data(), BPF_NOEXIST)); in TEST()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessMappingStrategyTest.java370 private static float[] toFloatArray(int[] vals) { in toFloatArray() argument
371 float[] newVals = new float[vals.length]; in toFloatArray()
372 for (int i = 0; i < vals.length; i++) { in toFloatArray()
373 newVals[i] = (float) vals[i]; in toFloatArray()
429 private TypedArray createFloatTypedArray(float[] vals) { in createFloatTypedArray() argument
432 return vals.length; in createFloatTypedArray()
436 if (vals == null) { in createFloatTypedArray()
440 if (idx >= 0 && idx < vals.length) { in createFloatTypedArray()
441 return vals[idx]; in createFloatTypedArray()
/frameworks/base/core/java/android/hardware/display/
DBrightnessConfiguration.java735 private static void checkMonotonic(float[] vals, boolean strictlyIncreasing, String name) { in checkMonotonic() argument
736 if (vals.length <= 1) { in checkMonotonic()
739 float prev = vals[0]; in checkMonotonic()
740 for (int i = 1; i < vals.length; i++) { in checkMonotonic()
741 if (prev > vals[i] || prev == vals[i] && strictlyIncreasing) { in checkMonotonic()
745 prev = vals[i]; in checkMonotonic()
/frameworks/base/services/core/java/com/android/server/slice/
DSlicePermissionManager.java417 String[] vals = pkgUserStr.split(SEPARATOR, 2); in PkgUser() local
418 mPkg = vals[0]; in PkgUser()
419 mUserId = Integer.parseInt(vals[1]); in PkgUser()
/frameworks/base/libs/hwui/utils/
DColor.cpp141 if (!nearlyEqual(x.vals[i][j], y.vals[i][j])) return false; in nearlyEqual()
/frameworks/av/media/codec2/vndk/util/
DC2InterfaceUtils.cpp201 std::vector<T> vals(c2_max(_mValues.size(), 1u) - 1); in flags() local
203 std::transform(_mValues.cbegin() + 1, _mValues.cend(), vals.begin(), in flags()
208 return vals; in flags()
304 std::vector<T> vals(_mValues.size()); in values() local
305 …std::transform(_mValues.cbegin(), _mValues.cend(), vals.begin(), [](const C2Value::Primitive &p) -… in values()
308 return vals; in values()
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessStats.java2389 long[] vals = assocVals.get(key); in dumpFilteredAssociationStatesProtoForProc() local
2390 if (vals == null) { in dumpFilteredAssociationStatesProtoForProc()
2391 vals = new long[2]; in dumpFilteredAssociationStatesProtoForProc()
2392 assocVals.put(key, vals); in dumpFilteredAssociationStatesProtoForProc()
2394 vals[0] += state.mDuration; in dumpFilteredAssociationStatesProtoForProc()
2395 vals[1] += state.mCount; in dumpFilteredAssociationStatesProtoForProc()
2397 vals[0] += now - state.mStartUptime; in dumpFilteredAssociationStatesProtoForProc()
2410 final long[] vals = assocVals.valueAt(i); in dumpFilteredAssociationStatesProtoForProc() local
2411 if (vals[0] < minimum) { in dumpFilteredAssociationStatesProtoForProc()
2423 final long[] vals = assocVals.valueAt(i); in dumpFilteredAssociationStatesProtoForProc() local
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessMappingStrategy.java126 float[] vals = new float[N]; in getFloatArray() local
128 vals[i] = array.getFloat(i, PowerManager.BRIGHTNESS_OFF_FLOAT); in getFloatArray()
131 return vals; in getFloatArray()
/frameworks/base/core/java/android/os/
DVibrationEffect.java700 private static boolean hasNonZeroEntry(long[] vals) { in hasNonZeroEntry() argument
701 for (long val : vals) { in hasNonZeroEntry()
/frameworks/av/services/camera/libcameraservice/api1/client2/
DParameters.cpp2769 int vals[NUM_FIELDS]; in parseAreas() local
2772 vals[i] = strtol(area, &numEnd, 10); in parseAreas()
2777 vals[0], vals[1], vals[2], vals[3], vals[4]) ); in parseAreas()
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java632 private static List<Integer> asList(int... vals) { in asList() argument
633 if (vals == null) { in asList()
636 List<Integer> l = new ArrayList<>(vals.length); in asList()
637 for (int val : vals) { in asList()
/frameworks/base/media/jni/
Dandroid_media_MediaCodec.cpp2555 JNIEnv *env, jobject thiz, jobjectArray keys, jobjectArray vals) { in android_media_MediaCodec_setParameters() argument
2566 status_t err = ConvertKeyValueArraysToMessage(env, keys, vals, &params); in android_media_MediaCodec_setParameters()