Home
last modified time | relevance | path

Searched refs:resolution (Results 1 – 25 of 160) sorted by relevance

1234567

/frameworks/av/media/module/libmediaformatshaper/
DCodecProperties.cpp115 std::string resolution = key.substr(strlen("vq-target-qpmax-")); in setTuningValue() local
116 if (qpMaxPoint(resolution, value)) { in setTuningValue()
128 std::string resolution = key.substr(strlen("vq-target-bpp-")); in setTuningValue() local
129 if (bppPoint(resolution, value)) { in setTuningValue()
179 bool CodecProperties::bppPoint(std::string resolution, std::string value) { in bppPoint() argument
186 if (resolution == "1080p") { in bppPoint()
188 } else if (resolution == "720p") { in bppPoint()
190 } else if (resolution == "540p") { in bppPoint()
192 } else if (resolution == "480p") { in bppPoint()
195 size_t sep = resolution.find('x'); in bppPoint()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
DSizeVoteTest.kt42 fun `updates size if width and height not set and display resolution voting disabled`() { in updates size if width and height not set and display resolution voting disabled()
58 fun `does not update size if width set and display resolution voting disabled`() { in does not update size if width set and display resolution voting disabled()
74 fun `does not update size if height set and display resolution voting disabled`() { in does not update size if height set and display resolution voting disabled()
90 fun `updates width if summary has more and display resolution voting enabled`() { in updates width if summary has more and display resolution voting enabled()
100 fun `does not update width if summary has less and display resolution voting enabled`() { in does not update width if summary has less and display resolution voting enabled()
110 fun `updates height if summary has more and display resolution voting enabled`() { in updates height if summary has more and display resolution voting enabled()
120 fun `does not update height if summary has less and display resolution voting enabled`() { in does not update height if summary has less and display resolution voting enabled()
130 fun `updates minWidth if summary has less and display resolution voting enabled`() { in updates minWidth if summary has less and display resolution voting enabled()
141 fun `does not update minWidth if summary has more and display resolution voting enabled`() { in does not update minWidth if summary has more and display resolution voting enabled()
152 fun `updates minHeight if summary has less and display resolution voting enabled`() { in updates minHeight if summary has less and display resolution voting enabled()
[all …]
/frameworks/base/libs/hwui/tests/common/
DTestContext.cpp48 config.resolution = ui::Size(1080, 1920); in getActiveDisplayMode()
93 const ui::Size& resolution = getActiveDisplayResolution(); in createWindowSurface() local
95 mSurfaceComposerClient->createSurface(String8("HwuiTest"), resolution.getWidth(), in createWindowSurface()
96 resolution.getHeight(), PIXEL_FORMAT_RGBX_8888); in createWindowSurface()
110 const ui::Size& resolution = getActiveDisplayResolution(); in createOffscreenSurface() local
111 mConsumer->setDefaultBufferSize(resolution.getWidth(), resolution.getHeight()); in createOffscreenSurface()
/frameworks/native/libs/renderengine/benchmark/
DRenderEngineBench.cpp45 ui::Size resolution = ui::kEmptySize; in getDisplaySize() local
53 auto tw = displayMode.resolution.width; in getDisplaySize()
54 auto th = displayMode.resolution.height; in getDisplaySize()
56 if (resolution.width * resolution.height < in getDisplaySize()
57 displayMode.resolution.width * displayMode.resolution.height) { in getDisplaySize()
58 resolution = displayMode.resolution; in getDisplaySize()
61 width = static_cast<uint32_t>(resolution.width); in getDisplaySize()
62 height = static_cast<uint32_t>(resolution.height); in getDisplaySize()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockDisplayMode.h25 ui::Size resolution = ui::Size(1920, 1080),
32 .setResolution(resolution);
37 ui::Size resolution = ui::Size(1920, 1080),
39 return createDisplayModeBuilder(modeId, refreshRate, group, resolution, displayId).build();
49 int32_t group = 0, ui::Size resolution = ui::Size(1920, 1080),
51 return createDisplayModeBuilder(modeId, displayRefreshRate, group, resolution, displayId)
/frameworks/native/services/sensorservice/
DSensorDeviceUtils.h38 inline void quantizeValue(float *value, double resolution, double factor = 0.125) {
39 if (resolution == 0) {
43 double incRes = factor * resolution;
48 void quantizeSensorEventValues(sensors_event_t *event, float resolution);
DSensorDeviceUtils.cpp33 void quantizeSensorEventValues(sensors_event_t *event, float resolution) { in quantizeSensorEventValues() argument
34 if (resolution == 0) { in quantizeSensorEventValues()
77 quantizeValue(&event->data[i], resolution); in quantizeSensorEventValues()
92 return sensor.resolution; in resolutionForSensor()
99 return std::max(sensor.resolution, static_cast<float>(lowerBound)); in resolutionForSensor()
118 return sensor.resolution; in resolutionForSensor()
/frameworks/native/opengl/tests/lib/
DWindowSurface.cpp66 const ui::Size& resolution = displayMode.resolution; in WindowSurface() local
67 auto width = resolution.getWidth(); in WindowSurface()
68 auto height = resolution.getHeight(); in WindowSurface()
/frameworks/native/services/inputflinger/reader/mapper/
DJoystickInputMapper.h45 float resolution, float filter) in Axis()
57 resolution(resolution), in Axis()
76 float resolution; // normalized resolution in units/mm member
DSensorInputMapper.h52 float offset, float min, float max, float flat, float fuzz, float resolution, in Axis()
62 resolution(resolution), in Axis()
77 float resolution; // normalized resolution in units member
DSensorInputMapper.cpp107 axis.min, axis.max, axis.flat, axis.fuzz, axis.resolution); in dump()
114 axis.rawAxisInfo.resolution); in dump()
170 scale = 1.0f / rawAxisInfo.resolution; in createAxis()
173 const float max = rawAxisInfo.maxValue / rawAxisInfo.resolution; in createAxis()
174 const float min = rawAxisInfo.minValue / rawAxisInfo.resolution; in createAxis()
177 const float resolution = rawAxisInfo.resolution; in createAxis() local
182 return Axis(rawAxisInfo, axisInfo, scale, offset, min, max, flat, fuzz, resolution, filter); in createAxis()
DJoystickInputMapper.cpp47 axis.resolution); in addMotionRange()
54 axis.fuzz, axis.resolution); in addMotionRange()
95 axis.min, axis.max, axis.flat, axis.fuzz, axis.resolution); in dump()
103 axis.rawAxisInfo.resolution); in dump()
201 const float resolution = rawAxisInfo.resolution * scale; in createAxis() local
207 max, flat, fuzz, resolution, filter); in createAxis()
/frameworks/av/services/camera/virtualcamera/
DVirtualCameraDevice.cc178 Resolution resolution(config.width, config.height); in getResolutionToMaxFpsMap() local
179 if (resolutionToMaxFpsMap.find(resolution) == resolutionToMaxFpsMap.end()) { in getResolutionToMaxFpsMap()
180 resolutionToMaxFpsMap[resolution] = config.maxFps; in getResolutionToMaxFpsMap()
182 int currentMaxFps = resolutionToMaxFpsMap[resolution]; in getResolutionToMaxFpsMap()
183 resolutionToMaxFpsMap[resolution] = std::max(currentMaxFps, config.maxFps); in getResolutionToMaxFpsMap()
191 for (const auto& [resolution, maxFps] : resolutionToMaxFpsMap) { in getResolutionToMaxFpsMap()
198 if (outputResolution < resolution && in getResolutionToMaxFpsMap()
199 isApproximatellySameAspectRatio(outputResolution, resolution)) { in getResolutionToMaxFpsMap()
205 outputResolution.width, outputResolution.height, resolution.width, in getResolutionToMaxFpsMap()
206 resolution.height); in getResolutionToMaxFpsMap()
[all …]
DVirtualCameraRenderThread.cc664 const Resolution resolution, const int quality) { in createThumbnail() argument
665 if (resolution.width == 0 || resolution.height == 0) { in createThumbnail()
671 resolution.width, resolution.height, quality); in createThumbnail()
672 Resolution bufferSize = roundTo2DctSize(resolution); in createThumbnail()
686 Rect(resolution.width, resolution.height)) in createThumbnail()
696 ALOGE("%s: Compressing thumbnail %d x %d", __func__, resolution.width, in createThumbnail()
697 resolution.height); in createThumbnail()
699 compressJpeg(resolution.width, resolution.height, quality, in createThumbnail()
/frameworks/native/services/surfaceflinger/tests/
DTransactionTestHarnesses.h51 const ui::Size& resolution = displayMode.resolution; in getScreenCapture() local
60 consumer->setDefaultBufferSize(resolution.getWidth(), resolution.getHeight()); in getScreenCapture()
81 Rect(displayState.layerStackSpaceRect), Rect(resolution)); in getScreenCapture()
DEffectLayer_test.cpp192 const ui::Size& resolution = mode.resolution; in TEST_F() local
194 shot->expectColor(Rect(0, 0, resolution.getWidth(), resolution.getHeight()), Color::RED); in TEST_F()
DMultiDisplayLayerBounds_test.cpp51 consumer->setDefaultBufferSize(mMainDisplayMode.resolution.getWidth(), in SetUp()
52 mMainDisplayMode.resolution.getHeight()); in SetUp()
69 Rect(layerStackSize), Rect(mMainDisplayMode.resolution)); in createDisplay()
/frameworks/av/services/camera/virtualcamera/util/
DUtil.cc152 std::ostream& operator<<(std::ostream& os, const Resolution& resolution) { in operator <<() argument
153 return os << resolution.width << "x" << resolution.height; in operator <<()
/frameworks/base/core/java/android/companion/virtual/sensor/
DVirtualSensorConfig.java66 float maximumRange, float resolution, float power, int minDelay, int maxDelay, in VirtualSensorConfig() argument
72 mResolution = resolution; in VirtualSensorConfig()
311 public VirtualSensorConfig.Builder setResolution(float resolution) { in setResolution() argument
312 mResolution = resolution; in setResolution()
/frameworks/base/services/core/jni/
Dcom_android_server_sensor_SensorService.cpp58 jfloat maximumRange, jfloat resolution, jfloat power, jint minDelay,
124 jfloat resolution, jfloat power, jint minDelay, in registerRuntimeSensor() argument
137 .resolution = resolution, in registerRuntimeSensor()
311 jfloat resolution, jfloat power, jint minDelay, in registerRuntimeSensorNative() argument
315 resolution, power, minDelay, maxDelay, flags, callback); in registerRuntimeSensorNative()
/frameworks/native/include/input/
DInputDevice.h148 float maxRange, float resolution, float power, int32_t minDelay, in InputDeviceSensorInfo()
158 resolution(resolution), in InputDeviceSensorInfo()
180 float resolution; member
278 float resolution; member
302 float min, float max, float flat, float fuzz, float resolution);
/frameworks/native/services/inputflinger/reader/mapper/gestures/
DHardwareProperties.cpp40 props.res_x = absMtPositionX.resolution; in createHardwareProperties()
46 props.res_y = absMtPositionY.resolution; in createHardwareProperties()
/frameworks/native/services/inputflinger/tests/
DHardwareProperties_test.cpp50 void setupValidAxis(int axis, int32_t min, int32_t max, int32_t resolution) { in setupValidAxis() argument
58 outAxisInfo->resolution = resolution; in setupValidAxis()
/frameworks/base/proto/src/
Daltitude.proto27 // Defines the resolution of the map in terms of an S2 level.
29 // Defines the resolution of the tiles in cache in terms of an S2 level.
31 // Defines the resolution of the tiles on disk in terms of an S2 level.
/frameworks/base/services/core/java/com/android/server/sensors/
DSensorService.java59 String name, String vendor, float maximumRange, float resolution, float power, in registerRuntimeSensorNative() argument
100 @NonNull String vendor, float maximumRange, float resolution, float power, in createRuntimeSensor() argument
104 maximumRange, resolution, power, minDelay, maxDelay, flags, callback); in createRuntimeSensor()

1234567