Searched refs:value (Results 1 - 25 of 234) sorted by relevance

12345678910

/system/core/include/utils/
H A DBitSet.h31 uint32_t value; member in struct:android::BitSet32
33 inline BitSet32() : value(0UL) { }
34 explicit inline BitSet32(uint32_t value) : value(value) { } argument
36 // Gets the value associated with a particular bit index.
40 inline void clear() { clear(value); }
42 static inline void clear(uint32_t& value) { value = 0UL; } argument
45 inline uint32_t count() const { return count(value); }
47 count(uint32_t value) argument
52 isEmpty(uint32_t value) argument
57 isFull(uint32_t value) argument
62 hasBit(uint32_t value, uint32_t n) argument
67 markBit(uint32_t& value, uint32_t n) argument
72 clearBit(uint32_t& value, uint32_t n) argument
78 firstMarkedBit(uint32_t value) argument
84 firstUnmarkedBit(uint32_t value) argument
90 lastMarkedBit(uint32_t value) argument
96 clearFirstMarkedBit(uint32_t& value) argument
106 markFirstUnmarkedBit(uint32_t& value) argument
116 clearLastMarkedBit(uint32_t& value) argument
128 getIndexOfBit(uint32_t value, uint32_t n) argument
152 clz_checked(uint32_t value) argument
160 ctz_checked(uint32_t value) argument
173 uint64_t value; member in struct:android::BitSet64
176 BitSet64(uint64_t value) argument
184 clear(uint64_t& value) argument
189 count(uint64_t value) argument
194 isEmpty(uint64_t value) argument
199 isFull(uint64_t value) argument
204 hasBit(uint64_t value, uint32_t n) argument
209 markBit(uint64_t& value, uint32_t n) argument
214 clearBit(uint64_t& value, uint32_t n) argument
220 firstMarkedBit(uint64_t value) argument
226 firstUnmarkedBit(uint64_t value) argument
232 lastMarkedBit(uint64_t value) argument
238 clearFirstMarkedBit(uint64_t& value) argument
248 markFirstUnmarkedBit(uint64_t& value) argument
258 clearLastMarkedBit(uint64_t& value) argument
268 getIndexOfBit(uint64_t value, uint32_t n) argument
[all...]
H A DTypeHelpers.h33 template <typename T> struct trait_trivial_ctor { enum { value = false }; }; enumerator in enum:android::trait_trivial_ctor::__anon1383
34 template <typename T> struct trait_trivial_dtor { enum { value = false }; }; enumerator in enum:android::trait_trivial_dtor::__anon1384
35 template <typename T> struct trait_trivial_copy { enum { value = false }; }; enumerator in enum:android::trait_trivial_copy::__anon1385
36 template <typename T> struct trait_trivial_move { enum { value = false }; }; enumerator in enum:android::trait_trivial_move::__anon1386
37 template <typename T> struct trait_pointer { enum { value = false }; }; enumerator in enum:android::trait_pointer::__anon1387
38 template <typename T> struct trait_pointer<T*> { enum { value = true }; }; enumerator in enum:android::trait_pointer::__anon1388
44 is_pointer = trait_pointer<TYPE>::value,
46 has_trivial_ctor = is_pointer || trait_trivial_ctor<TYPE>::value,
48 has_trivial_dtor = is_pointer || trait_trivial_dtor<TYPE>::value,
50 has_trivial_copy = is_pointer || trait_trivial_copy<TYPE>::value,
232 VALUE value; member in struct:android::key_value_pair_t
250 { enum { value = aggregate_traits<K,V>::has_trivial_ctor }; }; enumerator in enum:android::trait_trivial_ctor::__anon1391
253 { enum { value = aggregate_traits<K,V>::has_trivial_dtor }; }; enumerator in enum:android::trait_trivial_dtor::__anon1392
256 { enum { value = aggregate_traits<K,V>::has_trivial_copy }; }; enumerator in enum:android::trait_trivial_copy::__anon1393
259 { enum { value = aggregate_traits<K,V>::has_trivial_move }; }; enumerator in enum:android::trait_trivial_move::__anon1394
294 hash_type(T* const & value) argument
[all...]
/system/core/debuggerd/test/
H A Dproperty_fake.cpp26 extern "C" int property_set(const char* name, const char* value) { argument
30 g_properties[name] = value;
34 extern "C" int property_get(const char* key, char* value, const char* default_value) { argument
39 strncpy(value, default_value, PROP_VALUE_MAX-1);
41 strncpy(value, g_properties[key].c_str(), PROP_VALUE_MAX-1);
43 value[PROP_VALUE_MAX-1] = '\0';
44 return strlen(value);
/system/core/libcutils/arch-mips/
H A Dandroid_memset.c33 void android_memset16(uint16_t* dst, uint16_t value, size_t size) argument
38 *dst++ = value;
44 *dst++ = value;
49 uint32_t value32 = (value << 16) | value;
52 dst[size-1] = value; /* fill unpaired last elem */
57 void android_memset32(uint32_t* dst, uint32_t value, size_t size) argument
62 *dst++ = value;
68 *dst++ = value;
73 uint64_t value64 = (((uint64_t)value)<<3
[all...]
/system/bt/osi/include/
H A Dfuture.h29 // Constructs a new future_t object with an immediate |value|. No waiting will
30 // occur in the call to |future_await| because the value is already present.
32 future_t *future_new_immediate(void *value);
34 // Signals that the |future| is ready, passing |value| back to the context
37 void future_ready(future_t *future, void *value);
39 // Waits for the |future| to be ready. Returns the value set in |future_ready|.
/system/bt/embdrv/sbc/decoder/include/
H A Doi_bitstream.h54 OI_UINT16 value,
80 #define OI_BITSTREAM_READUINT(result, bits, ptr, value, bitPtr) \
86 result = (value) << (bitPtr); \
91 value = ((value) << 8) | *ptr++; \
98 #define OI_BITSTREAM_WRITEUINT(ptr, value, bitPtr, datum, bits) \
101 value |= datum << bitPtr;\
105 *ptr++ = (OI_UINT8)(value >> 24);\
106 value <<= 8;\
110 #define OI_BITSTREAM_WRITEFLUSH(ptr, value, bitPt
[all...]
/system/core/init/
H A Dproperty_service.h29 extern int __property_get(const char *name, char *value);
30 extern int property_set(const char *name, const char *value);
46 int property_get(const char *name, char *value) argument
48 size_t value_len = __builtin_object_size(value, 0);
52 return __property_get(name, value);
/system/netd/server/
H A DInterfaceController.cpp54 const char* value) {
56 return WriteStringToFile(value, path) ? 0 : -1;
59 void setOnAllInterfaces(const char* dirname, const char* basename, const char* value) { argument
60 // Set the default value, which is used by any interfaces that are created in the future.
61 writeValueToPath(dirname, "default", basename, value);
63 // Set the value on all the interfaces that currently exist.
74 writeValueToPath(dirname, d->d_name, basename, value);
79 void setIPv6UseOutgoingInterfaceAddrsOnly(const char *value) { argument
80 setOnAllInterfaces(ipv6_proc_path, "use_oif_addrs_only", value);
154 void InterfaceController::setAcceptRA(const char *value) { argument
52 writeValueToPath( const char* dirname, const char* subdirname, const char* basename, const char* value) argument
184 setIPv6OptimisticMode(const char *value) argument
[all...]
H A DInterfaceController.h30 void setAcceptRA(const char* value);
33 void setIPv6OptimisticMode(const char *value);
/system/bt/btif/include/
H A Dbtif_config.h32 bool btif_config_get_int(const char *section, const char *key, int *value);
33 bool btif_config_set_int(const char *section, const char *key, int value);
34 bool btif_config_get_str(const char *section, const char *key, char *value, int *size_bytes);
35 bool btif_config_set_str(const char *section, const char *key, const char *value);
36 bool btif_config_get_bin(const char *section, const char *key, uint8_t *value, size_t *length);
37 bool btif_config_set_bin(const char *section, const char *key, const uint8_t *value, size_t length);
/system/core/include/cutils/
H A Dproperties.h29 /* System properties are *small* name value pairs managed by the
39 /* property_get: returns the length of the value which will never be
43 ** If the property read fails or returns an empty value, the default
44 ** value is used (if nonnull).
46 int property_get(const char *key, char *value, const char *default_value);
48 /* property_get_bool: returns the value of key coerced into a
49 ** boolean. If the property is not set, then the default value is returned.
60 ** conversion fails, the default value is returned.
64 /* property_get_int64: returns the value of key truncated and coerced into a
65 ** int64_t. If the property is not set, then the default value i
119 property_get(const char *key, char *value, const char *default_value) argument
[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 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.h51 extern int fs_read_atomic_int(const char* path, int* value);
57 extern int fs_write_atomic_int(const char* path, int value);
H A Datomic.h76 * barrier with "release" ordering, and return the previous value.
97 int32_t android_atomic_add(int32_t value, volatile int32_t* addr) argument
100 return atomic_fetch_add_explicit(a, value, memory_order_release);
104 int32_t android_atomic_and(int32_t value, volatile int32_t* addr) argument
107 return atomic_fetch_and_explicit(a, value, memory_order_release);
111 int32_t android_atomic_or(int32_t value, volatile int32_t* addr) argument
114 return atomic_fetch_or_explicit(a, value, memory_order_release);
163 void android_atomic_acquire_store(int32_t value, volatile int32_t* addr) argument
166 atomic_store_explicit(a, value, memory_order_relaxed);
172 void android_atomic_release_store(int32_t value, volatil argument
[all...]
/system/bt/embdrv/sbc/decoder/srce/
H A Dbitstream-decode.c43 bs->value = ((OI_INT32)buffer[0] << 16) | ((OI_INT32)buffer[1] << 8) | (buffer[2]);
52 OI_BITSTREAM_READUINT(result, bits, bs->ptr.r, bs->value, bs->bitPtr);
65 result = bs->value << 8;
68 result = bs->value << 12;
69 bs->value = (bs->value << 8) | *bs->ptr.r++;
82 result = bs->value >> 16;
83 bs->value = (bs->value << 8) | *bs->ptr.r++;
/system/bt/hci/include/
H A Dbtsnoop.h28 // Inform btsnoop whether the API desires to log. If |value| is true.
29 // logging will be enabled. Otherwise it defers to the value from the
31 void (*set_api_wants_to_log)(bool value);
/system/core/libsync/
H A Dsw_sync.h31 int sw_sync_fence_create(int fd, const char *name, unsigned value);
/system/security/keystore/include/keystore/
H A Dkeystore_get.h33 ssize_t keystore_get(const char *key, size_t length, uint8_t** value);
/system/core/toolbox/
H A Dwatchprops.c23 static void announce(char *name, char *value) argument
27 for(x = (unsigned char *)value; *x; x++) {
31 fprintf(stderr,"%10d %s = '%s'\n", (int) time(0), name, value);
38 unsigned *value = malloc(sizeof(unsigned)); local
39 if (!key || !value)
42 *value = __system_property_serial(pi);
43 hashmapPut(watchlist, key, value);
60 char value[PROP_VALUE_MAX]; local
63 __system_property_read(pi, name, value);
67 announce(name, value);
[all...]
/system/core/libcutils/
H A Dstr_parms.c79 static bool remove_pair(void *key, void *value, void *context) argument
105 free(value);
150 char *value; local
160 value = strdup(eq);
162 value = strdup("");
165 value = strdup("");
168 /* if we replaced a value, free it */
169 old_val = hashmapPut(str_parms->map, key, value);
194 const char *value)
210 tmp_val = strdup(value);
193 str_parms_add_str(struct str_parms *str_parms, const char *key, const char *value) argument
238 str_parms_add_int(struct str_parms *str_parms, const char *key, int value) argument
251 str_parms_add_float(struct str_parms *str_parms, const char *key, float value) argument
272 char *value; local
283 char *value; local
301 char *value; local
316 combine_strings(void *key, void *value, void *context) argument
350 dump_entry(void *key, void *value, void *context UNUSED) argument
[all...]
H A Dtrace-dev.c69 char value[PROPERTY_VALUE_MAX]; local
70 char* start = value;
72 property_get("debug.atrace.app_cmdlines", value, "");
96 char value[PROPERTY_VALUE_MAX]; local
100 property_get("ro.debuggable", value, "0");
101 if (value[0] == '1') {
125 // Read the sysprop and return the value tags should be set to
128 char value[PROPERTY_VALUE_MAX]; local
132 property_get("debug.atrace.tags.enableflags", value, "0");
134 tags = strtoull(value,
224 atrace_int_body(const char* name, int32_t value) argument
234 atrace_int64_body(const char* name, int64_t value) argument
[all...]
/system/extras/ext4_utils/
H A Dunencrypted_properties.h34 template<typename t> bool Set(const char* name, t const& value);
55 t value = default_value;
56 std::ifstream(folder_ + "/" + name) >> value;
57 return value;
61 t const& value)
65 o << value; local
74 std::string const& value);
60 Set(const char* name, t const& value) argument
/system/vold/
H A DExt4Crypt.h18 char* value, size_t len);
20 const char* value);
/system/media/radio/include/system/
H A Dradio_metadata.h106 * - value: the meta data value.
116 const int value);
125 * - value: the meta data value.
136 const char *value);
145 * - value: the meta data value.
155 const unsigned char *value,
224 * - value
[all...]

Completed in 299 milliseconds

12345678910