Home
last modified time | relevance | path

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

12345678910>>...12

/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/Camera/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/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/Camera2/tests/src/com/android/camera/unittest/
DCameraUnitTest.java29 int h = CameraUtil.ORIENTATION_HYSTERESIS; in testRoundOrientation() local
32 assertEquals(0, CameraUtil.roundOrientation(0 + 44 + h, 0)); in testRoundOrientation()
33 assertEquals(90, CameraUtil.roundOrientation(0 + 45 + h, 0)); in testRoundOrientation()
34 assertEquals(0, CameraUtil.roundOrientation(360 - 44 - h, 0)); in testRoundOrientation()
35 assertEquals(270, CameraUtil.roundOrientation(360 - 45 - h, 0)); in testRoundOrientation()
38 assertEquals(90, CameraUtil.roundOrientation(90 + 44 + h, 90)); in testRoundOrientation()
39 assertEquals(180, CameraUtil.roundOrientation(90 + 45 + h, 90)); in testRoundOrientation()
40 assertEquals(90, CameraUtil.roundOrientation(90 - 44 - h, 90)); in testRoundOrientation()
41 assertEquals(0, CameraUtil.roundOrientation(90 - 45 - h, 90)); in testRoundOrientation()
44 assertEquals(180, CameraUtil.roundOrientation(180 + 44 + h, 180)); in testRoundOrientation()
[all …]
/packages/apps/Camera2/tests_camera/src/com/android/camera/unittest/
DCameraUnitTest.java29 int h = CameraUtil.ORIENTATION_HYSTERESIS; in testRoundOrientation() local
32 assertEquals(0, CameraUtil.roundOrientation(0 + 44 + h, 0)); in testRoundOrientation()
33 assertEquals(90, CameraUtil.roundOrientation(0 + 45 + h, 0)); in testRoundOrientation()
34 assertEquals(0, CameraUtil.roundOrientation(360 - 44 - h, 0)); in testRoundOrientation()
35 assertEquals(270, CameraUtil.roundOrientation(360 - 45 - h, 0)); in testRoundOrientation()
38 assertEquals(90, CameraUtil.roundOrientation(90 + 44 + h, 90)); in testRoundOrientation()
39 assertEquals(180, CameraUtil.roundOrientation(90 + 45 + h, 90)); in testRoundOrientation()
40 assertEquals(90, CameraUtil.roundOrientation(90 - 44 - h, 90)); in testRoundOrientation()
41 assertEquals(0, CameraUtil.roundOrientation(90 - 45 - h, 90)); in testRoundOrientation()
44 assertEquals(180, CameraUtil.roundOrientation(180 + 44 + h, 180)); in testRoundOrientation()
[all …]
/packages/apps/Camera/tests/src/com/android/camera/unittest/
DCameraUnitTest.java29 int h = Util.ORIENTATION_HYSTERESIS; in testRoundOrientation() local
32 assertEquals(0, Util.roundOrientation(0 + 44 + h, 0)); in testRoundOrientation()
33 assertEquals(90, Util.roundOrientation(0 + 45 + h, 0)); in testRoundOrientation()
34 assertEquals(0, Util.roundOrientation(360 - 44 - h, 0)); in testRoundOrientation()
35 assertEquals(270, Util.roundOrientation(360 - 45 - h, 0)); in testRoundOrientation()
38 assertEquals(90, Util.roundOrientation(90 + 44 + h, 90)); in testRoundOrientation()
39 assertEquals(180, Util.roundOrientation(90 + 45 + h, 90)); in testRoundOrientation()
40 assertEquals(90, Util.roundOrientation(90 - 44 - h, 90)); in testRoundOrientation()
41 assertEquals(0, Util.roundOrientation(90 - 45 - h, 90)); in testRoundOrientation()
44 assertEquals(180, Util.roundOrientation(180 + 44 + h, 180)); in testRoundOrientation()
[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/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.java482 int h = bottom - top; in onLayout() local
483 mTileView.layout(0, 0, w, h); in onLayout()
484 mEdgeView.layout(0, 0, w, h); in onLayout()
486 mUndoBar.layout(0, h - mUndoBar.getMeasuredHeight(), w, h); in onLayout()
520 int h = getHeight(); in updateCameraRect() local
523 w = h; in updateCameraRect()
524 h = tmp; in updateCameraRect()
534 case 90: mCameraRect.set(h - b, l, h - t, r); break; in updateCameraRect()
535 case 180: mCameraRect.set(w - r, h - b, w - l, h - t); break; in updateCameraRect()
638 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/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/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/Camera/src/com/android/camera/ui/
DRotateLayout.java82 final int h = getMeasuredHeight(); in dispatchTouchEvent() local
88 mMatrix.setTranslate(0, -h); in dispatchTouchEvent()
91 mMatrix.setTranslate(-w, -h); in dispatchTouchEvent()
110 int h = getMeasuredHeight(); in dispatchDraw() local
116 canvas.translate(0, h); in dispatchDraw()
119 canvas.translate(w, h); in dispatchDraw()
134 int w = 0, h = 0; in onMeasure() local
140 h = mChild.getMeasuredHeight(); in onMeasure()
146 h = mChild.getMeasuredWidth(); in onMeasure()
149 setMeasuredDimension(w, h); in onMeasure()
[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/Settings/src/com/android/settings/fuelgauge/
DBatteryHistoryChart.java630 void finishPaths(int w, int h, int levelh, int startX, int y, Path curLevelPath, in finishPaths() argument
646 mChargingPath.lineTo(w, h-mChargingOffset); in finishPaths()
649 mScreenOnPath.lineTo(w, h-mScreenOnOffset); in finishPaths()
652 mGpsOnPath.lineTo(w, h-mGpsOnOffset); in finishPaths()
655 mWifiRunningPath.lineTo(w, h-mWifiRunningOffset); in finishPaths()
658 mCpuRunningPath.lineTo(w, h - mCpuRunningOffset); in finishPaths()
676 protected void onSizeChanged(int w, int h, int oldw, int oldh) { in onSizeChanged() argument
677 super.onSizeChanged(w, h, oldw, oldh); in onSizeChanged()
679 if (DEBUG) Log.d(TAG, "onSizeChanged: " + oldw + "x" + oldh + " to " + w + "x" + h); in onSizeChanged()
681 if (mLastWidth == w && mLastHeight == h) { in onSizeChanged()
[all …]
/packages/apps/MusicFX/src/com/android/musicfx/seekbar/
DAbsSeekBar.java233 protected void onSizeChanged(int w, int h, int oldw, int oldh) {
234 updateThumbPos(w, h);
237 private void updateThumbPos(int w, int h) {
251 setThumbPos(w, h, thumb, scale, 0);
258 h - mPaddingBottom - mPaddingTop);
263 d.setBounds(0, 0, w - mPaddingRight - mPaddingLeft, h - mPaddingBottom
268 setThumbPos(w, h, thumb, scale, gap);
275 int trackHeight = Math.min(mMaxHeight, h - mPaddingTop - mPaddingBottom);
282 setThumbPos(w, h, thumb, scale, 0);
288 … w - mPaddingRight - mPaddingLeft, h - mPaddingBottom - gapForCenteringTrack
[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/Camera2/src/com/android/camera/util/
DImageLoader.java182 int h = bitmap.getHeight(); in orientBitmap() local
188 w = h; in orientBitmap()
189 h = tmp; in orientBitmap()
193 matrix.setRotate(90, w / 2f, h / 2f); in orientBitmap()
196 matrix.setRotate(180, w / 2f, h / 2f); in orientBitmap()
199 matrix.setRotate(270, w / 2f, h / 2f); in orientBitmap()
208 matrix.setRotate(90, w / 2f, h / 2f); in orientBitmap()
212 matrix.setRotate(270, w / 2f, h / 2f); in orientBitmap()
285 int h = storedBounds.height(); in loadConstrainedBitmap() local
288 if (w <= 0 || h <= 0) { in loadConstrainedBitmap()
[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/Camera/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 …]

12345678910>>...12