/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/ |
D | RadioMetadataTest.java | 52 private final RadioMetadata.Builder mBuilder = new RadioMetadata.Builder(); 69 RadioMetadata.Clock clock = new RadioMetadata.Clock(TEST_UTC_SECOND_SINCE_EPOCH, in describeContents_forClock() 78 RadioMetadata.Clock[] clocks = RadioMetadata.Clock.CREATOR.newArray(CREATOR_ARRAY_SIZE); in newArray_forClockCreator() 85 RadioMetadata.Clock clockExpected = new RadioMetadata.Clock(TEST_UTC_SECOND_SINCE_EPOCH, in writeToParcel_forClock() 92 RadioMetadata.Clock clockFromParcel = RadioMetadata.Clock.CREATOR.createFromParcel(parcel); in writeToParcel_forClock() 102 String invalidStringKey = RadioMetadata.METADATA_KEY_RDS_PI; in putString_withIllegalKey() 115 String invalidIntKey = RadioMetadata.METADATA_KEY_GENRE; in putInt_withIllegalKey() 128 String invalidIntKey = RadioMetadata.METADATA_KEY_GENRE; in putBitmap_withIllegalKey() 141 String invalidClockKey = RadioMetadata.METADATA_KEY_ALBUM; in putClock_withIllegalKey() 156 String invalidStringArrayKey = RadioMetadata.METADATA_KEY_HD_STATION_NAME_LONG; in putStringArray_withIllegalKey_throwsException() [all …]
|
D | TunerAdapterTest.java | 927 private static RadioMetadata createRadioMetadata() { in createRadioMetadata() 928 RadioMetadata.Builder metadataBuilder = new RadioMetadata.Builder(); in createRadioMetadata() 929 return metadataBuilder.putString(RadioMetadata.METADATA_KEY_ARTIST, "artistMock").build(); in createRadioMetadata()
|
D | RadioManagerTest.java | 144 private static final RadioMetadata METADATA = createMetadata(); 1397 private static RadioMetadata createMetadata() { in createMetadata() 1398 RadioMetadata.Builder metadataBuilder = new RadioMetadata.Builder(); in createMetadata() 1399 return metadataBuilder.putString(RadioMetadata.METADATA_KEY_ARTIST, "artistTest").build(); in createMetadata()
|
D | ProgramListTest.java | 670 /* signalQuality= */ 1, new RadioMetadata.Builder().build(), in createFmProgramInfo() 677 /* signalQuality= */ 1, new RadioMetadata.Builder().build(), in createDabProgramInfo()
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/aidl/ |
D | ConversionUtils.java | 40 import android.hardware.radio.RadioMetadata; 463 static RadioMetadata radioMetadataFromHalMetadata(Metadata[] meta) { in radioMetadataFromHalMetadata() 464 RadioMetadata.Builder builder = new RadioMetadata.Builder(); in radioMetadataFromHalMetadata() 470 builder.putString(RadioMetadata.METADATA_KEY_RDS_PS, meta[i].getRdsPs()); in radioMetadataFromHalMetadata() 473 builder.putInt(RadioMetadata.METADATA_KEY_RDS_PTY, meta[i].getRdsPty()); in radioMetadataFromHalMetadata() 476 builder.putInt(RadioMetadata.METADATA_KEY_RBDS_PTY, meta[i].getRbdsPty()); in radioMetadataFromHalMetadata() 479 builder.putString(RadioMetadata.METADATA_KEY_RDS_RT, meta[i].getRdsRt()); in radioMetadataFromHalMetadata() 482 builder.putString(RadioMetadata.METADATA_KEY_TITLE, meta[i].getSongTitle()); in radioMetadataFromHalMetadata() 485 builder.putString(RadioMetadata.METADATA_KEY_ARTIST, meta[i].getSongArtist()); in radioMetadataFromHalMetadata() 488 builder.putString(RadioMetadata.METADATA_KEY_ALBUM, meta[i].getSongAlbum()); in radioMetadataFromHalMetadata() [all …]
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/ |
D | Convert.java | 37 import android.hardware.radio.RadioMetadata; 341 MetadataType.STRING, RadioMetadata.METADATA_KEY_RDS_PS)); in METADATA_KEYS.put() 343 MetadataType.INT, RadioMetadata.METADATA_KEY_RDS_PTY)); in METADATA_KEYS.put() 345 MetadataType.INT, RadioMetadata.METADATA_KEY_RBDS_PTY)); in METADATA_KEYS.put() 347 MetadataType.STRING, RadioMetadata.METADATA_KEY_RDS_RT)); in METADATA_KEYS.put() 349 MetadataType.STRING, RadioMetadata.METADATA_KEY_TITLE)); in METADATA_KEYS.put() 351 MetadataType.STRING, RadioMetadata.METADATA_KEY_ARTIST)); in METADATA_KEYS.put() 353 MetadataType.STRING, RadioMetadata.METADATA_KEY_ALBUM)); in METADATA_KEYS.put() 355 MetadataType.INT, RadioMetadata.METADATA_KEY_ICON)); in METADATA_KEYS.put() 357 MetadataType.INT, RadioMetadata.METADATA_KEY_ART)); in METADATA_KEYS.put() [all …]
|
/frameworks/base/core/java/android/hardware/radio/ |
D | RadioMetadata.java | 42 public final class RadioMetadata implements Parcelable { class 366 if (!(obj instanceof RadioMetadata)) return false; in equals() 367 Bundle otherBundle = ((RadioMetadata) obj).mBundle; in equals() 384 RadioMetadata() { in RadioMetadata() method in RadioMetadata 388 private RadioMetadata(Bundle bundle) { in RadioMetadata() method in RadioMetadata 392 private RadioMetadata(Parcel in) { in RadioMetadata() method in RadioMetadata 526 clock = mBundle.getParcelable(key, android.hardware.radio.RadioMetadata.Clock.class); in getClock() 604 public static final @android.annotation.NonNull Parcelable.Creator<RadioMetadata> CREATOR = 605 new Parcelable.Creator<RadioMetadata>() { 607 public RadioMetadata createFromParcel(Parcel in) { [all …]
|
D | RadioMetadata.aidl | 20 parcelable RadioMetadata;
|
D | ITunerCallback.aidl | 22 import android.hardware.radio.RadioMetadata;
|
D | TunerCallbackAdapter.java | 193 RadioMetadata metadata = info.getMetadata(); in onCurrentProgramInfoChanged()
|
D | RadioTuner.java | 725 public void onMetadataChanged(RadioMetadata metadata) {} in onMetadataChanged()
|
D | RadioManager.java | 1548 @Nullable private final RadioMetadata mMetadata; 1556 int infoFlags, int signalQuality, @Nullable RadioMetadata metadata, in ProgramInfo() 1762 public RadioMetadata getMetadata() { in getMetadata() 1787 mMetadata = in.readTypedObject(RadioMetadata.CREATOR); in ProgramInfo()
|
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/aidl/ |
D | ConversionUtilsTest.java | 41 import android.hardware.radio.RadioMetadata; 626 new RadioMetadata.Builder().build(), new ArrayMap<>()); in programInfoMeetsSdkVersionRequirement_withLowerVersionIdForRelatedContent() 757 RadioMetadata convertedMetadata = ConversionUtils.radioMetadataFromHalMetadata( in radioMetadataFromHalMetadata() 764 .that(convertedMetadata.getString(RadioMetadata.METADATA_KEY_TITLE)) in radioMetadataFromHalMetadata() 767 .that(convertedMetadata.getInt(RadioMetadata.METADATA_KEY_ART)) in radioMetadataFromHalMetadata() 770 .that(convertedMetadata.getInt(RadioMetadata.METADATA_KEY_RDS_PTY)) in radioMetadataFromHalMetadata() 773 .that(convertedMetadata.getInt(RadioMetadata.METADATA_KEY_RBDS_PTY)) in radioMetadataFromHalMetadata() 776 .that(convertedMetadata.getString(RadioMetadata.METADATA_KEY_RDS_RT)) in radioMetadataFromHalMetadata() 779 .that(convertedMetadata.getString(RadioMetadata.METADATA_KEY_ALBUM)) in radioMetadataFromHalMetadata() 782 .that(convertedMetadata.getString(RadioMetadata.METADATA_KEY_PROGRAM_NAME)) in radioMetadataFromHalMetadata() [all …]
|
D | AidlTestUtils.java | 27 import android.hardware.radio.RadioMetadata; 57 new RadioMetadata.Builder().build(), new ArrayMap<>()); in makeProgramInfo()
|
/frameworks/base/services/core/jni/BroadcastRadio/ |
D | convert.cpp | 149 } RadioMetadata; member 506 gjni.RadioMetadata.clazz, gjni.RadioMetadata.cstor)); in MetadataFromHal() 513 status = env->CallIntMethod(jMetadata.get(), gjni.RadioMetadata.putIntFromNative, in MetadataFromHal() 518 status = env->CallIntMethod(jMetadata.get(), gjni.RadioMetadata.putStringFromNative, in MetadataFromHal() 532 status = env->CallIntMethod(jMetadata.get(), gjni.RadioMetadata.putBitmapFromNative, in MetadataFromHal() 537 status = env->CallIntMethod(jMetadata.get(), gjni.RadioMetadata.putClockFromNative, in MetadataFromHal() 751 gjni.RadioMetadata.clazz = MakeGlobalRefOrDie(env, radioMetadataClass); in register_android_server_broadcastradio_convert() 752 gjni.RadioMetadata.cstor = GetMethodIDOrDie(env, radioMetadataClass, "<init>", "()V"); in register_android_server_broadcastradio_convert() 753 gjni.RadioMetadata.putIntFromNative = GetMethodIDOrDie(env, radioMetadataClass, in register_android_server_broadcastradio_convert() 755 gjni.RadioMetadata.putStringFromNative = GetMethodIDOrDie(env, radioMetadataClass, in register_android_server_broadcastradio_convert() [all …]
|
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ |
D | ConvertTest.java | 34 import android.hardware.radio.RadioMetadata; 262 RadioMetadata convertedMetadata = info.getMetadata(); in programInfoFromHal_withMetadata() 266 .that(convertedMetadata.getString(RadioMetadata.METADATA_KEY_TITLE)) in programInfoFromHal_withMetadata() 269 .that(convertedMetadata.getInt(RadioMetadata.METADATA_KEY_ART)) in programInfoFromHal_withMetadata()
|
D | TestUtils.java | 25 import android.hardware.radio.RadioMetadata; 69 new RadioMetadata.Builder().build(), new ArrayMap<>()); in makeProgramInfo()
|
/frameworks/base/core/api/ |
D | system-current.txt | 6523 method public android.hardware.radio.RadioMetadata getMetadata(); 6544 public final class RadioMetadata implements android.os.Parcelable { 6549 method public android.hardware.radio.RadioMetadata.Clock getClock(String); 6556 …ll public static final android.os.Parcelable.Creator<android.hardware.radio.RadioMetadata> CREATOR; 6585 public static final class RadioMetadata.Builder { 6586 ctor public RadioMetadata.Builder(); 6587 ctor public RadioMetadata.Builder(android.hardware.radio.RadioMetadata); 6588 method public android.hardware.radio.RadioMetadata build(); 6589 …method public android.hardware.radio.RadioMetadata.Builder putBitmap(String, android.graphics.Bitm… 6590 method public android.hardware.radio.RadioMetadata.Builder putClock(String, long, int); [all …]
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 21827 …amSelector$Identifier;Ljava/util/Collection;IILandroid/hardware/radio/RadioMetadata;Ljava/util/Map… 21837 Landroid/hardware/radio/RadioManager$ProgramInfo;->mMetadata:Landroid/hardware/radio/RadioMetadata; 21849 Landroid/hardware/radio/RadioMetadata$Builder;-><init>(Landroid/hardware/radio/RadioMetadata;I)V 21850 Landroid/hardware/radio/RadioMetadata$Builder;->mBundle:Landroid/os/Bundle; 21851 Landroid/hardware/radio/RadioMetadata$Builder;->scaleBitmap(Landroid/graphics/Bitmap;I)Landroid/gra… 21852 Landroid/hardware/radio/RadioMetadata$Clock;-><init>(Landroid/os/Parcel;)V 21853 Landroid/hardware/radio/RadioMetadata$Clock;->mTimezoneOffsetMinutes:I 21854 Landroid/hardware/radio/RadioMetadata$Clock;->mUtcEpochSeconds:J 21855 Landroid/hardware/radio/RadioMetadata;-><init>()V 21856 Landroid/hardware/radio/RadioMetadata;-><init>(Landroid/os/Bundle;)V [all …]
|
/frameworks/base/boot/ |
D | preloaded-classes | 3095 android.hardware.radio.RadioMetadata$1 3096 android.hardware.radio.RadioMetadata
|
D | boot-image-profile.txt | 25482 Landroid/hardware/radio/RadioMetadata$1; 25483 Landroid/hardware/radio/RadioMetadata;
|
/frameworks/base/config/ |
D | preloaded-classes | 3099 android.hardware.radio.RadioMetadata$1 3100 android.hardware.radio.RadioMetadata
|
D | boot-image-profile.txt | 35616 Landroid/hardware/radio/RadioMetadata$1; 35617 Landroid/hardware/radio/RadioMetadata;
|