Searched refs:Combinatorics (Results 1 – 9 of 9) sorted by relevance
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/noising/ |
D | CombinatoricsTest.java | 73 Combinatorics.getKCombinationAtIndex( in testGetKCombinationAtIndex() 84 Arrays.stream(Combinatorics.getKCombinationAtIndex(combinationIndex, in testGetKCombinationNoRepeat() 96 long[] combination = Combinatorics.getKCombinationAtIndex(index, k); in testGetKCombinationMatchesDefinition() 110 assertEquals(3L, Combinatorics.getNumberOfStarsAndBarsSequences( in testGetNumberOfStarsAndBarsSequences() 113 assertEquals(2925L, Combinatorics.getNumberOfStarsAndBarsSequences( in testGetNumberOfStarsAndBarsSequences() 128 Combinatorics.getStarIndices(/*numStars=*/ (int) testCase[0][0], in testGetStarIndices() 143 Combinatorics.getBarsPrecedingEachStar(/*starIndices=*/testCase[0]))); in testGetBarsPrecedingEachStar() 161 Combinatorics.getNumStatesArithmetic( in testNumStatesArithmeticNoOverflow() 188 Combinatorics.getNumStatesFlexApi( in testNumStatesFlexApi() 199 Combinatorics.getNumStatesFlexApi( in getNumStatesFlexApi_iterativeOverBound_returnsLongMaxValue() [all …]
|
D | CombinatoricsParameterizedTest.java | 81 ArrayList<List<Combinatorics.AtomReportState>> allReportSets = in getSingleRandomSelectReportSet_checkNoDuplication_success() 84 Combinatorics.getNumStatesFlexApi( in getSingleRandomSelectReportSet_checkNoDuplication_success() 87 List<Combinatorics.AtomReportState> ithSet = in getSingleRandomSelectReportSet_checkNoDuplication_success() 88 Combinatorics.getReportSetBasedOnRank( in getSingleRandomSelectReportSet_checkNoDuplication_success() 93 HashSet<List<Combinatorics.AtomReportState>> set = in getSingleRandomSelectReportSet_checkNoDuplication_success() 101 Combinatorics.getNumStatesFlexApi( in getSingleRandomSelectReportSet_checkReportSetsMeetRequirement_success() 104 List<Combinatorics.AtomReportState> ithSet = in getSingleRandomSelectReportSet_checkReportSetsMeetRequirement_success() 105 Combinatorics.getReportSetBasedOnRank( in getSingleRandomSelectReportSet_checkReportSetsMeetRequirement_success() 117 List<Combinatorics.AtomReportState> reportSet) { in atomReportStateSetMeetRequirement() 127 for (Combinatorics.AtomReportState report : reportSet) { in atomReportStateSetMeetRequirement() [all …]
|
D | CombinatoricsInfoGainPeakParameterizedTest.java | 95 Combinatorics.calculateInformationGainWithAttributionScope( in getSingleMaxInfoGainWithAttributionScope_binarySearchVsBruteForce_returnsSame() 101 Combinatorics.getMaxInformationGainWithAttributionScope( in getSingleMaxInfoGainWithAttributionScope_binarySearchVsBruteForce_returnsSame()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/noising/ |
D | ImpressionNoiseUtil.java | 44 Combinatorics.getNumberOfStarsAndBarsSequences( in selectRandomStateAndGenerateReportConfigs() 59 long[] starIndices = Combinatorics.getStarIndices( in getReportConfigsForSequenceIndex() 62 long[] barsPrecedingEachStar = Combinatorics.getBarsPrecedingEachStar(starIndices); in getReportConfigsForSequenceIndex() 114 Combinatorics.getNumStatesFlexApi( in selectFlexEventReportRandomStateAndGenerateReportConfigs() 117 List<Combinatorics.AtomReportState> rawFakeReports = in selectFlexEventReportRandomStateAndGenerateReportConfigs() 118 Combinatorics.getReportSetBasedOnRank( in selectFlexEventReportRandomStateAndGenerateReportConfigs() 124 for (Combinatorics.AtomReportState rawFakeReport : rawFakeReports) { in selectFlexEventReportRandomStateAndGenerateReportConfigs()
|
D | Combinatorics.java | 35 public class Combinatorics { class
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/ |
D | TriggerSpecs.java | 25 import com.android.adservices.service.measurement.noising.Combinatorics; 500 long numStates = Combinatorics.getNumStatesFlexApi( in PrivacyComputationParams() 512 Combinatorics.getFlipProbability( in PrivacyComputationParams() 514 mInformationGain = Combinatorics.getInformationGain(mNumStates, mFlipProbability); in PrivacyComputationParams()
|
D | Source.java | 29 import com.android.adservices.service.measurement.noising.Combinatorics; 252 long numStates = Combinatorics.getNumberOfStarsAndBarsSequences(numStars, numBars); in validateAndSetNumReportStates() 329 return Combinatorics.getMaxInformationGainWithAttributionScope( in getInformationGain() 335 return Combinatorics.getInformationGain(numTriggerStates, flipProbability); in getInformationGain() 353 setFlipProbability(Combinatorics.getFlipProbability(getNumStates(flags), epsilon)); in buildPrivacyParameters()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/measurement/ |
D | SourceFixture.java | 25 import com.android.adservices.service.measurement.noising.Combinatorics; 235 double mockFlipProbability = Combinatorics.getFlipProbability(5, 3); in getValidTriggerSpecsWithNonDefaultEpsilon()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/ |
D | SourceTest.java | 46 import com.android.adservices.service.measurement.noising.Combinatorics; 1733 Combinatorics.getFlipProbability( in testGetInformationGain_attributionScopeOff_doesNotIncludeAttributionScopeParams() 1754 Combinatorics.getFlipProbability( in testGetInformationGain_attributionScopeOn_includesAttributionScopeParams() 1771 Combinatorics.getFlipProbability( in testGetInformationGain_attributionScopeOnParamsNull_fallbackToDefaultValue()
|