Home
last modified time | relevance | path

Searched refs:h (Results 1 – 25 of 286) sorted by relevance

12345678910>>...12

/packages/services/BuiltInPrintService/jni/plugins/
Dlib_pwg.c38 static void _write_header_pwg(int pixel_width, int pixel_height, cups_page_header2_t *h, in _write_header_pwg() argument
40 if (h != NULL) { in _write_header_pwg()
41 strcpy(h->MediaClass, "PwgRaster"); in _write_header_pwg()
42 strcpy(h->MediaColor, ""); in _write_header_pwg()
43 strcpy(h->MediaType, ""); in _write_header_pwg()
44 strcpy(h->OutputType, ""); in _write_header_pwg()
45 h->AdvanceDistance = 0; in _write_header_pwg()
46 h->AdvanceMedia = CUPS_ADVANCE_FILE; in _write_header_pwg()
47 h->Collate = CUPS_FALSE; in _write_header_pwg()
48 h->CutMedia = CUPS_CUT_NONE; in _write_header_pwg()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dreadertest.cpp43 ParseBoolHandler<true> h; in TEST() local
45 reader.Parse(s, h); in TEST()
46 EXPECT_EQ(1u, h.step_); in TEST()
51 ParseBoolHandler<false> h; in TEST() local
53 reader.Parse(s, h); in TEST()
54 EXPECT_EQ(1u, h.step_); in TEST()
106 Handler h; \ in TEST()
108 reader.Parse(s, h); \ in TEST()
109 EXPECT_EQ(1u, h.step_); \ in TEST()
110 EXPECT_EQ(x, h.actual_); \ in TEST()
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities.cpp23 float** db_SetupImageReferences_f(float *im,int w,int h) in db_SetupImageReferences_f() argument
28 img=new float* [h]; in db_SetupImageReferences_f()
29 for(i=0;i<h;i++) in db_SetupImageReferences_f()
36 unsigned char** db_SetupImageReferences_u(unsigned char *im,int w,int h) in db_SetupImageReferences_u() argument
43 img=new unsigned char* [h]; in db_SetupImageReferences_u()
44 for(i=0;i<h;i++) in db_SetupImageReferences_u()
50 float** db_AllocImage_f(int w,int h,int over_allocation) in db_AllocImage_f() argument
54 im=new float [w*h+over_allocation]; in db_AllocImage_f()
55 img=db_SetupImageReferences_f(im,w,h); in db_AllocImage_f()
60 unsigned char** db_AllocImage_u(int w,int h,int over_allocation) in db_AllocImage_u() argument
[all …]
/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/dynamicui/
DColorExtractionAlgorithm.java115 float[] h = fit(palette.h, hsl[0], fitIndex, in extractInto() local
121 int mainColor = getColorInt(primaryIndex, h, s, l); in extractInto()
141 primaryIndex = h.length - 1; in extractInto()
148 int secondaryColor = getColorInt(secondaryIndex, h, s, l); in extractInto()
162 private int getColorInt(int fitIndex, float[] h, float[] s, float[] l) { in getColorInt() argument
163 mTmpHSL[0] = fract(h[fitIndex]) * 360.0f; in getColorInt()
213 private static int bestFit(@NonNull TonalPalette palette, float h, float s, float l) { in bestFit() argument
217 for (int i = 0; i < palette.h.length; i++) { in bestFit()
219 FIT_WEIGHT_H * Math.abs(h - palette.h[i]) in bestFit()
232 private static TonalPalette findTonalPalette(float h, float s) { in findTonalPalette() argument
[all …]
/packages/apps/LegacyCamera/tests/src/com/android/camera/unittest/
DCameraTest.java33 int h = Util.ORIENTATION_HYSTERESIS; in testRoundOrientation() local
36 assertEquals(0, Util.roundOrientation(0 + 44 + h, 0)); in testRoundOrientation()
37 assertEquals(90, Util.roundOrientation(0 + 45 + h, 0)); in testRoundOrientation()
38 assertEquals(0, Util.roundOrientation(360 - 44 - h, 0)); in testRoundOrientation()
39 assertEquals(270, Util.roundOrientation(360 - 45 - h, 0)); in testRoundOrientation()
42 assertEquals(90, Util.roundOrientation(90 + 44 + h, 90)); in testRoundOrientation()
43 assertEquals(180, Util.roundOrientation(90 + 45 + h, 90)); in testRoundOrientation()
44 assertEquals(90, Util.roundOrientation(90 - 44 - h, 90)); in testRoundOrientation()
45 assertEquals(0, Util.roundOrientation(90 - 45 - h, 90)); in testRoundOrientation()
48 assertEquals(180, Util.roundOrientation(180 + 44 + h, 180)); in testRoundOrientation()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
DStateView.java139 float h = canvas.getHeight(); in onDraw() local
144 drawHorizontalPath(w, h, r, d); in onDraw()
147 drawVerticalDownPath(w, h, r, d); in onDraw()
149 drawVerticalPath(w, h, r, d); in onDraw()
168 private void drawHorizontalPath(float w, float h, float r, float d) { in drawHorizontalPath() argument
173 mPath.lineTo(0, h); in drawHorizontalPath()
179 mPath.lineTo(d, h); in drawHorizontalPath()
181 mPath.lineTo(w, h); in drawHorizontalPath()
191 mPath.lineTo(w, h); in drawHorizontalPath()
197 mPath.lineTo(w - d, h); in drawHorizontalPath()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/
DHistogramView.java46 int h = bitmap.getHeight(); in doInBackground() local
47 int[] pixels = new int[w * h]; in doInBackground()
48 bitmap.getPixels(pixels, 0, w, 0, 0, w, h); in doInBackground()
50 for (int j = 0; j < h; j++) { in doInBackground()
89 float h = getHeight(); // - Spline.curveHandleSize() / 2.0f; in drawHistogram() local
92 float wh = h / max; in drawHistogram()
101 canvas.drawRect(dx, 0, dx + w, h, mPaint); in drawHistogram()
102 canvas.drawLine(dx + w / 3, 0, dx + w / 3, h, mPaint); in drawHistogram()
103 canvas.drawLine(dx + 2 * w / 3, 0, dx + 2 * w / 3, h, mPaint); in drawHistogram()
110 mHistoPath.moveTo(dx, h); in drawHistogram()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DBitmapUtil.java47 public static Bitmap decodeByteArray(byte[] src, int w, int h) { in decodeByteArray() argument
56 opts.inSampleSize = Math.min(opts.outWidth / w, opts.outHeight / h); in decodeByteArray()
74 public static Bitmap decodeByteArrayWithCenterCrop(byte[] src, int w, int h) { in decodeByteArrayWithCenterCrop() argument
76 final Bitmap decoded = decodeByteArray(src, w, h); in decodeByteArrayWithCenterCrop()
77 return centerCrop(decoded, w, h); in decodeByteArrayWithCenterCrop()
96 public static Bitmap centerCrop(final Bitmap src, final int w, final int h) { in centerCrop() argument
97 return crop(src, w, h, 0.5f, 0.5f); in centerCrop()
131 public static Bitmap crop(final Bitmap src, final int w, final int h, in crop() argument
143 if (w == srcWidth && h == srcHeight) { in crop()
150 (float) h / srcHeight); in crop()
[all …]
/packages/apps/DocumentsUI/tests/res/raw/
Dimages_tar13 ���ڪ��U�+Zn9�1柔�!�,�b�>�*�W��F���(�x�]^��k^C#�~���N_���a���h�7��\�3F'F�$� �qld�V��}q�X�!�…
15 :�����c�*��_���l� 2N��b3h����ٴ*T����(�J�Hj�&�WJ�M+�Ln��tÅ���h�۱�t��G <��Bvþ���ӯhk��������W…
17 g!d���+ߏ �������h�̌�f��Q����z+�Ȫk O�q����:$B�_�;��䶢���o�s�e}�J�)��h)ΞD[�&Z�/��gY�MN…
19h�8�r�!m�\���j~��)�8�P����W]�wI|��iR6��x�O%���yo_$>��ȼ��ɪ��T��U���3�E��f�����1qc�f����2�z…
28 0�d�M�B�=h��@��uu�@��%ə&�ĭ�cyo�J%\'/+7�,�����b��&��FKf8��~9��0�>'<u��s]��}��+�LK&�(�…
29 ��%^!N'\�8�~���{��f(��J�C�< :*ϸi%Xl�:��C�M�� �����y�ݭh��t���yE��@#gw���� �cr��?#�P�֬,`���/�…
42 +�&�2�o��� =ĽN��vd7���z�bp��i����`>j-_�~�$�z:���'��<WMfv��w�XB������� ��:�J�R�^�6 �h�…
45 ,�|��-�j��%b ���G��Z0�s��,�g4�Y��7�?�P�\����•��%�h贵��$��"�r�t���)�u�9��r�Y���n��&@�ܜ�˜�…
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoFallbackEffect.java95 int h = entry.texture.getHeight(); in drawEntry() local
113 if (w > h) { in drawEntry()
116 mSource.set((w - h) / 2, 0, (w + h) / 2, h); in drawEntry() local
124 mSource.set(0, 0, (w - h) / 2, h); in drawEntry()
129 mSource.set((w + h) / 2, 0, w, h); in drawEntry()
136 mSource.set(0, (h - w) / 2, w, (h + w) / 2); in drawEntry()
144 mSource.set(0, 0, w, (h - w) / 2); in drawEntry()
149 mSource.set(0, (w + h) / 2, w, h); in drawEntry()
DPhotoView.java481 int h = bottom - top; in onLayout() local
482 mTileView.layout(0, 0, w, h); in onLayout()
483 mEdgeView.layout(0, 0, w, h); in onLayout()
485 mUndoBar.layout(0, h - mUndoBar.getMeasuredHeight(), w, h); in onLayout()
519 int h = getHeight(); in updateCameraRect() local
522 w = h; in updateCameraRect()
523 h = tmp; in updateCameraRect()
533 case 90: mCameraRect.set(h - b, l, h - t, r); break; in updateCameraRect()
534 case 180: mCameraRect.set(w - r, h - b, w - l, h - t); break; in updateCameraRect()
637 int h = mTileView.mImageHeight; in updateSize() local
[all …]
DGLRootView.java231 int h = getHeight(); in layoutContentPane() local
249 mCompensationMatrix.preTranslate(-w / 2, -h / 2); in layoutContentPane()
251 mCompensationMatrix.postTranslate(h / 2, w / 2); in layoutContentPane()
253 mCompensationMatrix.setRotate(mCompensation, w / 2, h / 2); in layoutContentPane()
261 w = h; in layoutContentPane()
262 h = tmp; in layoutContentPane()
264 Log.i(TAG, "layout content pane " + w + "x" + h in layoutContentPane()
266 if (mContentView != null && w != 0 && h != 0) { in layoutContentPane()
267 mContentView.layout(0, 0, w, h); in layoutContentPane()
447 int h = getHeight(); in rotateCanvas() local
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Drapidjsontest.cpp69 BaseReaderHandler<> h; in TEST_F() local
71 EXPECT_TRUE(reader.Parse<kParseInsituFlag>(s, h)); in TEST_F()
79 BaseReaderHandler<> h; in TEST_F() local
81 EXPECT_TRUE(reader.Parse<kParseInsituFlag | kParseValidateEncodingFlag>(s, h)); in TEST_F()
88 BaseReaderHandler<> h; in TEST_F() local
90 EXPECT_TRUE(reader.Parse(s, h)); in TEST_F()
97 BaseReaderHandler<> h; in TEST_F() local
99 EXPECT_TRUE(reader.Parse<kParseFullPrecisionFlag>(s, h)); in TEST_F()
106 BaseReaderHandler<> h; in TEST_F() local
108 EXPECT_TRUE(reader.Parse<kParseIterativeFlag>(s, h)); in TEST_F()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DSpline.java213 private void drawGrid(Canvas canvas, float w, float h) { in drawGrid() argument
218 float stepH = h / 9; in drawGrid()
224 canvas.drawLine(0, h, w, 0, gPaint); in drawGrid()
228 stepH = h / 3; in drawGrid()
232 canvas.drawLine(j * stepW, 0, j * stepW, h, gPaint); in drawGrid()
234 canvas.drawLine(0, 0, 0, h, gPaint); in drawGrid()
235 canvas.drawLine(w, 0, w, h, gPaint); in drawGrid()
237 canvas.drawLine(0, h, w, h, gPaint); in drawGrid()
243 float h = canvasHeight - mCurveHandleSize; in draw() local
270 points[i] = new ControlPoint(p.x * w, p.y * h); in draw()
[all …]
DGeometryMathUtils.java54 public void set(GeometryHolder h) { in set() argument
55 rotation = h.rotation; in set()
56 straighten = h.straighten; in set()
57 crop.set(h.crop); in set()
58 mirror = h.mirror; in set()
83 GeometryHolder h = (GeometryHolder) o; in equals() local
84 return rotation == h.rotation && straighten == h.straighten && in equals()
85 ((crop == null && h.crop == null) || (crop != null && crop.equals(h.crop))) && in equals()
86 mirror == h.mirror; in equals()
333 GeometryHolder h = unpackGeometry(geometry); in getImageToScreenMatrix() local
[all …]
DImageVignette.java80 public void setRadius(float w, float h) { in setRadius() argument
82 mTmp[1] = mTmpRadiusY = h; in setRadius()
142 int h = MasterImage.getImage().getOriginalBounds().height(); in onTouchEvent() local
200 float h = MasterImage.getImage().getOriginalBounds().height(); in computeEllipses() local
204 mScreenOval.setTransform(toScr, toImg, (int) w, (int) h); in computeEllipses()
217 public void onSizeChanged(int w, int h, int oldw, int oldh) { in onSizeChanged() argument
218 super.onSizeChanged(w, h, oldw, oldh); in onSizeChanged()
229 float h = MasterImage.getImage().getOriginalBounds().height(); in onDraw() local
233 mScreenOval.setTransform(toScr, toImg, (int) w, (int) h); in onDraw()
/packages/apps/LegacyCamera/jni/feature_stab/src/dbregtest/
Ddbregtest.cpp147 int w,h; in main() local
172 h = ref.GetHeight(); in main()
176 …reg.Init(w,h,motion_model_type,DEFAULT_MAX_ITERATIONS,linear_polish,quarter_resolution,DB_POINT_ST… in main()
177 lut_x = db_AllocImage_f(w,h); in main()
178 lut_y = db_AllocImage_f(w,h); in main()
226 db_GenerateHomographyLut(lut_x,lut_y,w,h,H); in main()
229 PgmImage warped(w,h,format); in main()
236 … db_WarpImageLutBilinear_rgb(color_ref.GetRowPointers(),warped.GetRowPointers(),w,h,lut_x,lut_y); in main()
238 db_WarpImageLut_u(ref.GetRowPointers(),warped.GetRowPointers(),w,h,lut_x,lut_y,DB_WARP_FAST); in main()
297 db_FreeImage_f(lut_x,h); in main()
[all …]
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DTaskJpegEncode.java103 final int h = img.getHeight(); in convertYUV420ImageToPackedNV21() local
112 final int data_offset = w * h; in convertYUV420ImageToPackedNV21()
134 final int w, final int h) { in dummyConvertYUV420ImageToPackedNV21() argument
135 final int y_size = w * h; in dummyConvertYUV420ImageToPackedNV21()
136 final int data_offset = w * h; in dummyConvertYUV420ImageToPackedNV21()
143 for (int i = 0; i < h / 2; i++) { in dummyConvertYUV420ImageToPackedNV21()
146 dataCopy[offset] = (byte) ((255 * i) / (h / 2) & 255); in dummyConvertYUV420ImageToPackedNV21()
163 public byte[] convertNv21toJpeg(byte[] data_copy, int w, int h, int[] strides) { in convertNv21toJpeg() argument
165 YuvImage yuvImage = new YuvImage(data_copy, ImageFormat.NV21, w, h, strides); in convertNv21toJpeg()
169 yuvImage.compressToJpeg(new Rect(0, 0, w, h), 90, postViewBytes); in convertNv21toJpeg()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DImageLoader.java208 int h = bitmap.getHeight(); in orientBitmap() local
214 w = h; in orientBitmap()
215 h = tmp; in orientBitmap()
219 matrix.setRotate(90, w / 2f, h / 2f); in orientBitmap()
222 matrix.setRotate(180, w / 2f, h / 2f); in orientBitmap()
225 matrix.setRotate(270, w / 2f, h / 2f); in orientBitmap()
234 matrix.setRotate(90, w / 2f, h / 2f); in orientBitmap()
238 matrix.setRotate(270, w / 2f, h / 2f); in orientBitmap()
259 int h = 0; in loadRegionBitmap() local
268 h = decoder.getHeight(); in loadRegionBitmap()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterVignette.java61 Bitmap bitmap, int w, int h, int cx, int cy, float radx, float rady, in nativeApplyFilter() argument
64 private float calcRadius(float cx, float cy, int w, int h) { in calcRadius() argument
72 if (d < (h - cy)) { in calcRadius()
73 d = h - cy; in calcRadius()
89 int h = getInPixelsAllocation().getType().getY(); in runFilter() local
92 float cy = h / 2; in runFilter()
93 float r = calcRadius(cx, cy, w, h); in runFilter()
99 Matrix m = getOriginalToScreenMatrix(w, h); in runFilter()
114 mScript.set_inputHeight(h); in runFilter()
/packages/modules/NetworkStack/tests/unit/src/android/net/util/
DPacketReaderTest.java77 public UdpLoopbackReader(Handler h) { in UdpLoopbackReader() argument
78 super(h); in UdpLoopbackReader()
160 final Handler h = mHandlerThread.getThreadHandler(); in testBasicWorking() local
161 mReceiver = new UdpLoopbackReader(h); in testBasicWorking()
163 h.post(() -> { mReceiver.start(); }); in testBasicWorking()
194 public NullPacketReader(Handler h, int recvbufsize) { in NullPacketReader() argument
195 super(h, recvbufsize); in NullPacketReader()
204 final Handler h = mHandlerThread.getThreadHandler(); in testMinimalRecvBufSize() local
207 final PacketReader b = new NullPacketReader(h, i); in testMinimalRecvBufSize()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBitmapUtils.java68 private static int computeInitialSampleSize(int w, int h, in computeInitialSampleSize() argument
74 (int) Math.ceil(Math.sqrt((double) (w * h) / maxNumOfPixels)); in computeInitialSampleSize()
79 int sampleSize = Math.min(w / minSideLength, h / minSideLength); in computeInitialSampleSize()
86 public static int computeSampleSizeLarger(int w, int h, in computeSampleSizeLarger() argument
88 int initialSize = Math.max(w / minSideLength, h / minSideLength); in computeSampleSizeLarger()
150 int h = bitmap.getHeight(); in resizeAndCropCenter() local
151 if (w == size && h == size) return bitmap; in resizeAndCropCenter()
155 float scale = (float) size / Math.min(w, h); in resizeAndCropCenter()
181 int h = source.getHeight(); in rotateBitmap() local
184 Bitmap bitmap = Bitmap.createBitmap(source, 0, 0, w, h, m, true); in rotateBitmap()
/packages/apps/Launcher3/src/com/android/launcher3/config/
DBaseFlags.java226 int h$ = 1; in hashCode()
227 h$ *= 1000003; in hashCode()
228 h$ ^= key.hashCode(); in hashCode()
229 h$ *= 1000003; in hashCode()
230 h$ ^= defaultValue ? 1231 : 1237; in hashCode()
231 h$ *= 1000003; in hashCode()
232 h$ ^= description.hashCode(); in hashCode()
233 return h$; in hashCode()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DPyramid.cpp115 int off, off2, height, h, w; in BorderSpread() local
121 h = pyr->border - top; in BorderSpread()
122 height = pyr->height + (h << 1); in BorderSpread()
123 base = pyr->ptr[-h] - off; in BorderSpread()
126 for (h = height; h--; base += pyr->pitch) { in BorderSpread()
137 for (h = top; h--; base -= pyr->pitch) { in BorderSpread()
142 for (h = bot; h--; base += pyr->pitch) { in BorderSpread()
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/
DFixedScaleDrawable.java43 float h = getIntrinsicHeight(); in setScale() local
47 if (h > w && w > 0) { in setScale()
48 mScaleX *= w / h; in setScale()
49 } else if (w > h && h > 0) { in setScale()
50 mScaleY *= h / w; in setScale()

12345678910>>...12