/packages/apps/Contacts/tests/src/com/android/contacts/tests/mocks/ |
H A D | MockSharedPreferences.java | 40 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/Camera/src/com/android/camera/ |
H A D | ComboPreferences.java | 75 private static boolean isGlobal(String key) { argument 76 return key.equals(CameraSettings.KEY_VIDEO_TIME_LAPSE_FRAME_INTERVAL) 77 || key.equals(CameraSettings.KEY_CAMERA_ID) 78 || key.equals(CameraSettings.KEY_RECORD_LOCATION) 79 || key.equals(CameraSettings.KEY_CAMERA_FIRST_USE_HINT_SHOWN) 80 || key.equals(CameraSettings.KEY_VIDEO_FIRST_USE_HINT_SHOWN) 81 || key.equals(CameraSettings.KEY_VIDEO_EFFECT); 84 public String getString(String key, String defValue) { argument 85 if (isGlobal(key) || !mPrefLocal.contains(key)) { 92 getInt(String key, int defValue) argument 100 getLong(String key, long defValue) argument 108 getFloat(String key, float defValue) argument 116 getBoolean(String key, boolean defValue) argument 125 getStringSet(String key, Set<String> defValues) argument 129 contains(String key) argument 162 remove(String key) argument 168 putString(String key, String value) argument 177 putInt(String key, int value) argument 186 putLong(String key, long value) argument 195 putFloat(String key, float value) argument 204 putBoolean(String key, boolean value) argument 214 putStringSet(String key, Set<String> values) argument 235 onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) argument [all...] |
/packages/experimental/AndroidVendorSecurityTool/src/com/android/vending/sectool/v1/ |
H A D | GservicesValue.java | 33 protected GservicesValue(String key, T defaultValue) { argument 34 mKey = key; 43 protected abstract T retrieve(String key); argument 52 public static GservicesValue<Boolean> value(String key, boolean defaultValue) { argument 53 return new GservicesValue<Boolean>(key, defaultValue) { 55 protected Boolean retrieve(String key) { 61 public static GservicesValue<Long> value(String key, Long defaultValue) { argument 62 return new GservicesValue<Long>(key, defaultValue) { 64 protected Long retrieve(String key) { 70 public static GservicesValue<Integer> value(String key, Intege argument 79 value(String key, String defaultValue) argument 88 partnerSetting(String key, String defaultValue) argument 99 getBoolean(String key, Boolean defaultValue) argument 100 getLong(String key, Long defaultValue) argument 101 getInt(String key, Integer defaultValue) argument 102 getString(String key, String defaultValue) argument 103 getPartnerString(String key, String defaultValue) argument 113 getBoolean(String key, Boolean defaultValue) argument 117 getInt(String key, Integer defaultValue) argument 121 getLong(String key, Long defaultValue) argument 125 getString(String key, String defaultValue) argument 129 getPartnerString(String key, String defaultValue) argument 136 getBoolean(String key, Boolean defaultValue) argument 137 getInt(String key, Integer defaultValue) argument 138 getLong(String key, Long defaultValue) argument 139 getString(String key, String defaultValue) argument 140 getPartnerString(String key, String defaultValue) argument [all...] |
H A D | Gservices.java | 33 * 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/apps/Mms/src/com/android/mms/util/ |
H A D | SendingProgressTokenManager.java | 36 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/apps/Email/tests/src/com/android/email/ |
H A D | MockSharedPreferences.java | 42 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/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/voice/ |
H A D | SettingsUtil.java | 78 * @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);
|
H A D | Whitelist.java | 61 for (String key : condition.keySet()) { 62 if (!condition.getString(key).equals(target.getString(key))) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | ImageCacheService.java | 56 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | KeyboardParams.java | 138 public void onAddKey(Key key) { argument 139 mKeys.add(key); 140 updateHistogram(key); 141 if (key.mCode == Keyboard.CODE_SHIFT) { 142 mShiftKeys.add(key); 143 if (key.isSticky()) { 144 mShiftLockKeys.add(key); 149 public void addShiftedIcon(Key key, Drawable icon) { argument 150 mUnshiftedIcons.put(key, key 169 updateHistogramCounter(Map<Integer, Integer> histogram, Integer key) argument 175 updateHistogram(Key key) argument [all...] |
/packages/apps/Gallery/src/com/android/camera/gallery/ |
H A D | LruCache.java | 45 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/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | ListSuggestionCursorNoDuplicates.java | 41 String key = SuggestionUtils.getSuggestionKey(suggestion); 42 if (mSuggestionKeys.add(key)) { 45 if (DBG) Log.d(TAG, "Rejecting duplicate " + key);
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | LruCache.java | 49 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | PointerTracker.java | 48 * Get KeyboardActionListener object that is used to register key code and so on. 60 * Get TimerProxy object that handles key repeat and long press timer event for this 62 * @return the TimerProxy object that handles key repeat and long press timer event. 68 public void invalidateKey(Key key); argument 122 // The current key index where this pointer is. 135 // true if event is already translated to a key action. 141 // true if this pointer is repeatable key 144 // true if this pointer is in sliding key input 147 // true if sliding key is allowed. 150 // ignore modifier key i 230 callListenerOnPressAndCheckKeyboardLayoutChange(Key key, boolean withSliding) argument 248 callListenerOnCodeInput(Key key, int primaryCode, int[] keyCodes, int x, int y) argument 260 callListenerOnTextInput(Key key) argument 269 callListenerOnRelease(Key key, int primaryCode, boolean withSliding) argument 354 isKeyPreviewRequired(Key key) argument 484 startSlidingKeyInput(Key key) argument [all...] |
H A D | KeyboardView.java | 89 // Margin between the label and the icon on a key that has both of them. 90 // Specified by the fraction of the key width. 94 // The maximum key label width in the proportion to the key width. 116 /** The key to invalidate. */ 118 /** The dirty region for single key drawing */ 125 // This map caches key label text height in pixel as value and key label text size as map key. 128 // This map caches key labe 518 onBufferDrawKey(final Key key, final Keyboard keyboard, final Canvas canvas, Paint paint, KeyDrawParams params, boolean isManualTemporaryUpperCase) argument 946 invalidateKey(Key key) argument [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | PagedViewIconCache.java | 82 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/Gallery2/src/com/android/gallery3d/util/ |
H A D | IdentityCache.java | 37 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/providers/CalendarProvider/src/com/android/providers/calendar/ |
H A D | CalendarCache.java | 29 * Class for managing a persistent Cache of (key, value) pairs. The persistent storage used is 48 public static final String COLUMN_NAME_KEY = "key"; 62 * This exception is thrown when the cache encounter a null key or a null database reference 141 * Write a (key, value) pair in the Cache. 143 * @param key the key (must not be null) 145 * @throws CacheException when key is null 147 public void writeData(String key, String value) throws CacheException { argument 151 writeDataLocked(db, key, value); 154 Log.i(TAG, "Wrote (key, valu 170 writeDataLocked(SQLiteDatabase db, String key, String value) argument 200 readData(String key) argument 215 readDataLocked(SQLiteDatabase db, String key) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | ExpirableCache.java | 97 /** 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...] |
H A D | NameConverter.java | 62 for (String key : STRUCTURED_NAME_FIELDS) { 63 if (structuredName.containsKey(key)) { 64 appendQueryParameter(builder, key, structuredName.get(key)); 78 for (String key : STRUCTURED_NAME_FIELDS) { 79 if (values.containsKey(key)) { 80 appendQueryParameter(builder, key, values.getAsString(key)); 155 for (String key : mapValues.keySet()) { 156 contentValues.put(key, mapValue [all...] |
/packages/apps/KeyChain/support/src/com/android/keychain/tests/support/ |
H A D | IKeyChainServiceTestSupport.aidl | 35 boolean keystorePut(String key, in byte[] value);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
H A D | KeyCodeDescriptionMapper.java | 36 // 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/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | ContactLookupKey.java | 24 * 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...] |
/packages/inputmethods/PinyinIME/jni/include/ |
H A D | mystdlib.h | 27 void *mybsearch(const void *key, const void *base,
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
H A D | VpnProfile.java | 39 final String key; // -1 field in class:VpnProfile 59 VpnProfile(String key) { argument 60 this.key = key; 63 static VpnProfile decode(String key, byte[] value) { argument 65 if (key == null) { 75 VpnProfile profile = new VpnProfile(key);
|