/frameworks/native/include/utils/ |
KeyedVector.h | 34 template <typename KEY, typename VALUE> 38 typedef KEY key_type; 68 const VALUE& valueFor(const KEY& key) const; 70 const KEY& keyAt(size_t index) const; 71 ssize_t indexOfKey(const KEY& key) const; 78 VALUE& editValueFor(const KEY& key); 85 ssize_t add(const KEY& key, const VALUE& item) [all...] |
TypeHelpers.h | 223 * a key/value pair 226 template <typename KEY, typename VALUE> 228 typedef KEY key_t; 231 KEY key; member in struct:android::key_value_pair_t 234 key_value_pair_t(const key_value_pair_t& o) : key(o.key), value(o.value) { } 235 key_value_pair_t(const KEY& k, const VALUE& v) : key(k), value(v) { } 236 key_value_pair_t(const KEY& k) : key(k) { [all...] |
/frameworks/base/core/tests/coretests/src/android/os/ |
SystemPropertiesTest.java | 26 private static final String KEY = "com.android.frameworks.coretests"; 32 SystemProperties.set(KEY, ""); 33 value = SystemProperties.get(KEY, "default"); 36 SystemProperties.set(KEY, "AAA"); 37 value = SystemProperties.get(KEY, "default"); 40 value = SystemProperties.get(KEY); 43 SystemProperties.set(KEY, ""); 44 value = SystemProperties.get(KEY, "default"); 47 value = SystemProperties.get(KEY);
|
/system/core/libpixelflinger/codeflinger/tinyutils/ |
KeyedVector.h | 33 template <typename KEY, typename VALUE> 37 typedef KEY key_type; 64 const VALUE& valueFor(const KEY& key) const; 66 const KEY& keyAt(size_t index) const; 67 ssize_t indexOfKey(const KEY& key) const; 73 VALUE& editValueFor(const KEY& key); 80 ssize_t add(const KEY& key, const VALUE& item) [all...] |
TypeHelpers.h | 216 * a key/value pair 219 template <typename KEY, typename VALUE> 221 KEY key; member in struct:android::tinyutils::key_value_pair_t 224 key_value_pair_t(const key_value_pair_t& o) : key(o.key), value(o.value) { } 225 key_value_pair_t(const KEY& k, const VALUE& v) : key(k), value(v) { } 226 key_value_pair_t(const KEY& k) : key(k) { [all...] |
/ndk/sources/host-tools/make-3.81/ |
hash.h | 38 typedef unsigned long (*hash_func_t) __P((void const *key)); 64 void **hash_find_slot __P((struct hash_table *ht, void const *key)); 65 void *hash_find_item __P((struct hash_table *ht, void const *key)); 85 #define STRING_HASH_1(KEY, RESULT) do { \ 86 unsigned char const *_key_ = (unsigned char const *) (KEY) - 1; \ 90 #define return_STRING_HASH_1(KEY) do { \ 92 STRING_HASH_1 ((KEY), _result_); \ 96 #define STRING_HASH_2(KEY, RESULT) do { \ 97 unsigned char const *_key_ = (unsigned char const *) (KEY) - 1; \ 101 #define return_STRING_HASH_2(KEY) do { [all...] |
/frameworks/base/core/tests/systemproperties/src/android/os/ |
SystemPropertiesTest.java | 25 private static final String KEY = "sys.testkey"; 40 SystemProperties.set(KEY, Long.toString(i)); 41 long ret = SystemProperties.getLong(KEY, -1); 50 SystemProperties.set(KEY, ""); 51 value = SystemProperties.get(KEY, "default"); 54 SystemProperties.set(KEY, "SA"); 55 value = SystemProperties.get(KEY, "default"); 58 value = SystemProperties.get(KEY); 61 SystemProperties.set(KEY, ""); 62 value = SystemProperties.get(KEY, "default") [all...] |
/cts/tests/tests/os/src/android/os/cts/ |
BundleTest.java | 45 public static final String KEY = "Bruce Lee"; 65 b1.putBoolean(KEY, true); 69 assertTrue(b2.getBoolean(KEY)); 78 mBundle.putBoolean(KEY, true); 98 assertFalse(mBundle.containsKey(KEY)); 99 mBundle.putBoolean(KEY, true); 100 assertTrue(mBundle.containsKey(KEY)); 102 assertTrue(mBundle.containsKey(KEY)); 108 assertNull(mBundle.get(KEY)); 109 mBundle.putBoolean(KEY, true) [all...] |
MessageTest.java | 30 public static final String KEY = "android"; 159 bundle.putInt(KEY, VALUE); 167 assertEquals(VALUE, mMessage.getData().getInt(KEY)); 187 bundle.putInt(KEY, VALUE); 197 assertEquals(VALUE, mMessage.getData().getInt(KEY));
|
/external/skia/src/gpu/ |
GrTBSearch.h | 14 template <typename ELEM, typename KEY> 15 int GrTBSearch(const ELEM array[], int count, KEY target) {
|
/external/guava/guava-tests/test/com/google/common/collect/ |
ConcurrentHashMultisetTest.java | 52 private static final String KEY = "puppies"; 70 expect(backingMap.get(KEY)).andReturn(new AtomicInteger(COUNT)); 73 assertEquals(COUNT, multiset.count(KEY)); 78 expect(backingMap.get(KEY)).andReturn(null); 81 assertEquals(0, multiset.count(KEY)); 88 expect(backingMap.get(KEY)).andReturn(new AtomicInteger(INITIAL_COUNT)); 90 assertEquals(INITIAL_COUNT, multiset.add(KEY, 0)); 97 expect(backingMap.get(KEY)).andReturn(null); 98 expect(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).andReturn(null); 101 assertEquals(0, multiset.add(KEY, COUNT)) [all...] |
/external/libselinux/src/ |
selinux_internal.h | 113 /* Pthread key macros */ 114 #define __selinux_key_create(KEY, DESTRUCTOR) \ 117 pthread_key_create(KEY, DESTRUCTOR); \ 120 #define __selinux_key_delete(KEY) \ 123 pthread_key_delete(KEY); \ 126 #define __selinux_setspecific(KEY, VALUE) \ 129 pthread_setspecific(KEY, VALUE); \
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
RecordLocationPreference.java | 30 public static final String KEY = "pref_camera_recordlocation_key"; 50 String value = pref.getString(KEY, VALUE_NONE);
|
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/ |
SerializerTests.java | 34 private static final String KEY = "Key"; 44 s.writeStringValue(values, KEY, Tags.COMPOSE_ACCOUNT_ID); 45 values.put(KEY, ID); 46 s.writeStringValue(values, KEY, Tags.COMPOSE_ACCOUNT_ID);
|
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/ |
SerializerTests.java | 34 private static final String KEY = "Key"; 44 s.writeStringValue(values, KEY, Tags.COMPOSE_ACCOUNT_ID); 45 values.put(KEY, ID); 46 s.writeStringValue(values, KEY, Tags.COMPOSE_ACCOUNT_ID);
|
/external/openssl/crypto/bf/ |
bf_locl.h | 164 #define BF_ENC(LL,R,KEY,Pi) (\ 165 LL^=KEY[Pi], \ 166 t= KEY[BF_ROUNDS+2 + 0 + ((R>>24)&0xFF)], \ 167 t+= KEY[BF_ROUNDS+2 + 256 + ((R>>16)&0xFF)], \ 168 t^= KEY[BF_ROUNDS+2 + 512 + ((R>>8 )&0xFF)], \ 169 t+= KEY[BF_ROUNDS+2 + 768 + ((R )&0xFF)], \
|
/frameworks/compile/mclinker/include/mcld/LD/ |
BranchIsland.h | 104 /** \class Key 105 * \brief Key to recognize a stub in the island. 108 class Key 111 Key(const Stub* pPrototype, const LDSymbol* pSymbol, Stub::SWord pAddend) 115 ~Key() 126 size_t operator() (const Key& KEY) const 128 llvm::StringRef sym_name(KEY.symbol()->name()); 130 return (size_t((uintptr_t)KEY.prototype())) ^ 132 KEY.addend() [all...] |
/external/elfutils/ |
Makefile.am | 36 EXTRA_DIST = elfutils.spec GPG-KEY NOTES EXCEPTION
|
/development/build/tools/ |
mk_sdk_repo_xml.sh | 257 local KEY VALUE 261 KEY="$1" 263 NODE="${KEY%%/*}" 264 KEY="${KEY##*/}" 265 if [[ "$NODE" == "$KEY" ]]; then 275 if needs_full_revision "$ELEMENT" "$KEY" ${FULL_REVISIONS[@]}; then 276 echo "$EXTRA_SPACE <sdk:$KEY>" >> "$OUT" 278 echo "$EXTRA_SPACE </sdk:$KEY>" >> "$OUT" 280 echo "$EXTRA_SPACE <sdk:$KEY>$VALUE</sdk:$KEY>" >> "$OUT [all...] |
/frameworks/rs/server/ |
TypeHelpers.h | 223 * a key/value pair 226 template <typename KEY, typename VALUE> 228 typedef KEY key_t; 231 KEY key; member in struct:android::key_value_pair_t 234 key_value_pair_t(const key_value_pair_t& o) : key(o.key), value(o.value) { } 235 key_value_pair_t(const KEY& k, const VALUE& v) : key(k), value(v) { } 236 key_value_pair_t(const KEY& k) : key(k) { [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
StopwatchService.java | 313 String key = Stopwatches.PREF_LAP_TIME + Integer.toString(lap_i + 1); local 314 long lap = prefs.getLong(key, 0); 368 Stopwatches.KEY + CircleTimerView.PREF_CTV_INTERVAL_START, -1); 372 editor.putLong(Stopwatches.KEY + CircleTimerView.PREF_CTV_INTERVAL_START, 374 editor.putBoolean(Stopwatches.KEY + CircleTimerView.PREF_CTV_PAUSED, false); 391 editor.putLong(Stopwatches.KEY + CircleTimerView.PREF_CTV_INTERVAL, lapTime); 393 editor.putLong(Stopwatches.KEY + CircleTimerView.PREF_CTV_MARKER_TIME, lapTime); 395 editor.putLong(Stopwatches.KEY + CircleTimerView.PREF_CTV_ACCUM_TIME, 0); 397 editor.putLong(Stopwatches.KEY + CircleTimerView.PREF_CTV_INTERVAL_START, time); 398 editor.putBoolean(Stopwatches.KEY + CircleTimerView.PREF_CTV_PAUSED, false) [all...] |
/external/mdnsresponder/mDNSShared/ |
dnsextd_lexer.l | 63 key return KEY;
|
/packages/providers/ContactsProvider/tests/assets/testUnsynced/ |
legacy_contacts.sql | 5 CREATE TABLE _sync_state (_id INTEGER PRIMARY KEY,_sync_account TEXT,data TEXT,UNIQUE(_sync_account)); 10 CREATE TABLE calls (_id INTEGER PRIMARY KEY AUTOINCREMENT,number TEXT,date INTEGER,duration INTEGER,type INTEGER,new INTEGER,name TEXT,numbertype INTEGER,numberlabel TEXT); 11 CREATE TABLE contact_methods (_id INTEGER PRIMARY KEY AUTOINCREMENT,person INTEGER REFERENCES people(_id),kind INTEGER NOT NULL,data TEXT,aux_data TEXT,type INTEGER NOT NULL,label TEXT,isprimary INTEGER NOT NULL DEFAULT 0); 15 CREATE TABLE extensions (_id INTEGER PRIMARY KEY AUTOINCREMENT,name TEXT NOT NULL,value TEXT NOT NULL,person INTEGER REFERENCES people(_id),UNIQUE(person, name)); 16 CREATE TABLE fave_msg_status (_id INTEGER PRIMARY KEY, msg TEXT, next_retry INTEGER, num_retries INTEGER); 17 CREATE TABLE fave_phone_changes (_id INTEGER PRIMARY KEY, old_phone TEXT, new_phone TEXT, change_timestamp TEXT); 18 CREATE TABLE faves (_id INTEGER PRIMARY KEY, ui_pos INTEGER, phone TEXT NOT NULL, nickname TEXT NOT NULL, photo TEXT NOT NULL, timestamp TEXT NOT NULL, pending_phone TEXT, pending_nickname TEXT, pending_photo TEXT); 24 CREATE TABLE groupmembership (_id INTEGER PRIMARY KEY,person INTEGER REFERENCES people(_id),group_id INTEGER REFERENCES groups(_id),group_sync_account STRING,group_sync_id STRING); 30 CREATE TABLE groups (_id INTEGER PRIMARY KEY AUTOINCREMENT,_sync_account TEXT,_sync_id TEXT,_sync_time TEXT,_sync_version TEXT,_sync_local_id INTEGER,_sync_dirty INTEGER NOT NULL DEFAULT 0,_sync_mark INTEGER,name TEXT NOT NULL,notes TEXT,should_sync INTEGER NOT NULL DEFAULT 0,system_id TEXT,UNIQUE(name,system_id,_sync_account)); 32 CREATE TABLE organizations (_id INTEGER PRIMARY KEY AUTOINCREMENT,company TEXT,title TEXT,isprimary INTEGER NOT NULL DEFAULT 0,type INTEGER NOT NULL,l (…) [all...] |
/external/smack/src/com/kenai/jbosh/ |
Attributes.java | 45 static final BodyQName KEY = BodyQName.createBOSH("key");
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/bits/ |
libc-lock.h | 61 /* Type for key to thread-specific data. */ 447 /* Create thread-specific key. */ 448 #define __libc_key_create(KEY, DESTRUCTOR) \ 449 __libc_ptf_call (__pthread_key_create, (KEY, DESTRUCTOR), 1) 452 #define __libc_getspecific(KEY) \ 453 __libc_ptf_call (__pthread_getspecific, (KEY), NULL) 456 #define __libc_setspecific(KEY, VALUE) \ 457 __libc_ptf_call (__pthread_setspecific, (KEY, VALUE), 0)
|