Home
last modified time | relevance | path

Searched refs:Announcement (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/core/java/android/hardware/radio/
DAnnouncement.java35 public final class Announcement implements Parcelable { class
78 void onListUpdated(Collection<Announcement> activeAnnouncements); in onListUpdated()
86 public Announcement(@NonNull ProgramSelector selector, @Type int type, in Announcement() method in Announcement
93 private Announcement(@NonNull Parcel in) { in Announcement() method in Announcement
111 public static final @android.annotation.NonNull Parcelable.Creator<Announcement> CREATOR =
112 new Parcelable.Creator<Announcement>() {
113 public Announcement createFromParcel(Parcel in) {
114 return new Announcement(in);
117 public Announcement[] newArray(int size) {
118 return new Announcement[size];
DIAnnouncementListener.aidl19 import android.hardware.radio.Announcement;
23 void onListUpdated(in List<Announcement> activeAnnouncements); in onListUpdated()
DAnnouncement.aidl20 parcelable Announcement;
DRadioManager.java1939 private final Map<Announcement.OnListUpdatedListener, ICloseHandle> mAnnouncementListeners =
1950 @NonNull Announcement.OnListUpdatedListener listener) { in addAnnouncementListener()
1964 @NonNull Announcement.OnListUpdatedListener listener) { in addAnnouncementListener()
1969 public void onListUpdated(List<Announcement> activeAnnouncements) { in addAnnouncementListener()
1994 public void removeAnnouncementListener(@NonNull Announcement.OnListUpdatedListener listener) { in removeAnnouncementListener()
/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/
DRadioAnnouncementTest.java36 private static final int TRAFFIC_ANNOUNCEMENT_TYPE = Announcement.TYPE_TRAFFIC;
38 private static final Announcement TEST_ANNOUNCEMENT =
39 new Announcement(FM_PROGRAM_SELECTOR, TRAFFIC_ANNOUNCEMENT_TYPE, VENDOR_INFO);
44 new Announcement(/* selector= */ null, TRAFFIC_ANNOUNCEMENT_TYPE, VENDOR_INFO); in constructor_withNullSelector_fails()
54 new Announcement(FM_PROGRAM_SELECTOR, TRAFFIC_ANNOUNCEMENT_TYPE, in constructor_withNullVendorInfo_fails()
96 Announcement[] announcements = Announcement.CREATOR.newArray(sizeExpected); in newArray_forAnnouncementCreator()
108 Announcement announcementFromParcel = Announcement.CREATOR.createFromParcel(parcel); in writeToParcel_forAnnouncement()
DRadioManagerTest.java150 private static final int EVENT_ANNOUNCEMENT_TYPE = Announcement.TYPE_EVENT;
151 private static final List<Announcement> TEST_ANNOUNCEMENT_LIST = Arrays.asList(
152 new Announcement(DAB_SELECTOR, EVENT_ANNOUNCEMENT_TYPE,
168 private Announcement.OnListUpdatedListener mEventListener;
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
DAnnouncementAggregator.java21 import android.hardware.radio.Announcement;
60 public @NonNull List<Announcement> currentList = new ArrayList<>();
62 public void onListUpdated(List<Announcement> active) { in onListUpdated()
92 List<Announcement> combined = new ArrayList<>(); in onListUpdated()
DConvert.java23 import android.hardware.broadcastradio.V2_0.Announcement;
426 public static @NonNull android.hardware.radio.Announcement announcementFromHal( in announcementFromHal()
427 @NonNull Announcement hwAnnouncement) { in announcementFromHal()
428 return new android.hardware.radio.Announcement( in announcementFromHal()
DRadioModule.java24 import android.hardware.broadcastradio.V2_0.Announcement;
414 public void onListUpdated(ArrayList<Announcement> hwAnnouncements) in addAnnouncementListener()
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/
DAnnouncementAggregatorHidlTest.java30 import android.hardware.radio.Announcement;
55 private static final int[] TEST_ENABLED_TYPES = new int[]{Announcement.TYPE_TRAFFIC};
70 private Announcement[] mAnnouncementMocks;
118 ArgumentCaptor<List<Announcement>> announcementsCaptor = in onListUpdated_withMultipleModuleWatchers()
205 mAnnouncementMocks = new Announcement[moduleNumber]; in watchModules()
210 mAnnouncementMocks[index] = mock(Announcement.class); in watchModules()
DRadioModuleHidlTest.java33 import android.hardware.radio.Announcement;
54 private static final int TEST_ENABLED_TYPE = Announcement.TYPE_EVENT;
130 android.hardware.broadcastradio.V2_0.Announcement halAnnouncement = in onListUpdate_forAnnouncementListener()
135 new ArrayList<android.hardware.broadcastradio.V2_0.Announcement>( in onListUpdate_forAnnouncementListener()
DTestUtils.java156 static android.hardware.broadcastradio.V2_0.Announcement makeAnnouncement(int type, in makeAnnouncement()
158 android.hardware.broadcastradio.V2_0.Announcement halAnnouncement = in makeAnnouncement()
159 new android.hardware.broadcastradio.V2_0.Announcement(); in makeAnnouncement()
DConvertTest.java31 import android.hardware.radio.Announcement;
70 private static final int TEST_ENABLED_TYPE = Announcement.TYPE_EMERGENCY;
75 private static final Announcement ANNOUNCEMENT =
DBroadcastRadioServiceHidlTest.java31 import android.hardware.radio.Announcement;
60 private static final int[] TEST_ENABLED_TYPES = new int[]{Announcement.TYPE_TRAFFIC};
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/aidl/
DAnnouncementAggregatorTest.java30 import android.hardware.radio.Announcement;
54 private static final int[] TEST_ENABLED_TYPES = new int[]{Announcement.TYPE_TRAFFIC};
69 private Announcement[] mAnnouncementMocks;
116 ArgumentCaptor<List<Announcement>> announcementsCaptor = in onListUpdated_withMultipleModuleWatchers()
203 mAnnouncementMocks = new Announcement[moduleNumber]; in watchModules()
208 mAnnouncementMocks[index] = mock(Announcement.class); in watchModules()
DRadioModuleTest.java30 import android.hardware.radio.Announcement;
52 private static final int TEST_ENABLED_TYPE = Announcement.TYPE_EVENT;
139 android.hardware.broadcastradio.Announcement halAnnouncement = in onListUpdate_forAnnouncementListener()
144 new android.hardware.broadcastradio.Announcement[]{halAnnouncement}); in onListUpdate_forAnnouncementListener()
DAidlTestUtils.java181 static android.hardware.broadcastradio.Announcement makeAnnouncement(int type, in makeAnnouncement()
183 android.hardware.broadcastradio.Announcement halAnnouncement = in makeAnnouncement()
184 new android.hardware.broadcastradio.Announcement(); in makeAnnouncement()
DBroadcastRadioServiceImplTest.java32 import android.hardware.radio.Announcement;
61 private static final int[] TEST_ENABLED_TYPES = new int[]{Announcement.TYPE_TRAFFIC};
DConversionUtilsTest.java36 import android.hardware.radio.Announcement;
158 private static final int TEST_ENABLED_TYPE = Announcement.TYPE_EMERGENCY;
163 private static final Announcement ANNOUNCEMENT =
/frameworks/base/services/core/java/com/android/server/broadcastradio/aidl/
DAnnouncementAggregator.java20 import android.hardware.radio.Announcement;
73 public List<Announcement> mCurrentList = new ArrayList<>();
75 public void onListUpdated(List<Announcement> active) { in onListUpdated()
126 List<Announcement> combined = new ArrayList<>(mModuleWatchers.size()); in onListUpdated()
DRadioModule.java23 import android.hardware.broadcastradio.Announcement;
482 public void onListUpdated(Announcement[] hwAnnouncements) in addAnnouncementListener()
484 List<android.hardware.radio.Announcement> announcements = in addAnnouncementListener()
DConversionUtils.java25 import android.hardware.broadcastradio.Announcement;
730 public static android.hardware.radio.Announcement announcementFromHalAnnouncement( in announcementFromHalAnnouncement()
731 Announcement hwAnnouncement) { in announcementFromHalAnnouncement()
732 return new android.hardware.radio.Announcement( in announcementFromHalAnnouncement()
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/
DIRadioServiceAidlImplTest.java31 import android.hardware.radio.Announcement;
54 private static final int[] ENABLE_TYPES = new int[]{Announcement.TYPE_TRAFFIC};
DIRadioServiceHidlImplTest.java32 import android.hardware.radio.Announcement;
55 private static final int[] ENABLE_TYPES = new int[]{Announcement.TYPE_TRAFFIC};
/frameworks/base/core/api/
Dsystem-current.txt6265 public final class Announcement implements android.os.Parcelable {
6271 …ull public static final android.os.Parcelable.Creator<android.hardware.radio.Announcement> CREATOR;
6282 public static interface Announcement.OnListUpdatedListener {
6283 method public void onListUpdated(java.util.Collection<android.hardware.radio.Announcement>);
6387 …ull java.util.Set<java.lang.Integer>, @NonNull android.hardware.radio.Announcement.OnListUpdatedLi…
6388 …ull java.util.Set<java.lang.Integer>, @NonNull android.hardware.radio.Announcement.OnListUpdatedLi…
6391 …ublic void removeAnnouncementListener(@NonNull android.hardware.radio.Announcement.OnListUpdatedLi…

12