/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/ |
D | ProgramSelectorTest.java | 31 private static final int FM_PROGRAM_TYPE = ProgramSelector.PROGRAM_TYPE_FM; 32 private static final int DAB_PROGRAM_TYPE = ProgramSelector.PROGRAM_TYPE_DAB; 35 private static final ProgramSelector.Identifier FM_IDENTIFIER = new ProgramSelector.Identifier( 36 ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, FM_FREQUENCY); 37 private static final ProgramSelector.Identifier DAB_DMB_SID_EXT_IDENTIFIER_1 = 38 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_DMB_SID_EXT, 40 private static final ProgramSelector.Identifier DAB_DMB_SID_EXT_IDENTIFIER_2 = 41 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_DMB_SID_EXT, 43 private static final ProgramSelector.Identifier DAB_ENSEMBLE_IDENTIFIER = 44 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_ENSEMBLE, [all …]
|
D | UniqueProgramIdentifierTest.java | 30 private static final ProgramSelector.Identifier FM_IDENTIFIER = new ProgramSelector.Identifier( 31 ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, /* value= */ 88_500); 33 private static final ProgramSelector.Identifier DAB_DMB_SID_EXT_IDENTIFIER_1 = 34 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_DMB_SID_EXT, 36 private static final ProgramSelector.Identifier DAB_ENSEMBLE_IDENTIFIER = 37 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_ENSEMBLE, 39 private static final ProgramSelector.Identifier DAB_FREQUENCY_IDENTIFIER = 40 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_FREQUENCY, 42 private static final ProgramSelector.Identifier DAB_SCID_IDENTIFIER = 43 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_SCID, [all …]
|
D | ProgramListTest.java | 68 private static final ProgramSelector.Identifier FM_IDENTIFIER = 69 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, 71 private static final ProgramSelector.Identifier RDS_IDENTIFIER = 72 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_RDS_PI, 15019); 73 private static final ProgramSelector.Identifier DAB_DMB_SID_EXT_IDENTIFIER = 74 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_DMB_SID_EXT, 76 private static final ProgramSelector.Identifier DAB_ENSEMBLE_IDENTIFIER = 77 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_ENSEMBLE, 79 private static final ProgramSelector.Identifier DAB_FREQUENCY_IDENTIFIER_1 = 80 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_FREQUENCY, [all …]
|
D | RadioAnnouncementTest.java | 31 private static final ProgramSelector.Identifier FM_IDENTIFIER = new ProgramSelector.Identifier( 32 ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, /* value= */ 90500); 33 private static final ProgramSelector FM_PROGRAM_SELECTOR = new ProgramSelector( 34 ProgramSelector.PROGRAM_TYPE_FM, FM_IDENTIFIER, /* secondaryIds= */ null,
|
D | RadioManagerTest.java | 82 ProgramSelector.PROGRAM_TYPE_AM, ProgramSelector.PROGRAM_TYPE_FM}; 84 ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, ProgramSelector.IDENTIFIER_TYPE_RDS_PI}; 118 private static final ProgramSelector.Identifier DAB_SID_EXT_IDENTIFIER = 119 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_DMB_SID_EXT, 121 private static final ProgramSelector.Identifier DAB_SID_EXT_IDENTIFIER_RELATED = 122 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_DMB_SID_EXT, 124 private static final ProgramSelector.Identifier DAB_ENSEMBLE_IDENTIFIER = 125 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_ENSEMBLE, 127 private static final ProgramSelector.Identifier DAB_FREQUENCY_IDENTIFIER = 128 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_FREQUENCY, [all …]
|
D | TunerAdapterTest.java | 62 private static final ProgramSelector.Identifier FM_IDENTIFIER = 63 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, 65 private static final ProgramSelector FM_SELECTOR = 66 new ProgramSelector(ProgramSelector.PROGRAM_TYPE_FM, FM_IDENTIFIER, 98 ProgramSelector program = (ProgramSelector) invocation.getArguments()[0]; in setUp() 100 != ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY) { in setUp() 405 ProgramSelector invalidSelector = new ProgramSelector(ProgramSelector.PROGRAM_TYPE_FM, in tune_withInvalidSelectorForTunerAdapter_invokesOnTuneFailed() 406 new ProgramSelector.Identifier( in tune_withInvalidSelectorForTunerAdapter_invokesOnTuneFailed() 407 ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, /* value= */ 100), in tune_withInvalidSelectorForTunerAdapter_invokesOnTuneFailed()
|
/frameworks/base/core/java/android/hardware/radio/ |
D | UniqueProgramIdentifier.java | 39 @NonNull private final ProgramSelector.Identifier mPrimaryId; 40 @NonNull private final ProgramSelector.Identifier[] mCriticalSecondaryIds; 49 public static boolean requireCriticalSecondaryIds(@ProgramSelector.IdentifierType int type) { in requireCriticalSecondaryIds() 50 return type == ProgramSelector.IDENTIFIER_TYPE_DAB_DMB_SID_EXT || type in requireCriticalSecondaryIds() 51 == ProgramSelector.IDENTIFIER_TYPE_DAB_SID_EXT; in requireCriticalSecondaryIds() 54 public UniqueProgramIdentifier(ProgramSelector selector) { in UniqueProgramIdentifier() 58 case ProgramSelector.IDENTIFIER_TYPE_DAB_DMB_SID_EXT: in UniqueProgramIdentifier() 59 case ProgramSelector.IDENTIFIER_TYPE_DAB_SID_EXT: in UniqueProgramIdentifier() 60 ProgramSelector.Identifier ensembleId = null; in UniqueProgramIdentifier() 61 ProgramSelector.Identifier frequencyId = null; in UniqueProgramIdentifier() [all …]
|
D | ProgramSelector.java | 67 public final class ProgramSelector implements Parcelable { class 453 public ProgramSelector(@ProgramType int programType, @NonNull Identifier primaryId, in ProgramSelector() method in ProgramSelector 564 public @NonNull ProgramSelector withSecondaryPreferred(@NonNull Identifier preferred) { in withSecondaryPreferred() 572 return new ProgramSelector( in withSecondaryPreferred() 588 public static @NonNull ProgramSelector createAmFmSelector( in createAmFmSelector() 625 public static @NonNull ProgramSelector createAmFmSelector( in createAmFmSelector() 667 return new ProgramSelector(programType, primary, secondary, null); in createAmFmSelector() 694 if (!(obj instanceof ProgramSelector)) return false; in equals() 695 ProgramSelector other = (ProgramSelector) obj; in equals() 704 if (!(obj instanceof ProgramSelector)) return false; in strictEquals() [all …]
|
D | ProgramList.java | 49 private final ArrayMap<ProgramSelector.Identifier, ArrayMap<UniqueProgramIdentifier, 76 public void onItemChanged(@NonNull ProgramSelector.Identifier id) { } in onItemChanged() 81 public void onItemRemoved(@NonNull ProgramSelector.Identifier id) { } in onItemRemoved() 105 public void onItemChanged(@NonNull ProgramSelector.Identifier id) { in registerListCallback() 109 public void onItemRemoved(@NonNull ProgramSelector.Identifier id) { in registerListCallback() 196 List<ProgramSelector.Identifier> removedList = new ArrayList<>(); in apply() 197 Set<ProgramSelector.Identifier> changedSet = new ArraySet<>(); in apply() 207 Iterator<Map.Entry<ProgramSelector.Identifier, in apply() 211 Map.Entry<ProgramSelector.Identifier, ArrayMap<UniqueProgramIdentifier, in apply() 240 Iterator<ProgramSelector.Identifier> changedIterator = changedSet.iterator(); in apply() [all …]
|
D | Announcement.java | 81 @NonNull private final ProgramSelector mSelector; 86 public Announcement(@NonNull ProgramSelector selector, @Type int type, in Announcement() 94 mSelector = in.readTypedObject(ProgramSelector.CREATOR); in Announcement() 122 public @NonNull ProgramSelector getSelector() { in getSelector()
|
D | RadioManager.java | 281 @ProgramSelector.ProgramType int[] supportedProgramTypes, in ModuleProperties() 282 @ProgramSelector.IdentifierType int[] supportedIdentifierTypes, in ModuleProperties() 446 public boolean isProgramTypeSupported(@ProgramSelector.ProgramType int type) { in isProgramTypeSupported() 459 public boolean isProgramIdentifierSupported(@ProgramSelector.IdentifierType int type) { in isProgramIdentifierSupported() 1542 @NonNull private final ProgramSelector mSelector; 1543 @Nullable private final ProgramSelector.Identifier mLogicallyTunedTo; 1544 @Nullable private final ProgramSelector.Identifier mPhysicallyTunedTo; 1545 @NonNull private final Collection<ProgramSelector.Identifier> mRelatedContent; 1552 public ProgramInfo(@NonNull ProgramSelector selector, in ProgramInfo() 1553 @Nullable ProgramSelector.Identifier logicallyTunedTo, in ProgramInfo() [all …]
|
D | ITunerCallback.aidl | 20 import android.hardware.radio.ProgramSelector; 34 void onTuneFailed(int result, in ProgramSelector selector); in onTuneFailed()
|
D | ITuner.aidl | 21 import android.hardware.radio.ProgramSelector; 58 void tune(in ProgramSelector selector); in tune()
|
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ |
D | TestUtils.java | 23 import android.hardware.radio.ProgramSelector; 46 static RadioManager.ProgramInfo makeProgramInfo(ProgramSelector selector, in makeProgramInfo() 47 ProgramSelector.Identifier logicallyTunedTo, in makeProgramInfo() 48 ProgramSelector.Identifier physicallyTunedTo, int signalQuality) { in makeProgramInfo() 54 == ProgramSelector.IDENTIFIER_TYPE_DAB_SID_EXT) { in makeProgramInfo() 57 == ProgramSelector.IDENTIFIER_TYPE_DAB_FREQUENCY) { in makeProgramInfo() 72 static RadioManager.ProgramInfo makeProgramInfo(ProgramSelector selector, int signalQuality) { in makeProgramInfo() 77 static ProgramSelector makeFmSelector(long freq) { in makeFmSelector() 78 return makeProgramSelector(ProgramSelector.PROGRAM_TYPE_FM, in makeFmSelector() 79 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, in makeFmSelector() [all …]
|
D | ProgramInfoCacheTest.java | 23 import android.hardware.radio.ProgramSelector; 51 private static final ProgramSelector.Identifier TEST_AM_FM_ID = new ProgramSelector.Identifier( 52 ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, /* value= */ 88500); 53 private static final ProgramSelector TEST_AM_FM_SELECTOR = TestUtils.makeProgramSelector( 54 ProgramSelector.PROGRAM_TYPE_FM, TEST_AM_FM_ID); 58 private static final ProgramSelector.Identifier TEST_RDS_ID = new ProgramSelector.Identifier( 59 ProgramSelector.IDENTIFIER_TYPE_RDS_PI, /* value= */ 15019); 60 private static final ProgramSelector TEST_RDS_SELECTOR = TestUtils.makeProgramSelector( 61 ProgramSelector.PROGRAM_TYPE_FM, TEST_RDS_ID); 65 private static final ProgramSelector TEST_HD_SELECTOR = TestUtils.makeProgramSelector( [all …]
|
D | StartProgramListUpdatesFanoutTest.java | 36 import android.hardware.radio.ProgramSelector; 77 private static final ProgramSelector.Identifier TEST_AM_FM_ID = 78 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, 80 private static final ProgramSelector TEST_AM_FM_SELECTOR = TestUtils.makeProgramSelector( 81 ProgramSelector.PROGRAM_TYPE_FM, TEST_AM_FM_ID); 87 private static final ProgramSelector.Identifier TEST_RDS_ID = 88 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_RDS_PI, 90 private static final ProgramSelector TEST_RDS_SELECTOR = TestUtils.makeProgramSelector( 91 ProgramSelector.PROGRAM_TYPE_FM, TEST_RDS_ID); 98 private static final ProgramSelector.Identifier TEST_DAB_SID_ID = [all …]
|
D | TunerSessionHidlTest.java | 44 import android.hardware.radio.ProgramSelector; 138 android.hardware.broadcastradio.V2_0.ProgramSelector halSel = in setup() 139 (android.hardware.broadcastradio.V2_0.ProgramSelector) in setup() 163 android.hardware.broadcastradio.V2_0.ProgramSelector placeHolderSelector = in setup() 345 ProgramSelector initialSel = TestUtils.makeFmSelector(AM_FM_FREQUENCY_LIST[1]); in tune_withOneSession() 358 ProgramSelector initialSel = TestUtils.makeFmSelector(AM_FM_FREQUENCY_LIST[1]); in tune_withMultipleSessions() 373 ProgramSelector sel = TestUtils.makeFmSelector(AM_FM_FREQUENCY_LIST[1]); in tune_withDeadTunerCallback_removesDeadSession() 384 ProgramSelector.Identifier dabPrimaryId = in tune_withUnsupportedSelector_throwsException() 385 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_SID_EXT, in tune_withUnsupportedSelector_throwsException() 387 ProgramSelector.Identifier[] dabSecondaryIds = new ProgramSelector.Identifier[]{ in tune_withUnsupportedSelector_throwsException() [all …]
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/aidl/ |
D | ConversionUtils.java | 38 import android.hardware.radio.ProgramSelector; 192 @ProgramSelector.ProgramType 194 @ProgramSelector.IdentifierType int idType) { in identifierTypeToProgramType() 196 case ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY: in identifierTypeToProgramType() 197 case ProgramSelector.IDENTIFIER_TYPE_RDS_PI: in identifierTypeToProgramType() 199 return ProgramSelector.PROGRAM_TYPE_FM; in identifierTypeToProgramType() 200 case ProgramSelector.IDENTIFIER_TYPE_HD_STATION_ID_EXT: in identifierTypeToProgramType() 201 case ProgramSelector.IDENTIFIER_TYPE_HD_STATION_NAME: in identifierTypeToProgramType() 203 return ProgramSelector.PROGRAM_TYPE_FM_HD; in identifierTypeToProgramType() 204 case ProgramSelector.IDENTIFIER_TYPE_DAB_SIDECC: in identifierTypeToProgramType() [all …]
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/ |
D | Convert.java | 35 import android.hardware.radio.ProgramSelector; 141 private static @ProgramSelector.ProgramType int identifierTypeToProgramType( in identifierTypeToProgramType() 142 @ProgramSelector.IdentifierType int idType) { in identifierTypeToProgramType() 144 case ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY: in identifierTypeToProgramType() 145 case ProgramSelector.IDENTIFIER_TYPE_RDS_PI: in identifierTypeToProgramType() 147 return ProgramSelector.PROGRAM_TYPE_FM; in identifierTypeToProgramType() 148 case ProgramSelector.IDENTIFIER_TYPE_HD_STATION_ID_EXT: in identifierTypeToProgramType() 150 return ProgramSelector.PROGRAM_TYPE_FM_HD; in identifierTypeToProgramType() 151 case ProgramSelector.IDENTIFIER_TYPE_DAB_SIDECC: in identifierTypeToProgramType() 152 case ProgramSelector.IDENTIFIER_TYPE_DAB_ENSEMBLE: in identifierTypeToProgramType() [all …]
|
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/aidl/ |
D | AidlTestUtils.java | 25 import android.hardware.radio.ProgramSelector; 51 static RadioManager.ProgramInfo makeProgramInfo(ProgramSelector selector, in makeProgramInfo() 52 ProgramSelector.Identifier logicallyTunedTo, in makeProgramInfo() 53 ProgramSelector.Identifier physicallyTunedTo, int signalQuality) { in makeProgramInfo() 60 static RadioManager.ProgramInfo makeProgramInfo(ProgramSelector selector, int signalQuality) { in makeProgramInfo() 72 static ProgramSelector makeFmSelector(long freq) { in makeFmSelector() 73 return makeProgramSelector(ProgramSelector.PROGRAM_TYPE_FM, in makeFmSelector() 74 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, in makeFmSelector() 78 static ProgramSelector makeProgramSelector(int programType, in makeProgramSelector() 79 ProgramSelector.Identifier identifier) { in makeProgramSelector() [all …]
|
D | ProgramInfoCacheTest.java | 23 import android.hardware.radio.ProgramSelector; 51 private static final ProgramSelector.Identifier TEST_FM_FREQUENCY_ID = 52 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, 55 AidlTestUtils.makeProgramSelector(ProgramSelector.PROGRAM_TYPE_FM, 60 ProgramSelector.PROGRAM_TYPE_FM, TEST_FM_FREQUENCY_ID), TEST_FM_FREQUENCY_ID, 63 private static final ProgramSelector.Identifier TEST_AM_FREQUENCY_ID = 64 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, 69 AidlTestUtils.makeProgramSelector(ProgramSelector.PROGRAM_TYPE_FM, 73 private static final ProgramSelector.Identifier TEST_RDS_PI_ID = 74 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_RDS_PI, [all …]
|
D | ConversionUtilsTest.java | 39 import android.hardware.radio.ProgramSelector; 101 private static final ProgramSelector.Identifier TEST_INVALID_ID = 102 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_INVALID, 1); 106 private static final ProgramSelector.Identifier TEST_DAB_SID_EXT_ID = 107 new ProgramSelector.Identifier( 108 ProgramSelector.IDENTIFIER_TYPE_DAB_DMB_SID_EXT, TEST_DAB_DMB_SID_EXT_VALUE); 109 private static final ProgramSelector.Identifier TEST_DAB_SID_EXT_LEGACY_ID = 110 new ProgramSelector.Identifier( 111 ProgramSelector.IDENTIFIER_TYPE_DAB_SID_EXT, TEST_DAB_SID_EXT_LEGACY_VALUE); 112 private static final ProgramSelector.Identifier TEST_DAB_ENSEMBLE_ID = [all …]
|
D | TunerSessionTest.java | 48 import android.hardware.radio.ProgramSelector; 105 private static final ProgramSelector.Identifier TEST_FM_FREQUENCY_ID = 106 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, 109 AidlTestUtils.makeProgramSelector(ProgramSelector.PROGRAM_TYPE_FM, 114 ProgramSelector.PROGRAM_TYPE_FM, TEST_FM_FREQUENCY_ID), TEST_FM_FREQUENCY_ID, 117 private static final ProgramSelector.Identifier TEST_DAB_FREQUENCY_ID = 118 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_FREQUENCY, 120 private static final ProgramSelector.Identifier TEST_DAB_FREQUENCY_ID_ALT = 121 new ProgramSelector.Identifier(ProgramSelector.IDENTIFIER_TYPE_DAB_FREQUENCY, 123 private static final ProgramSelector.Identifier TEST_DAB_SID_EXT_ID = [all …]
|
/frameworks/base/core/api/ |
D | system-removed.txt | 122 …ProgramSelector.IDENTIFIER_TYPE_INVALID, android.hardware.radio.ProgramSelector.IDENTIFIER_TYPE_AM… 125 …ProgramSelector.PROGRAM_TYPE_INVALID, android.hardware.radio.ProgramSelector.PROGRAM_TYPE_AM, andr…
|
/frameworks/base/services/core/jni/BroadcastRadio/ |
D | convert.cpp | 49 using V1_1::ProgramSelector; 140 } ProgramSelector; member 552 return make_javaref(env, env->NewObject(gjni.ProgramSelector.Identifier.clazz, in ProgramIdentifierFromHal() 553 gjni.ProgramSelector.Identifier.cstor, id.type, id.value)); in ProgramIdentifierFromHal() 556 static JavaRef<jobject> ProgramSelectorFromHal(JNIEnv *env, const ProgramSelector &selector) { in ProgramSelectorFromHal() 560 gjni.ProgramSelector.Identifier.clazz, ProgramIdentifierFromHal); in ProgramSelectorFromHal() 563 return make_javaref(env, env->NewObject(gjni.ProgramSelector.clazz, gjni.ProgramSelector.cstor, in ProgramSelectorFromHal() 571 id.type = env->GetIntField(jId, gjni.ProgramSelector.Identifier.type); in ProgramIdentifierToHal() 572 id.value = env->GetLongField(jId, gjni.ProgramSelector.Identifier.value); in ProgramIdentifierToHal() 576 ProgramSelector ProgramSelectorToHal(JNIEnv *env, jobject jSelector) { in ProgramSelectorToHal() [all …]
|