Home
last modified time | relevance | path

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

12

/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/test/
DVehiclePropConfigBuilder.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/services/Car/car-lib/src/android/car/hardware/hvac/
DCarHvacManager.java362 public boolean isPropertyAvailable(@PropertyId int propertyId, int area) { in isPropertyAvailable() argument
363 return mCarPropertyMgr.isPropertyAvailable(propertyId, area); in isPropertyAvailable()
372 public boolean getBooleanProperty(@PropertyId int propertyId, int area) { in getBooleanProperty() argument
373 return mCarPropertyMgr.getBooleanProperty(propertyId, area); in getBooleanProperty()
382 public float getFloatProperty(@PropertyId int propertyId, int area) { in getFloatProperty() argument
383 return mCarPropertyMgr.getFloatProperty(propertyId, area); in getFloatProperty()
392 public int getIntProperty(@PropertyId int propertyId, int area) { in getIntProperty() argument
393 return mCarPropertyMgr.getIntProperty(propertyId, area); in getIntProperty()
402 public void setBooleanProperty(@PropertyId int propertyId, int area, boolean val) { in setBooleanProperty() argument
404 mCarPropertyMgr.setBooleanProperty(propertyId, area, val); in setBooleanProperty()
[all …]
/packages/services/Car/tools/emulator/
Dvhal_emulator_test.py219 area = areas & (areas -1)
220 area ^= areas
223 areas ^= area
225 self._log.debug(" Testing propId=0x%X, area=0x%X", cfg.prop, area)
228 self._vhal.getProperty(cfg.prop, area)
236 cfg.prop, area)
243 cfg.prop, area)
247 self._vhal.setProperty(cfg.prop, area, testValue)
252 self._vhal.getProperty(cfg.prop, area)
257 … 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.py85 v.setProperty(args.property, args.area, value);
/packages/services/Car/car-lib/src/android/car/hardware/cabin/
DCarCabinManager.java533 public boolean getBooleanProperty(@PropertyId int propertyId, int area) { in getBooleanProperty() argument
534 return mCarPropertyMgr.getBooleanProperty(propertyId, area); in getBooleanProperty()
543 public float getFloatProperty(@PropertyId int propertyId, int area) { in getFloatProperty() argument
544 return mCarPropertyMgr.getFloatProperty(propertyId, area); in getFloatProperty()
553 public int getIntProperty(@PropertyId int propertyId, int area) { in getIntProperty() argument
554 return mCarPropertyMgr.getIntProperty(propertyId, area); in getIntProperty()
563 public void setBooleanProperty(@PropertyId int propertyId, int area, boolean val) { in setBooleanProperty() argument
565 mCarPropertyMgr.setBooleanProperty(propertyId, area, val); in setBooleanProperty()
575 public void setFloatProperty(@PropertyId int propertyId, int area, float val) { in setFloatProperty() argument
577 mCarPropertyMgr.setFloatProperty(propertyId, area, val); in setFloatProperty()
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/
DCarPropertyConfig.java290 AreaConfig<T> area = mSupportedAreas.get(areaId); in getMinValue() local
291 return area == null ? null : area.getMinValue(); in getMinValue()
301 AreaConfig<T> area = mSupportedAreas.get(areaId); in getMaxValue() local
302 return area == null ? null : area.getMaxValue(); in getMaxValue()
311 AreaConfig<T> area = mSupportedAreas.get(0); in getMinValue() local
312 return area == null ? null : area.getMinValue(); in getMinValue()
321 AreaConfig<T> area = mSupportedAreas.get(0); in getMaxValue() local
322 return area == null ? null : area.getMaxValue(); in getMaxValue()
370 AreaConfig<T> area = in.readParcelable(getClass().getClassLoader()); in CarPropertyConfig() local
371 mSupportedAreas.put(areaId, area); in CarPropertyConfig()
DCarVendorExtensionManager.java146 public boolean isPropertyAvailable(int propertyId, int area) { in isPropertyAvailable() argument
147 return mPropertyManager.isPropertyAvailable(propertyId, area); in isPropertyAvailable()
172 public <E> E getProperty(Class<E> propertyClass, int propId, int area) { in getProperty() argument
173 return mPropertyManager.getProperty(propertyClass, propId, area).getValue(); in getProperty()
202 public <E> void setProperty(Class<E> propertyClass, int propId, int area, E value) { in setProperty() argument
203 mPropertyManager.setProperty(propertyClass, propId, area, value); in setProperty()
/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/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/service/src/com/android/car/hal/
DCarPropertyUtils.java167 for (VehicleAreaConfig area : p.areaConfigs) { in toCarPropertyConfig()
169 builder.addAreaConfig(area.areaId, area.minInt32Value, area.maxInt32Value); in toCarPropertyConfig()
171 builder.addAreaConfig(area.areaId, area.minFloatValue, area.maxFloatValue); in toCarPropertyConfig()
173 builder.addAreaConfig(area.areaId, area.minInt64Value, area.maxInt64Value); in toCarPropertyConfig()
182 builder.addArea(area.areaId); in toCarPropertyConfig()
DVehicleHal.java506 int area = Integer.parseInt(areaId); in dumpPropertyValueByCommend() local
508 VehiclePropValue value = get(id, area); in dumpPropertyValueByCommend()
512 + propId + ", areaId: " + area); in dumpPropertyValueByCommend()
528 int area = areaConfig.areaId; in dumpPropertyValueByConfig() local
530 VehiclePropValue value = get(config.prop, area); in dumpPropertyValueByConfig()
534 + toHexString(config.prop) + ", areaId: " + area); in dumpPropertyValueByConfig()
578 for (VehicleAreaConfig area : config.areaConfigs) { in dumpPropertyConfigsHelp()
579 builder.append(",areaId :").append(toHexString(area.areaId)) in dumpPropertyConfigsHelp()
580 .append(",f min:").append(area.minFloatValue) in dumpPropertyConfigsHelp()
581 .append(",f max:").append(area.maxFloatValue) in dumpPropertyConfigsHelp()
[all …]
DPropertyHalService.java104 void onPropertySetError(int property, int area); in onPropertySetError() argument
335 public void handlePropertySetError(int property, int area) { in handlePropertySetError() argument
341 listener.onPropertySetError(property, area); in handlePropertySetError()
DHalServiceBase.java67 public void handlePropertySetError(int property, int area) {} in handlePropertySetError() argument
/packages/services/Car/car-lib/src/android/car/hardware/property/
DCarPropertyManager.java364 public boolean isPropertyAvailable(int propId, int area) { in isPropertyAvailable() argument
366 CarPropertyValue propValue = mService.getProperty(propId, area); in isPropertyAvailable()
381 public boolean getBooleanProperty(int prop, int area) { in getBooleanProperty() argument
382 CarPropertyValue<Boolean> carProp = getProperty(Boolean.class, prop, area); in getBooleanProperty()
392 public float getFloatProperty(int prop, int area) { in getFloatProperty() argument
393 CarPropertyValue<Float> carProp = getProperty(Float.class, prop, area); in getFloatProperty()
403 public int getIntProperty(int prop, int area) { in getIntProperty() argument
404 CarPropertyValue<Integer> carProp = getProperty(Integer.class, prop, area); in getIntProperty()
415 public int[] getIntArrayProperty(int prop, int area) { in getIntArrayProperty() argument
416 CarPropertyValue<Integer[]> carProp = getProperty(Integer[].class, prop, area); in getIntArrayProperty()
/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/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/
DGraphicsUtils.java69 int area = 0; in getArea() local
72 area += tempRect.width() * tempRect.height(); in getArea()
74 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.java166 private static int area(Size size) { in area() method in ResolutionUtil
188 double targetArea = Math.pow(.5, result.size()) * area(largest); in pickUpToThree()
189 if (area(size) < targetArea) { in pickUpToThree()
194 && (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.java411 RectF area = new RectF(0, 0, mWidth, mHeight);
412 mPreview.getTransform(matrix).mapRect(area);
413 return area;
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DIconShape.java462 int area = GraphicsUtils.getArea(shapeR);
463 if (area < minArea) {
464 minArea = area;
/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()
DCarHvacManagerTest.java153 public void onErrorEvent(@PropertyId int propertyId, int area) { in testError()
155 areaIdReceived.value = area; in testError()
/packages/services/Car/service/src/com/android/car/
DCarPropertyService.java399 public void onPropertySetError(int property, int area) { in onPropertySetError() argument
403 eventList.add(CarPropertyEvent.createErrorEvent(property, area)); in onPropertySetError()

12