/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/ |
D | ProgramSelectorTest.java | 159 ProgramSelector.Identifier[] secondaryIds = selector.getSecondaryIds(); in getSecondaryIds_withEmptySecondaryIds() local 162 .that(secondaryIds).isEmpty(); in getSecondaryIds_withEmptySecondaryIds() 171 ProgramSelector.Identifier[] secondaryIds = selector.getSecondaryIds(); in getSecondaryIds_withNonEmptySecondaryIds() local 174 .that(secondaryIds).isEqualTo(secondaryIdsExpected); in getSecondaryIds_withNonEmptySecondaryIds() 179 ProgramSelector.Identifier[] secondaryIds = new ProgramSelector.Identifier[]{ in getFirstId_withIdInSelector() local 181 ProgramSelector selector = getDabSelector(secondaryIds, /* vendorIds= */ null); in getFirstId_withIdInSelector() 191 ProgramSelector.Identifier[] secondaryIds = new ProgramSelector.Identifier[]{ in getFirstId_withIdNotInSelector() local 193 ProgramSelector selector = getDabSelector(secondaryIds, /* vendorIds= */ null); in getFirstId_withIdNotInSelector() 206 ProgramSelector.Identifier[] secondaryIds = new ProgramSelector.Identifier[]{ in getAllIds_withIdInSelector() local 210 ProgramSelector selector = getDabSelector(secondaryIds, /* vendorIds= */ null); in getAllIds_withIdInSelector() [all …]
|
D | UniqueProgramIdentifierTest.java | 236 private ProgramSelector getDabSelector(@Nullable ProgramSelector.Identifier[] secondaryIds, in getDabSelector() argument 239 secondaryIds, vendorIds); in getDabSelector()
|
/frameworks/base/core/java/android/hardware/radio/ |
D | UniqueProgramIdentifier.java | 62 ProgramSelector.Identifier[] secondaryIds = selector.getSecondaryIds(); in UniqueProgramIdentifier() local 63 for (int i = 0; i < secondaryIds.length; i++) { in UniqueProgramIdentifier() 64 if (ensembleId == null && secondaryIds[i].getType() in UniqueProgramIdentifier() 67 } else if (frequencyId == null && secondaryIds[i].getType() in UniqueProgramIdentifier() 69 frequencyId = secondaryIds[i]; in UniqueProgramIdentifier()
|
D | ProgramSelector.java | 454 @Nullable Identifier[] secondaryIds, @Nullable long[] vendorIds) { in ProgramSelector() argument 455 if (secondaryIds == null) secondaryIds = new Identifier[0]; in ProgramSelector() 457 if (Stream.of(secondaryIds).anyMatch(id -> id == null)) { in ProgramSelector() 462 mSecondaryIds = secondaryIds; in ProgramSelector() 566 Identifier[] secondaryIds = Stream.concat( in withSecondaryPreferred() local 575 secondaryIds, in withSecondaryPreferred()
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/aidl/ |
D | ConversionUtils.java | 412 ProgramSelector.Identifier[] secondaryIds = sel.getSecondaryIds(); in programSelectorToHalProgramSelector() local 413 ArrayList<ProgramIdentifier> secondaryIdList = new ArrayList<>(secondaryIds.length); in programSelectorToHalProgramSelector() 414 for (int i = 0; i < secondaryIds.length; i++) { in programSelectorToHalProgramSelector() 415 ProgramIdentifier hwId = identifierToHalProgramIdentifier(secondaryIds[i]); in programSelectorToHalProgramSelector() 419 Slogf.w(TAG, "Invalid secondary id: %s", secondaryIds[i]); in programSelectorToHalProgramSelector() 422 hwSel.secondaryIds = secondaryIdList.toArray(ProgramIdentifier[]::new); in programSelectorToHalProgramSelector() 432 && sel.secondaryIds.length == 0; in isEmpty() 443 for (int i = 0; i < sel.secondaryIds.length; i++) { in programSelectorFromHalProgramSelector() 444 if (sel.secondaryIds[i] != null) { in programSelectorFromHalProgramSelector() 446 sel.secondaryIds[i]); in programSelectorFromHalProgramSelector() [all …]
|
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ |
D | TestUtils.java | 89 ProgramSelector.Identifier primaryId, ProgramSelector.Identifier[] secondaryIds) { in makeProgramSelector() argument 90 return new ProgramSelector(programType, primaryId, secondaryIds, /* vendorIds= */ null); in makeProgramSelector() 125 halSelector.secondaryIds = new ArrayList<ProgramIdentifier>(); in makeHalFmSelector()
|
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/aidl/ |
D | AidlTestUtils.java | 90 ProgramIdentifier primaryId, ProgramIdentifier[] secondaryIds) { in makeHalSelector() argument 94 hwSelector.secondaryIds = secondaryIds; in makeHalSelector()
|
D | ConversionUtilsTest.java | 447 .that(halDabSelector.secondaryIds).asList() in programSelectorToHalProgramSelector_withValidSelector() 464 + "invalid secondary id").that(halDabSelector.secondaryIds).asList() in programSelectorToHalProgramSelector_withInvalidSecondaryId()
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/ |
D | Convert.java | 300 forEachOrdered(hwSel.secondaryIds::add); in programSelectorToHal() 307 return sel.primaryId.type == 0 && sel.primaryId.value == 0 && sel.secondaryIds.isEmpty(); in isEmpty() 314 ProgramSelector.Identifier[] secondaryIds = sel.secondaryIds.stream(). in programSelectorFromHal() 321 secondaryIds, /* vendorIds= */ null); in programSelectorFromHal()
|
/frameworks/base/services/core/jni/BroadcastRadio/ |
D | convert.cpp | 131 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()
|