Searched refs:value (Results 1 - 25 of 131) sorted by path

123456

/system/core/adb/
H A Dadb.c307 char value[PROPERTY_VALUE_MAX];
308 property_get(cnxn_props[i], value, "");
309 len = snprintf(buf, remaining, "%s=%s;", cnxn_props[i], value);
963 char value[PROPERTY_VALUE_MAX]; local
967 property_get("persist.adb.trace_mask", value, "");
968 if (sscanf(value, "%x", &adb_trace_mask) != 1)
1195 char value[PROPERTY_VALUE_MAX]; local
1196 property_get("ro.debuggable", value, "");
1197 if (strcmp(value, "1") == 0) {
1223 char value[PROPERTY_VALUE_MA
1255 char value[PROPERTY_VALUE_MAX]; local
[all...]
H A Dget_my_path_darwin.c26 CFStringRef value = (CFStringRef)CFDictionaryGetValue(dict, local
28 CFStringGetCString(value, s, maxLen, kCFStringEncodingUTF8);
H A Dservices.c63 char value[PROPERTY_VALUE_MAX]; local
70 property_get("ro.debuggable", value, "");
71 if (strcmp(value, "1") != 0) {
88 char value[PROPERTY_VALUE_MAX]; local
98 snprintf(value, sizeof(value), "%d", port);
99 property_set("service.adb.tcp.port", value);
H A Dusb_vendors.c261 long value = strtol(temp, NULL, 0); local
262 if (errno == EINVAL || errno == ERANGE || value > INT_MAX || value < 0) {
267 vendorIds[vendorIdCount++] = (int)value;
/system/core/charger/
H A Dcharger.c779 static int set_key_callback(int code, int value, void *data) argument
783 int down = !!value;
816 set_key_callback(ev->code, ev->value, charger);
/system/core/debuggerd/
H A Ddebuggerd.c140 && e.value == 0) {
264 char value[PROPERTY_VALUE_MAX]; local
265 property_get("debug.db.uid", value, "-1");
266 int debug_uid = atoi(value);
393 * if debug.db.uid is set, its value indicates if we should wait
H A Dtombstone.c669 char value[PROPERTY_VALUE_MAX]; local
670 property_get("ro.debuggable", value, "0");
671 bool want_logs = (value[0] == '1');
/system/core/fastboot/
H A Dengine.c413 static int match(char *str, const char **value, unsigned count) argument
420 const char *val = value[n];
441 const char **value = a->data; local
461 yes = match(resp, value, count);
474 invert ? "rejects" : "requires", value[0]);
476 fprintf(stderr," or '%s'", value[n]);
493 int invert, unsigned nvalues, const char **value)
498 a->data = value;
492 fb_queue_require(const char *prod, const char *var, int invert, unsigned nvalues, const char **value) argument
H A Dfastboot.h54 unsigned nvalues, const char **value);
H A Dutil_osx.c39 CFStringRef value = (CFStringRef)CFDictionaryGetValue(dict, local
41 CFStringGetCString(value, s, PATH_MAX - 1, kCFStringEncodingUTF8);
/system/core/fastbootd/
H A Dcommands.c158 const char *value; local
161 value = fastboot_getvar(arg);
163 fastboot_okay(phandle, value);
H A Dconfig.c65 char *value; local
80 value = c + 1;
83 value = strip(value);
86 value = strdup(value);
88 fastboot_publish(key, value);
H A Dprotocol.c56 const char *value; member in struct:fastboot_var
77 void fastboot_publish(const char *name, const char *value) argument
83 var->value = value;
95 return var->value;
H A Dprotocol.h49 void fastboot_publish(const char *name, const char *value);
/system/core/healthd/
H A DBatteryMonitor.cpp151 bool value = false; local
154 value = true;
158 return value;
165 int value = 0; local
167 value = strtol(buf, NULL, 0);
169 return value;
/system/core/include/ctest/
H A Dctest.h36 #define assertTrue(value, message) assertTrueWithSource(value, __FILE__, __LINE__, message);
39 * Asserts that a condition is false. The test fails if the value is true.
41 #define assertFalse(value, message) assertTrueWithSource(!value, __FILE__, __LINE__, message);
49 #define assertSame(a, b) assertTrueWithSource(a == b, __FILE__, __LINE__, "Expected same value.");
64 void assertTrueWithSource(int value, const char* file, int line, char* message);
/system/core/include/cutils/
H A Datomic-arm.h52 int32_t value = *ptr; local
54 return value;
65 void android_atomic_acquire_store(int32_t value, volatile int32_t *ptr) argument
67 *ptr = value;
72 void android_atomic_release_store(int32_t value, volatile int32_t *ptr) argument
75 *ptr = value;
143 int32_t android_atomic_and(int32_t value, volatile int32_t *ptr) argument
153 : "r" (ptr), "Ir" (value)
160 int32_t android_atomic_or(int32_t value, volatile int32_t *ptr) argument
170 : "r" (ptr), "Ir" (value)
[all...]
H A Datomic-mips.h54 int32_t value = *ptr; local
56 return value;
67 android_atomic_acquire_store(int32_t value, volatile int32_t *ptr) argument
69 *ptr = value;
74 android_atomic_release_store(int32_t value, volatile int32_t *ptr) argument
77 *ptr = value;
166 android_atomic_and(int32_t value, volatile int32_t *ptr) argument
173 " and %[status], %[prev], %[value]\n"
176 : [ptr] "r" (ptr), [value] "Ir" (value)
183 android_atomic_or(int32_t value, volatile int32_t *ptr) argument
[all...]
H A Datomic-x86.h54 int32_t value = *ptr; local
56 return value;
67 android_atomic_acquire_store(int32_t value, volatile int32_t *ptr) argument
69 *ptr = value;
74 android_atomic_release_store(int32_t value, volatile int32_t *ptr) argument
77 *ptr = value;
115 /* increment now holds the old value of *ptr */
132 android_atomic_and(int32_t value, volatile int32_t *ptr) argument
137 status = android_atomic_cas(prev, prev & value, ptr);
143 android_atomic_or(int32_t value, volatil argument
[all...]
H A Datomic.h63 * barrier with "release" ordering, and return the previous value.
70 int32_t android_atomic_add(int32_t value, volatile int32_t* addr);
71 int32_t android_atomic_and(int32_t value, volatile int32_t* addr);
72 int32_t android_atomic_or(int32_t value, volatile int32_t* addr);
89 void android_atomic_acquire_store(int32_t value, volatile int32_t* addr);
90 void android_atomic_release_store(int32_t value, volatile int32_t* addr);
95 * This returns zero if the new value was successfully stored, which will
98 * (The return value is inverted from implementations on other platforms,
H A Dconfig_utils.h33 const char *value; member in struct:cnode
43 cnode* config_node(const char *name, const char *value);
48 /* look up a child by name and return the boolean value */
51 /* look up a child by name and return the string value */
55 void config_set(cnode *root, const char *name, const char *value);
H A Dfs.h50 extern int fs_read_atomic_int(const char* path, int* value);
56 extern int fs_write_atomic_int(const char* path, int value);
H A Dhashmap.h56 * Puts value for the given key in the map. Returns pre-existing value if
62 void* hashmapPut(Hashmap* map, void* key, void* value);
65 * Gets a value from the map. Returns NULL if no entry for the given key is
66 * found or if the value itself is NULL.
76 * Gets the value for a key. If a value is not found, this function gets a
77 * value and creates an entry using the given callback.
86 * Removes an entry from the map. Returns the removed value or NULL if no
101 bool (*callback)(void* key, void* value, voi
[all...]
H A Dmemory.h28 void android_memset16(uint16_t* dst, uint16_t value, size_t size);
31 void android_memset32(uint32_t* dst, uint32_t value, size_t size);
H A Dproperties.h28 /* System properties are *small* name value pairs managed by the
38 /* property_get: returns the length of the value which will never be
42 ** If the property read fails or returns an empty value, the default
43 ** value is used (if nonnull).
45 int property_get(const char *key, char *value, const char *default_value);
49 int property_set(const char *key, const char *value);
51 int property_list(void (*propfn)(const char *key, const char *value, void *cookie), void *cookie);
60 int property_get(const char *key, char *value, const char *default_value) { argument
61 size_t bos = __bos(value);
65 return __property_get_real(key, value, default_valu
[all...]

Completed in 192 milliseconds

123456