Home
last modified time | relevance | path

Searched refs:avg (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DAudioVolumeGroupTest.java57 for (final AudioVolumeGroup avg : audioVolumeGroup) { in testGetVolumeGroups()
58 int avgId = avg.getId(); in testGetVolumeGroups()
61 List<AudioAttributes> avgAttributes = avg.getAudioAttributes(); in testGetVolumeGroups()
64 final int[] avgStreamTypes = avg.getLegacyStreamTypes(); in testGetVolumeGroups()
84 assertEquals("Volume Group ID (" + avg.toString() in testGetVolumeGroups()
93 assertTrue("Volume Group (" + avg.toString() in testGetVolumeGroups()
113 assertEquals("Volume Group ID (" + avg.toString() in testGetVolumeGroups()
124 assertTrue("Volume Group (" + avg.toString() in testGetVolumeGroups()
DAudioVolumesTestBase.java58 for (final AudioVolumeGroup avg : audioVolumeGroups) { in storeAllVolumes()
59 if (avg.getAudioAttributes().isEmpty()) { in storeAllVolumes()
65 for (final AudioAttributes aa : avg.getAudioAttributes()) { in storeAllVolumes()
77 avg.getId(), mAudioManager.getVolumeIndexForAttributes(avgAttributes)); in storeAllVolumes()
87 for (final AudioVolumeGroup avg : audioVolumeGroups) { in restoreAllVolumes()
88 if (avg.getId() == e.getKey()) { in restoreAllVolumes()
89 assertTrue(!avg.getAudioAttributes().isEmpty()); in restoreAllVolumes()
91 for (final AudioAttributes aa : avg.getAudioAttributes()) { in restoreAllVolumes()
DAudioManagerTest.java66 for (final AudioVolumeGroup avg : audioVolumeGroups) { in testGetAndValidateProductStrategies()
67 if (avg.getId() == volumeGroupId) { in testGetAndValidateProductStrategies()
68 audioVolumeGroup = avg; in testGetAndValidateProductStrategies()
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dbwfilter.rscript34 float avg = (imageMin + imageMax)/2;
35 sb /= avg;
36 sg /= avg;
37 sr /= avg;
45 float localMin, localMax, avg;
50 avg = (localMin+localMax) * 0.5f;
51 out->r = out->g = out->b = rsClamp(avg, 0, 255);
Dwbalance.rscript97 float avg = (minimum + maximum) / 2.f;
99 scale.r = avg / estimation.r;
100 scale.g = avg / estimation.g;
101 scale.b = avg / estimation.b;
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dbwfilter.rscript34 float avg = (imageMin + imageMax)/2;
35 sb /= avg;
36 sg /= avg;
37 sr /= avg;
45 float localMin, localMax, avg;
50 avg = (localMin+localMax) * 0.5f;
51 out->r = out->g = out->b = clamp((int) avg, 0, 255);
Dwbalance.rscript97 float avg = (minimum + maximum) / 2.f;
99 scale.r = avg / estimation.r;
100 scale.g = avg / estimation.g;
101 scale.b = avg / estimation.b;
DResult.java56 float avg = getAvg(); in getStdevp() local
58 float diff = time - avg; in getStdevp()
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dbwfilter.rscript34 float avg = (imageMin + imageMax)/2;
35 sb /= avg;
36 sg /= avg;
37 sr /= avg;
45 float localMin, localMax, avg;
50 avg = (localMin+localMax) * 0.5f;
51 out->r = out->g = out->b = clamp((int) avg, 0, 255);
Dwbalance.rscript97 float avg = (minimum + maximum) / 2.f;
99 scale.r = avg / estimation.r;
100 scale.g = avg / estimation.g;
101 scale.b = avg / estimation.b;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
Dcontrast.cpp43 const float avg = total / numPixels; in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator() local
47 sum += (lumArray[i] - avg) * (lumArray[i] - avg); in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator()
/frameworks/native/services/inputflinger/reader/
DMacros.h70 inline static float avg(float x, float y) { in avg() function
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessState.java740 long avg = getPssAverage(type); in aggregatePss() local
743 fgPss.add(avg, samples); in aggregatePss()
745 bgPss.add(avg, samples); in aggregatePss()
747 cachedPss.add(avg, samples); in aggregatePss()
788 long avg; in aggregatePss() local
790 avg = getPssAverage(type); in aggregatePss()
793 avg = fgPss.pss; in aggregatePss()
796 avg = bgPss.pss; in aggregatePss()
799 avg = cachedPss.pss; in aggregatePss()
803 + (avg*(double)samples) in aggregatePss()
[all …]
/frameworks/native/opengl/libagl/
Ddxt.cpp119 int avg = (2*i + j)/3; in init_tables() local
120 avg23tab[(i << 6) | j] = avg; in init_tables()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationUsageStats.java1008 double avg; field in NotificationUsageStats.Aggregate
1017 final double delta = sample - avg; in addSample()
1018 avg += (1.0 / n) * delta; in addSample()
1028 ", avg=" + avg + in toString()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java2173 for (final AudioVolumeGroup avg : AudioVolumeGroup.getAudioVolumeGroups()) { in getAudioVolumeGroupById()
2174 if (avg.getId() == volumeGroupId) { in getAudioVolumeGroupById()
2175 return avg; in getAudioVolumeGroupById()
4494 for (final AudioVolumeGroup avg : getAudioVolumeGroups()) { in initVolumeGroupStates()
4497 ensureValidAttributes(avg); in initVolumeGroupStates()
4502 Log.v(TAG, "volume group " + avg.name() + " for internal policy needs"); in initVolumeGroupStates()
4506 sVolumeGroupStates.append(avg.getId(), new VolumeGroupState(avg)); in initVolumeGroupStates()
4514 private void ensureValidAttributes(AudioVolumeGroup avg) { in ensureValidAttributes() argument
4515 boolean hasAtLeastOneValidAudioAttributes = avg.getAudioAttributes().stream() in ensureValidAttributes()
4518 throw new IllegalArgumentException("Volume Group " + avg.name() in ensureValidAttributes()
[all …]
/frameworks/native/services/inputflinger/reader/mapper/
DJoystickInputMapper.cpp145 float offset = avg(rawAxisInfo.minValue, rawAxisInfo.maxValue) * -scale; in configure()
DTouchInputMapper.cpp808 mGeometricScale = avg(mXScale, mYScale); in configureSurface()
888 mTiltXCenter = avg(mRawPointerAxes.tiltX.minValue, mRawPointerAxes.tiltX.maxValue); in configureSurface()
889 mTiltYCenter = avg(mRawPointerAxes.tiltY.minValue, mRawPointerAxes.tiltY.maxValue); in configureSurface()
2081 size = mRawPointerAxes.touchMinor.valid ? avg(in.touchMajor, in.touchMinor) in cookPointerData()
2087 size = mRawPointerAxes.touchMinor.valid ? avg(in.touchMajor, in.touchMinor) in cookPointerData()
2093 size = mRawPointerAxes.toolMinor.valid ? avg(in.toolMajor, in.toolMinor) in cookPointerData()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp58 static inline float avg(float x, float y) { in avg() function
3290 avg(float(DISPLAY_WIDTH) / (RAW_X_MAX - RAW_X_MIN + 1),
5484 float size = avg(rawTouchMajor, rawTouchMinor) / RAW_TOUCH_MAX; in TEST_F()
5530 float size = avg(rawTouchMajor, rawTouchMinor) / RAW_TOUCH_MAX; in TEST_F()