Home
last modified time | relevance | path

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

12345678910>>...15

/packages/modules/adb/client/
Dusb_linux.cpp304 static int usb_bulk_write(usb_handle* h, const void* data, int len) { in usb_bulk_write() argument
305 std::unique_lock<std::mutex> lock(h->mutex); in usb_bulk_write()
308 usbdevfs_urb* urb = &h->urb_out; in usb_bulk_write()
311 urb->endpoint = h->ep_out; in usb_bulk_write()
316 if (h->dead) { in usb_bulk_write()
321 if (TEMP_FAILURE_RETRY(ioctl(h->fd, USBDEVFS_SUBMITURB, urb)) == -1) { in usb_bulk_write()
325 h->urb_out_busy = true; in usb_bulk_write()
328 if (h->cv.wait_until(lock, now + 5s) == std::cv_status::timeout || h->dead) { in usb_bulk_write()
333 if (!h->urb_out_busy) { in usb_bulk_write()
343 static int usb_bulk_read(usb_handle* h, void* data, int len) { in usb_bulk_read() argument
[all …]
Dtransport_usb.cpp44 static int UsbReadMessage(usb_handle* h, amessage* msg) { in UsbReadMessage() argument
48 size_t usb_packet_size = usb_get_max_packet_size(h); in UsbReadMessage()
53 int n = usb_read(h, buffer, usb_packet_size); in UsbReadMessage()
61 return usb_read(h, msg, sizeof(*msg)); in UsbReadMessage()
67 static int UsbReadPayload(usb_handle* h, apacket* p) { in UsbReadPayload() argument
75 size_t usb_packet_size = usb_get_max_packet_size(h); in UsbReadPayload()
87 int rc = usb_read(h, &p->payload[0], p->payload.size()); in UsbReadPayload()
96 return usb_read(h, &p->payload[0], p->payload.size()); in UsbReadPayload()
193 void init_usb_transport(atransport* t, usb_handle* h) { in init_usb_transport() argument
195 auto connection = std::make_unique<UsbConnection>(h); in init_usb_transport()
[all …]
/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/modules/StatsD/statsd/src/
Dhash.cpp56 uint32_t h = static_cast<uint32_t>(seed ^ n); in Hash32() local
64 h *= m; in Hash32()
65 h ^= k; in Hash32()
73 h ^= ByteAs32(data[2]) << 16; in Hash32()
76 h ^= ByteAs32(data[1]) << 8; in Hash32()
79 h ^= ByteAs32(data[0]); in Hash32()
80 h *= m; in Hash32()
85 h ^= h >> 13; in Hash32()
86 h *= m; in Hash32()
87 h ^= h >> 15; in Hash32()
[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/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/modules/adb/daemon/
Dframebuffer_service.cpp65 int w, h, f, c; in framebuffer_service() local
89 if(!ReadFdExactly(fd_screencap, &h, 4)) goto done; in framebuffer_service()
99 fbinfo.size = w * h * 4; in framebuffer_service()
101 fbinfo.height = h; in framebuffer_service()
113 fbinfo.size = w * h * 4; in framebuffer_service()
115 fbinfo.height = h; in framebuffer_service()
127 fbinfo.size = w * h * 3; in framebuffer_service()
129 fbinfo.height = h; in framebuffer_service()
141 fbinfo.size = w * h * 2; in framebuffer_service()
143 fbinfo.height = h; in framebuffer_service()
[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()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTestConnectivityManager.java97 NetworkCallbackInfo(Handler h) { in NetworkCallbackInfo() argument
98 handler = h; in NetworkCallbackInfo()
104 NetworkRequestInfo(NetworkRequest r, Handler h) { in NetworkRequestInfo() argument
105 super(h); in NetworkRequestInfo()
200 public void requestNetwork(NetworkRequest req, NetworkCallback cb, Handler h) { in requestNetwork() argument
204 registerSystemDefaultNetworkCallback(cb, h); in requestNetwork()
207 mAllCallbacks.put(cb, new NetworkRequestInfo(req, h)); in requestNetwork()
209 mRequested.put(cb, new NetworkRequestInfo(req, h)); in requestNetwork()
215 @NonNull NetworkCallback cb, @NonNull Handler h) { in registerSystemDefaultNetworkCallback() argument
217 mAllCallbacks.put(cb, new NetworkCallbackInfo(h)); in registerSystemDefaultNetworkCallback()
[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/modules/NeuralNetworks/common/operations/
DInstanceNormalization.cpp62 for (uint32_t h = 0; h < height; h++) { in instanceNormNhwc() local
64 T val = inputData[indexBase + (h * width + w) * depth]; in instanceNormNhwc()
71 for (uint32_t h = 0; h < height; h++) { in instanceNormNhwc() local
73 T val = inputData[indexBase + (h * width + w) * depth] - mean; in instanceNormNhwc()
80 for (uint32_t h = 0; h < height; h++) { in instanceNormNhwc() local
82 uint32_t ind = indexBase + (h * width + w) * depth; in instanceNormNhwc()
/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/providers/MediaProvider/jni/
DFuseDaemon.cpp775 handle* h = reinterpret_cast<handle*>(fi->fh); in pf_fallocate() local
776 auto err = fallocate(h->fd, mode, offset, length); in pf_fallocate()
827 handle* h = reinterpret_cast<handle*>(fi->fh); in pf_setattr() local
828 fd = h->fd; in pf_setattr()
1294 handle* h = create_handle_for_node(fuse, io_path, fd, result->uid, result->transforms_uid, node, in pf_open() local
1296 fi->fh = ptr_to_id(h); in pf_open()
1298 fi->direct_io = !h->cached; in pf_open()
1303 if (h->passthrough) { in pf_open()
1316 handle* h = reinterpret_cast<handle*>(fi->fh); in do_read() local
1319 buf.buf[0].fd = h->fd; in do_read()
[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/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/modules/NeuralNetworks/tools/api/
Dgenerate_api.sh55 doit canonical $(dirname $0)/Types.t ${CANONICALDIR}/Types.h
56 doit canonical $(dirname $0)/OperandTypes.t ${CANONICALDIR}/OperandTypes.h
57 doit canonical $(dirname $0)/OperationTypes.t ${CANONICALDIR}/OperationTypes.h
58 doit ndk $(dirname $0)/NeuralNetworksTypes.t ${NDKDIR}/NeuralNetworksTypes.h
65 check canonical $(dirname $0)/Types.t ${CANONICALDIR}/Types.h
66 check canonical $(dirname $0)/OperandTypes.t ${CANONICALDIR}/OperandTypes.h
67 check canonical $(dirname $0)/OperationTypes.t ${CANONICALDIR}/OperationTypes.h
68 check ndk $(dirname $0)/NeuralNetworksTypes.t ${NDKDIR}/NeuralNetworksTypes.h
DREADME.md3 There are certain pieces of `NeuralNetworksTypes.h`, `Types.h`,
4 `OperandTypes.h`, `OperationTypes.h`, and of our various `*.hal` files that
8 *template file* per API file (`NeuralNetworksTypes.h`, `Types.h`,
9 `OperandTypes.h`, `OperationTypes.h`, or `types.hal`) to produce that API file.
22 `NeuralNetworksTypes.h`, `Types.h`, `OperandTypes.h`, or `OperationTypes.h`
34 * `--output OUTPUT` path to generated output file (such as `Types.h`)
42 `ndk` (when generating `NeuralNetworksTypes.h`), `canonical` (when generating
43 `Types.h`, `OperandTypes.h`, and `OperationTypes.h`), `hal_1.0` (when generating
/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 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/modules/NeuralNetworks/tools/test_generator/tests/P_implicit_parameter/
Dstdout.txt.expect7 #include "../../TestGenerated.h"
51 { // See tools/test_generator/include/TestHarness.h:MixedTyped
60 { // See tools/test_generator/include/TestHarness.h:MixedTyped
72 { // See tools/test_generator/include/TestHarness.h:MixedTyped
81 { // See tools/test_generator/include/TestHarness.h:MixedTyped
133 { // See tools/test_generator/include/TestHarness.h:MixedTyped
142 { // See tools/test_generator/include/TestHarness.h:MixedTyped
154 { // See tools/test_generator/include/TestHarness.h:MixedTyped
163 { // See tools/test_generator/include/TestHarness.h:MixedTyped
215 { // See tools/test_generator/include/TestHarness.h:MixedTyped
[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/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()

12345678910>>...15