/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);
|
/frameworks/base/include/utils/ |
KeyedVector.h | 32 template <typename KEY, typename VALUE> 36 typedef KEY key_type; 63 const VALUE& valueFor(const KEY& key) const; 65 const KEY& keyAt(size_t index) const; 66 ssize_t indexOfKey(const KEY& key) const; 72 VALUE& editValueFor(const KEY& key); 79 ssize_t add(const KEY& key, const VALUE& item) [all...] |
TypeHelpers.h | 211 * a key/value pair 214 template <typename KEY, typename VALUE> 216 KEY key; member in struct:android::key_value_pair_t 219 key_value_pair_t(const key_value_pair_t& o) : key(o.key), value(o.value) { } 220 key_value_pair_t(const KEY& k, const VALUE& v) : key(k), value(v) { } 221 key_value_pair_t(const KEY& k) : key(k) { [all...] |
/system/core/libpixelflinger/tinyutils/ |
KeyedVector.h | 24 template <typename KEY, typename VALUE> 28 typedef KEY key_type; 55 const VALUE& valueFor(const KEY& key) const; 57 const KEY& keyAt(size_t index) 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) [all...] |
TypeHelpers.h | 206 * a key/value pair 209 template <typename KEY, typename VALUE> 211 KEY key; member in struct:android::key_value_pair_t 214 key_value_pair_t(const key_value_pair_t& o) : key(o.key), value(o.value) { } 215 key_value_pair_t(const KEY& k, const VALUE& v) : key(k), value(v) { } 216 key_value_pair_t(const KEY& k) : key(k) { [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 | 51 public static final String KEY = "Bruce Lee"; 97 b1.putBoolean(KEY, true); 101 assertTrue(b2.getBoolean(KEY)); 122 mBundle.putBoolean(KEY, true); 152 assertFalse(mBundle.containsKey(KEY)); 153 mBundle.putBoolean(KEY, true); 154 assertTrue(mBundle.containsKey(KEY)); 156 assertTrue(mBundle.containsKey(KEY)); 167 assertNull(mBundle.get(KEY)); 168 mBundle.putBoolean(KEY, true) [all...] |
MessageTest.java | 35 public static final String KEY = "android"; 280 bundle.putInt(KEY, VALUE); 287 assertEquals(VALUE, mMessage.getData().getInt(KEY)); 318 bundle.putInt(KEY, VALUE); 328 assertEquals(VALUE, mMessage.getData().getInt(KEY));
|
/external/skia/gpu/include/ |
GrTBSearch.h | 21 template <typename ELEM, typename KEY> 22 int GrTBSearch(const ELEM array[], int count, KEY target) {
|
/packages/apps/Camera/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/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)], \
|
/external/elfutils/ |
Makefile.am | 25 EXTRA_DIST = splint.rc elfutils.spec GPG-KEY NOTES COPYING.GPL
|
/development/build/tools/ |
mk_sdk_repo_xml.sh | 131 local KEY VALUE 135 KEY="$1" 137 NODE="${KEY%%/*}" 138 KEY="${KEY##*/}" 139 [[ "$NODE" == "$KEY" ]] && NODE="" 145 echo " <sdk:$KEY>$VALUE</sdk:$KEY>" >> "$OUT"
|
/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...] |
/prebuilt/linux-x86/toolchain/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)
|
/frameworks/base/core/java/android/provider/ |
BrowserContract.java | 521 * Key for a setting value. 523 public static final String KEY = "key"; 542 KEY + "=?", new String[] { KEY_SYNC_ENABLED }, null); 557 values.put(KEY, KEY_SYNC_ENABLED);
|
/packages/providers/ContactsProvider/tests/assets/test1/ |
legacy_contacts.sql | 6 CREATE TABLE _sync_state (_id INTEGER PRIMARY KEY,_sync_account TEXT,data TEXT,UNIQUE(_sync_account)); 12 CREATE TABLE calls (_id INTEGER PRIMARY KEY AUTOINCREMENT,number TEXT,date INTEGER,duration INTEGER,type INTEGER,new INTEGER,name TEXT,numbertype INTEGER,numberlabel TEXT); 14 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); 31 CREATE TABLE extensions (_id INTEGER PRIMARY KEY AUTOINCREMENT,name TEXT NOT NULL,value TEXT NOT NULL,person INTEGER REFERENCES people(_id),UNIQUE(person, name)); 32 CREATE TABLE fave_msg_status (_id INTEGER PRIMARY KEY, msg TEXT, next_retry INTEGER, num_retries INTEGER); 33 CREATE TABLE fave_phone_changes (_id INTEGER PRIMARY KEY, old_phone TEXT, new_phone TEXT, change_timestamp TEXT); 34 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); 40 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); 47 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)); 51 CREATE TABLE organizations (_id INTEGER PRIMARY KEY AUTOINCREMENT,company TEXT,title TEXT,isprimary INTEGER NOT NULL DEFAULT 0,type INTEGER NOT NULL,l (…) [all...] |
/packages/providers/ContactsProvider/tests/assets/testSynced/ |
legacy_contacts.sql | 5 CREATE TABLE _sync_state (_id INTEGER PRIMARY KEY,_sync_account TEXT,data TEXT,UNIQUE(_sync_account)); 11 CREATE TABLE calls (_id INTEGER PRIMARY KEY AUTOINCREMENT,number TEXT,date INTEGER,duration INTEGER,type INTEGER,new INTEGER,name TEXT,numbertype INTEGER,numberlabel TEXT); 12 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); 18 CREATE TABLE extensions (_id INTEGER PRIMARY KEY AUTOINCREMENT,name TEXT NOT NULL,value TEXT NOT NULL,person INTEGER REFERENCES people(_id),UNIQUE(person, name)); 19 CREATE TABLE fave_msg_status (_id INTEGER PRIMARY KEY, msg TEXT, next_retry INTEGER, num_retries INTEGER); 21 CREATE TABLE fave_phone_changes (_id INTEGER PRIMARY KEY, old_phone TEXT, new_phone TEXT, change_timestamp TEXT); 22 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); 28 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); 40 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)); 42 CREATE TABLE organizations (_id INTEGER PRIMARY KEY AUTOINCREMENT,company TEXT,title TEXT,isprimary INTEGER NOT NULL DEFAULT 0,type INTEGER NOT NULL,l (…) [all...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
TestKeyStoreSpi.java | 8 import java.security.Key; 37 public static final Key KEY = new SecretKey() { 58 aliases.put("keyalias", KEY); 108 public Key engineGetKey(String alias, char[] password) 119 return (Key) aliases.get(alias); 138 Key k = (Key) aliases.get(alias); 197 public void engineSetKeyEntry(String alias, Key key, char[] password [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
CalendarUtils.java | 53 CalendarCache.KEY, CalendarCache.VALUE 73 * This is the key used for writing whether or not a home time zone should 78 * This is the key used for writing the time zone that should be used if 103 int keyColumn = cursor.getColumnIndexOrThrow(CalendarCache.KEY); 106 String key = cursor.getString(keyColumn); local 108 if (TextUtils.equals(key, CalendarCache.KEY_TIMEZONE_TYPE)) { 116 key, CalendarCache.KEY_TIMEZONE_INSTANCES_PREVIOUS)) { 242 mHandler.startUpdate(mToken, null, CalendarCache.URI, values, "key=?", 250 "key=?", TIMEZONE_INSTANCES_ARGS); 323 * @param key The preference to write t [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsTest.java | 603 Settings.KEY, Settings.VALUE}; 618 value.put(Settings.KEY, insertKey); 633 Settings.KEY + " = ?", 644 // if we update with a not-existed key, it equals insert operation. 646 value.put(Settings.KEY, updateKey); 652 Settings.KEY + " = ?", 662 Settings.KEY + " = ?", 672 // if we update with a not-existed key, then it is really update operation. 674 value.put(Settings.KEY, insertKey); 680 Settings.KEY + " = ?" [all...] |
/external/webkit/Source/WebKit/mac/WebView/ |
WebPreferences.mm | 47 #define KEY(x) (_private->identifier ? [_private->identifier stringByAppendingString:(x)] : (x)) 179 + (NSString *)_concatenateKeyWithIBCreatorID:(NSString *)key; 186 - (BOOL)_boolValueForKey:(NSString *)key; 187 - (void)_setBoolValue:(BOOL)value forKey:(NSString *)key; 188 - (int)_integerValueForKey:(NSString *)key; 189 - (void)_setIntegerValue:(int)value forKey:(NSString *)key; 190 - (float)_floatValueForKey:(NSString *)key; 191 - (void)_setFloatValue:(float)value forKey:(NSString *)key; 192 - (void)_setLongLongValue:(long long)value forKey:(NSString *)key; 193 - (long long)_longLongValueForKey:(NSString *)key; [all...] |
/external/webkit/LayoutTests/storage/ |
hash-change-with-xhr.js | 4 var CREATE_HEALTH_TABLE = 'CREATE TABLE IF NOT EXISTS health (key VARCHAR(16) PRIMARY KEY);'; 5 var UPDATE_DATA = 'REPLACE INTO health VALUES("health-check-key");';
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
JDKKeyStore.java | 10 import java.security.Key; 77 static final int KEY = 2; 82 // key types 127 Key key, 156 encodeKey(key, dOut); 210 if (obj instanceof Key) 252 Key k = null; 277 // reencrypt key with correct cipher. 316 // if we get to here key was saved as byte data, whic 723 Key key = decodeKey(dIn); local [all...] |