/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/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...] |
/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);
|
/cts/tests/sample/src/android/sample/cts/ |
SampleDeviceTest.java | 29 private static final String KEY = "foo"; 62 * This inserts the key value pair and assert they can be retrieved. Then it clears the 68 // Save the key value pair to the preferences and assert they were saved. 69 mActivity.savePreference(KEY, VALUE); 70 assertEquals("Preferences were not saved", VALUE, mActivity.getPreference(KEY)); 74 assertNull("Preferences were not cleared", mActivity.getPreference(KEY));
|
/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);
|
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/ |
SimpleBackupSharedPreference.java | 34 private static final String KEY = "key"; 37 public SimpleBackupSharedPreference(final String key, final Object value) { 38 mKey = key; 59 json.put(KEY, mKey); 83 return new SimpleBackupSharedPreference(json.getString(KEY), value);
|
/external/chromium_org/net/tools/testserver/ |
minica.py | 107 # The private key and root certificate name are hard coded here: 109 # This is the private key 110 KEY = RSA(0x00a71998f2930bfe73d031a87f133d2f378eeeeed52a77e44d0fc9ff6f07ff32cbf3da999de4ed65832afcb0807f98787506539d258a0ce3c2c77967653099a9034a9b115a876c39a8c4e4ed4acd0c64095946fb39eeeb47a0704dbb018acf48c3a1c4b895fc409fb4a340a986b1afc45519ab9eca47c30185c771c64aa5ecf07d, 115 KEY_PEM = '''-----BEGIN RSA PRIVATE KEY----- 129 -----END RSA PRIVATE KEY----- 153 # print DERToPEM(MakeCertificate(ISSUER_CN, ISSUER_CN, 1, KEY, KEY, None)) 329 * cert_and_key_pem contains a certificate and private key in PEM format 336 cert_der = MakeCertificate(ISSUER_CN, bytes(subject), serial, KEY, KEY, [all...] |
/external/smack/src/com/kenai/jbosh/ |
Attributes.java | 45 static final BodyQName KEY = BodyQName.createBOSH("key");
|
/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/DeskClock/src/com/android/deskclock/stopwatch/ |
Stopwatches.java | 49 public static final String KEY = "sw";
|
/cts/tests/tests/os/src/android/os/cts/ |
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));
|
BundleTest.java | 45 public static final String KEY = "Bruce Lee"; 65 b1.putBoolean(KEY, true); 69 assertTrue(b2.getBoolean(KEY)); 89 mBundle.putBoolean(KEY, true); 109 assertFalse(mBundle.containsKey(KEY)); 110 mBundle.putBoolean(KEY, true); 111 assertTrue(mBundle.containsKey(KEY)); 113 assertTrue(mBundle.containsKey(KEY)); 119 assertNull(mBundle.get(KEY)); 120 mBundle.putBoolean(KEY, true) [all...] |
/external/chromium_org/third_party/bintrees/bintrees/ |
ctrees.c | 15 #define KEY(node) (node->key) 25 ct_new_node(PyObject *key, PyObject *value, int xdata) 29 KEY(new_node) = key; 30 Py_INCREF(key); 44 Py_XDECREF(KEY(node)); 70 tmp = KEY(node1); 71 KEY(node1) = KEY(node2) [all...] |
/external/smack/src/org/xbill/DNS/ |
Type.java | 87 /** Key */ 88 public static final int KEY = 25; 120 /** Key exchange */ 141 /** SSH Key Fingerprint */ 144 /** IPSEC key */ 153 /** DNSSEC Key */ 171 /** Transaction key - used to compute a shared secret or exchange a key */ 251 types.add(KEY, "KEY", new KEYRecord()) [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
RecentsProvider.java | 78 public static final String KEY = "key"; 132 RecentColumns.KEY + " TEXT PRIMARY KEY ON CONFLICT REPLACE," + 143 "PRIMARY KEY (" + StateColumns.AUTHORITY + ", " + StateColumns.ROOT_ID + ", " 148 ResumeColumns.PACKAGE_NAME + " TEXT NOT NULL PRIMARY KEY," + 204 final ContentValues key = new ContentValues(); local 217 key.put(StateColumns.AUTHORITY, authority); 218 key.put(StateColumns.ROOT_ID, rootId); 219 key.put(StateColumns.DOCUMENT_ID, documentId) 319 final String key = getCursorString(cursor, RecentColumns.KEY); local [all...] |
/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...] |
/frameworks/base/core/java/android/provider/ |
BrowserContract.java | 702 * Key for a setting value. 704 public static final String KEY = "key"; 723 KEY + "=?", new String[] { KEY_SYNC_ENABLED }, null); 738 values.put(KEY, KEY_SYNC_ENABLED);
|
Contacts.java | 121 * The key of this setting. 126 public static final String KEY = "key"; 168 public static final String DEFAULT_SORT_ORDER = "key ASC"; 187 public static String getSetting(ContentResolver cr, String account, String key) { 196 ? "_sync_account is null AND key=?" 197 : "_sync_account=? AND key=?"; 198 // : "_sync_account=? AND _sync_account_type=? AND key=?"; 200 ? new String[]{key} 201 : new String[]{account, key}; [all...] |
CalendarContract.java | 130 * Intent Extras key: {@link EventsColumns#CUSTOM_APP_URI} for the event in 136 * Intent Extras key: The start time of an event or an instance of a 142 * Intent Extras key: The end time of an event or an instance of a recurring 148 * Intent Extras key: When creating an event, set this to true to create an 345 * A key for looking up a color from the {@link Colors} table. NULL or 347 * not use a key for looking up the color. The provider will update 348 * {@link #CALENDAR_COLOR} automatically when a valid key is written to 349 * this column. The key must reference an existing row of the [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/bc/ |
BcKeyStoreSpi.java | 10 import java.security.Key; 74 static final int KEY = 2; 79 // 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 716 Key key = decodeKey(dIn); local [all...] |
/packages/apps/Gallery2/src/com/android/photos/data/ |
PhotoProvider.java | 99 /** Long foreign key to Accounts._ID */ 138 /** Long foreign key to Accounts._ID */ 174 /** Foreign key to photo_id. Long value. */ 176 /** Metadata key. String value */ 177 public static final String KEY = "key"; 179 * Metadata value. Type is based on key. 215 + Metadata.KEY + " = ?"; 424 values.getAsString(Metadata.PHOTO_ID), values.getAsString(Metadata.KEY),
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/ |
Sdk.java | [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/pkcs12/ |
PKCS12KeyStoreSpi.java | 9 import java.security.Key; 107 static final int KEY = 2; 112 // key types 130 PublicKey key) 132 this.id = createSubjectKeyId(key).getKeyIdentifier(); 202 throw new RuntimeException("error creating key"); 228 tab.put(a, "key"); 249 Key k = (Key)keys.remove(alias); 273 * simply return the cert for the private key 669 BCPBEKey key = (BCPBEKey)keyFact.generateSecret(pbeSpec); local 1579 BCPBEKey key = (BCPBEKey)keyFact.generateSecret(pbeSpec); local [all...] |
/external/clang/include/clang/AST/ |
ExprObjC.h | 198 /// \brief The key for the dictionary element. 199 Expr *Key; 224 /// \brief Key/value pair used to store the key and value of a given element. 228 Expr *Key; 251 /// key/value pairs, which provide the locations of the ellipses (if 309 ObjCDictionaryElement Result = { KV.Key, KV.Value, SourceLocation(), None }; 773 /// array[4] = array[3]; dictionary[key] = dictionary[alt_key]; 781 enum { BASE, KEY, END_EXPR }; 792 ObjCSubscriptRefExpr(Expr *base, Expr *key, QualType T [all...] |
/external/grub/stage2/ |
fsys_reiserfs.c | 124 * directories use this key as well as old files 161 struct key struct 176 #define KEY_SIZE (sizeof (struct key)) 185 struct key blk_right_delim_key; /* Right delimiting key for this block (supported for leaf level nodes 193 struct key ih_key; /* Everything in the tree is found by searching for it based on its key.*/ 199 stat data item. Note that the key, not this field, is used to determine 248 __u32 deh_offset; /* third component of the directory entry key */ 350 #define KEY(cache) ((struct key *) ((int) cache + BLKH_SIZE) 836 struct key *key; local [all...] |