/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | LongSparseLongArrayTest.java | 82 final long key = r.nextLong(); 84 map.put(key, value); 85 array.put(key, value); 89 final long key = getKeyAtIndex(map, index); 90 map.remove(key); 91 array.delete(key); 98 final long key = e.getKey(); 100 assertEquals(value, array.get(key));
|
/frameworks/base/media/mca/filterfw/native/base/ |
H A D | utilities.h | 58 // Given an STL container consisting of (key, value) pairs, STLDeleteValues 71 // If the key is present a const pointer to the associated value is returned, 76 const typename Collection::value_type::first_type& key) { 77 typename Collection::const_iterator it = collection.find(key); 123 // If the key is present a const pointer to the associated value is returned, 125 // This function does not distinguish between a missing key and a key mapped 130 const typename Collection::value_type::first_type& key) { 131 typename Collection::const_iterator it = collection.find(key); 138 // Test to see if a set, map, hash_set or hash_map contains a particular key 75 FindOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument 129 FindPtrOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument 141 ContainsKey(const Collection& collection, const Key& key) argument 150 InsertIfNotPresent(Collection * const collection, const Key& key, const Value& value) argument [all...] |
/frameworks/base/media/mca/filterpacks/native/base/ |
H A D | utilities.h | 58 // Given an STL container consisting of (key, value) pairs, STLDeleteValues 71 // If the key is present a const pointer to the associated value is returned, 76 const typename Collection::value_type::first_type& key) { 77 typename Collection::const_iterator it = collection.find(key); 123 // If the key is present a const pointer to the associated value is returned, 125 // This function does not distinguish between a missing key and a key mapped 130 const typename Collection::value_type::first_type& key) { 131 typename Collection::const_iterator it = collection.find(key); 138 // Test to see if a set, map, hash_set or hash_map contains a particular key 75 FindOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument 129 FindPtrOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument 141 ContainsKey(const Collection& collection, const Key& key) argument 150 InsertIfNotPresent(Collection * const collection, const Key& key, const Value& value) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
H A D | SyncOperationTest.java | 103 assertEquals(op1.key, op2.key); 104 assertNotSame(op1.key, op3.key); 105 assertNotSame(op1.key, op4.key); 106 assertNotSame(op1.key, op5.key);
|
/frameworks/compile/mclinker/include/mcld/ADT/ |
H A D | StringEntry.h | 33 key_type key() { return key_type(m_Key, m_KeyLen); } function in class:mcld::StringEntry 35 const key_type key() const { return key_type(m_Key, m_KeyLen); } function in class:mcld::StringEntry 47 bool compare(const llvm::StringRef& pX) { return key().equals(pX); } 49 bool compare(const llvm::StringRef& pX) const { return key().equals(pX); } 72 key_type key() { return key_type(m_Key, m_KeyLen); } function in class:mcld::StringEntry 74 const key_type key() const { return key_type(m_Key, m_KeyLen); } function in class:mcld::StringEntry 90 bool compare(const llvm::StringRef pX) { return key().equals(pX); } 92 bool compare(const llvm::StringRef pX) const { return key().equals(pX); }
|
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/ |
H A D | MapChangeRegistry.java | 41 * @param key The key of the element that changed. 43 public void notifyChange(ObservableMap sender, Object key) { argument 44 notifyCallbacks(sender, 0, key);
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/util/ |
H A D | SystemProperties.java | 30 * Gets system properties set by <code>adb shell setprop <em>key</em> <em>value</em></code> 32 * @param key the property key. 37 public static String get(String key, String defaultValue) { argument 41 return (String) get.invoke(null, key, defaultValue);
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | IPredictor.aidl | 22 boolean setPredictorParameter(in String key, in String value);
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
H A D | MockKeyStore.java | 91 private KeyBlob access(int uid, String key, boolean createIfNotExist) { argument 96 if (map.containsKey(key)) { 97 return map.get(key); 101 map.put(key, blob); 109 public KeyBlob getKeyBlob(int uid, String key) { argument 110 return access(uid, key, false); 113 private boolean put(String key, byte[] value, int uid, int flags) { argument 114 access(uid, key, true).update(value, flags); 118 private boolean importKey(String keyName, byte[] key, int uid, int flags) { argument 119 return put(keyName, key, ui 122 delete(String key, int uid) argument 129 contains(String key, int uid) argument [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | RttService.java | 156 Integer key; field in class:RttService.RttServiceImpl.RttRequest 163 if(this.key != null) { 164 return str + " key: " + this.key; 166 return str + " key: " + " , null"; 184 void addResponderRequest(int key) { argument 185 mResponderRequests.add(key); 188 void removeResponderRequest(int key) { argument 189 mResponderRequests.remove(key); 192 boolean addRttRequest(int key, RttManage argument 208 removeRttRequest(int key) argument 212 reportResponderEnableSucceed(int key, ResponderConfig config) argument 216 reportResponderEnableFailed(int key, int reason) argument 234 reportFailed(int key, int reason, String description) argument 241 reportAborted(int key) argument [all...] |
/frameworks/base/cmds/requestsync/src/com/android/commands/requestsync/ |
H A D | RequestSync.java | 78 for (String key : mExtras.keySet()) { 79 System.out.printf(" %s: %s\n", key, mExtras.get(key)); 118 final String key = nextArgRequired(); 120 mExtras.putString(key, value); 122 final String key = nextArgRequired(); 123 mExtras.putString(key, null); 125 final String key = nextArgRequired(); 127 mExtras.putInt(key, Integer.valueOf(value)); 129 final String key [all...] |
/frameworks/opt/telephony/src/java/com/google/android/mms/util/ |
H A D | PduCache.java | 163 private PduCacheEntry purgeSingleEntry(Uri key) { argument 164 mUpdating.remove(key); 165 PduCacheEntry entry = super.purge(key); 167 removeFromThreads(key, entry); 168 removeFromMessageBoxes(key, entry); 185 * @return Uri The normalized key of cached entry. 220 for (Uri key : msgBox) { 221 mUpdating.remove(key); 222 PduCacheEntry entry = super.purge(key); 224 removeFromThreads(key, entr 231 removeFromThreads(Uri key, PduCacheEntry entry) argument 255 removeFromMessageBoxes(Uri key, PduCacheEntry entry) argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | SharedPreferencesImpl.java | 222 public String getString(String key, @Nullable String defValue) { argument 225 String v = (String)mMap.get(key); 231 public Set<String> getStringSet(String key, @Nullable Set<String> defValues) { argument 234 Set<String> v = (Set<String>) mMap.get(key); 239 public int getInt(String key, int defValue) { argument 242 Integer v = (Integer)mMap.get(key); 246 public long getLong(String key, long defValue) { argument 249 Long v = (Long)mMap.get(key); 253 public float getFloat(String key, float defValue) { argument 256 Float v = (Float)mMap.get(key); 260 getBoolean(String key, boolean defValue) argument 268 contains(String key) argument 309 putString(String key, @Nullable String value) argument 315 putStringSet(String key, @Nullable Set<String> values) argument 322 putInt(String key, int value) argument 328 putLong(String key, long value) argument 334 putFloat(String key, float value) argument 340 putBoolean(String key, boolean value) argument 347 remove(String key) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | TimedText.java | 422 Log.w(TAG, "Invalid timed text key found: " + type); 427 int key = parcel.readInt(); 428 if (!isValidKey(key)) { 429 Log.w(TAG, "Invalid timed text key found: " + key); 435 switch (key) { 517 if (mKeyObjectMap.containsKey(key)) { 518 mKeyObjectMap.remove(key); 521 mKeyObjectMap.put(key, object); 542 int key 690 isValidKey(final int key) argument 704 containsKey(final int key) argument 727 getObject(final int key) argument [all...] |
H A D | Metadata.java | 37 Metadata is like a Bundle. It is sparse and each key can occur at 38 most once. The key is an integer and the value is the actual metadata. 54 // The key range [0 8192) is reserved for the system. 256 // Map to associate a Metadata key (e.g TITLE) with the offset of 258 // Used to look up if a key was present too. 280 | metadata key | // TITLE 309 // Check the metadata key. 426 * @return true if a value is present for the given key. 430 throw new IllegalArgumentException("Invalid key: " + metadataId); 436 // Caller must make sure the key i 442 getString(final int key) argument 450 getInt(final int key) argument 458 getBoolean(final int key) argument 466 getLong(final int key) argument 476 getDouble(final int key) argument 484 getByteArray(final int key) argument 492 getDate(final int key) argument 543 checkType(final int key, final int expectedType) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
H A D | TunerService.java | 130 for (String key : keys) { 131 addTunable(tunable, key); 135 private void addTunable(Tunable tunable, String key) { argument 136 if (!mTunableLookup.containsKey(key)) { 137 mTunableLookup.put(key, new ArraySet<Tunable>()); 139 mTunableLookup.get(key).add(tunable); 140 Uri uri = Settings.Secure.getUriFor(key); 142 mListeningUris.put(uri, key); 146 String value = Settings.Secure.getStringForUser(mContentResolver, key, mCurrentUser); 147 tunable.onTuningChanged(key, valu 289 onTuningChanged(String key, String newValue) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | HeadsUpManager.java | 187 HeadsUpEntry headsUpEntry = mHeadsUpEntries.get(headsUp.key); 203 mHeadsUpEntries.put(entry.key, headsUpEntry); 236 HeadsUpEntry remove = mHeadsUpEntries.remove(entry.key); 267 public boolean removeNotification(String key, boolean ignoreEarliestRemovalTime) { argument 269 if (wasShownLongEnough(key) || ignoreEarliestRemovalTime) { 270 releaseImmediately(key); 273 getHeadsUpEntry(key).removeAsSoonAsPossible(); 278 private boolean wasShownLongEnough(String key) { argument 279 HeadsUpEntry headsUpEntry = getHeadsUpEntry(key); 281 if (mSwipedOutKeys.contains(key)) { 292 isHeadsUp(String key) argument 307 releaseImmediately(String key) argument 343 getHeadsUpEntry(String key) argument 347 getEntry(String key) argument 375 shouldSwallowClick(String key) argument 450 addSwipedOutNotification(String key) argument [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | LockSettingsStorage.java | 61 private static final String LOCK_PATTERN_FILE = "gatekeeper.pattern.key"; 62 private static final String BASE_ZERO_LOCK_PATTERN_FILE = "gatekeeper.gesture.key"; 63 private static final String LEGACY_LOCK_PATTERN_FILE = "gesture.key"; 64 private static final String LOCK_PASSWORD_FILE = "gatekeeper.password.key"; 65 private static final String LEGACY_LOCK_PASSWORD_FILE = "password.key"; 66 private static final String CHILD_PROFILE_LOCK_FILE = "gatekeeper.profile.key"; 108 public void writeKeyValue(String key, String value, int userId) { argument 109 writeKeyValue(mOpenHelper.getWritableDatabase(), key, value, userId); 112 public void writeKeyValue(SQLiteDatabase db, String key, String value, int userId) { argument 114 cv.put(COLUMN_KEY, key); 131 readKeyValue(String key, String defaultValue, int userId) argument 534 peekKeyValue(String key, String defaultValue, int userId) argument 539 hasKeyValue(String key, int userId) argument 543 putKeyValue(String key, String value, int userId) argument 547 putKeyValueIfUnchanged(String key, Object value, int userId, int version) argument 559 putFile(String key, byte[] value) argument 563 putFileIfUnchanged(String key, byte[] value, int version) argument 576 put(int type, String key, Object value, int userId) argument 582 putIfUnchanged(int type, String key, Object value, int userId, int version) argument 589 contains(int type, String key, int userId) argument 593 peek(int type, String key, int userId) argument 622 String key; field in class:LockSettingsStorage.Cache.CacheKey 626 set(int type, String key, int userId) argument [all...] |
/frameworks/base/core/java/android/app/backup/ |
H A D | SharedPreferencesBackupHelper.java | 121 String key = data.getKey(); 122 if (DEBUG) Log.d(TAG, "got entity '" + key + "' size=" + data.size()); 124 if (isKeyInList(key, mPrefGroups)) { 125 File f = context.getSharedPrefsFile(key).getAbsoluteFile();
|
/frameworks/base/core/java/android/content/ |
H A D | RestrictionEntry.java | 108 /** The unique key that identifies the restriction. */ 139 * Constructor for specifying the type and key, with no initial value; 142 * @param key the unique key for this restriction 144 public RestrictionEntry(int type, String key) { argument 146 mKey = key; 151 * @param key the unique key for this restriction 154 public RestrictionEntry(String key, String selectedString) { argument 155 this.mKey = key; 165 RestrictionEntry(String key, boolean selectedState) argument 176 RestrictionEntry(String key, String[] selectedStrings) argument 187 RestrictionEntry(String key, int selectedInt) argument 203 RestrictionEntry(String key, RestrictionEntry[] restrictionEntries, boolean isBundleArray) argument 228 createBundleEntry(String key, RestrictionEntry[] restrictionEntries) argument 240 createBundleArrayEntry(String key, RestrictionEntry[] restrictionEntries) argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/ |
H A D | CameraMetadata.java | 36 * This class defines the basic key/value map used for querying for camera 43 * never changes, nor do the values returned by any key with {@code #get} throughout 61 * @param key The metadata field to write. 63 * type to the key. 77 * <p>Querying the value for the same key more than once will return a value 80 * @throws IllegalArgumentException if the key was not valid 82 * @param key The metadata field to read. 83 * @return The value of that key, or {@code null} if the field is not set. 87 protected abstract <T> T getProtected(TKey key); argument 100 * <p>All values retrieved by a key fro 202 shouldKeyBeAdded(TKey key, Field field, int[] filterTags) argument [all...] |
/frameworks/base/drm/java/android/drm/ |
H A D | DrmInfo.java | 90 * Adds optional information as key-value pairs to this object. To add a custom object 93 * @param key Key to add. 97 public void put(String key, Object value) { argument 98 mAttributes.put(key, value); 102 * Retrieves the value of a given key. 104 * @param key The key whose value is being retrieved. 106 * @return The value of the key being retrieved. Returns null if the key cannot be found. 108 public Object get(String key) { argument [all...] |
H A D | DrmInfoRequest.java | 96 * Adds optional information as key-value pairs to this object. 98 * @param key The key to add. 101 public void put(String key, Object value) { argument 102 mRequestInformation.put(key, value); 106 * Retrieves the value of a given key. 108 * @param key The key whose value is being retrieved. 110 * @return The value of the key that is being retrieved. Returns null if the key canno 113 get(String key) argument [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | ThumbnailCache.java | 29 protected int sizeOf(Uri key, Bitmap value) { argument
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
H A D | AssetJsonWriter.java | 45 * Appends a field to the output, putting both the key and value in lowercase. Null values are 48 public void writeFieldLower(String key, String value) { argument 56 mWriter.name(key.toLowerCase(Locale.US)); 65 * Appends an array to the output, putting both the key and values in lowercase. If {@code 69 public void writeArrayUpper(String key, List<String> values) { argument 77 mWriter.name(key.toLowerCase(Locale.US));
|