/frameworks/base/core/java/com/android/internal/statusbar/ |
H A D | NotificationVisibility.java | 33 public String key; field in class:NotificationVisibility 42 private NotificationVisibility(String key, int rank, boolean visibile) { argument 44 this.key = key; 52 + "key=" + key 60 return obtain(this.key, this.rank, this.visible); 65 // allow lookups by key, which _should_ never be null. 66 return key == null ? 0 : key 101 obtain(String key, int rank, boolean visible) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
H A D | TaskKeyLruCache.java | 28 * recently referenced key/values will be evicted as more values than the given cache size are 37 public void onEntryEvicted(Task.TaskKey key); argument 65 * Gets a specific entry in the cache with the specified key, regardless of whether the cached 68 final V get(Task.TaskKey key) { argument 69 return mCache.get(key.id); 73 * Returns the value only if the key is valid (has not been updated since the last time it was 76 final V getAndInvalidateIfModified(Task.TaskKey key) { argument 77 Task.TaskKey lastKey = mKeys.get(key.id); 79 if ((lastKey.stackId != key.stackId) || 80 (lastKey.lastActiveTime != key 93 put(Task.TaskKey key, V value) argument 103 remove(Task.TaskKey key) argument [all...] |
/frameworks/base/core/java/com/android/server/backup/ |
H A D | AccountManagerBackupHelper.java | 35 // key under which the account access grant state blob is committed to backup 43 protected byte[] getBackupPayload(String key) { argument 46 Slog.d(TAG, "Handling backup of " + key); 49 switch (key) { 55 Slog.w(TAG, "Unexpected backup key " + key); 59 Slog.e(TAG, "Unable to store payload " + key); 66 protected void applyRestoredPayload(String key, byte[] payload) { argument 69 Slog.d(TAG, "Handling restore of " + key); 72 switch (key) { [all...] |
H A D | PermissionBackupHelper.java | 32 // key under which the permission-grant state blob is committed to backup 40 protected byte[] getBackupPayload(String key) { argument 43 Slog.d(TAG, "Handling backup of " + key); 46 switch (key) { 51 Slog.w(TAG, "Unexpected backup key " + key); 54 Slog.e(TAG, "Unable to store payload " + key); 60 protected void applyRestoredPayload(String key, byte[] payload) { argument 63 Slog.d(TAG, "Handling restore of " + key); 66 switch (key) { [all...] |
H A D | PreferredActivityBackupHelper.java | 32 // key under which the preferred-activity state blob is committed to backup 35 // key for default-browser [etc] state 49 protected byte[] getBackupPayload(String key) { argument 52 Slog.d(TAG, "Handling backup of " + key); 56 switch (key) { 64 Slog.w(TAG, "Unexpected backup key " + key); 67 Slog.e(TAG, "Unable to store payload " + key); 73 protected void applyRestoredPayload(String key, byte[] payload) { argument 76 Slog.d(TAG, "Handling restore of " + key); [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | SparseArrayObjectAdapter.java | 8 * with an integer key which determines its order relative to other objects. 55 * Returns the index for the given key in the adapter. 57 * @param key The key to find in the array. 60 public int indexOf(int key) { argument 61 return mItems.indexOfKey(key); 76 * Sets the item for the given key. 78 * @param key The key associated with the item. 79 * @param item The item associated with the key 81 set(int key, Object item) argument 100 clear(int key) argument 123 lookup(int key) argument [all...] |
/frameworks/opt/telephony/src/java/com/google/android/mms/util/ |
H A D | AbstractCache.java | 37 public boolean put(K key, V value) { argument 39 Log.v(TAG, "Trying to put " + key + " into cache."); 51 if (key != null) { 54 mCacheMap.put(key, cacheEntry); 57 Log.v(TAG, key + " cached, " + mCacheMap.size() + " items total."); 64 public V get(K key) { argument 66 Log.v(TAG, "Trying to get " + key + " from cache."); 69 if (key != null) { 70 CacheEntry<V> cacheEntry = mCacheMap.get(key); 74 Log.v(TAG, key 82 purge(K key) argument [all...] |
/frameworks/base/keystore/java/android/security/keystore/ |
H A D | AndroidKeyStoreKeyFactorySpi.java | 44 protected <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpecClass) argument 46 if (key == null) { 47 throw new InvalidKeySpecException("key == null"); 48 } else if ((!(key instanceof AndroidKeyStorePrivateKey)) 49 && (!(key instanceof AndroidKeyStorePublicKey))) { 51 "Unsupported key type: " + key.getClass().getName() 55 // key is an Android Keystore private or public key 60 if (!(key instanceo 141 engineTranslateKey(Key key) argument [all...] |
/frameworks/base/core/java/android/util/ |
H A D | LongSparseLongArray.java | 91 * Gets the long mapped from the specified key, or <code>0</code> 94 public long get(long key) { argument 95 return get(key, 0); 99 * Gets the long mapped from the specified key, or the specified value 102 public long get(long key, long valueIfKeyNotFound) { argument 103 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 113 * Removes the mapping from the specified key, if there was any. 115 public void delete(long key) { argument 116 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 133 * Adds a mapping from the specified key t 137 put(long key, long value) argument 193 indexOfKey(long key) argument 224 append(long key, long value) argument [all...] |
H A D | SparseLongArray.java | 89 * Gets the long mapped from the specified key, or <code>0</code> 92 public long get(int key) { argument 93 return get(key, 0); 97 * Gets the long mapped from the specified key, or the specified value 100 public long get(int key, long valueIfKeyNotFound) { argument 101 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 111 * Removes the mapping from the specified key, if there was any. 113 public void delete(int key) { argument 114 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 131 * Adds a mapping from the specified key t 135 put(int key, long value) argument 191 indexOfKey(int key) argument 222 append(int key, long value) argument [all...] |
H A D | KeyValueListParser.java | 21 * Parses a list of key=value pairs, separated by some delimiter, and puts the results in 22 * an internal Map. Values can be then queried by key, or if not found, a default value 33 * @param delim The delimiter that separates key=value pairs. 58 "'" + pair + "' in '" + str + "' is not a valid key-value pair"); 66 * Get the value for key as an int. 67 * @param key The key to lookup. 68 * @param def The value to return if the key was not found, or the value was not a long. 69 * @return the int value associated with the key. 71 public int getInt(String key, in argument 89 getLong(String key, long def) argument 107 getFloat(String key, float def) argument 125 getString(String key, String def) argument [all...] |
/frameworks/base/core/java/android/hardware/radio/ |
H A D | RadioMetadata.java | 228 * Returns {@code true} if the given key is contained in the meta data 230 * @param key a String key 231 * @return {@code true} if the key exists in this meta data, {@code false} otherwise 233 public boolean containsKey(String key) { argument 234 return mBundle.containsKey(key); 238 * Returns the text value associated with the given key as a String, or null 239 * if the key is not found in the meta data. 241 * @param key The key th 244 getString(String key) argument 255 getInt(String key) argument 265 getBitmap(String key) argument 276 getClock(String key) argument 406 putString(String key, String value) argument 429 putInt(String key, int value) argument 453 putBitmap(String key, Bitmap value) argument 474 putClock(String key, long utcSecondsSinceEpoch, int timezoneOffsetMinutes) argument [all...] |
/frameworks/av/media/libmedia/ |
H A D | AudioParameter.cpp | 47 String8 key = String8(pair, eqIdx); local 54 if (mParameters.indexOfKey(key) < 0) { 55 mParameters.add(key, value); 57 mParameters.replaceValueFor(key, value); 60 ALOGV("AudioParameter() cstor empty key value pair"); 87 status_t AudioParameter::add(const String8& key, const String8& value) argument 89 if (mParameters.indexOfKey(key) < 0) { 90 mParameters.add(key, value); 93 mParameters.replaceValueFor(key, value); 98 status_t AudioParameter::addInt(const String8& key, cons argument 109 addFloat(const String8& key, const float value) argument 120 remove(const String8& key) argument 130 get(const String8& key, String8& value) argument 140 getInt(const String8& key, int& value) argument 156 getFloat(const String8& key, float& value) argument 172 getAt(size_t index, String8& key, String8& value) argument [all...] |
/frameworks/base/core/java/android/app/usage/ |
H A D | TimeSparseArray.java | 49 long key = -1; 52 key = keyAt(mid); 54 if (time > key) { 56 } else if (time < key) { 63 if (time < key) { 65 } else if (time > key && lo < size) {
|
/frameworks/base/core/java/android/os/ |
H A D | BaseBundle.java | 334 * Returns true if the given key is contained in the mapping 337 * @param key a String key 338 * @return true if the key is part of the mapping, false otherwise 340 public boolean containsKey(String key) { argument 342 return mMap.containsKey(key); 346 * Returns the entry with the given key as an object. 348 * @param key a String key 352 public Object get(String key) { argument 362 remove(String key) argument 405 putBoolean(@ullable String key, boolean value) argument 417 putByte(@ullable String key, byte value) argument 429 putChar(@ullable String key, char value) argument 441 putShort(@ullable String key, short value) argument 453 putInt(@ullable String key, int value) argument 465 putLong(@ullable String key, long value) argument 477 putFloat(@ullable String key, float value) argument 489 putDouble(@ullable String key, double value) argument 501 putString(@ullable String key, @Nullable String value) argument 513 putCharSequence(@ullable String key, @Nullable CharSequence value) argument 525 putIntegerArrayList(@ullable String key, @Nullable ArrayList<Integer> value) argument 537 putStringArrayList(@ullable String key, @Nullable ArrayList<String> value) argument 549 putCharSequenceArrayList(@ullable String key, @Nullable ArrayList<CharSequence> value) argument 561 putSerializable(@ullable String key, @Nullable Serializable value) argument 573 putBooleanArray(@ullable String key, @Nullable boolean[] value) argument 585 putByteArray(@ullable String key, @Nullable byte[] value) argument 597 putShortArray(@ullable String key, @Nullable short[] value) argument 609 putCharArray(@ullable String key, @Nullable char[] value) argument 621 putIntArray(@ullable String key, @Nullable int[] value) argument 633 putLongArray(@ullable String key, @Nullable long[] value) argument 645 putFloatArray(@ullable String key, @Nullable float[] value) argument 657 putDoubleArray(@ullable String key, @Nullable double[] value) argument 669 putStringArray(@ullable String key, @Nullable String[] value) argument 681 putCharSequenceArray(@ullable String key, @Nullable CharSequence[] value) argument 693 getBoolean(String key) argument 701 typeWarning(String key, Object value, String className, Object defaultValue, ClassCastException e) argument 717 typeWarning(String key, Object value, String className, ClassCastException e) argument 730 getBoolean(String key, boolean defaultValue) argument 751 getByte(String key) argument 764 getByte(String key, byte defaultValue) argument 785 getChar(String key) argument 798 getChar(String key, char defaultValue) argument 819 getShort(String key) argument 832 getShort(String key, short defaultValue) argument 853 getInt(String key) argument 866 getInt(String key, int defaultValue) argument 887 getLong(String key) argument 900 getLong(String key, long defaultValue) argument 921 getFloat(String key) argument 934 getFloat(String key, float defaultValue) argument 955 getDouble(String key) argument 968 getDouble(String key, double defaultValue) argument 991 getString(@ullable String key) argument 1013 getString(@ullable String key, String defaultValue) argument 1027 getCharSequence(@ullable String key) argument 1049 getCharSequence(@ullable String key, CharSequence defaultValue) argument 1063 getSerializable(@ullable String key) argument 1086 getIntegerArrayList(@ullable String key) argument 1109 getStringArrayList(@ullable String key) argument 1132 getCharSequenceArrayList(@ullable String key) argument 1155 getBooleanArray(@ullable String key) argument 1178 getByteArray(@ullable String key) argument 1201 getShortArray(@ullable String key) argument 1224 getCharArray(@ullable String key) argument 1247 getIntArray(@ullable String key) argument 1270 getLongArray(@ullable String key) argument 1293 getFloatArray(@ullable String key) argument 1316 getDoubleArray(@ullable String key) argument 1339 getStringArray(@ullable String key) argument 1362 getCharSequenceArray(@ullable String key) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/os/ |
H A D | SystemProperties_Delegate.java | 37 /*package*/ static String native_get(String key) { argument 38 return native_get(key, ""); 42 /*package*/ static String native_get(String key, String def) { argument 44 String value = properties.get(key); 52 /*package*/ static int native_get_int(String key, int def) { argument 54 String value = properties.get(key); 63 /*package*/ static long native_get_long(String key, long def) { argument 65 String value = properties.get(key); 78 /*package*/ static boolean native_get_boolean(String key, boolean def) { argument 80 String value = properties.get(key); 96 native_set(String key, String def) argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/impl/ |
H A D | GetCommand.java | 28 * @param key the {@link CameraMetadataNative.Key} to look up. 32 public <T> T getValue(CameraMetadataNative metadata, CameraMetadataNative.Key<T> key); argument
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A D | UnmodifiableSparseIntArray.java | 37 public int get(int key) { argument 38 return mArray.get(key); 41 public int get(int key, int valueIfKeyNotFound) { argument 42 return mArray.get(key, valueIfKeyNotFound);
|
/frameworks/rs/ |
H A D | rsCompatibilityLib.h | 34 int property_get(const char *key, char *value, const char *default_value);
|
/frameworks/volley/src/main/java/com/android/volley/ |
H A D | Cache.java | 28 * @param key Cache key 31 public Entry get(String key); argument 35 * @param key Cache key 38 public void put(String key, Entry entry); argument 48 * @param key Cache key 51 public void invalidate(String key, boolean fullExpire); argument 55 * @param key Cach 57 remove(String key) argument [all...] |
/frameworks/native/include/binder/ |
H A D | PersistableBundle.h | 46 size_t erase(const String16& key); 49 * Setters for PersistableBundle. Adds a a key-value pair instantiated with 50 * |key| and |value| into the member map appropriate for the type of |value|. 51 * If there is already an existing value for |key|, |value| will replace it. 53 void putBoolean(const String16& key, bool value); 54 void putInt(const String16& key, int32_t value); 55 void putLong(const String16& key, int64_t value); 56 void putDouble(const String16& key, double value); 57 void putString(const String16& key, const String16& value); 58 void putBooleanVector(const String16& key, cons [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | StaticMetadata.java | 308 // Optional key. Default value is 1 if key is missing. 390 Key<Float> key = CameraCharacteristics.LENS_INFO_MINIMUM_FOCUS_DISTANCE; 399 minFocusDistance = getValueFromKeyNonNull(key); 401 minFocusDistance = mCharacteristics.get(key); 408 checkTrueForKey(key, " minFocusDistance value shouldn't be negative", 423 Key<Integer> key = CameraCharacteristics.LENS_INFO_FOCUS_DISTANCE_CALIBRATION; 424 Integer calibration = getValueFromKeyNonNull(key); 430 checkTrueForKey(key, " value is out of range" , 481 Key<int[]> key 2240 getArrayElementOrDefault(Key<?> key, T defaultValue, String name, int index, int size) argument 2269 getArrayElementNonNull(Key<?> key, int element) argument 2285 getArrayElementCheckRangeNonNull(Key<?> key, int element, int size) argument 2317 getValueFromKeyNonNull(Key<T> key) argument 2331 checkArrayValuesInRange(Key<int[]> key, int[] array, int min, int max) argument 2338 checkArrayValuesInRange(Key<byte[]> key, byte[] array, byte min, byte max) argument 2351 checkElementDistinct(Key<U> key, List<T> list) argument 2357 checkTrueForKey(Key<T> key, String message, boolean condition) argument 2376 failKeyCheck(Key<T> key, String message) argument [all...] |
/frameworks/base/core/java/android/os/health/ |
H A D | HealthStats.java | 36 * (COUNT, MS, etc) will always be in the name of the constant for the key to 197 * Return whether this object contains a TimerStat for the supplied key. 199 public boolean hasTimer(int key) { argument 200 return getIndex(mTimerKeys, key) >= 0; 204 * Return a TimerStat object for the given key. 209 * @throws IndexOutOfBoundsException When the key is not present in this object. 210 * @see #hasTimer hasTimer(int) To check if a value for the given key is present. 212 public TimerStat getTimer(int key) { argument 213 final int index = getIndex(mTimerKeys, key); 215 throw new IndexOutOfBoundsException("Bad timer key dataTyp 227 getTimerCount(int key) argument 242 getTimerTime(int key) argument 274 hasMeasurement(int key) argument 284 getMeasurement(int key) argument 316 hasStats(int key) argument 326 getStats(int key) argument 358 hasTimers(int key) argument 368 getTimers(int key) argument 400 hasMeasurements(int key) argument 410 getMeasurements(int key) argument 443 getIndex(int[] keys, int key) argument [all...] |
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | BordeauxSessionManager.java | 82 public LearningUpdateCallback(String key) { argument 83 mKey = key; 100 // internal unique key that identifies the learning instance. 104 SessionKey key = new SessionKey(); 105 key.value = callingUid + "#" + "_" + name + "_" + learnerClass.getName(); 106 return key; 109 public IBinder getSessionBinder(Class learnerClass, SessionKey key) { argument 110 if (mSessions.containsKey(key.value)) { 111 return mSessions.get(key.value).learner.getBinder(); 116 Session stored = mSessionStorage.getSession(key 155 saveSession(SessionKey key) argument [all...] |
/frameworks/av/include/media/ |
H A D | AudioParameter.h | 54 status_t add(const String8& key, const String8& value); 55 status_t addInt(const String8& key, const int value); 56 status_t addFloat(const String8& key, const float value); 58 status_t remove(const String8& key); 60 status_t get(const String8& key, String8& value); 61 status_t getInt(const String8& key, int& value); 62 status_t getFloat(const String8& key, float& value); 63 status_t getAt(size_t index, String8& key, String8& value);
|