/packages/services/BuiltInPrintService/jni/plugins/ |
D | lib_pwg.c | 38 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/ |
D | readertest.cpp | 43 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/ |
D | db_utilities.cpp | 23 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/ |
D | ColorExtractionAlgorithm.java | 115 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/ |
D | CameraTest.java | 33 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/ |
D | StateView.java | 139 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/TV/tuner/tests/assets/ |
D | capture_kqed.ts | 4 Pǀ�� ���=��, �h l�ܙ�GA� 26 …��~Ì�߮Nq<bܨPE����q�7f+N���O��>I��}�����$Biʆ�W��n#�L���;�٠�����m%�h�q�F��eVåg��2�Gj�l�… 39 …��#��0�˔�Kq0bܠ@�����/T��=�;��(Õ��XjyG�?fY����oj���9i�by�MF2�j��L�F�4h%J����QOq���-��x��… 40 ,P�h�M����Q��Fk3�R�]�2�Y�m 4@vv�3�r"�rc��%��Hw 79 …�v��G��M�r�~�l���L��,�11��?<��1mC���(krV��V�}GΡ����Z��"�7���R7h���7,'��@��$�X�e… 120 …a��a]2s�Xē�� �G����1i�B)�������������������F�-�1S��nM��H����h�1����h�� �%$A��ǵą���… 122 …vt#�Gߋ-?L�.�WB�� �Vҷ�)P��!�P�Дb��0�Z<��֏G��fO��z�k��B��dtM��s�c��h�����~�i��H�^^?Nrn�… 129 ���M����4q��@�{�g����������9�vw���zH�p���})��}�Z��k�`0�v�^�3G0�N�]T�E4�~����j�/���������,� 130 H�*������]'�v|3� 131 QR�������lI��k�G��.�a��z{w�N;$u67�|���mzI��+Q#>�vK��`$?P�/�����![ۂ���+�p�p��#��D1�… [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/ |
D | HistogramView.java | 46 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/DocumentsUI/tests/res/raw/ |
D | images_tar | 13 ���ڪ��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+�ȪkO�q���:$B�_�;��䶢���o�s�e}�J�)��h)ΞD[�&Z�/�gY�MN… 19 …h�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/ |
D | PhotoFallbackEffect.java | 95 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()
|
D | PhotoView.java | 481 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 …]
|
D | GLRootView.java | 231 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/ |
D | rapidjsontest.cpp | 69 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/ |
D | Spline.java | 213 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 …]
|
D | GeometryMathUtils.java | 54 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 …]
|
/packages/apps/LegacyCamera/jni/feature_stab/src/dbregtest/ |
D | dbregtest.cpp | 147 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/ |
D | TaskJpegEncode.java | 103 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 stubConvertYUV420ImageToPackedNV21() argument 135 final int y_size = w * h; in stubConvertYUV420ImageToPackedNV21() 136 final int data_offset = w * h; in stubConvertYUV420ImageToPackedNV21() 143 for (int i = 0; i < h / 2; i++) { in stubConvertYUV420ImageToPackedNV21() 146 dataCopy[offset] = (byte) ((255 * i) / (h / 2) & 255); in stubConvertYUV420ImageToPackedNV21() 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/ |
D | ImageLoader.java | 208 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/gallerycommon/src/com/android/gallery3d/common/ |
D | BitmapUtils.java | 68 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/ |
D | BaseFlags.java | 247 int h$ = 1; in hashCode() 248 h$ *= 1000003; in hashCode() 249 h$ ^= key.hashCode(); in hashCode() 250 h$ *= 1000003; in hashCode() 251 h$ ^= getDefaultValue() ? 1231 : 1237; in hashCode() 252 h$ *= 1000003; in hashCode() 253 h$ ^= description.hashCode(); in hashCode() 254 return h$; in hashCode()
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Pyramid.cpp | 115 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/ |
D | FixedScaleDrawable.java | 43 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()
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | RotateLayout.java | 66 int w = 0, h = 0; in onMeasure() local 72 h = mChild.getMeasuredHeight(); in onMeasure() 78 h = mChild.getMeasuredWidth(); in onMeasure() 81 setMeasuredDimension(w, h); in onMeasure() 90 mChild.setTranslationY(h); in onMeasure() 94 mChild.setTranslationY(h); in onMeasure()
|
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/ |
D | dbreg.h | 432 inline void db_GenerateHomographyLut(float ** lut_x,float ** lut_y,int w,int h,const double H[9]) in db_GenerateHomographyLut() argument 450 for ( int j = 0; j < h; ++j ) in db_GenerateHomographyLut() 480 …void db_WarpImageLutFast_rgb(const unsigned char * const * src, unsigned char ** dst, int w, int h, in db_WarpImageLutFast_rgb() argument 487 for ( int j = 0; j < h; ++j ) in db_WarpImageLutFast_rgb() 491 if ( xd >= w || yd >= h || in db_WarpImageLutFast_rgb() 526 … db_WarpImageLutBilinear_rgb(const unsigned char * const * src, unsigned char ** dst, int w, int h, in db_WarpImageLutBilinear_rgb() argument 533 for ( int j = 0; j < h; ++j ) in db_WarpImageLutBilinear_rgb() 537 if ( xd > w-2 || yd > h-2 || in db_WarpImageLutBilinear_rgb()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | GalleryPickerItem.java | 71 final int h = getHeight(); in onDraw() local 73 frameBounds.set(0, 0, w, h); in onDraw() 77 h - mOverlay.getIntrinsicHeight(), w, h); in onDraw() 89 protected void onSizeChanged(int w, int h, int oldw, int oldh) { in onSizeChanged() argument 90 super.onSizeChanged(w, h, oldw, oldh); in onSizeChanged()
|