Searched refs:value (Results 26 - 50 of 87) sorted by relevance

1234

/system/core/libcutils/
H A Dthreads.c31 void* value,
44 pthread_setspecific( store->tls, value );
59 void* value,
82 TlsSetValue( store->tls, value );
30 thread_store_set( thread_store_t* store, void* value, thread_store_destruct_t destroy) argument
58 thread_store_set( thread_store_t* store, void* value, thread_store_destruct_t destroy ) argument
H A Dqtaguid.c83 static int write_param(const char *param_path, const char *value) { argument
91 res = TEMP_FAILURE_RETRY(write(param_fd, value, strlen(value)));
167 const char *value; local
169 value = on ? "Y" : "N";
170 if (write_param(GLOBAL_PACIFIER_PARAM, value) < 0) {
173 if (write_param(TAG_PACIFIER_PARAM, value) < 0) {
H A Dhashmap.c30 void* value; member in struct:Entry
166 static Entry* createEntry(void* key, int hash, void* value) { argument
173 entry->value = value;
189 void* hashmapPut(Hashmap* map, void* key, void* value) { argument
199 *p = createEntry(key, hash, value);
211 void* oldValue = current->value;
212 current->value = value;
228 return entry->value;
267 void* value = initialValue(key, context); local
293 void* value = current->value; local
306 hashmapForEach(Hashmap* map, bool (*callback)(void* key, void* value, void* context), void* context) argument
[all...]
H A Dfs.c102 int fs_write_atomic_int(const char* path, int value) { argument
116 int len = snprintf(buf, BUF_SIZE, "%d", value) + 1;
118 ALOGE("Value %d too large: %s", value, strerror(errno));
/system/extras/tests/bionic/libc/common/
H A Dtest_sem_post.c60 int nn, value; local
89 if (sem_getvalue(&semaphore, &value) < 0) {
90 printf("Could not get semaphore value: %s\n", strerror(errno));
93 if (value != 1) {
94 printf("Error: Semaphore value = %d\n", value);
/system/core/libnl_2/
H A Dattr.c43 /* Return value of 8 bit integer attribute. */
166 int nla_put_u8(struct nl_msg *msg, int attrtype, uint8_t value) argument
168 return nla_put(msg, attrtype, sizeof(uint8_t), &value);
172 int nla_put_u16(struct nl_msg *msg, int attrtype, uint16_t value) argument
174 return nla_put(msg, attrtype, sizeof(uint16_t), &value);
178 int nla_put_u32(struct nl_msg *msg, int attrtype, uint32_t value) argument
180 return nla_put(msg, attrtype, sizeof(uint32_t), &value);
184 int nla_put_u64(struct nl_msg *msg, int attrtype, uint64_t value) argument
186 return nla_put(msg, attrtype, sizeof(uint64_t), &value);
/system/core/toolbox/
H A Dwatchprops.c28 char value[PROP_VALUE_MAX]; local
31 __system_property_read(pi, name, value);
33 for(x = value; *x; x++) {
37 fprintf(stderr,"%10d %s = '%s'\n", (int) time(0), name, value);
H A Dsyren.c17 unsigned long value; member in struct:syren_io_args
57 fprintf(stderr, "usage: syren [r/w] [REGNAME | page:addr] (value)\n");
94 sio.value = strtoul(argv[3], 0, 0);
116 fprintf(stderr, "%s: %04x\n", registers[i].name, sio.value);
145 printf("%s: %04x\n", name, sio.value);
147 printf("wrote %04x to %s\n", sio.value, name);
H A Dsetsebool.c29 b[i-1].value = 1;
31 b[i-1].value = 0;
33 fprintf(stderr, "setsebool: invalid value %s\n", v);
50 fprintf(stderr, "Usage: %s name=value...\n", argv[0]);
/system/extras/tests/framebuffer/
H A Dminui.h39 unsigned value; member in struct:event
/system/extras/tests/sdcard/
H A Dsysutil.cpp201 int writeIntToFile(const char *filename, long value) argument
204 sprintf(buffer, "%ld", value);
246 char value[16]; local
247 if (readStringFromFile(filename, value, sizeof(value)) == -1)
253 return atoi(value);
292 char value[256] = {0,}; local
294 if (readStringFromFile(kSchedFeatures, value, sizeof(value)) == -1)
299 return strstr(value, "NO_NEW_FAIR_SLEEPER
322 char value[256] = {0,}; local
[all...]
/system/core/libsync/
H A Dsync.c103 int sw_sync_fence_create(int fd, const char *name, unsigned value) argument
108 data.value = value;
/system/core/include/sync/
H A Dsync.h58 int sw_sync_fence_create(int fd, const char *name, unsigned value);
/system/core/init/
H A Dueventd.c39 char *value = strchr(name, '='); local
40 if (value != NULL) {
41 *value++ = 0;
44 strlcpy(hardware, value, sizeof(hardware));
76 * for androidboot.hardware param in kernel cmdline, and save its value in
H A Dinit.h63 const char *value; member in struct:svcenvinfo
133 void property_changed(const char *name, const char *value);
/system/core/libpixelflinger/tinyutils/
H A DKeyedVector.h89 * Variation of KeyedVector that holds a default value to return when
119 return mVector.itemAt(i).value;
124 return mVector.itemAt(index).value;
136 return mVector.editItemAt(i).value;
141 return mVector.editItemAt(index).value;
145 ssize_t KeyedVector<KEY,VALUE>::add(const KEY& key, const VALUE& value) { argument
146 return mVector.add( key_value_pair_t<KEY,VALUE>(key, value) );
150 ssize_t KeyedVector<KEY,VALUE>::replaceValueFor(const KEY& key, const VALUE& value) { argument
151 key_value_pair_t<KEY,VALUE> pair(key, value);
159 mVector.editValueAt(index).value
[all...]
/system/core/libpixelflinger/codeflinger/
H A DMIPSAssembler.cpp229 // ALOGW("immediate value %08x at pc %08x\n", immediate, (int)pc());
230 amode.value = immediate;
238 amode.value = shift;
262 amode.value = immed12;
273 amode.value = immed12;
284 // amode.value = shift;
315 amode.value = immed8;
348 // would be overwritten by this instruction. If so, move the value to a
351 // instruction will _also_ use this value (a defect of the simple 1-pass, one-
353 // save the value befor
1415 char value[PROPERTY_VALUE_MAX]; local
[all...]
/system/core/include/cutils/
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 Dthreads.h63 typedef void (*thread_store_destruct_t)(void* value);
68 void* value,
/system/security/keystore/
H A Dkeystore_get.h37 * specifies the buffer to store the retrieved value, which must be an array of
38 * KEYSTORE_MESSAGE_SIZE bytes. This function returns the length of the value or
40 static int keystore_get(const char *key, int length, char *value) argument
61 int n = recv(sock, &value[offset], length - offset, 0);
H A Dkeystore.cpp53 /* KeyStore is a secured storage for key-value pairs. In this implementation,
54 * each file stores one key-value pair. Keys are encoded in file names, and
89 memcpy(value, orig, origLen);
97 uint8_t value[VALUE_SIZE]; member in struct:Value
105 value = new char[length + 1];
106 memcpy(value, orig->value, length);
107 value[length] = '\0';
111 delete[] value;
115 return value;
125 char* value; member in class:ValueString
287 uint8_t value[VALUE_SIZE + AES_BLOCK_SIZE]; member in struct:blob
300 Blob(uint8_t* value, int32_t valueLength, uint8_t* info, uint8_t infoLength, BlobType type) argument
[all...]
/system/vold/
H A DFat.cpp116 char value[PROPERTY_VALUE_MAX]; local
117 property_get("persist.sampling_profiler", value, "");
118 if (value[0] == '1') {
/system/core/adb/
H A Dusb_vendors.c225 long value = strtol(temp, NULL, 0); local
226 if (errno == EINVAL || errno == ERANGE || value > INT_MAX || value < 0) {
231 vendorIds[vendorIdCount++] = (int)value;
/system/core/fastboot/
H A Dfastboot.h54 unsigned nvalues, const char **value);
/system/extras/tests/icachetest/
H A Dicache_main.c18 long value; local

Completed in 2786 milliseconds

1234