Searched defs:key (Results 76 - 100 of 3586) sorted by relevance

1234567891011>>

/external/icu/icu4c/source/tools/gentest/
H A Dgenres32.c19 * number of key characters and number of items both exceed 64k.
29 incKey(char *key, char *limit) { argument
32 while(limit>key) {
46 * key string, gets incremented binary numbers
52 char key[20]="ooooooooooooooooo"; local
72 /* find the limit of the key string */
73 for(limit=key; *limit!=0; ++limit) {
88 fprintf(out, "%s{\"\\U%08x\"}\n", key, i);
91 fprintf(out, "%s:int{%d}\n", key, i);
94 incKey(key, limi
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DCacheBase.java14 * implements the createInstance() method, and call get() with the key and the data.
18 * @param <K> Cache lookup key type
26 * Retrieves an instance from the cache. Calls createInstance(key, data) if the cache
27 * does not already contain an instance with this key.
28 * Ignores data if the cache already contains an instance with this key.
29 * @param key Cache lookup key for the requested instance
33 public abstract V getInstance(K key, D data); argument
35 * Creates an instance for the key and data. Must be overridden.
36 * @param key Cach
40 createInstance(K key, D data) argument
[all...]
H A DSoftCache.java17 * and call get() with the key and the data. The get() call will use the data
27 * In this case, it must do so consistently for the same key and data.
29 * @param <K> Cache lookup key type
40 public final V getInstance(K key, D data) { argument
46 // ConcurrentHashMap.putIfAbsent() never replaces the key's value, and if it were
49 Object mapValue = map.get(key);
65 value = createInstance(key, data);
68 // We had never cached an instance for this key.
69 V value = createInstance(key, data);
72 mapValue = map.putIfAbsent(key, mapValu
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
H A DUnlocalizedNumberFormatter.java23 UnlocalizedNumberFormatter(NumberFormatterSettings<?> parent, int key, Object value) { argument
24 super(parent, key, value);
63 UnlocalizedNumberFormatter create(int key, Object value) { argument
64 return new UnlocalizedNumberFormatter(this, key, value);
/external/iproute2/examples/bpf/
H A Dbpf_map_in_map.c28 int key = 0, *val; local
30 map_inner = map_lookup_elem(&map_outer, &key);
32 val = map_lookup_elem(map_inner, &key);
44 int key = 0, *val; local
46 map_inner = map_lookup_elem(&map_outer, &key);
48 val = map_lookup_elem(map_inner, &key);
/external/ksoap2/ksoap2-base/src/main/java/org/ksoap2/
H A DHeaderProperty.java5 * HeaderProperty is a key - value pojo for storing http header properties.
8 private String key; field in class:HeaderProperty
11 public HeaderProperty(String key, String value) { argument
12 this.key = key;
17 return key;
20 public void setKey(String key) { argument
21 this.key = key;
/external/libbackup/src/com/google/android/libraries/backup/
H A DBackupKeyPredicate.java3 /** A predicate that determines whether a given key should be backed up. */
6 /** Returns whether a given key should be backed up. */
7 boolean shouldBeBackedUp(String key); argument
/external/libbrillo/brillo/
H A Dosrelease_reader.cc18 bool OsReleaseReader::GetString(const std::string& key, argument
21 return store_.GetString(key, value);
/external/libchrome/base/threading/
H A Dthread_local_storage_posix.cc13 bool PlatformThreadLocalStorage::AllocTLS(TLSKey* key) { argument
14 return !pthread_key_create(key,
18 void PlatformThreadLocalStorage::FreeTLS(TLSKey key) { argument
19 int ret = pthread_key_delete(key);
23 void* PlatformThreadLocalStorage::GetTLSValue(TLSKey key) { argument
24 return pthread_getspecific(key);
27 void PlatformThreadLocalStorage::SetTLSValue(TLSKey key, void* value) { argument
28 int ret = pthread_setspecific(key, value);
/external/libchrome/crypto/
H A Dsymmetric_key.h19 // Wraps a platform-specific symmetric key and allows it to be held in a
23 // Defines the algorithm that a key will be used with. See also
32 // Generates a random key suitable to be used with |algorithm| and of
39 // Derives a key from the supplied password and salt using PBKDF2, suitable
41 // used to derive the key from the password. |key_size_in_bits| must be a
51 // Imports an array of key bytes in |raw_key|. This key may have been
53 // GetRawKey, or via another compatible method. The key must be of suitable
58 const std::string& key() { return key_; } function in class:crypto::SymmetricKey
60 // Extracts the raw key fro
[all...]
/external/libcups/cups/
H A Dppd-custom.c43 ppd_coption_t key; /* Custom option search key */ local
49 strlcpy(key.keyword, keyword, sizeof(key.keyword));
50 return ((ppd_coption_t *)cupsArrayFind(ppd->coptions, &key));
/external/libcxx/test/libcxx/utilities/function.objects/unord.hash/
H A Dmurmur2_or_cityhash_ubsan_unsigned_overflow_ignored.pass.cpp23 void test(const void* key, int len) { argument
27 DoNotOptimize(h1(key, i));
28 DoNotOptimize(h2(key, i));
/external/libevent/include/event2/
H A Dkeyvalq_struct.h61 char *key; member in struct:evkeyval
/external/libtextclassifier/util/gtl/
H A Dmap_util.h22 // Returns a const reference to the value associated with the given key if it
34 const typename Collection::value_type::first_type& key,
36 typename Collection::const_iterator it = collection.find(key);
43 // Inserts the given key and value into the given collection if and only if the
44 // given key did NOT already exist in the collection. If the key previously
46 // key-value pair was inserted; returns false if the key was already present.
53 // Same as above except the key and value are passed separately.
57 const typename Collection::value_type::first_type& key,
32 FindWithDefault( const Collection& collection, const typename Collection::value_type::first_type& key, const typename Collection::value_type::second_type& value) argument
55 InsertIfNotPresent( Collection* const collection, const typename Collection::value_type::first_type& key, const typename Collection::value_type::second_type& value) argument
[all...]
/external/ltp/testcases/cve/
H A Dcve-2016-7042.c38 static key_serial_t key; variable
45 key = add_key("user", "ltptestkey", "a", 1, KEY_SPEC_SESSION_KEYRING);
46 if (key == -1)
47 tst_brk(TBROK, "Failed to add key");
49 if (keyctl(KEYCTL_UPDATE, key, "b", 1))
50 tst_brk(TBROK, "Failed to update key");
62 if (keyctl(KEYCTL_UNLINK, key, KEY_SPEC_SESSION_KEYRING))
63 tst_brk(TBROK, "Failed to unlink key");
64 key = 0;
75 if (key >
[all...]
/external/ltp/testcases/kernel/mem/shmt/
H A Dshmt02.c60 key_t key; local
63 key = (key_t) getpid();
67 if ((shmid = shmget(key, 16 * K_1, IPC_CREAT | 0666)) < 0) {
H A Dshmt05.c52 key_t key[2]; variable
65 key[0] = (key_t) lrand48();
66 key[1] = (key_t) lrand48();
73 if ((shmid = shmget(key[0], SIZE, IPC_CREAT | 0666)) < 0) {
91 if ((shmid1 = shmget(key[1], SIZE, IPC_CREAT | 0666)) < 0) {
H A Dshmt07.c64 key_t key; local
66 key = (key_t) getpid();
72 if ((shmid = shmget(key, SIZE, IPC_CREAT | 0666)) < 0) {
H A Dshmt08.c52 key_t key; variable
61 key = (key_t) getpid();
65 if ((shmid = shmget(key, 24 * K_1, IPC_CREAT | 0666)) < 0) {
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_create/
H A D3-1.c10 * An optional destructor function may be associated with each key value. At thread exit, if
11 * a key value has a non-NULL destructor pointer, and the thread has a non-NULL value associated
12 * with that key, the value of the key is set to NULL, and then the function pointed to is called
31 pthread_key_t key; variable
44 /* Set the value of the key to a value */
45 if (pthread_setspecific(key, (void *)(KEY_VALUE)) != 0) {
50 /* The thread ends here, the destructor for the key should now be called after this */
61 /* Create a key with a destructor function */
62 if (pthread_key_create(&key, dest_fun
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_delete/
H A D2-1.c12 that may have been associated with 'key' shall no longer be called up thread exit.
15 * 1. Create a key with a destructor function associated with it
29 pthread_key_t key; variable
36 /* Delete the key and check if an error has occured */
37 if (pthread_key_delete(key) != 0) {
46 /* Set the value of the key to a value */
47 if (pthread_setspecific(key, (void *)(KEY_VALUE)) != 0) {
52 /* The thread ends here, the destructor for the key should now be called after this */
63 /* Create a key with a destructor function */
64 if (pthread_key_create(&key, dest_fun
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setspecific/
H A D1-2.c10 * shall acssociate a thread-specific value with a key obtained via a previouse call to
11 * pthread_key_create. Different threads may bind different values to the same key.
12 * Calling pthread_setspecific with a key value not obtiained from pthread_key_create of after
13 * the key has been deleted with pthread_key_delete is undefined.
16 * 1. Create a key
17 * 2. Bind a value from the main thread to this key
18 * 3. Create a thread and bind another value to this key
19 * 4. Compare the values bound to the key between the main thread and the newly created thread,
33 pthread_key_t key; variable
39 /* Bind a value to key fo
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_create/speculative/
H A D2-1.c24 int compare(const void *key, const void *amemb) argument
26 if (*(timer_t *) key == *(timer_t *) amemb) {
/external/mesa3d/src/gallium/winsys/svga/drm/
H A Dvmw_screen.c52 static unsigned vmw_dev_hash(void *key) argument
54 return (major(*(dev_t *) key) << 16) | minor(*(dev_t *) key);
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_sf.c50 struct brw_sf_prog_key *key )
64 c.key = *key;
66 if (c.key.do_point_coord) {
85 switch (key->primitive) {
96 if (key->do_point_sprite)
126 &c.key, sizeof(c.key),
139 struct brw_sf_prog_key key; local
158 memset(&key,
[all...]

Completed in 2447 milliseconds

1234567891011>>