/system/core/fastboot/device/ |
D | usb.cpp | 81 static int usb_ffs_write(usb_handle* h, const void* data, int len) { in usb_ffs_write() argument 82 D("about to write (fd=%d, len=%d)", h->bulk_in.get(), len); in usb_ffs_write() 88 int n = write(h->bulk_in.get(), buf, write_len); in usb_ffs_write() 90 D("ERROR: fd = %d, n = %d: %s", h->bulk_in.get(), n, strerror(errno)); in usb_ffs_write() 97 D("[ done fd=%d ]", h->bulk_in.get()); in usb_ffs_write() 101 static int usb_ffs_read(usb_handle* h, void* data, int len, bool allow_partial) { in usb_ffs_read() argument 102 D("about to read (fd=%d, len=%d)", h->bulk_out.get(), len); in usb_ffs_read() 109 int n = read(h->bulk_out.get(), buf, read_len); in usb_ffs_read() 111 D("ERROR: fd = %d, n = %d: %s", h->bulk_out.get(), n, strerror(errno)); in usb_ffs_read() 128 D("[ done fd=%d ]", h->bulk_out.get()); in usb_ffs_read() [all …]
|
D | usb_iouring.cpp | 68 static int usb_ffs_do_aio(usb_handle* h, T* const data, const int len) { in usb_ffs_do_aio() argument 69 const aio_block* aiob = read ? &h->read_aiob : &h->write_aiob; in usb_ffs_do_aio() 70 const int num_requests = DivRoundup<int>(len, h->io_size); in usb_ffs_do_aio() 75 const int buf_len = std::min(bytes_remain, static_cast<int>(h->io_size)); in usb_ffs_do_aio() 76 const auto ret = prep_async_io<read>(&h->ring, aiob->fd, cur_data, buf_len, 0); in usb_ffs_do_aio() 85 const int ret = io_uring_submit(&h->ring); in usb_ffs_do_aio() 94 const auto ret = TEMP_FAILURE_RETRY(io_uring_wait_cqe(&h->ring, &cqe)); in usb_ffs_do_aio() 105 << " request size: " << len << ", io_size: " << h->io_size in usb_ffs_do_aio() 110 io_uring_cqe_seen(&h->ring, cqe); in usb_ffs_do_aio() 118 static int usb_ffs_io_uring_read(usb_handle* h, void* data, int len, bool /* allow_partial */) { in usb_ffs_io_uring_read() argument [all …]
|
D | usb_client.cpp | 189 static void CloseFunctionFs(usb_handle* h) { in CloseFunctionFs() argument 190 h->bulk_in.reset(); in CloseFunctionFs() 191 h->bulk_out.reset(); in CloseFunctionFs() 192 h->control.reset(); in CloseFunctionFs() 195 static bool InitFunctionFs(usb_handle* h) { in InitFunctionFs() argument 198 if (h->control < 0) { // might have already done this before in InitFunctionFs() 200 h->control.reset(open(kUsbFfsFastbootEp0, O_RDWR)); in InitFunctionFs() 201 if (h->control < 0) { in InitFunctionFs() 206 auto ret = write(h->control.get(), &v2_descriptor, sizeof(v2_descriptor)); in InitFunctionFs() 212 ret = write(h->control.get(), &strings, sizeof(strings)); in InitFunctionFs() [all …]
|
D | usb.h | 49 int (*write)(usb_handle* h, const void* data, int len); 50 int (*read)(usb_handle* h, void* data, int len, bool allow_partial); 51 void (*close)(usb_handle* h);
|
/system/chre/apps/nearby/location/lbs/contexthub/nanoapps/nearby/crypto/ |
D | sha2.c | 36 ctx->h[0] = 0x6a09e667; in sha2init() 37 ctx->h[1] = 0xbb67ae85; in sha2init() 38 ctx->h[2] = 0x3c6ef372; in sha2init() 39 ctx->h[3] = 0xa54ff53a; in sha2init() 40 ctx->h[4] = 0x510e527f; in sha2init() 41 ctx->h[5] = 0x9b05688c; in sha2init() 42 ctx->h[6] = 0x1f83d9ab; in sha2init() 43 ctx->h[7] = 0x5be0cd19; in sha2init() 88 uint32_t i, a, b, c, d, e, f, g, h; in sha2processBlock() local 106 a = ctx->h[0]; in sha2processBlock() [all …]
|
/system/core/libcutils/ |
D | native_handle.cpp | 53 int close_internal(const native_handle_t* h, bool allowUntagged) { in close_internal() argument 54 if (!h) return 0; in close_internal() 56 if (h->version != sizeof(native_handle_t)) return -EINVAL; in close_internal() 58 const int numFds = h->numFds; in close_internal() 60 if (allowUntagged && numFds > 0 && android_fdsan_get_owner_tag(h->data[0]) == 0) { in close_internal() 63 tag = get_fdsan_tag(h); in close_internal() 67 android_fdsan_close_with_tag(h->data[i], tag); in close_internal() 107 native_handle_t* h = static_cast<native_handle_t*>(malloc(mallocSize)); in native_handle_create() local 108 if (h) { in native_handle_create() 109 h->version = sizeof(native_handle_t); in native_handle_create() [all …]
|
D | hashmap.cpp | 84 int h = map->hash(key); in hashKey() local 88 h += ~(h << 9); in hashKey() 89 h ^= (((unsigned int) h) >> 14); in hashKey() 90 h += (h << 4); in hashKey() 91 h ^= (((unsigned int) h) >> 10); in hashKey() 93 return h; in hashKey() 159 int h = keySize; in hashmapHash() local 163 h = h * 31 + *data; in hashmapHash() 166 return h; in hashmapHash()
|
D | trace-dev.inc | 22 #include <errno.h> 23 #include <fcntl.h> 24 #include <fnmatch.h> 25 #include <limits.h> 26 #include <pthread.h> 27 #include <stdatomic.h> 28 #include <stdlib.h> 29 #include <string.h> 30 #include <sys/types.h> 32 #include <cutils/compiler.h> [all …]
|
/system/core/init/ |
D | firmware_handler_test.cpp | 107 ExternalFirmwareHandler h("/dev/path/a.bin", getuid(), "/test"); in TEST() local 108 ASSERT_TRUE(h.match("/dev/path/a.bin")); in TEST() 109 ASSERT_FALSE(h.match("/dev/path/a.bi")); in TEST() 111 h = ExternalFirmwareHandler("/dev/path/a.*", getuid(), "/test"); in TEST() 112 ASSERT_TRUE(h.match("/dev/path/a.bin")); in TEST() 113 ASSERT_TRUE(h.match("/dev/path/a.bix")); in TEST() 114 ASSERT_FALSE(h.match("/dev/path/b.bin")); in TEST() 116 h = ExternalFirmwareHandler("/dev/*/a.bin", getuid(), "/test"); in TEST() 117 ASSERT_TRUE(h.match("/dev/path/a.bin")); in TEST() 118 ASSERT_TRUE(h.match("/dev/other/a.bin")); in TEST() [all …]
|
/system/core/libutils/abi-dumps/arm64/source-based/ |
D | libutils.so.lsdump | 10 "source_file" : "system/core/libcutils/include_outside_system/cutils/native_handle.h" 19 "source_file" : "system/core/libutils/include/utils/String16.h" 28 "source_file" : "system/core/libutils/include/utils/Printer.h" 37 "source_file" : "system/logging/liblog/include_vndk/log/log_read.h" 46 "source_file" : "system/core/libsystem/include/system/graphics.h" 53 "source_file" : "system/core/libsystem/include/system/graphics.h" 1494 "source_file" : "system/core/libprocessgroup/include/processgroup/sched_policy.h", 1519 "source_file" : "system/core/libsystem/include/system/graphics-base-v1.0.h", 1536 "source_file" : "system/core/libsystem/include/system/graphics-base-v1.2.h", 1585 "source_file" : "system/logging/liblog/include_vndk/android/log.h", [all …]
|
/system/core/libutils/abi-dumps/arm_arm64/source-based/ |
D | libutils.so.lsdump | 10 "source_file" : "system/core/libcutils/include_outside_system/cutils/native_handle.h" 19 "source_file" : "system/core/libutils/include/utils/String16.h" 28 "source_file" : "system/core/libutils/include/utils/Printer.h" 37 "source_file" : "system/logging/liblog/include_vndk/log/log_read.h" 46 "source_file" : "system/core/libsystem/include/system/graphics.h" 53 "source_file" : "system/core/libsystem/include/system/graphics.h" 1490 "source_file" : "system/core/libprocessgroup/include/processgroup/sched_policy.h", 1515 "source_file" : "system/core/libsystem/include/system/graphics-base-v1.0.h", 1532 "source_file" : "system/core/libsystem/include/system/graphics-base-v1.2.h", 1581 "source_file" : "system/logging/liblog/include_vndk/android/log.h", [all …]
|
/system/tools/hidl/c2hal/test/ |
D | Android.bp | 38 "simple.h", 41 "android/hardware/c2hal_test/1.0/BnHwSimple.h", 42 "android/hardware/c2hal_test/1.0/BpHwSimple.h", 43 "android/hardware/c2hal_test/1.0/BsSimple.h", 44 "android/hardware/c2hal_test/1.0/IHwSimple.h", 45 "android/hardware/c2hal_test/1.0/ISimple.h", 46 "android/hardware/c2hal_test/1.0/BnHwSimpleLocation.h", 47 "android/hardware/c2hal_test/1.0/BpHwSimpleLocation.h", 48 "android/hardware/c2hal_test/1.0/BsSimpleLocation.h", 49 "android/hardware/c2hal_test/1.0/IHwSimpleLocation.h", [all …]
|
/system/tools/hidl/ |
D | hidl-gen_l.ll | 32 #include "Annotation.h" 33 #include "AST.h" 34 #include "ArrayType.h" 35 #include "CompoundType.h" 36 #include "ConstantExpression.h" 37 #include "DeathRecipientType.h" 38 #include "DocComment.h" 39 #include "EnumType.h" 40 #include "HandleType.h" 41 #include "MemoryType.h" [all …]
|
/system/teeui/libteeui/src/ |
D | button.cpp | 42 for (int y = 0; y < box.h().count(); ++y) { in draw() 67 bottom * (intBounds.h() - intRadius))); in draw() 73 for (int y = 0; y < cBounds.h().count(); ++y) { in draw() 107 if (auto error = drawBox(Box<intpxs>(0, intBounds.h() - intRadius, intRadius, intRadius) in draw() 117 if (auto error = drawBox(Box<intpxs>(intBounds.w() - intRadius, intBounds.h() - intRadius, in draw() 126 intBounds.h() - intRadius - intRadius) in draw() 132 drawBox(Box<intpxs>(0, intRadius, intRadius, intBounds.h() - intRadius - intRadius) in draw() 144 intBounds.h() - intRadius - intRadius) in draw() 149 if (auto error = drawBox(Box<intpxs>(intRadius, intBounds.h() - intRadius, in draw() 163 auto start = PxPoint{bounds.w() - coBBox.w(), bounds.h() - coBBox.h()} / pxs(2.0); in draw() [all …]
|
/system/core/fastboot/ |
D | bootimg_utils.cpp | 37 static void bootimg_set_cmdline_v3_and_above(boot_img_hdr_v3* h, const std::string& cmdline) { in bootimg_set_cmdline_v3_and_above() argument 38 if (cmdline.size() >= sizeof(h->cmdline)) die("command line too large: %zu", cmdline.size()); in bootimg_set_cmdline_v3_and_above() 39 strcpy(reinterpret_cast<char*>(h->cmdline), cmdline.c_str()); in bootimg_set_cmdline_v3_and_above() 42 void bootimg_set_cmdline(boot_img_hdr_v2* h, const std::string& cmdline) { in bootimg_set_cmdline() argument 43 if (h->header_version >= 3) { in bootimg_set_cmdline() 44 return bootimg_set_cmdline_v3_and_above(reinterpret_cast<boot_img_hdr_v3*>(h), cmdline); in bootimg_set_cmdline() 46 if (cmdline.size() >= sizeof(h->cmdline)) die("command line too large: %zu", cmdline.size()); in bootimg_set_cmdline() 47 strcpy(reinterpret_cast<char*>(h->cmdline), cmdline.c_str()); in bootimg_set_cmdline()
|
/system/tools/hidl/test/cpp_impl_test/ |
D | Android.bp | 23 "FooCallback.h", 24 "Foo.h", 25 "MyTypes.h", 26 "Simple.h", 27 "TheirTypes.h", 28 "Vendor.h",
|
/system/teeui/test/ |
D | teeui_device_config.cpp | 42 void saveToPpm(const uint32_t* data, uint32_t w, uint32_t h, uint32_t linestride) { in saveToPpm() argument 53 out << "P6\n" << w << " " << h << "\n255\n"; in saveToPpm() 56 for (uint32_t line = 0; line < h; line++) { in saveToPpm() 83 uint32_t h = device_info_ptr->height_; in runRenderTest() local 85 uint32_t buffer_size = h * linestride; in runRenderTest() 91 sCurrentExample->renderUIIntoBuffer(0, 0, w, h, linestride, buffer.data(), buffer_size); in runRenderTest() 94 saveToPpm(buffer.data(), w, h, linestride); in runRenderTest()
|
/system/core/libstats/expresslog/ |
D | Android.bp | 53 name: "statslog_express.h", 55 …cmd: "$(location stats-log-api-gen) --header $(genDir)/statslog_express.h --module expresslog --na… 57 "statslog_express.h", 64 …_express.cpp --module expresslog --namespace android,expresslog --importHeader statslog_express.h", 73 generated_headers: ["statslog_express.h"], 74 export_generated_headers: ["statslog_express.h"],
|
/system/apex/apexd/ |
D | apexd_verity.cpp | 46 uint8_t HexToBin(char h) { in HexToBin() argument 47 if (h >= 'A' && h <= 'H') return h - 'A' + 10; in HexToBin() 48 if (h >= 'a' && h <= 'h') return h - 'a' + 10; in HexToBin() 49 return h - '0'; in HexToBin()
|
/system/extras/tests/framebuffer/ |
D | fb_test.c | 207 void draw_grid(int w, int h, void* _loc) { in draw_grid() argument 213 for (j = 0; j < h/2; j++) { in draw_grid() 226 for (; j < h; j++) { in draw_grid() 241 void clear_screen(int w, int h, void* _loc) in clear_screen() argument 248 for (j = 0; j < h; j++) in clear_screen() 258 int h; in main() local 272 h = atoi(argv[3]); in main() 275 h = vi.yres; in main() 281 draw_grid(w, h, gr_fbs[id].data); in main()
|
/system/tools/hidl/c2hal/ |
D | c2hal_l.ll | 31 #include "AST.h" 32 #include "Declaration.h" 33 #include "Type.h" 34 #include "VarDeclaration.h" 35 #include "FunctionDeclaration.h" 36 #include "CompositeDeclaration.h" 37 #include "Define.h" 38 #include "Include.h" 39 #include "EnumVarDeclaration.h" 40 #include "Note.h" [all …]
|
/system/core/libcutils/include/cutils/ |
D | native_handle.h | 64 int native_handle_close(const native_handle_t* h); 71 int native_handle_close_with_tag(const native_handle_t* h); 118 int native_handle_delete(native_handle_t* h);
|
/system/core/libcutils/include_outside_system/cutils/ |
D | native_handle.h | 64 int native_handle_close(const native_handle_t* h); 71 int native_handle_close_with_tag(const native_handle_t* h); 118 int native_handle_delete(native_handle_t* h);
|
/system/extras/ioshark/ |
D | ioshark_bench_subr.c | 44 struct files_db_handle *h; in files_db_create_handle() local 47 h = malloc(sizeof(struct files_db_handle)); in files_db_create_handle() 49 h->files_db_buckets[i] = NULL; in files_db_create_handle() 50 return h; in files_db_create_handle() 56 struct files_db_handle *h = (struct files_db_handle *)handle; in files_db_lookup_byfileno() local 60 db_node = h->files_db_buckets[hash]; in files_db_lookup_byfileno() 72 struct files_db_handle *h = (struct files_db_handle *)handle; in files_db_add_byfileno() local 84 db_node->next = h->files_db_buckets[hash]; in files_db_add_byfileno() 85 h->files_db_buckets[hash] = db_node; in files_db_add_byfileno() 98 struct files_db_handle *h = (struct files_db_handle *)handle; in files_db_fsync_discard_files() local [all …]
|
/system/core/libsparse/ |
D | simg_dump.py | 147 h = hashlib.sha1() 148 h.update(data) 149 curhash = h.hexdigest() 160 h = hashlib.sha1() 163 h.update(data) 164 curhash = h.hexdigest()
|