/system/core/fastboot/ |
D | engine.c | 95 int (*func)(Action *a, int status, char *resp); 179 static int cb_default(Action *a, int status, char *resp) in cb_default() argument 185 fprintf(stderr,"OKAY [%7.3fs]\n", (split - a->start)); in cb_default() 186 a->start = split; in cb_default() 193 Action *a; in queue_action() local 197 a = calloc(1, sizeof(Action)); in queue_action() 198 if (a == 0) die("out of memory"); in queue_action() 201 cmdsize = vsnprintf(a->cmd, sizeof(a->cmd), fmt, ap); in queue_action() 204 if (cmdsize >= sizeof(a->cmd)) { in queue_action() 205 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/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/core/toolbox/ |
D | dynarray.c | 6 dynarray_init( dynarray_t *a ) in dynarray_init() argument 8 a->count = a->capacity = 0; in dynarray_init() 9 a->items = NULL; in dynarray_init() 14 dynarray_reserve_more( dynarray_t *a, int count ) in dynarray_reserve_more() argument 16 int old_cap = a->capacity; in dynarray_reserve_more() 20 int new_count = a->count + count; in dynarray_reserve_more() 25 if (count > max_cap - a->count) in dynarray_reserve_more() 28 new_count = a->count + count; in dynarray_reserve_more() 37 new_items = realloc(a->items, new_cap*sizeof(void*)); in dynarray_reserve_more() 41 a->items = new_items; in dynarray_reserve_more() [all …]
|
/system/core/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/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/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/core/debuggerd/ |
D | crasher.c | 104 __attribute__((noinline)) int crash3(int a) { in crash3() argument 105 *((int*) 0xdead) = a; in crash3() 106 return a*4; in crash3() 109 __attribute__((noinline)) int crash2(int a) { in crash2() argument 110 a = crash3(a) + 2; in crash2() 111 return a*3; in crash2() 114 __attribute__((noinline)) int crash(int a) { in crash() argument 115 a = crash2(a) + 1; in crash() 116 return a*2; in crash()
|
/system/core/libmincrypt/ |
D | rsa_e_3.c | 32 static void subM(const RSAPublicKey *key, uint32_t *a) { in subM() argument 36 A += (uint64_t)a[i] - key->n[i]; in subM() 37 a[i] = (uint32_t)A; in subM() 43 static int geM(const RSAPublicKey *key, const uint32_t *a) { in geM() argument 47 if (a[i] < key->n[i]) return 0; in geM() 48 if (a[i] > key->n[i]) return 1; in geM() 56 const uint32_t a, in montMulAdd() argument 58 uint64_t A = (uint64_t)a * b[0] + c[0]; in montMulAdd() 64 A = (A >> 32) + (uint64_t)a * b[i] + c[i]; in montMulAdd() 81 const uint32_t* a, in montMul() argument [all …]
|
D | rsa_e_f4.c | 33 uint32_t* a) { in subM() argument 37 A += (uint64_t)a[i] - key->n[i]; in subM() 38 a[i] = (uint32_t)A; in subM() 45 const uint32_t* a) { in geM() argument 49 if (a[i] < key->n[i]) return 0; in geM() 50 if (a[i] > key->n[i]) return 1; in geM() 58 const uint32_t a, in montMulAdd() argument 60 uint64_t A = (uint64_t)a * b[0] + c[0]; in montMulAdd() 66 A = (A >> 32) + (uint64_t)a * b[i] + c[i]; in montMulAdd() 83 const uint32_t* a, in montMul() argument [all …]
|
/system/media/audio_utils/include/audio_utils/ |
D | primitives.h | 93 int32_t mulAdd(int16_t in, int16_t v, int32_t a) in mulAdd() argument 99 : [in]"%r"(in), [v]"r"(v), [a]"r"(a) in mulAdd() 103 return a + in * (int32_t)v; in mulAdd() 129 int32_t mulAddRL(int left, uint32_t inRL, uint32_t vRL, int32_t a) in mulAddRL() argument 136 : [inRL]"%r"(inRL), [vRL]"r"(vRL), [a]"r"(a) in mulAddRL() 141 : [inRL]"%r"(inRL), [vRL]"r"(vRL), [a]"r"(a) in mulAddRL() 147 return a + (int16_t)(inRL&0xFFFF) * (int16_t)(vRL&0xFFFF); in mulAddRL() 149 return a + (int16_t)(inRL>>16) * (int16_t)(vRL>>16); in mulAddRL()
|
/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/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()
|
/system/extras/tests/bionic/libc/common/ |
D | test_drand48.c | 9 double_eq(double a, double b) in double_eq() argument 12 double diff = a -b; in double_eq() 14 if (a < 0) { in double_eq() 17 a = -a; in double_eq() 22 if (a >= b) in double_eq() 23 a = b; in double_eq() 25 return diff < a*1e-8; in double_eq()
|
/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/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 …]
|
D | SERVICES.TXT | 1 This file tries to document all requests a client can make 10 As a special exception, the server will respond with a 4-byte 23 After the OKAY, this is followed by a 4-byte hex len, 24 and a string that will be dumped as-is by the client, then 28 This is a variant of host:devices which doesn't close the 29 connection. Instead, a new device list description is sent 30 each time a device is added/removed or the state of a given 36 This is a special query that is sent to the ADB server when a 37 new emulator starts up. <port> is a decimal number corresponding 68 This is a special form of query, where the 'host-serial:<serial-number>:' [all …]
|
/system/extras/tests/fstest/ |
D | README | 3 will cause an error message along with a corresponding explicit (fully 28 that are in subdirectories of /dev/, such as /dev/input/, unlike a 30 a match to a directory name. 37 <min_mode> is a numeric mode mask, and a mode will match it if and only if 40 <max_mode> is a numeric mode mask, and a mode will match it if and only if 43 <min_uid> may be either a numeric user id, or a user name (which must not 44 start with a number). If it is a user name, getpwnam() will be used to 45 translate it to a numeric user id. 59 To get a list of all failing rules: 63 To get a fully specified set of rules for all failing files: [all …]
|
/system/vold/ |
D | VoldUtil.h | 20 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) argument
|
/system/core/sh/ |
D | nodetypes | 35 # contain a node type followed by a structure tag. Subsequent indented 40 # A field of a structure is described by the name of the field followed 41 # by a type. The currently implemented types are: 42 # nodeptr - a pointer to a node 43 # nodelist - a pointer to a list of nodes 44 # string - a pointer to a nul terminated string 47 # temp - a field that doesn't have to be copied when the node is copied 48 # The last two types should be followed by the text of a C declaration for 51 NSEMI nbinary # two commands separated by a semicolon 56 NCMD ncmd # a simple command [all …]
|
/system/core/include/ctest/ |
D | ctest.h | 49 #define assertSame(a, b) assertTrueWithSource(a == b, __FILE__, __LINE__, "Expected same value."); argument 54 #define assertNotSame(a, b) assertTrueWithSource(a != b, __FILE__, __LINE__,\ argument
|
/system/netd/ |
D | NetdConstants.h | 38 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) argument
|
/system/core/libsparse/ |
D | backed_block.c | 192 struct backed_block *a, struct backed_block *b) in merge_bb() argument 197 if (!a || !b) { in merge_bb() 201 assert(a->block < b->block); in merge_bb() 204 if (a->type != b->type) { in merge_bb() 209 block_len = a->len / bbl->block_size; /* rounds down */ in merge_bb() 210 if (a->block + block_len != b->block) { in merge_bb() 214 switch (a->type) { in merge_bb() 219 if (a->fill.val != b->fill.val) { in merge_bb() 224 if (a->file.filename != b->file.filename || in merge_bb() 225 a->file.offset + a->len != b->file.offset) { in merge_bb() [all …]
|
/system/extras/tests/memtest/ |
D | thumb.cpp | 18 int a = 0; in thumb_function_1() local 19 arm_function_3(&a); in thumb_function_1() 24 int a = 0; in thumb_function_2() local
|