Searched defs:key (Results 1 - 25 of 104) sorted by relevance

12345

/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/Mms/src/com/android/mms/util/
H A DSendingProgressTokenManager.java36 synchronized public static long get(Object key) { argument
37 Long token = TOKEN_POOL.get(key);
39 Log.v(TAG, "TokenManager.get(" + key + ") -> " + token);
44 synchronized public static void put(Object key, long token) { argument
46 Log.v(TAG, "TokenManager.put(" + key + ", " + token + ")");
48 TOKEN_POOL.put(key, token);
51 synchronized public static void remove(Object key) { argument
53 Log.v(TAG, "TokenManager.remove(" + key + ")");
55 TOKEN_POOL.remove(key);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DDebugSettings.java56 public void onSharedPreferenceChanged(SharedPreferences prefs, String key) { argument
57 if (key.equals(DEBUG_MODE_KEY)) {
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/
H A DPolarClockSettings.java51 String key) {
50 onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) argument
/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/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DLruCache.java49 public Entry(K key, V value, ReferenceQueue<V> queue) { argument
51 mKey = key;
64 public synchronized boolean containsKey(K key) { argument
66 return mWeakMap.containsKey(key);
69 public synchronized V put(K key, V value) { argument
71 mLruMap.put(key, value);
73 key, new Entry<K, V>(key, value, mQueue));
77 public synchronized V get(K key) { argument
79 V value = mLruMap.get(key);
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DIdentityCache.java37 public Entry(K key, V value, ReferenceQueue<V> queue) { argument
39 mKey = key;
51 public synchronized V put(K key, V value) { argument
54 key, new Entry<K, V>(key, value, mQueue));
58 public synchronized V get(K key) { argument
60 Entry<K, V> entry = mWeakMap.get(key);
/packages/apps/Browser/src/com/android/browser/preferences/
H A DWebViewPreview.java97 SharedPreferences sharedPreferences, String key) {
96 onSharedPreferenceChanged( SharedPreferences sharedPreferences, String key) argument
/packages/apps/Contacts/src/com/android/contacts/util/
H A DExpirableCache.java97 /** Returns the value stored in the cache for a given key. */
161 * Returns the cached value for the given key, or null if no value exists.
163 * The cached value gives access both to the value associated with the key and whether it is
171 * @param key the key to look up
173 public CachedValue<V> getCachedValue(K key) { argument
174 return mCache.get(key);
178 * Returns the value for the given key, or null if no value exists.
187 * @param key the key t
189 getPossiblyExpired(K key) argument
204 get(K key) argument
217 put(K key, V value) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DImageCacheService.java56 byte[] key = makeKey(path, type);
57 long cacheKey = Utils.crc64Long(key);
64 if (isSameKey(key, value)) {
65 int offset = key.length;
75 byte[] key = makeKey(path, type);
76 long cacheKey = Utils.crc64Long(key);
77 ByteBuffer buffer = ByteBuffer.allocate(key.length + value.length);
78 buffer.put(key);
93 private static boolean isSameKey(byte[] key, byte[] buffer) { argument
94 int n = key
[all...]
/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/
H A DRealDataTest.java106 void assertNewId(Path key) { argument
107 assertFalse(key + " has already appeared.", mUsedId.contains(key));
108 mUsedId.add(key);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
H A DSearchBaseUrlHelper.java169 public void onSharedPreferenceChanged(SharedPreferences pref, String key) { argument
171 if (DBG) Log.d(TAG, "Handling changed preference : " + key);
172 if (SearchSettingsImpl.USE_GOOGLE_COM_PREF.equals(key)) {
/packages/experimental/AndroidVendorSecurityTool/src/com/android/vending/sectool/v1/
H A DGservices.java33 * Gservices provides access to a key-value store that is can be
85 * Look up a key in the database.
87 * @param key to look up in the table
91 public static String getString(ContentResolver cr, String key, String defValue) { argument
96 if (sCache.containsKey(key)) {
97 String value = sCache.get(key);
101 Cursor cursor = sResolver.query(CONTENT_URI, null, null, new String[]{ key }, null);
112 sCache.put(key, value);
122 * Look up a key in the database.
124 * @param key t
127 getString(ContentResolver cr, String key) argument
137 getInt(ContentResolver cr, String key, int defValue) argument
154 getLong(ContentResolver cr, String key, long defValue) argument
165 getBoolean(ContentResolver cr, String key, boolean defValue) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
H A DKeyCodeDescriptionMapper.java36 // Map of key labels to spoken description resource IDs
39 // Map of key codes to spoken description resource IDs
42 // Map of shifted key codes to spoken description resource IDs
45 // Map of shift-locked key codes to spoken description resource IDs
64 // Manual label substitutions for key labels with no string resource
111 * key based on the current keyboard state.
113 * The order of precedence for key descriptions is:
115 * <li>Manually-defined based on the key label</li>
116 * <li>Automatic or manually-defined based on the key code</li>
117 * <li>Automatically based on the key labe
128 getDescriptionForKey(Context context, Keyboard keyboard, Key key, boolean shouldObscure) argument
189 getCorrectKeyCode(Keyboard keyboard, Key key) argument
218 getDescriptionForKeyCode(Context context, Keyboard keyboard, Key key, boolean shouldObscure) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/
H A DLanguageSwitcherProxy.java79 public void onSharedPreferenceChanged(SharedPreferences prefs, String key) { argument
82 if (key.equals(Settings.PREF_SELECTED_LANGUAGES)
83 || key.equals(Settings.PREF_INPUT_LANGUAGE)) {
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/voice/
H A DSettingsUtil.java78 * @param key The setting to look up
82 public static String getSettingsString(ContentResolver cr, String key, String defaultValue) { argument
83 String result = Settings.Secure.getString(cr, key);
91 * @param key The setting to look up
95 public static int getSettingsInt(ContentResolver cr, String key, int defaultValue) { argument
96 return Settings.Secure.getInt(cr, key, defaultValue);
103 * @param key The setting to look up
107 public static float getSettingsFloat(ContentResolver cr, String key, float defaultValue) { argument
108 return Settings.Secure.getFloat(cr, key, defaultValue);
/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
34 // The Profile contact will always have a lookup key of "profile".
41 public String key; field in class:ContactLookupKey.LookupKeySegment
112 // If the lookup key is for the profile, just return a segment list indicating that. The
129 String key;
184 key = sb.toString();
194 key = string.substring(start);
196 key = string.substring(start, offset - 1);
210 key = string.substring(start);
212 key
[all...]
H A DProjectionMap.java77 public String put(String key, String value) { argument
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DPhoneticNameEditorView.java44 public void put(String key, String value) { argument
45 if (key.equals(DataKind.PSEUDO_COLUMN_PHONETIC_NAME)) {
49 mValues.put(key, value);
55 public String getAsString(String key) { argument
56 if (key.equals(DataKind.PSEUDO_COLUMN_PHONETIC_NAME)) {
59 return mValues.getAsString(key);
/packages/apps/Contacts/tests/src/com/android/contacts/tests/mocks/
H A DMockSharedPreferences.java40 public boolean contains(String key) { argument
41 return mValues.containsKey(key);
48 public boolean getBoolean(String key, boolean defValue) { argument
49 if (mValues.containsKey(key)) {
50 return ((Boolean)mValues.get(key)).booleanValue();
55 public float getFloat(String key, float defValue) { argument
56 if (mValues.containsKey(key)) {
57 return ((Float)mValues.get(key)).floatValue();
62 public int getInt(String key, int defValue) { argument
63 if (mValues.containsKey(key)) {
69 getLong(String key, long defValue) argument
76 getString(String key, String defValue) argument
83 getStringSet(String key, Set<String> defValues) argument
100 putBoolean(String key, boolean value) argument
105 putFloat(String key, float value) argument
110 putInt(String key, int value) argument
115 putLong(String key, long value) argument
120 putString(String key, String value) argument
125 putStringSet(String key, Set<String> values) argument
130 remove(String key) argument
[all...]
/packages/apps/Email/src/com/android/email/mail/store/imap/
H A DImapList.java112 * Return an element keyed by {@code key}. Return null if not found. {@code key} has to be
115 /* package */ final ImapElement getKeyedElementOrNull(String key, boolean prefixMatch) { argument
117 if (is(i-1, key, prefixMatch)) {
125 * Return an {@link ImapList} keyed by {@code key}.
128 public final ImapList getKeyedListOrEmpty(String key) { argument
129 return getKeyedListOrEmpty(key, false);
133 * Return an {@link ImapList} keyed by {@code key}.
136 public final ImapList getKeyedListOrEmpty(String key, boolean prefixMatch) { argument
137 ImapElement e = getKeyedElementOrNull(key, prefixMatc
145 getKeyedStringOrEmpty(String key) argument
153 getKeyedStringOrEmpty(String key, boolean prefixMatch) argument
[all...]
/packages/apps/Email/tests/src/com/android/email/
H A DMockSharedPreferences.java42 public boolean contains(String key) { argument
43 return mValues.containsKey(key);
50 public boolean getBoolean(String key, boolean defValue) { argument
51 if (mValues.containsKey(key)) {
52 return ((Boolean)mValues.get(key)).booleanValue();
57 public float getFloat(String key, float defValue) { argument
58 if (mValues.containsKey(key)) {
59 return ((Float)mValues.get(key)).floatValue();
64 public int getInt(String key, int defValue) { argument
65 if (mValues.containsKey(key)) {
71 getLong(String key, long defValue) argument
78 getString(String key, String defValue) argument
85 getStringSet(String key, Set<String> defValues) argument
102 putBoolean(String key, boolean value) argument
107 putFloat(String key, float value) argument
112 putInt(String key, int value) argument
117 putLong(String key, long value) argument
122 putString(String key, String value) argument
127 putStringSet(String key, Set<String> values) argument
132 remove(String key) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DDetailsHelper.java91 public static String getDetailsName(Context context, int key) { argument
92 switch (key) {
132 return "Unknown key" + key;
/packages/apps/Launcher2/src/com/android/launcher2/
H A DPagedViewIconCache.java82 for (Key key : mIconOutlineCache.keySet()) {
83 mIconOutlineCache.get(key).recycle();
90 for (Key key : keysToRemove) {
91 if (key.isKeyType(t)) {
92 mIconOutlineCache.get(key).recycle();
93 mIconOutlineCache.remove(key);
121 public void addOutline(Key key, Bitmap b) { argument
122 mIconOutlineCache.put(key, b);
124 public void removeOutline(Key key) { argument
125 if (mIconOutlineCache.containsKey(key)) {
130 getOutline(Key key) argument
[all...]
/packages/apps/Settings/src/com/android/settings/tts/
H A DTtsEnginePreference.java186 * as the currently selected key and the currently checked compound button.
187 * (which corresponds to this key).
193 void setCurrentKey(String key); argument

Completed in 504 milliseconds

12345