Searched refs:key (Results 1 - 25 of 120) sorted by relevance

12345

/packages/apps/Mms/src/com/android/mms/util/
H A DSendingProgressTokenManager.java37 synchronized public static long get(Object key) { argument
38 Long token = TOKEN_POOL.get(key);
40 Log.v(TAG, "TokenManager.get(" + key + ") -> " + token);
45 synchronized public static void put(Object key, long token) { argument
47 Log.v(TAG, "TokenManager.put(" + key + ", " + token + ")");
49 TOKEN_POOL.put(key, token);
52 synchronized public static void remove(Object key) { argument
54 Log.v(TAG, "TokenManager.remove(" + key + ")");
56 TOKEN_POOL.remove(key);
/packages/apps/IM/src/com/android/im/app/
H A DIntTrie.java29 public final void add(String key, int value) { argument
30 final int len = key.length();
35 n = n.getOrCreateNode(key.charAt(index++));
41 private Node getOrCreateNode(char key) { argument
43 if (n.mKey == key) {
50 n.mKey = key;
57 Node getNode(char key) { argument
59 if (n.mKey == key) {
82 public Node getNode(char key) { argument
83 return mHead.getNode(key);
[all...]
H A DSettingActivity.java77 String key = preference.getKey();
80 if (key.equals(KEY_HIDE_OFFLINE_CONTACTS)) {
82 } else if (key.equals(KEY_ENABLE_NOTIFICATIONS)) {
84 } else if (key.equals(KEY_NOTIFICATION_VIBRATE)) {
86 } else if (key.equals(KEY_NOTIFICATION_SOUND)){
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarCache.java26 * Class for managing a persistent Cache of (key, value) pairs. The persistent storage used is
38 private static final String COLUMN_NAME_KEY = "key";
52 * This exception is thrown when the cache encounter a null key or a null database reference
77 * Write a (key, value) pair in the Cache.
79 * @param key the key (must not be null)
81 * @throws CacheException when key is null
83 public void writeData(String key, String value) throws CacheException { argument
87 writeDataLocked(db, key, value);
90 Log.i(TAG, "Wrote (key, valu
106 writeDataLocked(SQLiteDatabase db, String key, String value) argument
130 readData(String key) argument
145 readDataLocked(SQLiteDatabase db, String key) argument
[all...]
/packages/apps/Camera/src/com/android/camera/gallery/
H A DLruCache.java49 public Entry(K key, V value, ReferenceQueue<V> queue) { argument
51 mKey = key;
64 public synchronized V put(K key, V value) { argument
66 mLruMap.put(key, value);
68 key, new Entry<K, V>(key, value, mQueue));
72 public synchronized V get(K key) { argument
74 V value = mLruMap.get(key);
76 Entry<K, V> entry = mWeakMap.get(key);
/packages/apps/Gallery/src/com/android/camera/gallery/
H A DLruCache.java45 public Entry(K key, V value, ReferenceQueue<V> queue) { argument
47 mKey = key;
60 public synchronized V put(K key, V value) { argument
62 mLruMap.put(key, value);
64 key, new Entry<K, V>(key, value, mQueue));
68 public synchronized V get(K key) { argument
70 V value = mLruMap.get(key);
72 Entry<K, V> entry = mWeakMap.get(key);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/voice/
H A DSettingsUtil.java81 * @param key The setting to look up
85 public static String getSettingsString(ContentResolver cr, String key, String defaultValue) { argument
86 String result = Settings.Secure.getString(cr, key);
94 * @param key The setting to look up
98 public static int getSettingsInt(ContentResolver cr, String key, int defaultValue) { argument
99 return Settings.Secure.getInt(cr, key, defaultValue);
106 * @param key The setting to look up
110 public static float getSettingsFloat(ContentResolver cr, String key, float defaultValue) { argument
111 return Settings.Secure.getFloat(cr, key, defaultValue);
H A DWhitelist.java60 for (String key : condition.keySet()) {
61 if (!condition.getString(key).equals(target.getString(key))) {
/packages/apps/Gallery3D/src/com/cooliris/media/
H A DLongSparseArray.java57 * Gets the Object mapped from the specified key, or <code>null</code> if no
60 public E get(long key) { argument
61 return get(key, null);
65 * Gets the Object mapped from the specified key, or the specified Object if
69 public E get(long key, E valueIfKeyNotFound) { argument
70 int i = binarySearch(mKeys, 0, mSize, key);
80 * Removes the mapping from the specified key, if there was any.
82 public void delete(long key) { argument
83 int i = binarySearch(mKeys, 0, mSize, key);
96 public void remove(long key) { argument
131 put(long key, E value) argument
234 indexOfKey(long key) argument
279 append(long key, E value) argument
309 binarySearch(long[] a, int start, int len, long key) argument
[all...]
H A DDiskCache.java64 public byte[] get(long key, long timestamp) { argument
65 // Look up the record for the given key.
68 record = mIndexMap.get(key);
92 public boolean isDataAvailable(long key, long timestamp) { argument
95 record = mIndexMap.get(key);
108 public void put(long key, byte[] data, long timestamp) { argument
112 record = mIndexMap.get(key);
123 mIndexMap.put(key, new Record(currentChunk, record.offset, data.length, record.sizeOnDisk, timestamp));
148 mIndexMap.put(key, new Record(chunk, offset, data.length, data.length, timestamp));
170 public void delete(long key) { argument
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DContactLookupKey.java24 * Contacts lookup key. Used for generation and parsing of contact lookup keys as well
37 public String key; field in class:ContactLookupKey.LookupKeySegment
114 String key;
169 key = sb.toString();
179 key = string.substring(start);
181 key = string.substring(start, offset - 1);
195 key = string.substring(start);
197 key = string.substring(start, offset - 1);
219 key = string.substring(start);
221 key
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DCredentialInstaller.java28 * {@link Credentials#SYSTEM_INSTALL_ACTION} intent. All the key-value pairs in
72 for (String key : bundle.keySet()) {
73 byte[] data = bundle.getByteArray(key);
75 boolean success = mKeyStore.put(key.getBytes(), data);
76 Log.d(TAG, "install " + key + ": " + data.length + " success? " + success);
H A DChooseLockGeneric.java69 final String key = preference.getKey();
71 if (KEY_UNLOCK_SET_NONE.equals(key)) {
73 } else if (KEY_UNLOCK_SET_PATTERN.equals(key)) {
75 } else if (KEY_UNLOCK_SET_PIN.equals(key)) {
77 } else if (KEY_UNLOCK_SET_PASSWORD.equals(key)) {
132 final String key = ((PreferenceScreen) pref).getKey();
134 if (KEY_UNLOCK_SET_NONE.equals(key)) {
136 } else if (KEY_UNLOCK_SET_PATTERN.equals(key)) {
138 } else if (KEY_UNLOCK_SET_PIN.equals(key)) {
140 } else if (KEY_UNLOCK_SET_PASSWORD.equals(key)) {
[all...]
H A DAccessibilitySettings.java111 for (String key : accessibilityServices.keySet()) {
112 CheckBoxPreference preference = (CheckBoxPreference) findPreference(key);
114 preference.setChecked(enabled.contains(key));
152 // No POWER key on the current device; this entire category is irrelevant.
184 final String key = preference.getKey();
186 if (TOGGLE_ACCESSIBILITY_SERVICE_CHECKBOX.equals(key)) {
189 } else if (POWER_BUTTON_ENDS_CALL_CHECKBOX.equals(key)) {
285 for (String key : mAccessibilityServices.keySet()) {
286 CheckBoxPreference preference = (CheckBoxPreference) findPreference(key);
288 builder.append(key);
[all...]
/packages/inputmethods/PinyinIME/jni/include/
H A Dmystdlib.h27 void *mybsearch(const void *key, const void *base,
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppPreference.java117 String key = getChannelKey(remoteDevice, uuid);
118 if (V) Log.v(TAG, "getChannel " + key);
121 channel = mChannels.get(key);
142 String key = getChannelKey(remoteDevice, uuid);
144 ed.putInt(key, channel);
146 mChannels.put(key, channel);
151 String key = getChannelKey(remoteDevice, uuid);
153 ed.remove(key);
155 mChannels.remove(key);
/packages/apps/Camera/tests/src/com/android/camera/gallery/
H A DLruCacheUnitTests.java10 Integer key = Integer.valueOf(1);
12 cache.put(key, value);
13 assertEquals(value, cache.get(key));
18 Integer key = Integer.valueOf(1);
20 cache.put(key, value);
25 assertEquals(value, cache.get(key));
/packages/apps/Gallery/tests/src/com/android/camera/gallery/
H A DLruCacheUnitTests.java10 Integer key = Integer.valueOf(1);
12 cache.put(key, value);
13 assertEquals(value, cache.get(key));
18 Integer key = Integer.valueOf(1);
20 cache.put(key, value);
25 assertEquals(value, cache.get(key));
/packages/apps/Contacts/src/com/android/contacts/model/
H A DEntityDelta.java537 public String getAsString(String key) { argument
538 if (mAfter != null && mAfter.containsKey(key)) {
539 return mAfter.getAsString(key);
540 } else if (mBefore != null && mBefore.containsKey(key)) {
541 return mBefore.getAsString(key);
547 public byte[] getAsByteArray(String key) { argument
548 if (mAfter != null && mAfter.containsKey(key)) {
549 return mAfter.getAsByteArray(key);
550 } else if (mBefore != null && mBefore.containsKey(key)) {
551 return mBefore.getAsByteArray(key);
557 getAsLong(String key) argument
567 getAsInteger(String key) argument
571 getAsInteger(String key, Integer defaultValue) argument
658 put(String key, String value) argument
663 put(String key, byte[] value) argument
668 put(String key, int value) argument
[all...]
/packages/apps/Camera/src/com/android/camera/
H A DPreferenceGroup.java60 * Finds the preference with the given key recursively. Returns
63 public ListPreference findPreference(String key) { argument
64 // Find a leaf preference with the given key. Currently, the base
70 if(listPref.getKey().equals(key)) return listPref;
73 ((PreferenceGroup) pref).findPreference(key);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DListSuggestionCursorNoDuplicates.java41 String key = getSuggestionKey(suggestion);
42 if (mSuggestionKeys.add(key)) {
45 if (DBG) Log.d(TAG, "Rejecting duplicate " + key);
51 * Gets a unique key that identifies a suggestion. This is used to avoid
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DTextEntryState.java91 sKeyLocationFile = context.openFileOutput("key.txt", Context.MODE_APPEND);
216 public static void keyPressedAt(Key key, int x, int y) { argument
217 if (LOGGING && sKeyLocationFile != null && key.codes[0] >= 32) {
219 "KEY: " + (char) key.codes[0]
222 + " MX: " + (key.x + key.width / 2)
223 + " MY: " + (key.y + key.height / 2)
/packages/experimental/procstatlog/
H A Dprocstatreport.py224 for key in state:
225 if not key.startswith(speed_key): continue
227 last = int(last_state.get(key, -1))
228 next = int(state.get(key, -1))
230 speed = int(key[len(speed_key):])
303 for key in state:
304 if not key.endswith("/stat"): continue
306 last = last_state.get(key, zero_stat).split()
307 next = state.get(key, "").split()
394 for key i
[all...]
/packages/apps/Email/src/com/android/email/mail/store/
H A DImapResponseParser.java393 public Object getKeyedValue(Object key) { argument
395 if (get(i).equals(key)) {
402 public ImapList getKeyedList(Object key) { argument
403 return (ImapList)getKeyedValue(key);
406 public String getKeyedString(Object key) { argument
407 return (String)getKeyedValue(key);
410 public InputStream getKeyedLiteral(Object key) { argument
411 return (InputStream)getKeyedValue(key);
414 public int getKeyedNumber(Object key) { argument
415 return Integer.parseInt(getKeyedString(key));
418 getKeyedDate(Object key) argument
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DWnnEngine.java81 * @param key The search key (stroke)
84 public int searchWords(String key); argument

Completed in 326 milliseconds

12345