Lines Matching refs:key
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.
53 // The key range [0 8192) is reserved for the system.
255 // Map to associate a Metadata key (e.g TITLE) with the offset of
257 // Used to look up if a key was present too.
279 | metadata key | // TITLE
308 // Check the metadata key.
418 * @return true if a value is present for the given key.
422 throw new IllegalArgumentException("Invalid key: " + metadataId);
428 // Caller must make sure the key is present using the {@code has}
434 public String getString(final int key) {
435 checkType(key, STRING_VAL);
442 public int getInt(final int key) {
443 checkType(key, INTEGER_VAL);
448 * Get the boolean value indicated by key
450 public boolean getBoolean(final int key) {
451 checkType(key, BOOLEAN_VAL);
458 public long getLong(final int key) {
459 checkType(key, LONG_VAL); /**
468 public double getDouble(final int key) {
469 checkType(key, DOUBLE_VAL);
476 public byte[] getByteArray(final int key) {
477 checkType(key, BYTE_ARRAY_VAL);
484 public Date getDate(final int key) {
485 checkType(key, DATE_VAL);
521 * @param val Metadata key to test.
535 private void checkType(final int key, final int expectedType) {
536 final int pos = mKeyToPosMap.get(key);