/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/audio_util/ |
D | MetadataTest.java | 255 Metadata metadata) { in assertMetadata() 270 Metadata metadata = new Metadata.Builder().setMediaId(SONG_MEDIA_ID).build(); in testBuildMetadataSetMediaId() 278 Metadata metadata = new Metadata.Builder().fromMediaMetadata(m).build(); in testBuildMetadataFromMediaMetadata() 296 Metadata metadata = new Metadata.Builder().fromMediaMetadata(m).build(); in testBuildMetadataFromMediaMetadataWithArt() 315 Metadata metadata = new Metadata.Builder().fromMediaMetadata(m).build(); in testBuildMetadataFromMediaMetadataWithAlbumArt() 334 Metadata metadata = new Metadata.Builder().fromMediaMetadata(m).build(); in testBuildMetadataFromMediaMetadataWithDisplayIcon() 352 Metadata metadata = in testBuildMetadataFromMediaMetadataWithUriArt() 353 new Metadata.Builder().useContext(mMockContext).fromMediaMetadata(m).build(); in testBuildMetadataFromMediaMetadataWithUriArt() 372 Metadata metadata = in testBuildMetadataFromMediaMetadataWithUriAlbumArt() 373 new Metadata.Builder().useContext(mMockContext).fromMediaMetadata(m).build(); in testBuildMetadataFromMediaMetadataWithUriAlbumArt() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/audio_util/helpers/ |
D | Util.java | 38 public static final Metadata empty_data() { in empty_data() 39 Metadata.Builder builder = new Metadata.Builder(); in empty_data() 44 public static final boolean isEmptyData(Metadata data) { in isEmptyData() 48 return (empty_data().equals(data) && data.mediaId.equals(Metadata.EMPTY_MEDIA_ID)); in isEmptyData() 62 public static Metadata toMetadata(Context context, MediaItem item) { in toMetadata() 63 Metadata.Builder builder = new Metadata.Builder(); in toMetadata() 73 public static Metadata toMetadata(Context context, MediaSession.QueueItem item) { in toMetadata() 74 Metadata.Builder builder = new Metadata.Builder(); in toMetadata() 91 public static Metadata toMetadata(Context context, MediaMetadata data) { in toMetadata() 92 Metadata.Builder builder = new Metadata.Builder(); in toMetadata() [all …]
|
D | Metadata.java | 30 public class Metadata implements Cloneable { class 52 public Metadata clone() { in clone() 53 Metadata data = new Metadata(); in clone() 69 if (!(o instanceof Metadata)) return false; in equals() 71 final Metadata m = (Metadata) o; in equals() 116 public void replaceDefaults(Metadata filledMetadata) { in replaceDefaults() 121 Metadata empty = Util.empty_data(); in replaceDefaults() 154 private Metadata mMetadata = new Metadata(); 315 public Metadata build() { in build()
|
D | MediaData.java | 28 public List<Metadata> queue; 30 public Metadata metadata; 32 public MediaData(Metadata m, PlaybackState s, List<Metadata> q) { in MediaData()
|
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/ |
D | DataFactory.java | 19 import static android.health.connect.datatypes.Metadata.RECORDING_METHOD_ACTIVELY_RECORDED; 40 import android.health.connect.datatypes.Metadata; 84 public static Metadata generateMetadata() { in generateMetadata() 89 public static Metadata generateMetadata(String id) { in generateMetadata() 94 public static Metadata generateMetadata(String id, String clientId) { in generateMetadata() 96 return new Metadata.Builder() in generateMetadata() 102 .setRecordingMethod(Metadata.RECORDING_METHOD_UNKNOWN) in generateMetadata() 107 public static Metadata generateMetadataWithClientId(String clientId) { in generateMetadataWithClientId() 111 public static Metadata getEmptyMetadata() { in getEmptyMetadata() 112 return new Metadata.Builder().build(); in getEmptyMetadata() [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | MindfulnessSessionRecordTest.java | 20 import static android.health.connect.datatypes.Metadata.RECORDING_METHOD_MANUAL_ENTRY; 33 import android.health.connect.datatypes.Metadata; 81 Metadata metadata = in mindfulnessSessionRecordBuilder_allFieldsSet() 82 new Metadata.Builder() in mindfulnessSessionRecordBuilder_allFieldsSet() 122 Metadata metadata = new Metadata.Builder().build(); in mindfulnessSessionRecordBuilder_optionalFieldsUnset() 145 new Metadata.Builder().build(), in mindfulnessSessionRecordBuilder_invalidMindfulnessSessionType() 159 new Metadata.Builder().build(), in mindfulnessSessionRecordBuilder_clearZoneOffsets() 178 Metadata metadata = new Metadata.Builder().build(); in equals_hashCode_allFieldsEqual_recordsEqual() 208 Metadata metadataA = new Metadata.Builder().setId("id-a").build(); in equals_hashCode_metadataNotEqual_recordsNotEqual() 209 Metadata metadataB = new Metadata.Builder().setId("id-b").build(); in equals_hashCode_metadataNotEqual_recordsNotEqual() [all …]
|
D | BodyWaterMassRecordTest.java | 37 import android.health.connect.datatypes.Metadata; 312 new Metadata.Builder().build(), Instant.now(), Mass.fromGrams(1)); in testZoneOffsets() 328 Metadata metadata = generateMetadata(); in testBodyWaterMass_buildEqualSessions_equalsReturnsTrue() 489 .map(Metadata::getId) in testInsertAndDeleteRecord_changelogs() 492 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 506 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 539 new Metadata.Builder().build(), Instant.now(), Mass.fromGrams(1001000.0)) in testCreateBodyWaterMassRecord_invalidValue() 545 Metadata metadata = record.getMetadata(); in getBodyWaterMassRecord_update() 546 Metadata metadataWithId = in getBodyWaterMassRecord_update() 547 new Metadata.Builder() in getBodyWaterMassRecord_update() [all …]
|
D | HeartRateVariabilityRmssdRecordTest.java | 37 import android.health.connect.datatypes.Metadata; 341 new Metadata.Builder().build(), Instant.now(), 1.3); in testZoneOffsets() 356 Metadata metadata = generateMetadata(); in testHeartRateVariabilityRmssd_buildEqualSessions_equalsReturnsTrue() 458 new Metadata.Builder().build(), Instant.now(), 0.39) in testCreateHeartRateVariabilityRecord_invalidValue() 531 .map(Metadata::getId) in testInsertAndDeleteRecord_changelogs() 534 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 548 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 581 Metadata metadata = record.getMetadata(); in getHeartRateVariabilityRmssdRecord_update() 582 Metadata metadataWithId = in getHeartRateVariabilityRmssdRecord_update() 583 new Metadata.Builder() in getHeartRateVariabilityRmssdRecord_update() [all …]
|
D | FloorsClimbedRecordTest.java | 39 import android.health.connect.datatypes.Metadata; 107 new FloorsClimbedRecord.Builder(new Metadata.Builder().build(), startTime, startTime, 10) in testCreateFloorsClimbedRecord_sameStartEndTime() 294 new Metadata.Builder().build(), in testZoneOffsets() 467 .map(Metadata::getId) in testInsertAndDeleteRecord_changelogs() 470 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 484 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 502 new Metadata.Builder().build(), in testCreateFloorsClimbedRecord_invalidValue() 512 new Metadata.Builder().build(), in testCreateFloorsClimbedRecord_invalidTime() 521 Metadata metadata = record.getMetadata(); in getFloorsClimbedRecord_update() 522 Metadata metadataWithId = in getFloorsClimbedRecord_update() [all …]
|
D | WheelchairPushesRecordTest.java | 38 import android.health.connect.datatypes.Metadata; 281 new Metadata.Builder().build(), in testZoneOffsets() 442 .map(Metadata::getId) in testInsertAndDeleteRecord_changelogs() 445 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 459 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 490 new Metadata.Builder().build(), in testCreateWheelchairPushesRecord_invalidValue() 499 Metadata metadata = record.getMetadata(); in getWheelchairPushesRecord_update() 500 Metadata metadataWithId = in getWheelchairPushesRecord_update() 501 new Metadata.Builder() in getWheelchairPushesRecord_update() 526 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteWheelchairPushesRecord() [all …]
|
D | IntermenstrualBleedingRecordTest.java | 37 import android.health.connect.datatypes.Metadata; 339 new Metadata.Builder().build(), Instant.now()); in testZoneOffsets() 354 Metadata metadata = generateMetadata(); in testIntermenstrualBleeding_buildEqualSessions_equalsReturnsTrue() 409 .map(Metadata::getId) in testInsertAndDeleteRecord_changelogs() 412 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 426 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 569 Metadata metadata = record.getMetadata(); in getIntermenstrualBleedingRecord_update() 570 Metadata metadataWithId = in getIntermenstrualBleedingRecord_update() 571 new Metadata.Builder() in getIntermenstrualBleedingRecord_update() 586 new Metadata.Builder().build(), Instant.now()) in getBaseIntermenstrualBleedingRecord() [all …]
|
D | ActiveCaloriesBurnedRecordTest.java | 35 import android.health.connect.datatypes.Metadata; 91 new Metadata.Builder().build(), in testCreateActiveCaloriesBurnedRecord_invalidValue() 352 new Metadata.Builder().build(), in testZoneOffsets() 516 .map(Metadata::getId) in testInsertAndDeleteRecord_changelogs() 519 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 533 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 565 Metadata metadata = record.getMetadata(); in getActiveCaloriesBurnedRecord_update() 566 Metadata metadataWithId = in getActiveCaloriesBurnedRecord_update() 567 new Metadata.Builder() in getActiveCaloriesBurnedRecord_update() 587 new Metadata.Builder().build(), in getBaseActiveCaloriesBurnedRecord() [all …]
|
D | BloodGlucoseRecordTest.java | 35 import android.health.connect.datatypes.Metadata; 329 new Metadata.Builder().build(), in testZoneOffsets() 457 new Metadata.Builder().build(), in testCreateBloodGlucoseRecord_invalidValue() 469 new Metadata.Builder().build(), in testCreateBloodGlucoseRecord_invalidMealTypeValue() 503 .map(Metadata::getId) in testInsertAndDeleteRecord_changelogs() 506 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 520 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 525 Metadata metadata = record.getMetadata(); in getBloodGlucoseRecord_update() 526 Metadata metadataWithId = in getBloodGlucoseRecord_update() 527 new Metadata.Builder() in getBloodGlucoseRecord_update() [all …]
|
D | RestingHeartRateRecordTest.java | 37 import android.health.connect.datatypes.Metadata; 397 new Metadata.Builder().build(), Instant.now(), 1); in testZoneOffsets() 405 new RestingHeartRateRecord.Builder(new Metadata.Builder().build(), Instant.now(), 500) in testCreateRestingHeartRateRecord_invalidValue() 412 new Metadata.Builder().build(), Instant.now().plusMillis(100), 500) in testCreateRestingHeartRateRecord_invalidTime() 561 .map(Metadata::getId) in testInsertAndDeleteRecord_changelogs() 566 .map(Metadata::getId) in testInsertAndDeleteRecord_changelogs() 583 .map(Metadata::getId) in testInsertAndDeleteRecord_changelogs() 589 Metadata metadata = record.getMetadata(); in getRestingHeartRateRecord_update() 590 Metadata metadataWithId = in getRestingHeartRateRecord_update() 591 new Metadata.Builder() in getRestingHeartRateRecord_update() [all …]
|
D | TotalCaloriesBurnedRecordTest.java | 33 import android.health.connect.datatypes.Metadata; 241 new Metadata.Builder().build(), in testZoneOffsets() 405 .map(Metadata::getId) in testInsertAndDeleteRecord_changelogs() 408 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 422 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 452 new Metadata.Builder().build(), in testCreateTotalCaloriesBurnedRecord_invalidValue() 461 Metadata metadata = record.getMetadata(); in getTotalCaloriesBurnedRecord_update() 462 Metadata metadataWithId = in getTotalCaloriesBurnedRecord_update() 463 new Metadata.Builder() in getTotalCaloriesBurnedRecord_update() 491 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteTotalCaloriesBurnedRecord() [all …]
|
D | MenstruationFlowRecordTest.java | 35 import android.health.connect.datatypes.Metadata; 347 new Metadata.Builder().build(), Instant.now(), 0); in testZoneOffsets() 499 .map(Metadata::getId) in testInsertAndDeleteRecord_changelogs() 502 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 516 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 521 Metadata metadata = record.getMetadata(); in getMenstruationFlowRecord_update() 522 Metadata metadataWithId = in getMenstruationFlowRecord_update() 523 new Metadata.Builder() in getMenstruationFlowRecord_update() 537 return new MenstruationFlowRecord.Builder(new Metadata.Builder().build(), Instant.now(), 1) in getBaseMenstruationFlowRecord() 550 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteMenstruationFlowRecord() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/grpc/ |
D | TranscriptionClientFactory.java | 34 import io.grpc.Metadata; 145 private static final Metadata.Key<String> API_KEY_HEADER = 146 Metadata.Key.of("X-Goog-Api-Key", Metadata.ASCII_STRING_MARSHALLER); 147 private static final Metadata.Key<String> ANDROID_PACKAGE_HEADER = 148 Metadata.Key.of("X-Android-Package", Metadata.ASCII_STRING_MARSHALLER); 149 private static final Metadata.Key<String> ANDROID_CERT_HEADER = 150 Metadata.Key.of("X-Android-Cert", Metadata.ASCII_STRING_MARSHALLER); 151 private static final Metadata.Key<String> AUTHORIZATION_HEADER = 152 Metadata.Key.of("authorization", Metadata.ASCII_STRING_MARSHALLER); 171 public void start(Listener<RespT> responseListener, Metadata headers) { in interceptCall()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/storage/ |
D | DatabaseManager.java | 76 @VisibleForTesting final Map<String, Metadata> mMetadataCache = new HashMap<>(); 124 List<Metadata> list; in handleMessage() 141 Metadata data = (Metadata) msg.obj; in handleMessage() 210 Metadata metadata = mMetadataCache.get(address); in bondStateChanged() 244 Metadata data = mMetadataCache.get(address); in setCustomMeta() 279 Metadata data = mMetadataCache.get(address); in getCustomMeta() 298 Metadata data = mMetadataCache.get(address); in setAudioPolicyMetadata() 378 Metadata data = mMetadataCache.get(address); in setProfileConnectionPolicy() 444 Metadata data = mMetadataCache.get(address); in getProfileConnectionPolicy() 487 Metadata data = mMetadataCache.get(address); in setA2dpSupportsOptionalCodecs() [all …]
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
D | PhotoDatabase.java | 24 import com.android.photos.data.PhotoProvider.Metadata; 73 { Metadata._ID, "INTEGER PRIMARY KEY AUTOINCREMENT" }, 75 { Metadata.PHOTO_ID, "INTEGER NOT NULL" }, 76 { Metadata.KEY, "TEXT NOT NULL" }, 77 { Metadata.VALUE, "TEXT NOT NULL" }, 78 createUniqueConstraint(Metadata.PHOTO_ID, Metadata.KEY), 91 createTable(db, Metadata.TABLE, getMetadataTableDefinition()); in onCreate() 113 dropTable(db, Metadata.TABLE); in recreate()
|
D | PhotoProvider.java | 169 public static interface Metadata extends BaseColumns { interface in PhotoProvider 214 protected static final String WHERE_METADATA_ID = Metadata.PHOTO_ID + " = ? AND " 215 + Metadata.KEY + " = ?"; 223 protected static final String DELETE_METADATA = "DELETE FROM " + Metadata.TABLE; 224 … protected static final String SELECT_METADATA_COUNT = "SELECT COUNT(_id) FROM " + Metadata.TABLE; 263 sUriMatcher.addURI(AUTHORITY, Metadata.TABLE, MATCH_METADATA); in sUriMatcher.addURI() 265 sUriMatcher.addURI(AUTHORITY, Metadata.TABLE + "/#", MATCH_METADATA_ID); in sUriMatcher.addURI() 403 table = Metadata.TABLE; in getTableFromMatch() 422 if (values.get(Metadata.VALUE) == null) { in modifyMetadata() 424 values.getAsString(Metadata.PHOTO_ID), values.getAsString(Metadata.KEY), in modifyMetadata() [all …]
|
/packages/modules/HealthFitness/tests/cts/route/src/android/healthconnect/cts/route/ |
D | ExerciseRouteTestHelper.java | 40 import android.health.connect.datatypes.Metadata; 82 static ExerciseSessionRecord getExerciseSessionWithRoute(Metadata metadata) { in getExerciseSessionWithRoute() 86 static ExerciseSessionRecord getExerciseSessionWithRoute(Metadata metadata, Instant startTime) { in getExerciseSessionWithRoute() 90 static ExerciseSessionRecord getExerciseSessionWithAnotherRoute(Metadata metadata) { in getExerciseSessionWithAnotherRoute() 94 static ExerciseSessionRecord getExerciseSessionWithoutRoute(Metadata metadata) { in getExerciseSessionWithoutRoute() 99 Metadata metadata, Instant startTime) { in getExerciseSessionWithoutRoute() 104 Metadata metadata, Instant startTime, ExerciseRoute route) { in getExerciseSession()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/ |
D | Metadata.java | 32 public final class Metadata { class 102 private Metadata( in Metadata() method in Metadata 194 if (object instanceof Metadata) { in equals() 195 Metadata other = (Metadata) object; in equals() 344 public Metadata build() { in build() 345 return new Metadata( in build()
|
/packages/modules/Virtualization/microdroid_manager/src/ |
D | payload.rs | 21 use microdroid_metadata::{read_metadata, ApexPayload, Metadata}; 28 pub fn load_metadata() -> Result<Metadata> { in load_metadata() 35 pub fn get_apex_data_from_payload(metadata: &Metadata) -> Result<Vec<ApexData>> { in get_apex_data_from_payload() 61 pub fn to_metadata(apex_data: &[ApexData]) -> Metadata { in to_metadata() argument 62 Metadata { in to_metadata()
|
/packages/modules/Virtualization/microdroid/payload/metadata/src/ |
D | lib.rs | 27 metadata::Payload as PayloadMetadata, ApexPayload, ApkPayload, Metadata, PayloadConfig, 31 pub fn read_metadata<T: Read>(mut r: T) -> Result<Metadata> { in read_metadata() argument 35 Ok(Metadata::parse_from_reader(&mut r.take(size as u64))?) in read_metadata() 39 pub fn write_metadata<T: Write>(metadata: &Metadata, mut w: T) -> Result<()> { in write_metadata() argument
|
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/provision/grpc/impl/ |
D | ApiKeyClientInterceptor.java | 29 import io.grpc.Metadata; 54 public void start(Listener<RespT> listener, Metadata headers) { in interceptCall() 60 headers.put(Metadata.Key.of(mApiKey.first, Metadata.ASCII_STRING_MARSHALLER), in interceptCall()
|