/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
H A D | NativeSuggestOptions.java | 59 private void setBooleanOption(final int key, final boolean value) { argument 60 mOptions[key] = value ? 1 : 0; 63 private void setIntegerOption(final int key, final int value) { argument 64 mOptions[key] = value;
|
H A D | DebugSettingsFragment.java | 139 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) { argument 140 if (key.equals(DebugSettings.PREF_DEBUG_MODE) && mDebugMode != null) { 146 if (key.equals(DebugSettings.PREF_FORCE_NON_DISTINCT_MULTITOUCH) 147 || key.equals(DebugSettings.PREF_FORCE_PHYSICAL_KEYBOARD_SPECIAL_KEY)) { 176 public void writeValue(final int value, final String key) { 177 prefs.edit().putInt(key, value).apply(); 181 public void writeDefaultValue(final String key) { 182 prefs.edit().remove(key).apply(); 186 public int readValue(final String key) { 191 public int readDefaultValue(final String key) { [all...] |
/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/apps/Mms/src/com/android/mms/util/ |
H A D | ImageCacheService.java | 55 byte[] key = makeKey(path, type); 56 long cacheKey = crc64Long(key); 63 if (isSameKey(key, value)) { 64 int offset = key.length; 74 byte[] key = makeKey(path, type); 75 long cacheKey = crc64Long(key); 76 ByteBuffer buffer = ByteBuffer.allocate(key.length + value.length); 77 buffer.put(key); 96 private static boolean isSameKey(byte[] key, byte[] buffer) { argument 97 int n = key [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | Timeouts.java | 39 * @param key Settings key to retrieve. 43 private static long get(ContentResolver contentResolver, String key, long defaultValue) { argument 44 return Settings.Secure.getLong(contentResolver, PREFIX + key, defaultValue);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | KeyboardView.java | 97 // The maximum key label width in the proportion to the key width. 282 for (final Key key : mInvalidatedKeys) { 283 if (mKeyboard.hasKey(key)) { 284 final int x = key.getX() + getPaddingLeft(); 285 final int y = key.getY() + getPaddingTop(); 286 mWorkingRect.set(x, y, x + key.getWidth(), y + key.getHeight()); 304 for (final Key key : mKeyboard.getSortedKeys()) { 305 onDrawKey(key, canva 320 onDrawKey(final Key key, final Canvas canvas, final Paint paint) argument 341 onDrawKeyBackground(final Key key, final Canvas canvas, final Drawable background) argument 374 onDrawKeyTopVisuals(final Key key, final Canvas canvas, final Paint paint, final KeyDrawParams params) argument 501 drawKeyPopupHint(final Key key, final Canvas canvas, final Paint paint, final KeyDrawParams params) argument 527 newLabelPaint(final Key key) argument 560 invalidateKey(final Key key) argument [all...] |
H A D | PointerTracker.java | 53 public void invalidateKey(Key key); argument 54 public void showKeyPreview(Key key); argument 55 public void dismissKeyPreview(Key key); argument 169 // The current key where this pointer is. 171 // The position where the current key was recognized for the first time. 191 // true if this pointer is sliding from a modifier key and in the sliding key input mode, 194 // if not a NOT_A_CODE, the key of this code is repeating 292 private boolean callListenerOnPressAndCheckKeyboardLayoutChange(final Key key, argument 301 final boolean ignoreModifierKey = mIsInDraggingFinger && key 324 callListenerOnCodeInput(final Key key, final int primaryCode, final int x, final int y, final long eventTime, final boolean isKeyRepeat) argument 357 callListenerOnRelease(final Key key, final int primaryCode, final boolean withSliding) argument 432 setReleasedKeyGraphics(final Key key) argument 468 setPressedKeyGraphics(final Key key, final long eventTime) argument 507 updateReleaseKeyGraphics(final Key key) argument 512 updatePressKeyGraphics(final Key key) argument 758 startKeySelectionByDraggingFinger(final Key key) argument 771 onGestureMoveEvent(final int x, final int y, final long eventTime, final boolean isMajorEvent, final Key key) argument 853 processPhantomSuddenMoveHack(final Key key, final int x, final int y, final long eventTime, final Key oldKey, final int lastX, final int lastY) argument 867 processProximateBogusDownMoveUpEventHack(final Key key, final int x, final int y, final long eventTime, final Key oldKey, final int lastX, final int lastY) argument 893 dragFingerFromOldKeyToNewKey(final Key key, final int x, final int y, final long eventTime, final Key oldKey, final int lastX, final int lastY) argument 1152 startLongPressTimer(final Key key) argument 1183 detectAndSendKey(final Key key, final int x, final int y, final long eventTime) argument 1194 startRepeatKey(final Key key) argument [all...] |
H A D | KeyDetector.java | 20 * This class handles key detection. 35 * Key detection object constructor with key hysteresis distances. 40 * starts from a modifier key such as shift and symbols key. 82 * Detect the key whose hitbox the touch point is in. 86 * @return the key that the touch point hits. 97 for (final Key key: mKeyboard.getNearestKeys(touchX, touchY)) { 98 // An edge key always has its enlarged hitbox to respond to an event that occurred in 99 // the empty area around the key. (@see Key#markAsLeftEdge(KeyboardParams)} etc.) 100 if (!key [all...] |
H A D | MoreKeysDetector.java | 46 for (final Key key : keyboard.getSortedKeys()) { 47 final int dist = key.squaredDistanceToEdge(touchX, touchY); 49 nearestKey = key;
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | CircleTimerView.java | 223 // Since this view is used in multiple places, use the key to save different instances 224 public void writeToSharedPref(SharedPreferences prefs, String key) { argument 226 editor.putBoolean (key + PREF_CTV_PAUSED, mPaused); 227 editor.putLong (key + PREF_CTV_INTERVAL, mIntervalTime); 228 editor.putLong (key + PREF_CTV_INTERVAL_START, mIntervalStartTime); 229 editor.putLong (key + PREF_CTV_CURRENT_INTERVAL, mCurrentIntervalTime); 230 editor.putLong (key + PREF_CTV_ACCUM_TIME, mAccumulatedTime); 231 editor.putLong (key + PREF_CTV_MARKER_TIME, mMarkerTime); 232 editor.putBoolean (key + PREF_CTV_TIMER_MODE, mTimerMode); 236 public void readFromSharedPref(SharedPreferences prefs, String key) { argument 247 clearSharedPref(SharedPreferences prefs, String key) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
H A D | MainKeyboardAccessibilityDelegate.java | 160 // ignored because it can be determined by each key's talk back announce. 167 // Resetting automatic shifted mode by pressing the shift key causes the transition 175 // Resetting caps locked mode by pressing the shift key causes the transition 210 public void performClickOn(final Key key) { argument 211 final int x = key.getHitBox().centerX(); 212 final int y = key.getHitBox().centerY(); 214 Log.d(TAG, "performClickOn: key=" + key 218 // This hover exit event points to the key that should be ignored. 223 super.performClickOn(key); 227 onHoverEnterTo(final Key key) argument 248 onHoverExitFrom(final Key key) argument 260 performLongClickOn(final Key key) argument [all...] |
H A D | AccessibilityLongPressTimer.java | 29 public void performLongClickOn(Key key); argument 58 public void startLongPress(final Key key) { argument 60 final Message longPressMessage = obtainMessage(MSG_LONG_PRESS, key);
|
/packages/apps/OMA-DM/engine/dmlib/dmengine/dm_security/src/ |
H A D | GeneratePassword.cc | 26 // Step 1 Generate the client password key and server password key: 33 // 15 numbers, we use client password dictionary to generate client password key and server 34 // password dictionary to generate server password key. Suppose IMEI string length is n, for 167 * Generate a client password key with a predefined client password dictionary 170 * @param imei the imei use to generate the key 171 * @return the client password key 178 * Generate a server password key with a predefined server password dictionary 181 * @param imei the imei use to generate the key 182 * @return the server password key 195 char * key = generateClientPasswordKey(imei); local 213 char * key = generateServerPasswordKey(imei); local 233 char * key = generateClientPasswordKey(imei); local 253 char * key = generateServerPasswordKey(imei); local 286 char * key; local 463 generatePassword(const char * imei, const char * serverId, const char * key) argument [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
H A D | TimerObj.java | 102 String key = PREF_START_TIME + id; 103 mStartTime = prefs.getLong(key, 0); 104 key = PREF_TIME_LEFT + id; 105 mTimeLeft = prefs.getLong(key, 0); 106 key = PREF_ORIGINAL_TIME + id; 107 mOriginalLength = prefs.getLong(key, 0); 108 key = PREF_SETUP_TIME + id; 109 mSetupLength = prefs.getLong(key, 0); 110 key = PREF_STATE + id; 111 mState = prefs.getInt(key, [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
H A D | EmojiPageKeyboardView.java | 38 // TODO: Implement key popup preview. 45 public void onPressKey(Key key); argument 46 public void onReleaseKey(Key key); argument 51 public void onPressKey(final Key key) {} 53 public void onReleaseKey(final Key key) {} 122 final Key key = getKey(e); 123 if (key != null && key != mCurrentKey) { 158 final Key key = getKey(e); 160 mCurrentKey = key; [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/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/header/ |
H A D | header_read_write_utils.cpp | 33 // of the binary dictionary where a {key,value} string pair scheme is used. 80 std::vector<int> key; local 81 key.insert(key.end(), keyBuffer, keyBuffer + keyLength); 86 headerAttributes->insert(AttributeMap::value_type(key, value)); 130 // Write a key. 145 AttributeMap *const headerAttributes, const char *const key, const std::vector<int> value) { 147 insertCharactersIntoVector(key, &keyVector); 152 const char *const key, const bool value) { 153 setIntAttribute(headerAttributes, key, valu 144 setCodePointVectorAttribute( AttributeMap *const headerAttributes, const char *const key, const std::vector<int> value) argument 151 setBoolAttribute(AttributeMap *const headerAttributes, const char *const key, const bool value) argument 156 setIntAttribute(AttributeMap *const headerAttributes, const char *const key, const int value) argument 163 setIntAttributeInner(AttributeMap *const headerAttributes, const AttributeMap::key_type *const key, const int value) argument 172 readCodePointVectorAttributeValue( const AttributeMap *const headerAttributes, const char *const key) argument 184 readBoolAttributeValue( const AttributeMap *const headerAttributes, const char *const key, const bool defaultValue) argument 192 readIntAttributeValue( const AttributeMap *const headerAttributes, const char *const key, const int defaultValue) argument 200 readIntAttributeValueInner( const AttributeMap *const headerAttributes, const AttributeMap::key_type *const key, const int defaultValue) argument [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/ |
H A D | LayoutBase.java | 65 * Get the function key to switch to alphabet layout. 66 * @return the {@link ExpectedKey} of the alphabet key. 71 * Get the function key to switch to symbols layout. 72 * @return the {@link ExpectedKey} of the symbols key. 77 * Get the function key to switch to symbols shift layout. 78 * @param isPhone true if requesting phone's key. 79 * @return the {@link ExpectedKey} of the symbols shift key. 86 * Get the function key to switch from symbols shift to symbols layout. 87 * @return the {@link ExpectedKey} of the back to symbols key. 92 * Get the currency key [all...] |
/packages/services/Mms/src/com/android/mms/service/ |
H A D | MmsConfig.java | 35 * This class manages a cached copy of current MMS configuration key values 37 * The steps to add a key 38 * 1. Add a String constant for the key 39 * 2. Add a default value for the key by putting a typed value to DEFAULTS 41 * 3. Add a getter for the key 42 * 4. Add key/value for relevant mms_config.xml of a specific carrier (mcc/mnc) 178 * This class manages a cached copy of current MMS configuration key values for a particular 208 * Check a key and its type match the predefined keys and corresponding types 210 * @param key 212 * @return True if key an 214 isValidKey(String key, String type) argument 236 isValidValue(String key, Object value) argument 258 getValueAsType(String key, String type) argument 284 getNullableStringValue(String key) argument 292 update(String key, String value, String type) argument 346 getInt(String key) argument 351 getBoolean(String key) argument 356 getString(String key) argument [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/tests/ |
H A D | TestsFrenchCH.java | 47 .replaceKeyOfLabel(Swiss.ROW1_11, key("\u00E8", moreKey("\u00FC"))) 50 .replaceKeyOfLabel(Swiss.ROW2_10, key("\u00E9", moreKey("\u00F6"))) 53 .replaceKeyOfLabel(Swiss.ROW2_11, key("\u00E0", moreKey("\u00E4")));
|
H A D | TestsGermanCH.java | 47 .replaceKeyOfLabel(Swiss.ROW1_11, key("\u00FC", moreKey("\u00E8"))) 50 .replaceKeyOfLabel(Swiss.ROW2_10, key("\u00F6", moreKey("\u00E9"))) 53 .replaceKeyOfLabel(Swiss.ROW2_11, key("\u00E4", moreKey("\u00E0")));
|
H A D | TestsItalianCH.java | 47 .replaceKeyOfLabel(Swiss.ROW1_11, key("\u00FC", moreKey("\u00E8"))) 50 .replaceKeyOfLabel(Swiss.ROW2_10, key("\u00F6", moreKey("\u00E9"))) 53 .replaceKeyOfLabel(Swiss.ROW2_11, key("\u00E4", moreKey("\u00E0")));
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
H A D | BitmapDownloader.java | 81 // Bitmap cache also uses size of Bitmap as part of key. 83 // TODO: we currently care more about height, what about width in key? 119 protected int sizeOf(String key, BitmapItem bitmap) { 225 * @param key {@link BitmapCallback} or {@link ImageView} 227 public boolean cancelDownload(Object key) { argument 229 if (key instanceof ImageView) { 230 ImageView imageView = (ImageView)key; 237 } else if (key instanceof BitmapCallback) { 238 BitmapCallback callback = (BitmapCallback)key; 262 private void addBitmapToMemoryCache(BitmapWorkerOptions key, Bitma argument 285 getBitmapFromMemCache(BitmapWorkerOptions key) argument 331 getLargestBitmapFromMemCache(BitmapWorkerOptions key) argument [all...] |