/system/core/run-as/ |
H A D | package.c | 348 * is reached. Adjust '*pp' on exit. Return decimal value or -1 351 * If the value is larger than INT_MAX, -1 will be returned, 361 int value = 0; local 377 val2 = value*10 + (int)d; 378 if (val2 < value) 380 value = val2; 387 value = -1; 389 return value;
|
/system/core/init/ |
H A D | builtins.c | 53 void add_environment(const char *name, const char *value); 57 static int write_file(const char *path, const char *value) argument 66 len = strlen(value); 69 ret = write(fd, value, len); 551 const char *value = args[2]; local 555 ret = expand_props(prop_val, value, sizeof(prop_val)); 557 ERROR("cannot expand '%s' while assigning to '%s'\n", value, name); 643 const char *value = args[2]; local 647 ret = expand_props(prop_val, value, sizeof(prop_val)); 649 ERROR("cannot expand '%s' while writing to '%s'\n", value, pat [all...] |
H A D | init.c | 105 /* add_environment - add "key=value" to the current environment */ 268 add_environment(ei->name, ei->value); 428 void property_changed(const char *name, const char *value) argument 431 queue_property_triggers(name, value); 616 char *value = strchr(name, '='); local 619 if (value == 0) return; 620 *value++ = 0; 625 selinux_enabled = atoi(value); 636 property_set( buff, value ); 641 strlcpy(qemu, value, sizeo [all...] |
H A D | init_parser.c | 513 void queue_property_triggers(const char *name, const char *value) argument 525 (!strcmp(test + name_length + 1, value) || 540 /* parse property name and value 541 syntax is property:<name>=<value> */ 546 const char* value; local 554 /* does the property exist, and match the trigger value? */ 555 value = property_get(prop_name); 556 if (value && (!strcmp(equals + 1, value) || 678 parse_error(state, "priority value mus [all...] |
/system/core/libctest/ |
H A D | ctest.c | 150 void assertTrueWithSource(int value, const char* file, int line, char* message) { argument 151 if (!value) {
|
/system/core/toolbox/ |
H A D | sendevent.c | 17 __s32 value; member in struct:input_event 35 #define EVIOCGABS(abs) _IOR('E', 0x40 + abs, struct input_absinfo) /* get abs value/limits */ 36 #define EVIOCSABS(abs) _IOW('E', 0xc0 + abs, struct input_absinfo) /* set abs value/limits */ 57 fprintf(stderr, "use: %s device type code value\n", argv[0]); 73 event.value = atoi(argv[4]);
|
H A D | getevent.c | 35 static const char *get_label(const struct label *labels, int value) argument 37 while(labels->name && value != labels->value) { 178 printf(" : value %d, min %d, max %d, fuzz %d, flat %d, resolution %d", 179 abs.value, abs.minimum, abs.maximum, abs.fuzz, abs.flat, 193 static void print_event(int type, int code, int value, int print_flags) argument 208 value_label = get_label(key_value_labels, value); 217 value_label = get_label(mt_tool_labels, value); 254 printf(" %08x ", value); 256 printf("%04x %04x %08x", type, code, value); [all...] |
/system/core/adb/ |
H A D | adb.c | 304 char value[PROPERTY_VALUE_MAX]; 305 property_get(cnxn_props[i], value, ""); 306 len = snprintf(buf, remaining, "%s=%s;", cnxn_props[i], value); 876 char value[PROPERTY_VALUE_MAX]; local 880 property_get("persist.adb.trace_mask", value, ""); 881 if (sscanf(value, "%x", &adb_trace_mask) != 1) 1060 char value[PROPERTY_VALUE_MAX]; 1065 property_get("ro.kernel.qemu", value, ""); 1066 if (strcmp(value, "1") != 0) { 1067 property_get("ro.secure", value, " 1092 char value[PROPERTY_VALUE_MAX]; local [all...] |
H A D | services.c | 113 char value[PROPERTY_VALUE_MAX]; local 120 property_get("ro.debuggable", value, ""); 121 if (strcmp(value, "1") != 0) { 138 char value[PROPERTY_VALUE_MAX]; local 148 snprintf(value, sizeof(value), "%d", port); 149 property_set("service.adb.tcp.port", value);
|
/system/core/libcorkscrew/arch-arm/ |
H A D | backtrace-arm.c | 88 /* Special EXIDX value that indicates that a frame cannot be unwound. */ 234 ALOGV("next_byte: ptr=0x%08x, value=0x%02x", stream->ptr, *out_value); 239 static void set_reg(unwind_state_t* state, uint32_t reg, uint32_t value) { argument 240 ALOGV("set_reg: reg=%d, value=0x%08x", reg, value); 241 state->gregs[reg] = value; 249 uint32_t value; local 250 if (!try_get_word(memory, sp, &value)) { 256 set_reg(state, i, value); 369 uint32_t value local [all...] |
/system/core/fastboot/ |
H A D | engine.c | 431 static int match(char *str, const char **value, unsigned count) argument 438 const char *val = value[n]; 459 const char **value = a->data; local 479 yes = match(resp, value, count); 492 invert ? "rejects" : "requires", value[0]); 494 fprintf(stderr," or '%s'", value[n]); 511 int invert, unsigned nvalues, const char **value) 516 a->data = value; 510 fb_queue_require(const char *prod, const char *var, int invert, unsigned nvalues, const char **value) argument
|
/system/core/include/usbhost/ |
H A D | usbhost.h | 183 int value, 190 * Returns number of bytes transferred, or negative value for error.
|
/system/extras/tests/sdcard/ |
H A D | plot_sdcard.py | 48 """Dataset holds the summary and data (time,value pairs).""" 63 def Add(self, time, value): 65 self.data.append(value) 164 (time, value) = line.split(None, 1) 170 dataset.Add(float(time), float(value))
|
/system/core/libnetutils/ |
H A D | dhcp_utils.c | 61 * Wait for a system property to be assigned a specified value. 63 * be created with any value. maxwait is the maximum amount of 68 char value[PROPERTY_VALUE_MAX] = {'\0'}; local 77 if (property_get(name, value, NULL)) { 79 strcmp(value, desired_value) == 0) { 125 // non 255.255.255.255 inputs. if we get that value check if it is legit..
|
/system/core/include/private/pixelflinger/ |
H A D | ggl_context.h | 87 // value shouldn't be more than 7, or bad things are going to 259 needs_t value; member in struct:android::needs_filter_t 265 ((filter.value.n ^ n) & filter.mask.n) | 266 ((filter.value.p ^ p) & filter.mask.p) | 267 ((filter.value.t[0] ^ t[0]) & filter.mask.t[0]) | 268 ((filter.value.t[1] ^ t[1]) & filter.mask.t[1]);
|
/system/core/sh/ |
H A D | options.c | 67 char *arg0; /* value of $0 */ 361 getoptsreset(value) 362 const char *value; 364 if (number(value) == 1) {
|
/system/core/debuggerd/ |
H A D | debuggerd.c | 138 && e.value == 0) { 256 char value[PROPERTY_VALUE_MAX]; local 257 property_get("debug.db.uid", value, "-1"); 258 int debug_uid = atoi(value); 383 * if debug.db.uid is set, its value indicates if we should wait
|
H A D | tombstone.c | 604 char value[PROPERTY_VALUE_MAX]; local 605 property_get("ro.debuggable", value, "0"); 606 bool want_logs = (value[0] == '1');
|
/system/extras/ext4_utils/ |
H A D | make_ext4fs_main.c | 125 seopts[0].value = optarg;
|
/system/netd/ |
H A D | CommandListener.h | 52 static int writeFile(const char *path, const char *value, int size);
|
H A D | BandwidthController.cpp | 144 char value[PROPERTY_VALUE_MAX]; local 146 property_get("persist.bandwidth.uselogwrap", value, "0"); 147 useLogwrapCall = !strcmp(value, "1"); 236 char value[PROPERTY_VALUE_MAX]; local 239 property_get("persist.bandwidth.enable", value, "1"); 240 if (!strcmp(value, "0")) 513 ALOGE("Invalid bytes value. 1..max_int64."); 617 ALOGE("Invalid bytes value. 1..max_int64."); 804 ALOGE("Invalid bytes value. 1..max_int64."); 888 ALOGE("Invalid bytes value [all...] |
/system/core/libpixelflinger/ |
H A D | trap.cpp | 919 void SET_COVERAGE(int16_t*& p, int32_t value, ssize_t n) argument 921 android_memset16((uint16_t*)p, value, n*2); 926 void ADD_COVERAGE(int16_t*& p, int32_t value) argument 928 value = *p + value; 929 if (value >= 0x8000) 930 value = 0x7FFF; 931 *p++ = value; 935 void SUB_COVERAGE(int16_t*& p, int32_t value) argument 937 value [all...] |
/system/media/camera/src/ |
H A D | camera_metadata.c | 28 * array is no larger than 4 bytes in size, it is stored in the data.value[] 37 uint8_t value[4]; member in union:camera_metadata_buffer_entry::__anon568 328 memcpy(entry->data.value, data, 394 entry->data.u8 = buffer_entry->data.value; 534 memcpy(entry->data.value, data, 680 data_ptr = entry->data.value;
|
/system/core/libmincrypt/ |
H A D | sha.c | 193 #define rol(bits, value) (((value) << (bits)) | ((value) >> (32 - (bits))))
|
/system/core/libcutils/ |
H A D | tztime.c | 692 return NULL; /* illegal value */ 696 return NULL; /* illegal value */ 840 register time_t value; local 844 INITIALIZE(value); 856 value = janfirst + (rulep->r_day - 1) * SECSPERDAY; 858 value += SECSPERDAY; 867 value = janfirst + rulep->r_day * SECSPERDAY; 874 value = janfirst; 876 value += mon_lengths[leapyear][i] * SECSPERDAY; 909 value [all...] |