/system/core/include/cutils/ |
H A D | str_parms.h | 28 void str_parms_del(struct str_parms *str_parms, const char *key); 30 int str_parms_add_str(struct str_parms *str_parms, const char *key, 32 int str_parms_add_int(struct str_parms *str_parms, const char *key, int value); 34 int str_parms_add_float(struct str_parms *str_parms, const char *key, 37 int str_parms_get_str(struct str_parms *str_parms, const char *key, 39 int str_parms_get_int(struct str_parms *str_parms, const char *key, 41 int str_parms_get_float(struct str_parms *str_parms, const char *key,
|
H A 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);
|
H A D | hashmap.h | 42 int (*hash)(void* key), bool (*equals)(void* keyA, void* keyB)); 50 * Hashes the memory pointed to by key with the given size. Useful for 53 int hashmapHash(void* key, size_t keySize); 56 * 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 68 void* hashmapGet(Hashmap* map, void* key); 71 * Returns true if the map contains an entry for the given key. 73 bool hashmapContainsKey(Hashmap* map, void* key); 76 * Gets the value for a key [all...] |
H A D | sockets.h | 49 char key[64] = ANDROID_SOCKET_ENV_PREFIX; local 55 strlcpy(key + sizeof(ANDROID_SOCKET_ENV_PREFIX) - 1, 57 sizeof(key) - sizeof(ANDROID_SOCKET_ENV_PREFIX)); 59 strncpy(key + sizeof(ANDROID_SOCKET_ENV_PREFIX) - 1, 61 sizeof(key) - sizeof(ANDROID_SOCKET_ENV_PREFIX)); 62 key[sizeof(key)-1] = '\0'; 65 val = getenv(key);
|
/system/media/wilhelm/tools/hashgen/ |
H A D | part8.c | 1 if (key <= MAX_HASH_VALUE) { 2 int MPH = hash_to_MPH[key];
|
/system/core/libmincrypt/ |
H A D | rsa.c | 32 static void subM(const RSAPublicKey *key, uint32_t *a) { argument 35 for (i = 0; i < key->len; ++i) { 36 A += (uint64_t)a[i] - key->n[i]; 43 static int geM(const RSAPublicKey *key, const uint32_t *a) { argument 45 for (i = key->len; i;) { 47 if (a[i] < key->n[i]) return 0; 48 if (a[i] > key->n[i]) return 1; 54 static void montMulAdd(const RSAPublicKey *key, argument 59 uint32_t d0 = (uint32_t)A * key->n0inv; 60 uint64_t B = (uint64_t)d0 * key 79 montMul(const RSAPublicKey *key, uint32_t* c, const uint32_t* a, const uint32_t* b) argument 95 modpow3(const RSAPublicKey *key, uint8_t* inout) argument 162 RSA_verify(const RSAPublicKey *key, const uint8_t *signature, const int len, const uint8_t *sha) argument [all...] |
/system/media/mca/filterfw/java/android/filterfw/core/ |
H A D | KeyValueMap.java | 36 throw new RuntimeException("Key-value argument " + i + " must be a key of type " 39 String key = (String)keyValues[i]; 41 put(key, value); 51 public String getString(String key) { argument 52 Object result = get(key); 56 public int getInt(String key) { argument 57 Object result = get(key); 61 public float getFloat(String key) { argument 62 Object result = get(key);
|
H A D | FilterContext.java | 72 public synchronized void storeFrame(String key, Frame frame) { argument 73 Frame storedFrame = fetchFrame(key); 78 mStoredFrames.put(key, frame.retain()); 81 public synchronized Frame fetchFrame(String key) { argument 82 Frame frame = mStoredFrames.get(key); 89 public synchronized void removeFrame(String key) { argument 90 Frame frame = mStoredFrames.get(key); 92 mStoredFrames.remove(key);
|
/system/core/libcutils/ |
H A D | hashmap.c | 28 void* key; member in struct:Entry 37 int (*hash)(void* key); 44 int (*hash)(void* key), bool (*equals)(void* keyA, void* keyB)) { 78 * Hashes the given key. 80 static inline int hashKey(Hashmap* map, void* key) { argument 81 int h = map->hash(key); 155 int hashmapHash(void* key, size_t keySize) { argument 157 char* data = (char*) key; 166 static Entry* createEntry(void* key, int hash, void* value) { argument 171 entry->key 43 hashmapCreate(size_t initialCapacity, int (*hash)(void* key), bool (*equals)(void* keyA, void* keyB)) argument 189 hashmapPut(Hashmap* map, void* key, void* value) argument 221 hashmapGet(Hashmap* map, void* key) argument 236 hashmapContainsKey(Hashmap* map, void* key) argument 251 hashmapMemoize(Hashmap* map, void* key, void* (*initialValue)(void* key, void* context), void* context) argument 284 hashmapRemove(Hashmap* map, void* key) argument 306 hashmapForEach(Hashmap* map, bool (*callback)(void* key, void* value, void* context), void* context) argument 342 hashmapIntHash(void* key) argument [all...] |
H A D | str_parms.c | 73 static bool remove_pair(void *key, void *value, void *context) argument 77 hashmapRemove(str_parms->map, key); 78 free(key); 112 char *key; local 119 key = strndup(kvpair, eq - kvpair); 125 key = strdup(kvpair); 130 old_val = hashmapPut(str_parms->map, key, value); 152 void str_parms_del(struct str_parms *str_parms, const char *key) argument 154 hashmapRemove(str_parms->map, (void *)key); 157 int str_parms_add_str(struct str_parms *str_parms, const char *key, argument 175 str_parms_add_int(struct str_parms *str_parms, const char *key, int value) argument 188 str_parms_add_float(struct str_parms *str_parms, const char *key, float value) argument 202 str_parms_get_str(struct str_parms *str_parms, const char *key, char *val, int len) argument 214 str_parms_get_int(struct str_parms *str_parms, const char *key, int *val) argument 230 str_parms_get_float(struct str_parms *str_parms, const char *key, float *val) argument 248 combine_strings(void *key, void *value, void *context) argument 282 dump_entry(void *key, void *value, void *context) argument [all...] |
H A D | properties.c | 34 int property_set(const char *key, const char *value) argument 36 return __system_property_set(key, value); 39 int property_get(const char *key, char *value, const char *default_value) argument 43 len = __system_property_get(key, value); 55 int property_list(void (*propfn)(const char *key, const char *value, void *cookie), argument 137 int property_get(const char *key, char *value, const char *default_value) argument 143 //LOGV("PROPERTY GET [%s]\n", key); 155 if (strlen(key) >= PROPERTY_KEY_MAX) return -1; 160 strcpy(sendBuf+1, key); 198 // recvBuf[0], default_value, len, key, valu 204 property_set(const char *key, const char *value) argument 241 property_list(void (*propfn)(const char *key, const char *value, void *cookie), void *cookie) argument 260 property_get(const char *key, char *value, const char *default_value) argument 294 property_set(const char *key, const char *value) argument 324 property_list(void (*propfn)(const char *key, const char *value, void *cookie), void *cookie) argument [all...] |
/system/core/libpixelflinger/tinyutils/ |
H A D | KeyedVector.h | 55 const VALUE& valueFor(const KEY& key) const; 58 ssize_t indexOfKey(const KEY& key) const; 64 VALUE& editValueFor(const KEY& key); 71 ssize_t add(const KEY& key, const VALUE& item); 72 ssize_t replaceValueFor(const KEY& key, const VALUE& item); 79 ssize_t removeItem(const KEY& key); 90 * valueFor() is called with a key that doesn't exist. 97 const VALUE& valueFor(const KEY& key) const; 111 ssize_t KeyedVector<KEY,VALUE>::indexOfKey(const KEY& key) const { 112 return mVector.indexOf( key_value_pair_t<KEY,VALUE>(key) ); 133 editValueFor(const KEY& key) argument 145 add(const KEY& key, const VALUE& value) argument 150 replaceValueFor(const KEY& key, const VALUE& value) argument 166 removeItem(const KEY& key) argument [all...] |
/system/core/libmincrypt/tools/ |
H A D | DumpPublicKey.java | 36 * @param key to perform sanity checks on 37 * @throws Exception if the key has the wrong size or public exponent 39 static void check(RSAPublicKey key) throws Exception { argument 40 BigInteger pubexp = key.getPublicExponent(); 41 BigInteger modulus = key.getModulus(); 53 * @param key to output 54 * @return a C initializer representing this public key. 56 static String print(RSAPublicKey key) throws Exception { argument 57 check(key); 59 BigInteger N = key [all...] |
/system/media/mca/filterfw/native/base/ |
H A D | utilities.h | 58 // Given an STL container consisting of (key, value) pairs, STLDeleteValues 71 // If the key is present a const pointer to the associated value is returned, 76 const typename Collection::value_type::first_type& key) { 77 typename Collection::const_iterator it = collection.find(key); 123 // If the key is present a const pointer to the associated value is returned, 125 // This function does not distinguish between a missing key and a key mapped 130 const typename Collection::value_type::first_type& key) { 131 typename Collection::const_iterator it = collection.find(key); 138 // Test to see if a set, map, hash_set or hash_map contains a particular key 75 FindOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument 129 FindPtrOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument 141 ContainsKey(const Collection& collection, const Key& key) argument 150 InsertIfNotPresent(Collection * const collection, const Key& key, const Value& value) argument [all...] |
/system/media/mca/filterpacks/base/native/ |
H A D | utilities.h | 58 // Given an STL container consisting of (key, value) pairs, STLDeleteValues 71 // If the key is present a const pointer to the associated value is returned, 76 const typename Collection::value_type::first_type& key) { 77 typename Collection::const_iterator it = collection.find(key); 123 // If the key is present a const pointer to the associated value is returned, 125 // This function does not distinguish between a missing key and a key mapped 130 const typename Collection::value_type::first_type& key) { 131 typename Collection::const_iterator it = collection.find(key); 138 // Test to see if a set, map, hash_set or hash_map contains a particular key 75 FindOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument 129 FindPtrOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument 141 ContainsKey(const Collection& collection, const Key& key) argument 150 InsertIfNotPresent(Collection * const collection, const Key& key, const Value& value) argument [all...] |
/system/core/include/mincrypt/ |
H A D | rsa.h | 37 #define RSANUMBYTES 256 /* 2048 bit key length */ 47 int RSA_verify(const RSAPublicKey *key,
|
/system/core/libpixelflinger/codeflinger/ |
H A D | CodeCache.h | 37 virtual int compare_type(const AssemblyKeyBase& key) const = 0; 45 virtual int compare_type(const AssemblyKeyBase& key) const { 46 const T& rhs = static_cast<const AssemblyKey&>(key).mKey; 88 sp<Assembly> lookup(const AssemblyKeyBase& key) const; 90 int cache( const AssemblyKeyBase& key, 130 return lhs.key.mKey->compare_type(*(rhs.key.mKey));
|
/system/core/toolbox/ |
H A D | readtty.c | 11 char key; member in struct:__anon446 26 char next_char(char key, char current) argument 31 if(key == map[i].key) { 38 return key; 41 char prev_char(char key, char current) argument 46 if(key == map[i].key) { 53 return key;
|
H A D | getprop.c | 9 static void record_prop(const char* key, const char* name, void* opaque) argument 13 snprintf(temp, sizeof temp, "[%s]: [%s]", key, name);
|
/system/core/fastboot/ |
H A D | genkey.sh | 9 # Generate a 2048 bit RSA key with public exponent 3. 10 # Encrypt private key with provided password. 13 # Create a self-signed cert for this key. 14 openssl req -new -x509 -key $1.pem -passin pass:"$2" \ 18 # Create a PKCS12 store containing the generated private key. 19 # Protect the keystore and the private key with the provided password.
|
/system/media/mca/filterfw/native/core/ |
H A D | gl_env.h | 176 void AttachShader(int key, ShaderProgram* shader); 180 void AttachVertexFrame(int key, VertexFrame* frame); 182 // Return the shader with the specified key, or NULL if there is no such 184 ShaderProgram* ShaderWithKey(int key); 186 // Return the vertex frame with the specified key, or NULL if there is no 188 VertexFrame* VertexFrameWithKey(int key);
|
H A D | native_program.cpp | 126 bool NativeProgram::CallSetValue(const std::string& key, const std::string& value) { argument 128 setvalue_function_(key.c_str(), value.c_str(), user_data_); 134 std::string NativeProgram::CallGetValue(const std::string& key) { argument 139 getvalue_function_(key.c_str(), result, buffer_size, user_data_);
|
/system/media/mca/filterpacks/imageproc/native/ |
H A D | brightness.c | 41 void brightness_setvalue(const char* key, const char* value, void* user_data) { argument 42 if (strcmp(key, "brightness") == 0) 45 LOGE("Unknown parameter: %s!", key);
|
H A D | contrast.c | 36 void contrast_setvalue(const char* key, const char* value, void* user_data) { argument 37 if (strcmp(key, "contrast") == 0) 40 LOGE("Unknown parameter: %s!", key);
|
/system/media/wilhelm/src/autogen/ |
H A D | IID_to_MPH.c | 249 unsigned key = asso_values[((unsigned char *)iid)[8]] + local 251 if (key <= MAX_HASH_VALUE) { 252 int MPH = hash_to_MPH[key];
|