/system/core/libcutils/ |
D | properties.c | 34 int property_set(const char *key, const char *value) in property_set() argument 36 return __system_property_set(key, value); in property_set() 39 int property_get(const char *key, char *value, const char *default_value) in property_get() argument 43 len = __system_property_get(key, value); in property_get() 50 memcpy(value, default_value, len + 1); in property_get() 55 int property_list(void (*propfn)(const char *key, const char *value, void *cookie), in property_list() argument 59 char value[PROP_VALUE_MAX]; in property_list() local 64 __system_property_read(pi, name, value); in property_list() 65 propfn(name, value, cookie); in property_list() 137 int property_get(const char *key, char *value, const char *default_value) in property_get() argument [all …]
|
D | str_parms.c | 78 static bool remove_pair(void *key, void *value, void *context) in remove_pair() argument 104 free(value); in remove_pair() 149 char *value; in str_parms_create_str() local 159 value = strdup(eq); in str_parms_create_str() 161 value = strdup(""); in str_parms_create_str() 164 value = strdup(""); in str_parms_create_str() 168 old_val = hashmapPut(str_parms->map, key, value); in str_parms_create_str() 193 const char *value) in str_parms_add_str() argument 200 tmp_val = strdup(value); in str_parms_add_str() 214 int str_parms_add_int(struct str_parms *str_parms, const char *key, int value) in str_parms_add_int() argument [all …]
|
D | config_utils.c | 26 cnode* config_node(const char *name, const char *value) in config_node() argument 33 node->value = value ? value : ""; in config_node() 75 switch(node->value[0]) { in config_bool() 92 return node->value; in config_str() 95 void config_set(cnode *root, const char *name, const char *value) in config_set() argument 101 node->value = value; in config_set() 104 node->value = value; in config_set() 122 static int _lex(cstate *cs, int value) in _lex() argument 177 if(value) { in _lex() 232 static int lex(cstate *cs, int value) [all …]
|
D | hashmap.c | 30 void* value; member 166 static Entry* createEntry(void* key, int hash, void* value) { in createEntry() argument 173 entry->value = value; in createEntry() 189 void* hashmapPut(Hashmap* map, void* key, void* value) { in hashmapPut() argument 199 *p = createEntry(key, hash, value); in hashmapPut() 211 void* oldValue = current->value; in hashmapPut() 212 current->value = value; in hashmapPut() 228 return entry->value; in hashmapGet() 267 void* value = initialValue(key, context); in hashmapMemoize() local 268 (*p)->value = value; in hashmapMemoize() [all …]
|
D | memory.c | 20 void android_memset16(uint16_t* dst, uint16_t value, size_t size) in android_memset16() argument 24 *dst++ = value; in android_memset16() 30 void android_memset32(uint32_t* dst, uint32_t value, size_t size) in android_memset32() argument 34 *dst++ = value; in android_memset32()
|
D | qtaguid.c | 83 static int write_param(const char *param_path, const char *value) { in write_param() argument 91 res = TEMP_FAILURE_RETRY(write(param_fd, value, strlen(value))); in write_param() 167 const char *value; in qtaguid_setPacifier() local 169 value = on ? "Y" : "N"; in qtaguid_setPacifier() 170 if (write_param(GLOBAL_PACIFIER_PARAM, value) < 0) { in qtaguid_setPacifier() 173 if (write_param(TAG_PACIFIER_PARAM, value) < 0) { in qtaguid_setPacifier()
|
D | threads.c | 31 void* value, in thread_store_set() argument 44 pthread_setspecific( store->tls, value ); in thread_store_set() 59 void* value, in thread_store_set() argument 82 TlsSetValue( store->tls, value ); in thread_store_set()
|
/system/core/libpixelflinger/tinyutils/ |
D | TypeHelpers.h | 24 template <typename T> struct trait_trivial_ctor { enum { value = false }; }; enumerator 25 template <typename T> struct trait_trivial_dtor { enum { value = false }; }; enumerator 26 template <typename T> struct trait_trivial_copy { enum { value = false }; }; enumerator 27 template <typename T> struct trait_trivial_assign{ enum { value = false }; }; enumerator 29 template <typename T> struct trait_pointer { enum { value = false }; }; enumerator 30 template <typename T> struct trait_pointer<T*> { enum { value = true }; }; 33 template<> struct trait_trivial_ctor< T > { enum { value = true }; }; \ 34 template<> struct trait_trivial_dtor< T > { enum { value = true }; }; \ 35 template<> struct trait_trivial_copy< T > { enum { value = true }; }; \ 36 template<> struct trait_trivial_assign< T >{ enum { value = true }; }; [all …]
|
D | KeyedVector.h | 119 return mVector.itemAt(i).value; in valueFor() 124 return mVector.itemAt(index).value; in valueAt() 136 return mVector.editItemAt(i).value; in editValueFor() 141 return mVector.editItemAt(index).value; in editValueAt() 145 ssize_t KeyedVector<KEY,VALUE>::add(const KEY& key, const VALUE& value) { in add() argument 146 return mVector.add( key_value_pair_t<KEY,VALUE>(key, value) ); in add() 150 ssize_t KeyedVector<KEY,VALUE>::replaceValueFor(const KEY& key, const VALUE& value) { in replaceValueFor() argument 151 key_value_pair_t<KEY,VALUE> pair(key, value); in replaceValueFor() 159 mVector.editValueAt(index).value = item; in replaceValueAt()
|
/system/core/init/ |
D | property_service.c | 194 static void update_prop_info(prop_info *pi, const char *value, unsigned len) in update_prop_info() argument 197 memcpy(pi->value, value, len + 1); in update_prop_info() 315 return pi->value; in property_get() 321 static void write_persistent_property(const char *name, const char *value) in write_persistent_property() argument 334 write(fd, value, strlen(value)); in write_persistent_property() 343 int property_set(const char *name, const char *value) in property_set() argument 349 int valuelen = strlen(value); in property_set() 362 update_prop_info(pi, value, valuelen); in property_set() 372 memcpy(pi->value, value, valuelen + 1); in property_set() 398 write_persistent_property(name, value); in property_set() [all …]
|
/system/core/include/cutils/ |
D | atomic-x86.h | 49 int32_t value = *ptr; in android_atomic_acquire_load() local 51 return value; in android_atomic_acquire_load() 60 extern inline void android_atomic_acquire_store(int32_t value, in android_atomic_acquire_store() argument 63 *ptr = value; in android_atomic_acquire_store() 67 extern inline void android_atomic_release_store(int32_t value, in android_atomic_release_store() argument 71 *ptr = value; in android_atomic_release_store() 121 extern inline int32_t android_atomic_and(int32_t value, in android_atomic_and() argument 127 status = android_atomic_cas(prev, prev & value, ptr); in android_atomic_and() 132 extern inline int32_t android_atomic_or(int32_t value, volatile int32_t *ptr) in android_atomic_or() argument 137 status = android_atomic_cas(prev, prev | value, ptr); in android_atomic_or()
|
D | atomic-mips.h | 49 int32_t value = *ptr; in android_atomic_acquire_load() local 51 return value; in android_atomic_acquire_load() 60 extern inline void android_atomic_acquire_store(int32_t value, in android_atomic_acquire_store() argument 63 *ptr = value; in android_atomic_acquire_store() 67 extern inline void android_atomic_release_store(int32_t value, in android_atomic_release_store() argument 71 *ptr = value; in android_atomic_release_store() 155 extern inline int32_t android_atomic_and(int32_t value, volatile int32_t *ptr) in android_atomic_and() argument 165 : [ptr] "r" (ptr), [value] "Ir" (value) in android_atomic_and() 171 extern inline int32_t android_atomic_or(int32_t value, volatile int32_t *ptr) in android_atomic_or() argument 181 : [ptr] "r" (ptr), [value] "Ir" (value) in android_atomic_or()
|
D | atomic-arm.h | 69 int32_t value = *ptr; in android_atomic_acquire_load() local 71 return value; in android_atomic_acquire_load() 80 extern inline void android_atomic_acquire_store(int32_t value, in android_atomic_acquire_store() argument 83 *ptr = value; in android_atomic_acquire_store() 87 extern inline void android_atomic_release_store(int32_t value, in android_atomic_release_store() argument 91 *ptr = value; in android_atomic_release_store() 193 extern int32_t android_atomic_and(int32_t value, volatile int32_t *ptr); 195 extern inline int32_t android_atomic_and(int32_t value, volatile int32_t *ptr) in android_atomic_and() argument 205 : "r" (ptr), "Ir" (value) in android_atomic_and() 211 extern inline int32_t android_atomic_and(int32_t value, volatile int32_t *ptr) in android_atomic_and() argument [all …]
|
D | atomic.h | 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);
|
D | properties.h | 41 int property_get(const char *key, char *value, const char *default_value); 45 int property_set(const char *key, const char *value); 47 int property_list(void (*propfn)(const char *key, const char *value, void *cookie), void *cookie); …
|
D | config_utils.h | 33 const char *value; member 43 cnode* config_node(const char *name, const char *value); 55 void config_set(cnode *root, const char *name, const char *value);
|
D | str_parms.h | 31 const char *value); 32 int str_parms_add_int(struct str_parms *str_parms, const char *key, int value); 35 float value);
|
/system/core/include/ctest/ |
D | ctest.h | 36 #define assertTrue(value, message) assertTrueWithSource(value, __FILE__, __LINE__, message); argument 41 #define assertFalse(value, message) assertTrueWithSource(!value, __FILE__, __LINE__, message); argument 64 void assertTrueWithSource(int value, const char* file, int line, char* message);
|
/system/extras/tests/bionic/libc/common/ |
D | test_drand48.c | 28 #define EXPECT_LONG(value,expected) \ argument 30 long _val = (value); \ 32 printf( "%s: ", #value); \ 41 #define EXPECT_DOUBLE(value,expected) \ argument 43 double _val = (value); \ 45 printf( "%s: ", #value); \
|
D | test_sem_post.c | 60 int nn, value; in main() local 89 if (sem_getvalue(&semaphore, &value) < 0) { in main() 93 if (value != 1) { in main() 94 printf("Error: Semaphore value = %d\n", value); in main()
|
/system/core/toolbox/ |
D | r.c | 16 unsigned addr, value, endaddr = 0; in r_main() local 50 value = strtoul(argv[2], 0, 16); in r_main() 75 if(set) *x = value; in r_main() 81 if(set) *x = value; in r_main() 87 if(set) *x = value; in r_main()
|
D | getprop.c | 43 char value[PROPERTY_VALUE_MAX]; in getprop_main() local 51 property_get(argv[1], value, default_value); in getprop_main() 52 printf("%s\n", value); in getprop_main()
|
/system/extras/tests/sdcard/ |
D | sysutil.cpp | 201 int writeIntToFile(const char *filename, long value) in writeIntToFile() argument 204 sprintf(buffer, "%ld", value); in writeIntToFile() 246 char value[16]; in pidOutOfMemoryAdj() local 247 if (readStringFromFile(filename, value, sizeof(value)) == -1) in pidOutOfMemoryAdj() 253 return atoi(value); in pidOutOfMemoryAdj() 292 char value[256] = {0,}; in newFairSleepers() local 294 if (readStringFromFile(kSchedFeatures, value, sizeof(value)) == -1) in newFairSleepers() 299 return strstr(value, "NO_NEW_FAIR_SLEEPERS") == NULL; in newFairSleepers() 322 char value[256] = {0,}; in normalizedSleepers() local 324 if (readStringFromFile(kSchedFeatures, value, sizeof(value)) == -1) in normalizedSleepers() [all …]
|
/system/core/libpixelflinger/codeflinger/ |
D | MIPSAssembler.cpp | 230 amode.value = immediate; in imm() 238 amode.value = shift; in reg_imm() 262 amode.value = immed12; in immed12_pre() 273 amode.value = immed12; in immed12_post() 315 amode.value = immed8; in immed8_post() 383 if ((!_signed && amode.value > 0xffff) in dataProcAdrModes() 384 || (_signed && ((int)amode.value < -32768 || (int)amode.value > 32767) )) { in dataProcAdrModes() 385 mMips->LUI(tmpReg, (amode.value >> 16)); in dataProcAdrModes() 386 if (amode.value & 0x0000ffff) { in dataProcAdrModes() 387 mMips->ORI(tmpReg, tmpReg, (amode.value & 0x0000ffff)); in dataProcAdrModes() [all …]
|
/system/core/libnl_2/ |
D | attr.c | 166 int nla_put_u8(struct nl_msg *msg, int attrtype, uint8_t value) in nla_put_u8() argument 168 return nla_put(msg, attrtype, sizeof(uint8_t), &value); in nla_put_u8() 172 int nla_put_u16(struct nl_msg *msg, int attrtype, uint16_t value) in nla_put_u16() argument 174 return nla_put(msg, attrtype, sizeof(uint16_t), &value); in nla_put_u16() 178 int nla_put_u32(struct nl_msg *msg, int attrtype, uint32_t value) in nla_put_u32() argument 180 return nla_put(msg, attrtype, sizeof(uint32_t), &value); in nla_put_u32() 184 int nla_put_u64(struct nl_msg *msg, int attrtype, uint64_t value) in nla_put_u64() argument 186 return nla_put(msg, attrtype, sizeof(uint64_t), &value); in nla_put_u64()
|