/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | SparseLongArray.java | 65 * Gets the long mapped from the specified key, or <code>0</code> 68 public long get(int key) { argument 69 return get(key, 0); 73 * Gets the long mapped from the specified key, or the specified value 76 public long get(int key, long valueIfKeyNotFound) { argument 77 int i = binarySearch(mKeys, 0, mSize, key); 87 * Removes the mapping from the specified key, if there was any. 89 public void delete(int key) { argument 90 int i = binarySearch(mKeys, 0, mSize, key); 107 * Adds a mapping from the specified key t 111 put(int key, long value) argument 165 indexOfKey(int key) argument 196 append(int key, long value) argument 225 binarySearch(int[] a, int start, int len, long key) argument [all...] |
H A D | DequeMap.java | 27 * A Map of Deques. Each entry at key K has a deque of values V. 39 * Add a value V to the deque stored under key K. 42 public void add(K key, V item) { argument 43 Deque<V> pile = mMap.get(key); 46 mMap.put(key, pile); 52 * Removes and returns the first value V from the deque of Vs for key K, or null if no such Vs 57 * @param key 60 public V poll(K key) { argument 61 final Deque<V> pile = mMap.get(key); 69 * Returns, but does not remove, the first value V from the deque of Vs for key 77 peek(K key) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/device/ |
H A D | MultiCameraDeviceLifecycle.java | 137 CameraDeviceKey key = new CameraDeviceKey(ApiType.CAMERA_API2, cameraId); 138 return openDevice(requestLifetime, key, mCamera2ActionProvider); 163 CameraDeviceKey key = new CameraDeviceKey(ApiType.CAMERA_API_PORTABILITY_AUTO, 165 return openDevice(requestLifetime, key, mPortabilityCameraActionProvider); 190 CameraDeviceKey key = new CameraDeviceKey(ApiType.CAMERA_API_PORTABILITY_API2, 192 return openDevice(requestLifetime, key, mPortabilityCameraActionProvider); 216 CameraDeviceKey key = new CameraDeviceKey(ApiType.CAMERA_API_PORTABILITY_API1, cameraId); 217 return openDevice(requestLifetime, key, mPortabilityCameraActionProvider); 240 CameraDeviceKey key = new CameraDeviceKey(ApiType.CAMERA_API1, cameraId); 241 return openDevice(requestLifetime, key, mLegacyCameraActionProvide 280 openDevice(Lifetime requestLifetime, CameraDeviceKey key, CameraDeviceActionProvider<TDevice> provider) argument 320 createLifecycle(CameraDeviceKey key, CameraDeviceActionProvider<TDevice> provider) argument 362 onCameraDeviceShutdown(CameraDeviceKey key) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/settings/ |
H A D | SettingsUpgrader.java | 90 protected boolean removeBoolean(SharedPreferences oldPreferencesLocation, String key) { argument 93 value = oldPreferencesLocation.getBoolean(key, value); 97 oldPreferencesLocation.edit().remove(key).apply(); 109 protected int removeInteger(SharedPreferences oldPreferencesLocation, String key) { argument 112 value = oldPreferencesLocation.getInt(key, value); 116 oldPreferencesLocation.edit().remove(key).apply(); 128 protected String removeString(SharedPreferences oldPreferencesLocation, String key) { argument 131 value = oldPreferencesLocation.getString(key, value); 135 oldPreferencesLocation.edit().remove(key).apply();
|
/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/inputmethods/LatinIME/native/jni/src/dictionary/header/ |
H A D | header_read_write_utils.h | 70 const char *const key, const std::vector<int> &value); 74 const char *const key, const bool value); 78 const char *const key, const int value); 82 const char *const key); 86 const char *const key, const bool defaultValue); 90 const char *const key, const int defaultValue); 93 DictionaryHeaderStructurePolicy::AttributeMap::key_type *const key); 114 const DictionaryHeaderStructurePolicy::AttributeMap::key_type *const key, 119 const DictionaryHeaderStructurePolicy::AttributeMap::key_type *const key,
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
H A D | ContentWriter.java | 57 public ContentWriter put(String key, Integer value) { argument 58 mValues.put(key, value); 62 public ContentWriter put(String key, Long value) { argument 63 mValues.put(key, value); 67 public ContentWriter put(String key, String value) { argument 68 mValues.put(key, value); 72 public ContentWriter put(String key, CharSequence value) { argument 73 mValues.put(key, value == null ? null : value.toString()); 77 public ContentWriter put(String key, Intent value) { argument 78 mValues.put(key, valu 88 put(String key, UserHandle user) argument [all...] |
/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/services/Telecomm/src/com/android/server/telecom/ |
H A D | CallIdMapper.java | 35 public boolean put(K key, V value) { argument 36 if (key == null || value == null || mPrimaryMap.containsKey(key) || 41 mPrimaryMap.put(key, value); 42 mSecondaryMap.put(value, key); 46 public boolean remove(K key) { argument 47 if (key == null) { 50 if (mPrimaryMap.containsKey(key)) { 51 V value = getValue(key); 52 mPrimaryMap.remove(key); 66 getValue(K key) argument [all...] |
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/ |
H A D | trie_map_test.cpp | 62 << "Should fail if the key does not exist."; 103 const int key = keyRandomNumberGenerator(); local 105 EXPECT_TRUE(trieMap.putRoot(key, value)) << key << " " << value; 106 testKeyValuePairs[key] = value; 135 const int key = keyRandomNumberGenerator(); local 137 EXPECT_TRUE(trieMap.putRoot(key, value)); 138 firstLevelKeys.push_back(key); 139 firstLevelEntries[key] = value; 143 const int key local 155 const int key = keyRandomNumberGenerator(); local 238 const int key = keyRandomNumberGenerator(); local [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | KeyPreviewChoreographer.java | 33 * This class controls pop up key previews. This class decides: 34 * - what kind of key previews should be shown. 35 * - where key previews should be placed. 36 * - how key previews should be shown and dismissed. 39 // Free {@link KeyPreviewView} pool that can be used for key preview. 41 // Map from {@link Key} to {@link KeyPreviewView} that is currently being displayed as key 51 public KeyPreviewView getKeyPreviewView(final Key key, final ViewGroup placerView) { argument 52 KeyPreviewView keyPreviewView = mShowingKeyPreviewViews.remove(key); 67 public boolean isShowingKeyPreview(final Key key) { argument 68 return mShowingKeyPreviewViews.containsKey(key); 71 dismissKeyPreview(final Key key, final boolean withAnimation) argument 97 placeAndShowKeyPreview(final Key key, final KeyboardIconsSet iconsSet, final KeyDrawParams drawParams, final int keyboardViewWidth, final int[] keyboardOrigin, final ViewGroup placerView, final boolean withAnimation) argument 106 placeKeyPreview(final Key key, final KeyPreviewView keyPreviewView, final KeyboardIconsSet iconsSet, final KeyDrawParams drawParams, final int keyboardViewWidth, final int[] originCoords) argument 144 showKeyPreview(final Key key, final KeyPreviewView keyPreviewView, final boolean withAnimation) argument 161 createShowUpAnimator(final Key key, final KeyPreviewView keyPreviewView) argument 172 createDismissAnimator(final Key key, final KeyPreviewView keyPreviewView) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/ |
H A D | CaptureRequestBuilderProxy.java | 50 public <T> T get(CaptureRequest.Key<T> key) throws IllegalArgumentException { argument 51 return mBuilder.get(key); 64 public <T> void set(CaptureRequest.Key<T> key, T value) { argument 65 mBuilder.set(key, value);
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
H A D | Lookup.java | 27 @Nullable R lookup(T key); argument
|
/packages/apps/KeyChain/support/src/com/android/keychain/tests/support/ |
H A D | IKeyChainServiceTestSupport.aidl | 35 boolean keystorePut(String key, in byte[] value); 36 boolean keystoreImportKey(String key, in byte[] value);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | PointerTracker.java | 121 // The current key where this pointer is. 123 // The position where the current key was recognized for the first time. 143 // true if this pointer is sliding from a modifier key and in the sliding key input mode, 146 // if not a NOT_A_CODE, the key of this code is repeating 244 private boolean callListenerOnPressAndCheckKeyboardLayoutChange(final Key key, argument 253 final boolean ignoreModifierKey = mIsInDraggingFinger && key.isModifier(); 256 (key == null ? "none" : Constants.printableCode(key.getCode())), 258 key 276 callListenerOnCodeInput(final Key key, final int primaryCode, final int x, final int y, final long eventTime, final boolean isKeyRepeat) argument 309 callListenerOnRelease(final Key key, final int primaryCode, final boolean withSliding) argument 385 setReleasedKeyGraphics(@ullable final Key key, final boolean withAnimation) argument 419 setPressedKeyGraphics(@ullable final Key key, final long eventTime) argument 697 startKeySelectionByDraggingFinger(final Key key) argument 710 onGestureMoveEvent(final int x, final int y, final long eventTime, final boolean isMajorEvent, final Key key) argument 792 processPhantomSuddenMoveHack(final Key key, final int x, final int y, final long eventTime, final Key oldKey, final int lastX, final int lastY) argument 806 processProximateBogusDownMoveUpEventHack(final Key key, final int x, final int y, final long eventTime, final Key oldKey, final int lastX, final int lastY) argument 832 dragFingerFromOldKeyToNewKey(final Key key, final int x, final int y, final long eventTime, final Key oldKey, final int lastX, final int lastY) argument 1118 startLongPressTimer(final Key key) argument 1149 detectAndSendKey(final Key key, final int x, final int y, final long eventTime) argument 1160 startRepeatKey(final Key key) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
H A D | DynamicGridKeyboard.java | 68 for (final Key key : super.getSortedKeys()) { 69 if (key.getCode() == code) { 70 return key; 73 throw new RuntimeException("Can't find template key: code=" + code); 108 final GridKey key = new GridKey(usedKey); 109 while (mGridKeys.remove(key)) { 113 mGridKeys.addFirst(key); 115 mGridKeys.addLast(key); 134 for (final Key key : mGridKeys) { 135 if (key [all...] |
/packages/services/Telephony/src/com/android/phone/settings/ |
H A D | VoicemailProviderSettingsUtil.java | 35 // Suffix appended to provider key for storing vm number 37 // Suffix appended to forward settings key for storing an individual setting 39 // Suffix appended to provider key for storing forwarding settings 41 // Suffix appended to forward settings key for storing length of settings array 44 // Suffixes appended to forward setting key for storing an individual setting properties 54 public static VoicemailProviderSettings load(Context context, String key) { argument 57 String vmNumberSetting = prefs.getString(key + VM_NUMBER_TAG, null); 59 Log.w(LOG_TAG, "VoiceMailProvider settings for the key \"" + key + "\"" 65 String fwdKey = key 94 save(Context context, String key, VoicemailProviderSettings newSettings) argument 129 delete(Context context, String key) argument [all...] |
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/ |
H A D | MockedServiceManager.java | 71 void replaceService(String key, IBinder binder) { argument 72 mServiceManagerMockedServices.put(key, binder); 85 InstanceKey key = new InstanceKey(c, instanceName, obj); 86 if (!mOldInstances.containsKey(key)) { 87 mOldInstances.put(key, field.get(obj)); 88 mInstanceKeys.add(key); 97 InstanceKey key = it.next(); 98 Field field = key.mClass.getDeclaredField(key.mInstName); 100 field.set(key [all...] |
/packages/apps/Dialer/java/com/android/dialer/configprovider/ |
H A D | SharedPrefConfigProvider.java | 75 String key = intent.getExtras().keySet().iterator().next(); 76 Object value = intent.getExtras().get(key); 77 put(key, value); 80 private void put(String key, Object value) { argument 82 String prefixedKey = PREF_PREFIX + key; 97 public String getString(String key, String defaultValue) { argument 99 () -> getSharedPrefs(appContext).getString(PREF_PREFIX + key, defaultValue)); 103 public long getLong(String key, long defaultValue) { argument 105 () -> getSharedPrefs(appContext).getLong(PREF_PREFIX + key, defaultValue)); 109 public boolean getBoolean(String key, boolea argument [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/Dialer/java/com/android/dialer/util/ |
H A D | ExpirableCache.java | 137 * Returns the cached value for the given key, or null if no value exists. 139 * <p>The cached value gives access both to the value associated with the key and whether it is 147 * @param key the key to look up 149 public CachedValue<V> getCachedValue(K key) { argument 150 return mCache.get(key); 154 * Returns the value for the given key, or null if no value exists. 163 * @param key the key to look up 165 public V getPossiblyExpired(K key) { argument 179 get(K key) argument 192 put(K key, V value) argument [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
H A D | ImageResource.java | 29 public ImageResource(final String key, int orientation) { argument 30 super(key);
|
H A D | VCardResource.java | 31 public VCardResource(final String key, final List<VCardResourceEntry> vcards) { argument 32 super(key);
|
/packages/apps/TV/common/src/com/android/tv/common/feature/ |
H A D | GServiceFeature.java | 30 public GServiceFeature(String key, boolean defaultValue) { argument 31 mKey = LIVECHANNELS_PREFIX + key;
|
/packages/apps/TV/src/com/android/tv/util/ |
H A D | MultiLongSparseArray.java | 49 * Adds a mapping from the specified key to the specified value, 50 * replacing the previous mapping from the specified key if there 53 public void put(long key, T value) { argument 54 Set<T> values = mSparseArray.get(key); 57 mSparseArray.put(key, values); 65 public void remove(long key, T value) { argument 66 Set<T> values = mSparseArray.get(key); 70 mSparseArray.remove(key); 77 * Gets the set of Objects mapped from the specified key, or an empty set 80 public Iterable<T> get(long key) { argument [all...] |