Home
last modified time | relevance | path

Searched refs:secondaryIds (Results 1 – 8 of 8) sorted by relevance

/aosp14/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/
H A DProgramSelectorTest.java148 ProgramSelector.Identifier[] secondaryIds = selector.getSecondaryIds(); in getSecondaryIds_withEmptySecondaryIds() local
151 .that(secondaryIds).isEmpty(); in getSecondaryIds_withEmptySecondaryIds()
160 ProgramSelector.Identifier[] secondaryIds = selector.getSecondaryIds(); in getSecondaryIds_withNonEmptySecondaryIds() local
163 .that(secondaryIds).isEqualTo(secondaryIdsExpected); in getSecondaryIds_withNonEmptySecondaryIds()
168 ProgramSelector.Identifier[] secondaryIds = new ProgramSelector.Identifier[]{ in getFirstId_withIdInSelector() local
170 ProgramSelector selector = getDabSelector(secondaryIds, /* vendorIds= */ null); in getFirstId_withIdInSelector()
180 ProgramSelector.Identifier[] secondaryIds = new ProgramSelector.Identifier[]{ in getFirstId_withIdNotInSelector() local
195 ProgramSelector.Identifier[] secondaryIds = new ProgramSelector.Identifier[]{ in getAllIds_withIdInSelector() local
210 ProgramSelector.Identifier[] secondaryIds = new ProgramSelector.Identifier[]{ in getAllIds_withIdNotInSelector() local
244 ProgramSelector.Identifier[] secondaryIds = new ProgramSelector.Identifier[]{ in withSecondaryPreferred() local
[all …]
/aosp14/frameworks/base/core/java/android/hardware/radio/
H A DProgramSelector.java327 @Nullable Identifier[] secondaryIds, @Nullable long[] vendorIds) { in ProgramSelector() argument
328 if (secondaryIds == null) secondaryIds = new Identifier[0]; in ProgramSelector()
330 if (Stream.of(secondaryIds).anyMatch(id -> id == null)) { in ProgramSelector()
335 mSecondaryIds = secondaryIds; in ProgramSelector()
439 Identifier[] secondaryIds = Stream.concat( in withSecondaryPreferred() local
448 secondaryIds, in withSecondaryPreferred()
/aosp14/frameworks/base/services/core/java/com/android/server/broadcastradio/aidl/
H A DConversionUtils.java375 ProgramSelector.Identifier[] secondaryIds = sel.getSecondaryIds(); in programSelectorToHalProgramSelector() local
376 ArrayList<ProgramIdentifier> secondaryIdList = new ArrayList<>(secondaryIds.length); in programSelectorToHalProgramSelector()
377 for (int i = 0; i < secondaryIds.length; i++) { in programSelectorToHalProgramSelector()
378 secondaryIdList.add(identifierToHalProgramIdentifier(secondaryIds[i])); in programSelectorToHalProgramSelector()
380 hwSel.secondaryIds = secondaryIdList.toArray(ProgramIdentifier[]::new); in programSelectorToHalProgramSelector()
390 && sel.secondaryIds.length == 0; in isEmpty()
401 for (int i = 0; i < sel.secondaryIds.length; i++) { in programSelectorFromHalProgramSelector()
402 if (sel.secondaryIds[i] != null) { in programSelectorFromHalProgramSelector()
597 ProgramSelector.Identifier[] secondaryIds = sel.getSecondaryIds(); in programSelectorMeetsSdkVersionRequirement() local
598 for (int i = 0; i < secondaryIds.length; i++) { in programSelectorMeetsSdkVersionRequirement()
[all …]
/aosp14/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/aidl/
H A DAidlTestUtils.java89 ProgramIdentifier primaryId, ProgramIdentifier[] secondaryIds) { in makeHalSelector() argument
93 hwSelector.secondaryIds = secondaryIds; in makeHalSelector()
H A DConversionUtilsTest.java283 .that(halDabSelector.secondaryIds).asList() in programSelectorToHalProgramSelector_withValidSelector()
/aosp14/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
H A DConvert.java299 forEachOrdered(hwSel.secondaryIds::add); in programSelectorToHal()
308 if (sel.secondaryIds.size() != 0) return false; in isEmpty()
316 ProgramSelector.Identifier[] secondaryIds = sel.secondaryIds.stream(). in programSelectorFromHal()
323 secondaryIds, null); in programSelectorFromHal()
/aosp14/frameworks/base/services/core/jni/BroadcastRadio/
H A Dconvert.cpp131 jfieldID secondaryIds; member
559 auto jSecondary = ArrayFromHal(env, selector.secondaryIds, in ProgramSelectorFromHal()
585 env->GetObjectField(jSelector, gjni.ProgramSelector.secondaryIds)); in ProgramSelectorToHal()
596 selector.secondaryIds.resize(count); in ProgramSelectorToHal()
599 selector.secondaryIds[i] = ProgramIdentifierToHal(env, jId); in ProgramSelectorToHal()
736 gjni.ProgramSelector.secondaryIds = GetFieldIDOrDie(env, programSelectorClass, in register_android_server_broadcastradio_convert()
/aosp14/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/
H A DTestUtils.java94 halSelector.secondaryIds = new ArrayList<ProgramIdentifier>(); in makeHalFmSelector()