/system/core/fastboot/ |
D | engine.c | 76 int (*func)(Action *a, int status, char *resp); 124 static int cb_default(Action *a, int status, char *resp) in cb_default() argument 130 fprintf(stderr,"OKAY [%7.3fs]\n", (split - a->start)); in cb_default() 131 a->start = split; in cb_default() 138 Action *a; in queue_action() local 142 a = calloc(1, sizeof(Action)); in queue_action() 143 if (a == 0) die("out of memory"); in queue_action() 146 cmdsize = vsnprintf(a->cmd, sizeof(a->cmd), fmt, ap); in queue_action() 149 if (cmdsize >= sizeof(a->cmd)) { in queue_action() 150 free(a); in queue_action() [all …]
|
D | fastboot_protocol.txt | 5 The fastboot protocol is a mechanism for communicating with bootloaders 7 allow it to be used across a wide range of devices and from hosts running 24 1. Host sends a command, which is an ascii string in a single 27 2. Client response with a single packet no greater than 64 bytes. 32 a. INFO -> the remaining 60 bytes are an informative message 37 of the response (if present) provide a textual failure message 53 4. Client responds with a single packet no greater than 64 bytes. 57 a. INFO -> display the remaining 60 bytes and return to #4 59 b. FAIL -> display the remaining 60 bytes (if present) as a failure 92 Host: "powerdown" send a command [all …]
|
/system/bt/stack/smp/ |
D | p_256_multprecision.c | 36 void multiprecision_copy(DWORD *c, DWORD *a, uint32_t keyLength) in multiprecision_copy() argument 39 c[i] = a[i]; in multiprecision_copy() 42 int multiprecision_compare(DWORD *a, DWORD *b, uint32_t keyLength) in multiprecision_compare() argument 46 if (a[i] > b[i]) in multiprecision_compare() 48 if (a[i] < b[i]) in multiprecision_compare() 54 int multiprecision_iszero(DWORD *a, uint32_t keyLength) in multiprecision_iszero() argument 57 if (a[i]) in multiprecision_iszero() 63 UINT32 multiprecision_dword_bits(DWORD a) in multiprecision_dword_bits() argument 66 for (i = 0; i < DWORD_BITS; i++, a >>= 1) in multiprecision_dword_bits() 67 if (a == 0) in multiprecision_dword_bits() [all …]
|
D | p_256_multprecision.h | 39 int multiprecision_compare(DWORD *a, DWORD *b, uint32_t keyLength); 40 int multiprecision_iszero(DWORD *a, uint32_t keyLength); 42 void multiprecision_copy(DWORD *c, DWORD *a, uint32_t keyLength); 43 UINT32 multiprecision_dword_bits (DWORD a); 44 UINT32 multiprecision_most_signdwords(DWORD *a, uint32_t keyLength); 45 UINT32 multiprecision_most_signbits(DWORD *a, uint32_t keyLength); 46 void multiprecision_inv_mod(DWORD *aminus, DWORD *a, uint32_t keyLength); 47 DWORD multiprecision_add(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength); // c=a+b 48 void multiprecision_add_mod(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength); 49 DWORD multiprecision_sub(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength); // c=a-b [all …]
|
/system/extras/ext4_utils/ |
D | sha1.c | 71 void do_R01(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *); 72 void do_R2(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *); 73 void do_R3(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *); 74 void do_R4(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *); 83 do_R01(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *block) in do_R01() argument 85 nR0(a,b,c,d,e, 0); nR0(e,a,b,c,d, 1); nR0(d,e,a,b,c, 2); nR0(c,d,e,a,b, 3); in do_R01() 86 nR0(b,c,d,e,a, 4); nR0(a,b,c,d,e, 5); nR0(e,a,b,c,d, 6); nR0(d,e,a,b,c, 7); in do_R01() 87 nR0(c,d,e,a,b, 8); nR0(b,c,d,e,a, 9); nR0(a,b,c,d,e,10); nR0(e,a,b,c,d,11); in do_R01() 88 nR0(d,e,a,b,c,12); nR0(c,d,e,a,b,13); nR0(b,c,d,e,a,14); nR0(a,b,c,d,e,15); in do_R01() 89 nR1(e,a,b,c,d,16); nR1(d,e,a,b,c,17); nR1(c,d,e,a,b,18); nR1(b,c,d,e,a,19); in do_R01() [all …]
|
/system/extras/ksmutils/ |
D | lookup3.c | 115 #define mix(a,b,c) \ argument 117 a -= c; a ^= rot(c, 4); c += b; \ 118 b -= a; b ^= rot(a, 6); a += c; \ 119 c -= b; c ^= rot(b, 8); b += a; \ 120 a -= c; a ^= rot(c,16); c += b; \ 121 b -= a; b ^= rot(a,19); a += c; \ 122 c -= b; c ^= rot(b, 4); b += a; \ 150 #define final(a,b,c) \ argument 153 a ^= c; a -= rot(c,11); \ 154 b ^= a; b -= rot(a,25); \ [all …]
|
/system/core/include/cutils/ |
D | atomic.h | 84 volatile atomic_int_least32_t* a = (volatile atomic_int_least32_t*)addr; in android_atomic_inc() local 86 return atomic_fetch_add_explicit(a, 1, memory_order_release); in android_atomic_inc() 92 volatile atomic_int_least32_t* a = (volatile atomic_int_least32_t*)addr; in android_atomic_dec() local 93 return atomic_fetch_sub_explicit(a, 1, memory_order_release); in android_atomic_dec() 99 volatile atomic_int_least32_t* a = (volatile atomic_int_least32_t*)addr; in android_atomic_add() local 100 return atomic_fetch_add_explicit(a, value, memory_order_release); in android_atomic_add() 106 volatile atomic_int_least32_t* a = (volatile atomic_int_least32_t*)addr; in android_atomic_and() local 107 return atomic_fetch_and_explicit(a, value, memory_order_release); in android_atomic_and() 113 volatile atomic_int_least32_t* a = (volatile atomic_int_least32_t*)addr; in android_atomic_or() local 114 return atomic_fetch_or_explicit(a, value, memory_order_release); in android_atomic_or() [all …]
|
/system/core/libpixelflinger/include/private/pixelflinger/ |
D | ggl_fixed.h | 87 GGLfixed gglSqrtx(GGLfixed a) CONST; 90 int32_t gglMulDivi(int32_t a, int32_t b, int32_t c); 133 inline GGLfixed gglMulAddx(GGLfixed x, GGLfixed y, GGLfixed a, int shift) CONST; 134 inline GGLfixed gglMulAddx(GGLfixed x, GGLfixed y, GGLfixed a, int shift) { in gglMulAddx() argument 141 : "%[x]"(x), [y]"r"(y), [a]"r"(a), [lshift] "I"(32-shift), [rshift] "I"(shift) in gglMulAddx() 148 : "%[x]"(x), [y]"r"(y), [a]"r"(a), [lshift] "r"(32-shift), [rshift] "r"(shift) in gglMulAddx() 154 inline GGLfixed gglMulSubx(GGLfixed x, GGLfixed y, GGLfixed a, int shift) CONST; 155 inline GGLfixed gglMulSubx(GGLfixed x, GGLfixed y, GGLfixed a, int shift) { in gglMulSubx() argument 162 : "%[x]"(x), [y]"r"(y), [a]"r"(a), [lshift] "I"(32-shift), [rshift] "I"(shift) in gglMulSubx() 169 : "%[x]"(x), [y]"r"(y), [a]"r"(a), [lshift] "r"(32-shift), [rshift] "r"(shift) in gglMulSubx() [all …]
|
/system/core/include/mincrypt/ |
D | p256.h | 51 p256_digit a[P256_NDIGITS]; member 59 void p256_init(p256_int* a); 62 void p256_clear(p256_int* a); 65 int p256_get_bit(const p256_int* a, int index); 70 const p256_int* a, 76 const p256_int* a, 85 const p256_int* a, 93 const p256_int* a, 98 p256_digit p256_shl(const p256_int* a, int n, p256_int* b); 101 void p256_shr(const p256_int* a, int n, p256_int* b); [all …]
|
/system/core/libpixelflinger/ |
D | fixed.cpp | 29 uint32_t a = s ? -x : x; in gglRecipQNormalized() local 32 if (ggl_unlikely(a <= 2LU)) { in gglRecipQNormalized() 40 const int32_t lz = gglClz(a); in gglRecipQNormalized() 41 a <<= lz; // 0.32 in gglRecipQNormalized() 42 uint32_t r = a; in gglRecipQNormalized() 46 if (a != 0x80000000) { in gglRecipQNormalized() 50 r = (((2LU<<30) - uint32_t((uint64_t(a)*r) >> 32)) * uint64_t(r)) >> 30; in gglRecipQNormalized() 51 r = (((2LU<<30) - uint32_t((uint64_t(a)*r) >> 32)) * uint64_t(r)) >> 30; in gglRecipQNormalized() 93 const GGLfixed a = x; in gglSqrtRecipx() local 95 x = ggl_sqrt_reciproc_approx_tab[(a>>(28-lz))&0x7]; in gglSqrtRecipx() [all …]
|
/system/core/libmincrypt/ |
D | p256.c | 52 void p256_init(p256_int* a) { in p256_init() argument 53 memset(a, 0, sizeof(*a)); in p256_init() 56 void p256_clear(p256_int* a) { p256_init(a); } in p256_clear() argument 63 int p256_is_zero(const p256_int* a) { in p256_is_zero() argument 65 for (i = 0; i < P256_NDIGITS; ++i) result |= P256_DIGIT(a, i); in p256_is_zero() 71 static p256_digit mulAdd(const p256_int* a, in mulAdd() argument 80 carry += (p256_ddigit)P256_DIGIT(a, i) * b; in mulAdd() 89 const p256_digit* a, in subTop() argument 97 borrow -= *a++; in subTop() 144 const p256_int* a, in p256_modmul() argument [all …]
|
D | rsa.c | 34 uint32_t* a) { in subM() argument 38 A += (uint64_t)a[i] - key->n[i]; in subM() 39 a[i] = (uint32_t)A; in subM() 46 const uint32_t* a) { in geM() argument 50 if (a[i] < key->n[i]) return 0; in geM() 51 if (a[i] > key->n[i]) return 1; in geM() 59 const uint32_t a, in montMulAdd() argument 61 uint64_t A = (uint64_t)a * b[0] + c[0]; in montMulAdd() 67 A = (A >> 32) + (uint64_t)a * b[i] + c[i]; in montMulAdd() 84 const uint32_t* a, in montMul() argument [all …]
|
/system/extras/tests/timetest/ |
D | timetest.c | 26 static struct timespec ts_sub(struct timespec a, struct timespec b) in ts_sub() argument 29 r.tv_sec = a.tv_sec - b.tv_sec; in ts_sub() 30 r.tv_nsec = a.tv_nsec - b.tv_nsec; in ts_sub() 42 static struct timespec ts_min(struct timespec a, struct timespec b) in ts_min() argument 44 if(a.tv_sec < b.tv_sec || (a.tv_sec == b.tv_sec && a.tv_nsec < b.tv_nsec)) in ts_min() 45 return a; in ts_min() 50 static struct timespec ts_max(struct timespec a, struct timespec b) in ts_max() argument 52 if(a.tv_sec < b.tv_sec || (a.tv_sec == b.tv_sec && a.tv_nsec < b.tv_nsec)) in ts_max() 55 return a; in ts_max()
|
/system/bt/stack/include/ |
D | bt_types.h | 246 #define ARRAY32_TO_STREAM(p, a) {register int ijk; for (ijk = 0; ijk < 32; ijk++) *(p)++… argument 247 #define ARRAY16_TO_STREAM(p, a) {register int ijk; for (ijk = 0; ijk < 16; ijk++) *(p)++… argument 248 #define ARRAY8_TO_STREAM(p, a) {register int ijk; for (ijk = 0; ijk < 8; ijk++) *(p)++… argument 249 #define BDADDR_TO_STREAM(p, a) {register int ijk; for (ijk = 0; ijk < BD_ADDR_LEN; ijk++) *(p)++… argument 250 #define LAP_TO_STREAM(p, a) {register int ijk; for (ijk = 0; ijk < LAP_LEN; ijk++) *(p)++… argument 251 #define DEVCLASS_TO_STREAM(p, a) {register int ijk; for (ijk = 0; ijk < DEV_CLASS_LEN;ijk++) *(p)++… argument 252 #define ARRAY_TO_STREAM(p, a, len) {register int ijk; for (ijk = 0; ijk < len; ijk++) *(p)++… argument 253 #define REVERSE_ARRAY_TO_STREAM(p, a, len) {register int ijk; for (ijk = 0; ijk < len; ijk++) *(p)… argument 259 #define STREAM_TO_BDADDR(a, p) {register int ijk; register UINT8 *pbda = (UINT8 *)a + BD_ADDR_LEN… argument 260 #define STREAM_TO_ARRAY32(a, p) {register int ijk; register UINT8 *_pa = (UINT8 *)a + 31; for (ijk… argument [all …]
|
D | l2c_api.h | 320 #define L2CA_REGISTER(a,b,c) L2CA_Register(a,(tL2CAP_APPL_INFO *)b) argument 321 #define L2CA_DEREGISTER(a) L2CA_Deregister(a) argument 322 #define L2CA_CONNECT_REQ(a,b,c,d) L2CA_ErtmConnectReq(a,b,c) argument 323 #define L2CA_CONNECT_RSP(a,b,c,d,e,f,g) L2CA_ErtmConnectRsp(a,b,c,d,e,f) argument 324 #define L2CA_CONFIG_REQ(a,b) L2CA_ConfigReq(a,b) argument 325 #define L2CA_CONFIG_RSP(a,b) L2CA_ConfigRsp(a,b) argument 326 #define L2CA_DISCONNECT_REQ(a) L2CA_DisconnectReq(a) argument 327 #define L2CA_DISCONNECT_RSP(a) L2CA_DisconnectRsp(a) argument 328 #define L2CA_DATA_WRITE(a, b) L2CA_DataWrite(a, b) argument
|
/system/extras/perfprofd/tests/ |
D | README.txt | 2 (a.k.a. "$ANDROID_BUILD_TOP"/development/testrunner/runtest.py). 6 1. One of the testpoints in this test suite performs a live 'perf' 10 2. The daemon under test, perfprofd, is broken into a main function, a 11 "core" library, and a "utils library. Picture: 19 +-----------+ perfprofdcore.a 26 +-----------+ perfprofdutils.a 32 Because the daemon tends to spend a lot of time sleeping/waiting, 33 it is impractical to try to test it directly. Instead we insert a 34 mock utilities layer and then have a test driver that invokes the 43 +-----------+ perfprofdcore.a [all …]
|
/system/extras/libpagemap/ |
D | pm_memusage.c | 23 void pm_memusage_add(pm_memusage_t *a, pm_memusage_t *b) { in pm_memusage_add() argument 24 a->vss += b->vss; in pm_memusage_add() 25 a->rss += b->rss; in pm_memusage_add() 26 a->pss += b->pss; in pm_memusage_add() 27 a->uss += b->uss; in pm_memusage_add() 28 a->swap += b->swap; in pm_memusage_add()
|
/system/media/audio_utils/ |
D | fixedfft.cpp | 87 static inline int32_t mult(int32_t a, int32_t b) in mult() argument 91 __asm__("smuad %0, %0, %1" : "+r" (t) : "r" (a)); in mult() 92 __asm__("smusdx %0, %0, %1" : "+r" (b) : "r" (a)); in mult() 96 return (((a >> 16) * (b >> 16) + (int16_t)a * (int16_t)b) & ~0xFFFF) | in mult() 97 ((((a >> 16) * (int16_t)b - (int16_t)a * (b >> 16)) >> 16) & 0xFFFF); in mult() 101 static inline int32_t half(int32_t a) in half() argument 104 __asm__("shadd16 %0, %0, %1" : "+r" (a) : "r" (0)); in half() 105 return a; in half() 107 return ((a >> 1) & ~0x8000) | (a & 0x8000); in half()
|
/system/extras/showslab/ |
D | showslab.c | 9 #define STRINGIFY_ARG(a) #a argument 10 #define STRINGIFY(a) STRINGIFY_ARG(a) argument 169 static struct slab_info *merge_objs(struct slab_info *a, struct slab_info *b) in merge_objs() argument 174 while (a && b) { in merge_objs() 175 if (sort_func(a, b)) { in merge_objs() 176 p->next = a; in merge_objs() 177 p = a; in merge_objs() 178 a = a->next; in merge_objs() 186 p->next = (a == NULL) ? b : a; in merge_objs() 195 struct slab_info *a, *b; in slabsort() local [all …]
|
/system/core/debuggerd/ |
D | crasher.c | 101 __attribute__((noinline)) static int crash3(int a) { in crash3() argument 102 *((int*) 0xdead) = a; in crash3() 103 return a*4; in crash3() 106 __attribute__((noinline)) static int crash2(int a) { in crash2() argument 107 a = crash3(a) + 2; in crash2() 108 return a*3; in crash2() 111 __attribute__((noinline)) static int crash(int a) { in crash() argument 112 a = crash2(a) + 1; in crash() 113 return a*2; in crash() 122 int* a = (int *)(&do_action); in sigsegv_non_null() local [all …]
|
/system/core/adb/ |
D | OVERVIEW.TXT | 8 connected to or running on a given host developer machine 12 DDMS). These commands are what is called a 'service' in ADB. 14 As a whole, everything works through the following components: 18 This is a background process that runs on the host machine. Its purpose 22 It thus maintains a list of "connected devices" and assigns a 'state' 33 The 'adbd' program runs as a background process within an Android device 35 (through USB for devices, through TCP for emulators) and provide a 38 The ADB server considers that a device is ONLINE when it has successfully 40 meaning that the ADB server detected a new device/emulator, but could not 48 The 'adb' command-line program is used to run adb commands from a shell [all …]
|
D | protocol.txt | 2 --- a replacement for aproto ------------------------------------------- 13 The host side becomes a simple comms bridge with no "UI", which will 15 a device or emulator that is connected to the bridge. 27 The transport layer deals in "messages", which consist of a 24 byte 28 header followed (optionally) by a payload. The header consists of 6 47 is represented by a quoted string or an empty string if none should be 51 *sender* of the message, so for a receiver, the meanings are effectively 58 The CONNECT message establishes the presence of a remote system. 65 Both sides send a CONNECT message when the connection between them is 66 established. Until a CONNECT message is received no other messages may [all …]
|
/system/bt/embdrv/sbc/decoder/include/ |
D | oi_utils.h | 109 #define OI_ScheduleCallback(f, a, t) OI_ScheduleCallbackFunction(f, a, t, NULL); argument 360 #define OI_MAX(a, b) (((a) < (b)) ? (b) : (a) ) argument 361 #define OI_MIN(a, b) (((a) > (b)) ? (b) : (a) ) argument
|
/system/extras/f2fs_utils/ |
D | f2fs_sparseblock.h | 28 #define ver_after(a, b) (typecheck(unsigned long long, a) && \ argument 30 ((long long)((a) - (b)) > 0)) 32 #define ver_equal(a, b) (typecheck(unsigned long long, a) && \ argument 34 ((long long)((a) - (b)) == 0))
|
/system/core/base/include/base/ |
D | macros.h | 122 #define ARRAYSIZE_UNSAFE(a) \ argument 123 ((sizeof(a) / sizeof(*(a))) / \ 124 static_cast<size_t>(!(sizeof(a) % sizeof(*(a)))))
|