/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/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/hvac/ |
H A D | CarHvacManager.java | 256 * @param area Area of the property to get 258 public boolean getBooleanProperty(int prop, int area) throws CarNotConnectedException { argument 259 CarPropertyValue<Boolean> carProp = getProperty(Boolean.class, prop, area); 267 * @param area Area of the property to get 269 public float getFloatProperty(int prop, int area) throws CarNotConnectedException { argument 270 CarPropertyValue<Float> carProp = getProperty(Float.class, prop, area); 278 * @param area Zone of the property to get 280 public int getIntProperty(int prop, int area) throws CarNotConnectedException { argument 281 CarPropertyValue<Integer> carProp = getProperty(Integer.class, prop, area); 287 private <E> CarPropertyValue<E> getProperty(Class<E> clazz, int prop, int area) argument 318 setBooleanProperty(int prop, int area, boolean val) argument 331 setFloatProperty(int prop, int area, float val) argument 343 setIntProperty(int prop, int area, int val) argument [all...] |
/packages/services/Car/car-lib/src/android/car/hardware/ |
H A D | CarPropertyConfig.java | 57 /** Returns true if this property doesn't hold car area-specific configuration */ 76 * Throws {@link IllegalStateException} if supported area count not equals to one. 80 throw new IllegalStateException("Expected one and only area in this property. Prop: 0x" 92 AreaConfig<T> area = mSupportedAreas.get(areaId); 93 return area == null ? null : area.getMinValue(); 98 AreaConfig<T> area = mSupportedAreas.get(areaId); 99 return area == null ? null : area.getMaxValue(); 104 AreaConfig<T> area [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/apps/Launcher3/src/com/android/launcher3/util/ |
H A D | IconNormalizer.java | 31 // Ratio of icon visible area to full icon size for a square shaped icon 33 // Ratio of icon visible area to full icon size for a circular shaped icon 38 // Slope used to calculate icon visible area to full icon size for any generic shaped icon. 76 * This closeness is used to determine the ratio of hull area to the full icon size. 155 float area = 0; 160 area += mRightBorder[y] - mLeftBorder[y] + 1; 165 float hullByRect = area / rectArea; 182 float areaScale = area / (width * height);
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
H A D | CameraInfoCache.java | 212 int area = 0; 214 if (sizes[j].getHeight() * sizes[j].getWidth() > area) { 215 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/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);
|
/packages/apps/Messaging/src/android/support/v7/mms/pdu/ |
H A D | PduParser.java | 1315 * @param length area size 1316 * @return the values in this area 1320 byte[] area = new byte[length]; 1321 int readLen = pduDataStream.read(area, 0, length);
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
H A D | PduParser.java | 1352 * @param length area size 1353 * @return the values in this area 1357 byte[] area = new byte[length]; 1358 int readLen = pduDataStream.read(area, 0, length);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | CellLayout.java | 1143 * Find a vacant area that will fit the given bounds nearest the requested 1146 * @param pixelX The X location at which you want to search for a vacant area. 1147 * @param pixelY The Y location at which you want to search for a vacant area. 1154 * @return The X, Y cell of a vacant area that can contain this object, 1179 * Find a vacant area that will fit the given bounds nearest the requested 1182 * @param pixelX The X location at which you want to search for a vacant area. 1183 * @param pixelY The Y location at which you want to search for a vacant area. 1191 * @return The X, Y cell of a vacant area that can contain this object, 1204 // Keep track of best-scoring drop area 1313 * Find a vacant area tha 2486 int area() { method in class:CellLayout.ItemConfiguration [all...] |
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
H A D | db_feature_detection.cpp | 1503 unsigned long bwbh,area,saturation; local 1535 area=(last_x-x+1)*(last_y-y+1); 1536 saturation=(area*area_factor)/10000;
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | CellLayout.java | 1284 * Find a vacant area that will fit the given bounds nearest the requested 1287 * @param pixelX The X location at which you want to search for a vacant area. 1288 * @param pixelY The Y location at which you want to search for a vacant area. 1293 * @return The X, Y cell of a vacant area that can contain this object, 1302 * Find a vacant area that will fit the given bounds nearest the requested 1305 * @param pixelX The X location at which you want to search for a vacant area. 1306 * @param pixelY The Y location at which you want to search for a vacant area. 1313 * @return The X, Y cell of a vacant area that can contain this object, 1323 * Find a vacant area that will fit the given bounds nearest the requested 1326 * @param pixelX The X location at which you want to search for a vacant area 2703 int area() { method in class:CellLayout.ItemConfiguration [all...] |