Home
last modified time | relevance | path

Searched refs:area (Results 1 – 25 of 60) sorted by relevance

123

/packages/services/Car/libs/vehicle-hal-support-lib/src/com/android/car/hal/test/
DAidlVehiclePropConfigBuilder.java127 VehicleAreaConfig area = new VehicleAreaConfig(); in addAreaConfig() local
128 area.areaId = areaId; in addAreaConfig()
129 area.access = mConfig.access; in addAreaConfig()
130 addAreaConfig(area); in addAreaConfig()
136 VehicleAreaConfig area = new VehicleAreaConfig(); in addAreaConfig() local
137 area.areaId = areaId; in addAreaConfig()
138 area.access = mConfig.access; in addAreaConfig()
139 area.minInt32Value = minValue; in addAreaConfig()
140 area.maxInt32Value = maxValue; in addAreaConfig()
141 addAreaConfig(area); in addAreaConfig()
[all …]
DHidlVehiclePropConfigBuilder.java56 for (VehicleAreaConfig area : propConfig.areaConfigs) { in clone()
58 newArea.areaId = area.areaId; in clone()
59 newArea.minInt32Value = area.minInt32Value; in clone()
60 newArea.maxInt32Value = area.maxInt32Value; in clone()
61 newArea.minInt64Value = area.minInt64Value; in clone()
62 newArea.maxInt64Value = area.maxInt64Value; in clone()
63 newArea.minFloatValue = area.minFloatValue; in clone()
64 newArea.maxFloatValue = area.maxFloatValue; in clone()
99 VehicleAreaConfig area = new VehicleAreaConfig(); in addAreaConfig() local
100 area.areaId = areaId; in addAreaConfig()
[all …]
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/testgenerator/
DRandomBoardGenerator.kt44 area: Rect, in fillBoard()
48 if (area.height() * area.width() <= 0) return board in fillBoard()
49 val width = getRandom(1, area.width()) in fillBoard()
50 val height = getRandom(1, area.height()) in fillBoard()
51 val x = area.left + getRandom(0, area.width() - width) in fillBoard()
52 val y = area.top + getRandom(0, area.height() - height) in fillBoard()
67 fillBoard(board, Rect(area.left, area.top, area.right, y), remainingEmptySpaces) in fillBoard()
68 fillBoard(board, Rect(area.left, y, x, area.bottom), remainingEmptySpaces) in fillBoard()
69 fillBoard(board, Rect(x, y + height, area.right, area.bottom), remainingEmptySpaces) in fillBoard()
70 fillBoard(board, Rect(x + width, y, area.right, y + height), remainingEmptySpaces) in fillBoard()
/packages/services/Car/car-lib/src/android/car/hardware/hvac/
DCarHvacManager.java373 public boolean isPropertyAvailable(@PropertyId int propertyId, int area) { in isPropertyAvailable() argument
374 return mCarPropertyMgr.isPropertyAvailable(propertyId, area); in isPropertyAvailable()
383 public boolean getBooleanProperty(@PropertyId int propertyId, int area) { in getBooleanProperty() argument
384 return mCarPropertyMgr.getBooleanProperty(propertyId, area); in getBooleanProperty()
393 public float getFloatProperty(@PropertyId int propertyId, int area) { in getFloatProperty() argument
394 return mCarPropertyMgr.getFloatProperty(propertyId, area); in getFloatProperty()
403 public int getIntProperty(@PropertyId int propertyId, int area) { in getIntProperty() argument
404 return mCarPropertyMgr.getIntProperty(propertyId, area); in getIntProperty()
413 public void setBooleanProperty(@PropertyId int propertyId, int area, boolean val) { in setBooleanProperty() argument
415 mCarPropertyMgr.setBooleanProperty(propertyId, area, val); in setBooleanProperty()
[all …]
/packages/apps/Camera2/src/com/android/camera/ui/
DProgressOverlay.java57 public void setBounds(RectF area) { in setBounds() argument
58 if (area.width() > 0 && area.height() > 0) { in setBounds()
60 params.width = (int) area.width(); in setBounds()
61 params.height= (int) area.height(); in setBounds()
62 params.setMargins((int) area.left, (int) area.top, 0, 0); in setBounds()
/packages/services/Car/car-lib/src/android/car/hardware/cabin/
DCarCabinManager.java539 public boolean getBooleanProperty(@PropertyId int propertyId, int area) { in getBooleanProperty() argument
540 return mCarPropertyMgr.getBooleanProperty(propertyId, area); in getBooleanProperty()
549 public float getFloatProperty(@PropertyId int propertyId, int area) { in getFloatProperty() argument
550 return mCarPropertyMgr.getFloatProperty(propertyId, area); in getFloatProperty()
559 public int getIntProperty(@PropertyId int propertyId, int area) { in getIntProperty() argument
560 return mCarPropertyMgr.getIntProperty(propertyId, area); in getIntProperty()
569 public void setBooleanProperty(@PropertyId int propertyId, int area, boolean val) { in setBooleanProperty() argument
571 mCarPropertyMgr.setBooleanProperty(propertyId, area, val); in setBooleanProperty()
581 public void setFloatProperty(@PropertyId int propertyId, int area, float val) { in setFloatProperty() argument
583 mCarPropertyMgr.setFloatProperty(propertyId, area, val); in setFloatProperty()
[all …]
/packages/apps/Camera2/src/com/android/camera/util/
DAspectRatio.java172 public Rect getLargestCenterCrop(Size area) { in getLargestCenterCrop() argument
173 AspectRatio original = of(area); in getLargestCenterCrop()
177 int cropHeight = area.width() * mHeight / mWidth; in getLargestCenterCrop()
178 int cropTop = (area.height() - cropHeight) / 2; in getLargestCenterCrop()
181 int cropRight = area.width(); in getLargestCenterCrop()
185 int cropWidth = area.height() * mWidth / mHeight; in getLargestCenterCrop()
186 int cropLeft = (area.width() - cropWidth) / 2; in getLargestCenterCrop()
189 int cropBottom = area.height(); in getLargestCenterCrop()
/packages/services/Car/tools/emulator/
Dvhal_emulator_test.py225 area = areas & (areas -1)
226 area ^= areas
229 areas ^= area
231 self._log.debug(" Testing propId=0x%X, area=0x%X", cfg.prop, area)
234 self._vhal.getProperty(cfg.prop, area)
242 cfg.prop, area)
249 cfg.prop, area)
253 self._vhal.setProperty(cfg.prop, area, testValue)
258 self._vhal.getProperty(cfg.prop, area)
263 … self._log.error("testGetSet: set failed for propId=0x%X, area=0x%X", cfg.prop, area)
[all …]
Duser_action_generator.py76 for area in supportedAreas:
77 areaConfigs[area] = AreaConfig(configs[0], valueType)
130 for area in config.supportedAreas:
131 areaConfig = config.areaConfigs[area]
140 listener.handle(prop, area, value, propDesc[prop])
148 for area in config.supportedAreas:
149 listener.handle(prop, area, value, propDesc[prop])
Dprop_event_simulator.py77 v.setProperty(args.property, args.area, value)
/packages/services/Car/car-lib/src/android/car/hardware/
DCarVendorExtensionManager.java145 public boolean isPropertyAvailable(int propertyId, int area) { in isPropertyAvailable() argument
146 return mPropertyManager.isPropertyAvailable(propertyId, area); in isPropertyAvailable()
171 public <E> E getProperty(Class<E> propertyClass, int propId, int area) { in getProperty() argument
172 return mPropertyManager.getProperty(propertyClass, propId, area).getValue(); in getProperty()
201 public <E> void setProperty(Class<E> propertyClass, int propId, int area, E value) { in setProperty() argument
202 mPropertyManager.setProperty(propertyClass, propId, area, value); in setProperty()
/packages/apps/Camera2/src/com/android/camera/one/v2/common/
DPictureSizeCalculator.java117 long pixels = candidate.area(); in getSmallestSupportedSizeContainingTarget()
163 long largestArea = largestSize.area(); in getLargestSupportedSize()
165 long area = candidate.area(); in getLargestSupportedSize() local
166 if (area > largestArea) { in getLargestSupportedSize()
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/
DGraphicsUtils.java82 int area = 0; in getArea() local
85 area += tempRect.width() * tempRect.height(); in getArea()
87 return area; in getArea()
DIconNormalizer.java323 float area = 0; in getScale() local
328 area += mRightBorder[y] - mLeftBorder[y] + 1; in getScale()
347 return getScale(area, rectArea, width * height); in getScale()
408 float area = size * size * MAX_CIRCLE_AREA_FACTOR; in getNormalizedCircleSize() local
409 return (int) Math.round(Math.sqrt((4 * area) / Math.PI)); in getNormalizedCircleSize()
/packages/apps/Camera2/src/com/android/camera/settings/
DResolutionUtil.java168 private static int area(Size size) { in area() method in ResolutionUtil
190 double targetArea = Math.pow(.5, result.size()) * area(largest); in pickUpToThree()
191 if (area(size) < targetArea) { in pickUpToThree()
196 && (targetArea - area(lastSize) < area(size) - targetArea)) { in pickUpToThree()
/packages/apps/DevCamera/src/com/android/devcamera/
DCameraInfoCache.java217 int area = 0; in returnLargestSize() local
219 if (sizes[j].getHeight() * sizes[j].getWidth() > area) { in returnLargestSize()
220 area = sizes[j].getHeight() * sizes[j].getWidth(); in returnLargestSize()
/packages/apps/Camera2/src/com/android/camera/
DTextureViewHelper.java412 RectF area = new RectF(0, 0, mWidth, mHeight);
413 mPreview.getTransform(matrix).mapRect(area);
414 return area;
/packages/services/Car/service/src/com/android/car/hal/
DVehicleHal.java1424 for (HalAreaConfig area : config.getAreaConfigs()) { in dumpPropertyConfigsHelp()
1427 area.getAreaId()), toAccessString(area.getAccess()), in dumpPropertyConfigsHelp()
1428 area.getMinFloatValue(), area.getMaxFloatValue(), area.getMinInt32Value(), in dumpPropertyConfigsHelp()
1429 area.getMaxInt32Value(), area.getMinInt64Value(), area.getMaxInt64Value()); in dumpPropertyConfigsHelp()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarCabinManagerTest.java128 public void onErrorEvent(@PropertyId int propertyId, int area) { in testError()
130 areaIdReceived.value = area; in testError()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DSimpleIconFactory.java569 float area = 0; in getScale() local
574 area += mRightBorder[y] - mLeftBorder[y] + 1; in getScale()
579 float hullByRect = area / rectArea; in getScale()
598 float areaScale = area / (width * height); in getScale()
/packages/apps/Launcher3/src/com/android/launcher3/celllayout/
DItemConfiguration.kt49 fun area(): Int { in <lambda>() method
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DIconShape.java110 int area = GraphicsUtils.getArea(shapeR); in pickBestShape() local
111 if (area < minArea) { in pickBestShape()
112 minArea = area; in pickBestShape()
/packages/modules/Bluetooth/system/test/headless/
DREADME.md17 Install: Push the binary to an executable area on target device.
/packages/apps/Launcher3/tests/assets/ReorderWidgets/
Dfull_reorder_case12 # area of the widget.
Dpush_reorder_case12 # area of the widget.

123