/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/test/ |
H A D | VehiclePropConfigBuilder.java | 58 for (VehicleAreaConfig area : propConfig.areaConfigs) { 60 newArea.areaId = area.areaId; 61 newArea.minInt32Value = area.minInt32Value; 62 newArea.maxInt32Value = area.maxInt32Value; 63 newArea.minInt64Value = area.minInt64Value; 64 newArea.maxInt64Value = area.maxInt64Value; 65 newArea.minFloatValue = area.minFloatValue; 66 newArea.maxFloatValue = area.maxFloatValue; 113 VehicleAreaConfig area = new VehicleAreaConfig(); 114 area [all...] |
/packages/apps/Camera2/src/com/android/camera/ui/ |
H A D | ProgressOverlay.java | 57 public void setBounds(RectF area) { argument 58 if (area.width() > 0 && area.height() > 0) { 60 params.width = (int) area.width(); 61 params.height= (int) area.height(); 62 params.setMargins((int) area.left, (int) area.top, 0, 0);
|
/packages/services/Car/car-lib/src/android/car/hardware/property/ |
H A D | CarPropertyManagerBase.java | 170 * @param area Area of the property to get 172 public boolean getBooleanProperty(int prop, int area) throws CarNotConnectedException { argument 173 CarPropertyValue<Boolean> carProp = getProperty(Boolean.class, prop, area); 181 * @param area Area of the property to get 183 public float getFloatProperty(int prop, int area) throws CarNotConnectedException { argument 184 CarPropertyValue<Float> carProp = getProperty(Float.class, prop, area); 192 * @param area Zone of the property to get 194 public int getIntProperty(int prop, int area) throws CarNotConnectedException { argument 195 CarPropertyValue<Integer> carProp = getProperty(Integer.class, prop, area); 201 public <E> CarPropertyValue<E> getProperty(Class<E> clazz, int propId, int area) argument 224 setProperty(Class<E> clazz, int propId, int area, E val) argument 246 setBooleanProperty(int prop, int area, boolean val) argument 251 setFloatProperty(int prop, int area, float val) argument 255 setIntProperty(int prop, int area, int val) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | AspectRatio.java | 168 * @return The largest centered region of area with this aspect ratio. For 172 public Rect getLargestCenterCrop(Size area) { argument 173 AspectRatio original = of(area); 177 int cropHeight = area.width() * mHeight / mWidth; 178 int cropTop = (area.height() - cropHeight) / 2; 181 int cropRight = area.width(); 185 int cropWidth = area.height() * mWidth / mHeight; 186 int cropLeft = (area.width() - cropWidth) / 2; 189 int cropBottom = area.height();
|
H A D | Size.java | 122 public long area() { method in class:Size
|
/packages/services/Car/car-lib/src/android/car/hardware/ |
H A D | CarPropertyConfig.java | 58 /** Returns true if this property doesn't hold car area-specific configuration */ 77 * Throws {@link IllegalStateException} if supported area count not equals to one. 81 throw new IllegalStateException("Expected one and only area in this property. Prop: 0x" 93 AreaConfig<T> area = mSupportedAreas.get(areaId); 94 return area == null ? null : area.getMinValue(); 99 AreaConfig<T> area = mSupportedAreas.get(areaId); 100 return area == null ? null : area.getMaxValue(); 105 AreaConfig<T> area [all...] |
H A D | CarVendorExtensionManager.java | 137 return getProperty(propertyClass, propId, 0 /* area */); 147 * @param area - vehicle area (e.g. {@code VehicleAreaZone.ROW_1_LEFT} 152 public <E> E getProperty(Class<E> propertyClass, int propId, int area) argument 154 return mPropertyManager.getProperty(propertyClass, propId, area).getValue(); 171 mPropertyManager.setProperty(propertyClass, propId, 0 /* area */, value); 181 * @param area - vehicle area (e.g. {@code VehicleAreaZone.ROW_1_LEFT} 188 public <E> void setProperty(Class<E> propertyClass, int propId, int area, E value) argument 190 mPropertyManager.setProperty(propertyClass, propId, area, valu [all...] |
/packages/services/Car/tools/emulator/ |
H A D | vhal_emulator_test.py | 179 # Get the area to test 180 area = areas & (areas -1) 181 area ^= areas 183 # Remove the area from areas 184 areas ^= area 186 self._log.debug(" Testing propId=%d, area=%d", cfg.prop, area) 189 self._vhal.getProperty(cfg.prop, area) 196 self._log.error("testGetSet: Could not get value for prop=%d, area=%d", 197 cfg.prop, area) [all...] |
/packages/services/Car/car-lib/src/android/car/hardware/cabin/ |
H A D | CarCabinManager.java | 249 * Positive value widens the lumbar area. 250 * Negative value makes the lumbar area thinner. 496 * @param area 500 public boolean getBooleanProperty(@PropertyId int propertyId, int area) argument 502 return mMgr.getBooleanProperty(propertyId, area); 508 * @param area 512 public float getFloatProperty(@PropertyId int propertyId, int area) argument 514 return mMgr.getFloatProperty(propertyId, area); 520 * @param area 524 public int getIntProperty(@PropertyId int propertyId, int area) argument 536 setBooleanProperty(@ropertyId int propertyId, int area, boolean val) argument 548 setFloatProperty(@ropertyId int propertyId, int area, float val) argument 560 setIntProperty(@ropertyId int propertyId, int area, int val) argument [all...] |
/packages/services/Car/car-lib/src/android/car/hardware/hvac/ |
H A D | CarHvacManager.java | 349 * @param area 353 public boolean getBooleanProperty(@PropertyId int propertyId, int area) argument 355 return mMgr.getBooleanProperty(propertyId, area); 361 * @param area 365 public float getFloatProperty(@PropertyId int propertyId, int area) argument 367 return mMgr.getFloatProperty(propertyId, area); 373 * @param area 377 public int getIntProperty(@PropertyId int propertyId, int area) argument 379 return mMgr.getIntProperty(propertyId, area); 385 * @param area 389 setBooleanProperty(@ropertyId int propertyId, int area, boolean val) argument 401 setFloatProperty(@ropertyId int propertyId, int area, float val) argument 413 setIntProperty(@ropertyId int propertyId, int area, int val) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/one/v2/common/ |
H A D | PictureSizeCalculator.java | 116 long pixels = candidate.area(); 162 long largestArea = largestSize.area(); 164 long area = candidate.area(); 165 if (area > largestArea) {
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
H A D | ndfdic.c | 203 NJ_UINT8 *area; local 214 area = YOMI_AREA_TOP_ADDR(hdl) + DATA_YOMI(data); 225 NJ_CHAR_COPY(stroke, area); 227 area += sizeof(NJ_CHAR); 232 dic_ylen = convert_to_yomi(hdl, area, DATA_YOMI_SIZE(data), stroke, size); 359 NJ_UINT8 *area, *data; local 373 area = YOMI_AREA_TOP_ADDR(loc->handle) + DATA_YOMI(data); 385 NJ_CHAR_COPY(stroke, area); 387 area += sizeof(NJ_CHAR); 392 len = convert_to_yomi(loc->handle, area, DATA_YOMI_SIZ 405 NJ_UINT8 *data, *area; local [all...] |
/packages/services/Car/service/src/com/android/car/hal/ |
H A D | CarPropertyUtils.java | 115 for (VehicleAreaConfig area : p.areaConfigs) { 117 builder.addAreaConfig(area.areaId, area.minInt32Value, area.maxInt32Value); 119 builder.addAreaConfig(area.areaId, area.minFloatValue, area.maxFloatValue); 121 builder.addAreaConfig(area.areaId, area.minInt64Value, area [all...] |
H A D | HalServiceBase.java | 67 public void handlePropertySetError(int property, int area) {} argument
|
H A D | PropertyHalServiceBase.java | 58 void onPropertySetError(int property, int area); argument 199 public void handlePropertySetError(int property, int area) { argument 205 listener.onPropertySetError(property, area);
|
H A D | VehicleHal.java | 527 + "area: 0x%x", errorCode, propId, areaId)); 557 for (VehicleAreaConfig area : config.areaConfigs) { 558 builder.append(",areaId :").append(toHexString(area.areaId)) 559 .append(",f min:").append(area.minFloatValue) 560 .append(",f max:").append(area.maxFloatValue) 561 .append(",i min:").append(area.minInt32Value) 562 .append(",i max:").append(area.maxInt32Value) 563 .append(",i64 min:").append(area.minInt64Value) 564 .append(",i64 max:").append(area.maxInt64Value);
|
/packages/services/Car/service/src/com/android/car/ |
H A D | CarPropertyServiceBase.java | 217 public void onPropertySetError(int property, int area) { argument 220 listener.onEvent(createErrorEvent(property, area)); 229 private static CarPropertyEvent createErrorEvent(int property, int area) { argument 231 new CarPropertyValue<>(property, area, null));
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
H A D | CameraInfoCache.java | 217 int area = 0; 219 if (sizes[j].getHeight() * sizes[j].getWidth() > area) { 220 area = sizes[j].getHeight() * sizes[j].getWidth();
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
H A D | ResolutionUtil.java | 92 * This is the area of the largest size, used for sorting 108 // sort area greatest to least 128 * (sorted by maximum area), and sorted within aspect ratio by area) 161 * Get the area in pixels of a size. 164 * @return the area. 166 private static int area(Size size) { method in class:ResolutionUtil 188 double targetArea = Math.pow(.5, result.size()) * area(largest); 189 if (area(size) < targetArea) { 194 && (targetArea - area(lastSiz [all...] |
H A D | CameraSettingsActivity.java | 468 if (settingSize == null || settingSize.area() == 0) {
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
H A D | IconNormalizer.java | 48 // Ratio of icon visible area to full icon size for a square shaped icon 50 // Ratio of icon visible area to full icon size for a circular shaped icon 55 // Slope used to calculate icon visible area to full icon size for any generic shaped icon. 227 * This closeness is used to determine the ratio of hull area to the full icon size. 314 float area = 0; 319 area += mRightBorder[y] - mLeftBorder[y] + 1; 324 float hullByRect = area / rectArea; 347 float areaScale = area / (width * height);
|
/packages/services/Car/tests/carservice_test/src/com/android/car/test/ |
H A D | CarCabinManagerTest.java | 115 public void onErrorEvent(@PropertyId int propertyId, int area) { 117 areaIdReceived.value = area;
|
H A D | CarHvacManagerTest.java | 139 public void onErrorEvent(@PropertyId int propertyId, int area) { 141 areaIdReceived.value = area;
|
/packages/apps/Camera2/src/com/android/camera/ |
H A D | TextureViewHelper.java | 226 * Calculates and updates the preview area rect using the latest transform 377 // Notify listeners of preview area change 394 * Returns a new copy of the preview area, to avoid internal data being 402 * Returns a copy of the area of the whole preview, including bits clipped 411 RectF area = new RectF(0, 0, mWidth, mHeight); 412 mPreview.getTransform(matrix).mapRect(area); 413 return area; 425 * Adds a listener that will get notified when the preview area changed. 427 * according to the preview area change. 430 * receive a notification of current preview area immediatel [all...] |
/packages/apps/Camera2/src/com/android/camera/data/ |
H A D | GlideFilmstripManager.java | 187 * to fit within the maxSize bounding box and to be less than the provided area. 195 // In several cases, the size is smaller than the max, and the area is 196 // smaller than the max area. 202 double ratio = Math.min(Math.sqrt(maxArea / original.area()), 1.0f);
|