Home
last modified time | relevance | path

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

1234567891011

/packages/services/BuiltInPrintService/jni/plugins/
Dlib_pwg.c41 static void _write_header_pwg(int pixel_width, int pixel_height, cups_page_header2_t *h, in _write_header_pwg() argument
43 if (h != NULL) { in _write_header_pwg()
44 strcpy(h->MediaClass, "PwgRaster"); in _write_header_pwg()
45 strcpy(h->MediaColor, ""); in _write_header_pwg()
46 strcpy(h->MediaType, ""); in _write_header_pwg()
47 strcpy(h->OutputType, ""); in _write_header_pwg()
48 h->AdvanceDistance = 0; in _write_header_pwg()
49 h->AdvanceMedia = CUPS_ADVANCE_FILE; in _write_header_pwg()
50 h->Collate = CUPS_FALSE; in _write_header_pwg()
51 h->CutMedia = CUPS_CUT_NONE; in _write_header_pwg()
[all …]
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dndrdic.c25 #define F_HINSI_TOP_ADDR(h) ((NJ_UINT8*)((h)+NJ_INT32_READ((h)+0x20))) argument
26 #define B_HINSI_TOP_ADDR(h) ((NJ_UINT8*)((h)+NJ_INT32_READ((h)+0x24))) argument
27 #define V2_F_HINSI(h) ((NJ_UINT16)(NJ_INT16_READ((h)+0x28))) argument
28 #define BUN_B_HINSI(h) ((NJ_UINT16)(NJ_INT16_READ((h)+0x2A))) argument
29 #define TAN_F_HINSI(h) ((NJ_UINT16)(NJ_INT16_READ((h)+0x30))) argument
30 #define TAN_B_HINSI(h) ((NJ_UINT16)(NJ_INT16_READ((h)+0x32))) argument
31 #define SUUJI_B_HINSI(h) ((NJ_UINT16)(NJ_INT16_READ((h)+0x34))) argument
32 #define MEISI_F_HINSI(h) ((NJ_UINT16)(NJ_INT16_READ((h)+0x36))) argument
33 #define MEISI_B_HINSI(h) ((NJ_UINT16)(NJ_INT16_READ((h)+0x38))) argument
34 #define JINMEI_F_HINSI(h) ((NJ_UINT16)(NJ_INT16_READ((h)+0x3A))) argument
[all …]
Dndbdic.c37 #define APPEND_YOMI_FLG(h) ((NJ_UINT8)(0x80 & (*((h) + 0x1C)))) argument
38 #define HINSI_NO_TOP_ADDR(h) ((NJ_UINT8*)((h) + NJ_INT32_READ((h) + 0x1D))) argument
39 #define FHINSI_NO_CNT(h) ((NJ_INT16)(NJ_INT16_READ((h) + 0x21))) argument
40 #define BHINSI_NO_CNT(h) ((NJ_INT16)(NJ_INT16_READ((h) + 0x23))) argument
41 #define HINSI_NO_BYTE(h) ((NJ_UINT8)(*((h) + 0x25))) argument
42 #define HINDO_NO_TOP_ADDR(h) ((NJ_UINT8*)((h) + NJ_INT32_READ((h) + 0x26))) argument
43 #define HINDO_NO_CNT(h) ((NJ_UINT8)(*((h) + 0x2A))) argument
44 #define STEM_AREA_TOP_ADDR(h) ((NJ_UINT8*)((h) + NJ_INT32_READ((h) + 0x2B))) argument
45 #define BIT_CANDIDATE_LEN(h) ((NJ_UINT8)(*((h) + 0x2F))) argument
46 #define BIT_FHINSI(h) ((NJ_UINT8)(*((h) + 0x30))) argument
[all …]
Dndfdic.c60 #define YOMI_INDX_TOP_ADDR(h) ((NJ_UINT8*)((h)+NJ_INT32_READ((h)+0x1C))) argument
61 #define YOMI_INDX_CNT(h) ((NJ_UINT16)(NJ_INT16_READ((h)+0x20))) argument
62 #define YOMI_INDX_BYTE(h) ((NJ_UINT16)(NJ_INT16_READ((h)+0x22))) argument
63 #define STEM_AREA_TOP_ADDR(h) ((NJ_UINT8*)((h)+NJ_INT32_READ((h)+0x24))) argument
64 #define STRS_AREA_TOP_ADDR(h) ((NJ_UINT8*)((h)+NJ_INT32_READ((h)+0x28))) argument
65 #define YOMI_AREA_TOP_ADDR(h) ((NJ_UINT8*)((h)+NJ_INT32_READ((h)+0x2C))) argument
/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/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/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/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/services/NetworkRecommendation/src/com/android/networkrecommendation/scoring/util/
DHashUtil.java80 byte[] h = getHash(ssid, "SHA-256"); in hashAsLong()
81 if (h == null || h.length < 8) { in hashAsLong()
84 return (h[0] & 0xFFL) << 56 in hashAsLong()
85 | (h[1] & 0xFFL) << 48 in hashAsLong()
86 | (h[2] & 0xFFL) << 40 in hashAsLong()
87 | (h[3] & 0xFFL) << 32 in hashAsLong()
88 | (h[4] & 0xFFL) << 24 in hashAsLong()
89 | (h[5] & 0xFFL) << 16 in hashAsLong()
90 | (h[6] & 0xFFL) << 8 in hashAsLong()
91 | (h[7] & 0xFFL); in hashAsLong()
/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/inputmethods/OpenWnn/libs/libwnnDictionary/include/
Dnj_dic.h70 #define NJ_GET_MAX_YLEN(h) ((NJ_INT16)(NJ_INT16_READ((h)+0x16)/sizeof(NJ_CHAR))) argument
72 #define NJ_GET_MAX_KLEN(h) ((NJ_INT16)(NJ_INT16_READ((h)+0x1A)/sizeof(NJ_CHAR))) argument
74 #define NJ_GET_DIC_TYPE(h) ((NJ_UINT32)(NJ_INT32_READ((h)+8))) argument
76 #define F_HINSI_SET_CNT(h) ((NJ_UINT16)(NJ_INT16_READ((h)+0x1C))) argument
77 #define B_HINSI_SET_CNT(h) ((NJ_UINT16)(NJ_INT16_READ((h)+0x1E))) argument
/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 …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryHistoryChart.java604 void finishPaths(int w, int h, int levelh, int startX, int y, Path curLevelPath, in finishPaths() argument
621 mChargingPath.lineTo(w, h-mChargingOffset); in finishPaths()
624 mScreenOnPath.lineTo(w, h-mScreenOnOffset); in finishPaths()
627 mGpsOnPath.lineTo(w, h-mGpsOnOffset); in finishPaths()
630 mFlashlightOnPath.lineTo(w, h-mFlashlightOnOffset); in finishPaths()
633 mCameraOnPath.lineTo(w, h-mCameraOnOffset); in finishPaths()
636 mWifiRunningPath.lineTo(w, h-mWifiRunningOffset); in finishPaths()
639 mCpuRunningPath.lineTo(w, h - mCpuRunningOffset); in finishPaths()
657 protected void onSizeChanged(int w, int h, int oldw, int oldh) { in onSizeChanged() argument
658 super.onSizeChanged(w, h, oldw, oldh); in onSizeChanged()
[all …]
/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/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/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/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/Calendar/src/com/android/calendar/recurrencepicker/
DWeekButton.java46 int h = getMeasuredHeight(); in onMeasure() local
48 if (h > 0 && w > 0) { in onMeasure()
49 if (w < h) { in onMeasure()
51 h = w; in onMeasure()
53 } else if (h < w) { in onMeasure()
55 w = h; in onMeasure()
59 setMeasuredDimension(w, h); in onMeasure()

1234567891011