/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/ |
D | CustomAudienceUpdatableDataReaderTest.java | 65 private final Flags mFlags = field in CustomAudienceUpdatableDataReaderTest 95 mFlags.getFledgeCustomAudienceMaxUserBiddingSignalsSizeB(), in testGetUserBiddingSignalsFromFullJsonObjectSuccess() 96 mFlags.getFledgeCustomAudienceMaxTrustedBiddingDataSizeB(), in testGetUserBiddingSignalsFromFullJsonObjectSuccess() 97 mFlags.getFledgeCustomAudienceMaxAdsSizeB(), in testGetUserBiddingSignalsFromFullJsonObjectSuccess() 98 mFlags.getFledgeCustomAudienceMaxNumAds(), in testGetUserBiddingSignalsFromFullJsonObjectSuccess() 99 mFlags.getFledgeFrequencyCapFilteringEnabled(), in testGetUserBiddingSignalsFromFullJsonObjectSuccess() 100 mFlags.getFledgeAppInstallFilteringEnabled(), in testGetUserBiddingSignalsFromFullJsonObjectSuccess() 101 mFlags.getFledgeAuctionServerAdRenderIdEnabled(), in testGetUserBiddingSignalsFromFullJsonObjectSuccess() 102 mFlags.getFledgeAuctionServerAdRenderIdMaxLength()); in testGetUserBiddingSignalsFromFullJsonObjectSuccess() 121 mFlags.getFledgeCustomAudienceMaxUserBiddingSignalsSizeB(), in testGetAuctionServerRequestFlagsSuccess() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/inputverification/ |
D | ClickVerifierTest.java | 55 @Mock private Flags mFlags; field in ClickVerifierTest 67 when(mFlags.getMeasurementRegistrationInputEventValidWindowMs()).thenReturn(100L); in before() 68 when(mFlags.getMeasurementIsClickDeduplicationEnabled()).thenReturn(false); in before() 69 when(mFlags.getMeasurementIsClickDeduplicationEnforced()).thenReturn(false); in before() 70 mClickVerifier = new ClickVerifier(mInputManager, mFlags, mAdServicesLogger); in before() 76 when(mFlags.getMeasurementIsClickVerifiedByInputEvent()).thenReturn(true); in testInputEventOutsideTimeRangeReturnsFalse() 91 when(mFlags.getMeasurementIsClickVerifiedByInputEvent()).thenReturn(true); in testVerifiedInputEventInsideTimeRangeReturnsTrue() 96 when(mFlags.getMeasurementRegistrationInputEventValidWindowMs()) in testVerifiedInputEventInsideTimeRangeReturnsTrue() 110 when(mFlags.getMeasurementRegistrationInputEventValidWindowMs()) in testInputEventNotValidatedBySystem() 112 when(mFlags.getMeasurementIsClickVerifiedByInputEvent()).thenReturn(true); in testInputEventNotValidatedBySystem() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/ |
D | CachedFlagsTest.java | 39 private CachedFlags mFlags; field in CachedFlagsTest 45 mFlags = new CachedFlags(mMockFlags); in setUp() 55 assertThat(mFlags.getMeasurementApiRegisterSourceKillSwitch()) in testGetMeasurementApiRegisterSourceKillSwitch_flagEnabled_returnsCachedFlag() 62 assertThat(mFlags.getMeasurementApiRegisterSourcesKillSwitch()) in testGetMeasurementApiRegisterSourcesKillSwitch_flagEnabled_returnsCachedFlag() 69 assertThat(mFlags.getMeasurementApiRegisterWebSourceKillSwitch()) in testGetMeasurementApiRegisterWebSourceKillSwitch_flagEnabled_returnsCachedFlag() 76 assertThat(mFlags.getMeasurementApiRegisterTriggerKillSwitch()) in testGetMeasurementApiRegisterTriggerKillSwitch_flagEnabled_returnsCachedFlag() 83 assertThat(mFlags.getMeasurementApiRegisterWebTriggerKillSwitch()) in testGetMeasurementApiRegisterWebTriggerKillSwitch_flagEnabled_returnsCachedFlag() 90 assertThat(mFlags.getMeasurementApiDeleteRegistrationsKillSwitch()) in testGetMeasurementApiDeleteRegistrationsKillSwitch_flagEnabled_returnsCachedFlag() 97 assertThat(mFlags.getMeasurementApiStatusKillSwitch()).isEqualTo(CACHED_BOOL_FLAG_VALUE); in testGetMeasurementApiStatusKillSwitch_flagEnabled_returnsCachedFlag() 103 assertThat(mFlags.getEnforceForegroundStatusForMeasurementRegisterSource()) in testGetEnforceForegroundForMsmtRegisterSource_flagEnabled_returnsCachedFlag() [all …]
|
D | FilterMapTest.java | 48 @Mock private Flags mFlags; field in FilterMapTest 52 when(mFlags.getMeasurementEnableLookbackWindowFilter()).thenReturn(false); in setup() 106 JSONObject jsonObject = expected.serializeAsJson(mFlags); in serializeAsJson_success() 115 when(mFlags.getMeasurementEnableLookbackWindowFilter()).thenReturn(true); in serializeAsJson_lookbackWindowFilterEnabled_success() 120 JSONObject jsonObject = expected.serializeAsJson(mFlags); in serializeAsJson_lookbackWindowFilterEnabled_success() 146 when(mFlags.getMeasurementEnableLookbackWindowFilter()).thenReturn(true); in testIsEmpty_lookbackWindowFilterEnabled_notEmpty() 152 .isEmpty(mFlags)) in testIsEmpty_lookbackWindowFilterEnabled_notEmpty() 158 when(mFlags.getMeasurementEnableLookbackWindowFilter()).thenReturn(true); in testIsEmpty_lookbackWindowFilterEnabled_empty() 162 assertThat(filterMap.isEmpty(mFlags)).isTrue(); in testIsEmpty_lookbackWindowFilterEnabled_empty() 167 when(mFlags.getMeasurementEnableLookbackWindowFilter()).thenReturn(false); in testIsEmpty_lookbackWindowFilterDisabled_notEmpty() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/ |
D | Permission.java | 40 private int mFlags; field in Permission 55 mFlags = flags; in Permission() 96 return mFlags; in getFlags() 144 return (mFlags & PackageManager.FLAG_PERMISSION_REVIEW_REQUIRED) != 0; in isReviewRequired() 148 mFlags &= ~PackageManager.FLAG_PERMISSION_REVIEW_REQUIRED; in unsetReviewRequired() 160 return (mFlags & PackageManager.FLAG_PERMISSION_USER_FIXED) != 0; in isUserFixed() 165 mFlags |= PackageManager.FLAG_PERMISSION_USER_FIXED; in setUserFixed() 167 mFlags &= ~PackageManager.FLAG_PERMISSION_USER_FIXED; in setUserFixed() 177 mFlags |= PackageManager.FLAG_PERMISSION_REVOKE_WHEN_REQUESTED; in setRevokeWhenRequested() 179 mFlags &= ~PackageManager.FLAG_PERMISSION_REVOKE_WHEN_REQUESTED; in setRevokeWhenRequested() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/ |
D | CachedFlags.java | 43 private final Flags mFlags; field in CachedFlags 46 mFlags = flags; in CachedFlags() 79 : mFlags.getMeasurementApiRegisterSourceKillSwitch(); in getMeasurementApiRegisterSourceKillSwitch() 85 : mFlags.getMeasurementApiRegisterSourcesKillSwitch(); in getMeasurementApiRegisterSourcesKillSwitch() 91 : mFlags.getMeasurementApiRegisterWebSourceKillSwitch(); in getMeasurementApiRegisterWebSourceKillSwitch() 97 : mFlags.getMeasurementApiRegisterTriggerKillSwitch(); in getMeasurementApiRegisterTriggerKillSwitch() 103 : mFlags.getMeasurementApiRegisterWebTriggerKillSwitch(); in getMeasurementApiRegisterWebTriggerKillSwitch() 109 : mFlags.getMeasurementApiDeleteRegistrationsKillSwitch(); in getMeasurementApiDeleteRegistrationsKillSwitch() 115 : mFlags.getMeasurementApiStatusKillSwitch(); in getMeasurementApiStatusKillSwitch() 121 : mFlags.getEnforceForegroundStatusForMeasurementRegisterSource(); in getEnforceForegroundStatusForMeasurementRegisterSource() [all …]
|
D | MeasurementServiceImpl.java | 103 private final CachedFlags mFlags; field in MeasurementServiceImpl 145 mFlags = flags; in MeasurementServiceImpl() 190 request, mFlags)), in register() 192 mFlags.getMsmtApiAppAllowList(), in register() 193 mFlags.getMsmtApiAppBlockList(), in register() 195 new ConsentNotifiedAccessResolver(mConsentManager, mFlags), in register() 241 mFlags::getEnforceForegroundStatusForMeasurementRegisterWebSource; in registerWebSource() 248 mFlags::getMeasurementApiRegisterWebSourceKillSwitch), in registerWebSource() 255 mFlags.getMsmtApiAppAllowList(), in registerWebSource() 256 mFlags.getMsmtApiAppBlockList(), in registerWebSource() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/ |
D | FetcherUtilTest.java | 79 @Mock Flags mFlags; field in FetcherUtilTest 92 when(mFlags.getMeasurementEnableDebugReport()).thenReturn(true); in setup() 93 when(mFlags.getMeasurementEnableHeaderErrorDebugReport()).thenReturn(true); in setup() 338 assertTrue(FetcherUtil.isValidAggregateKeyPiece("0x15A", mFlags)); in testIsValidAggregateKeyPiece_valid() 343 assertTrue(FetcherUtil.isValidAggregateKeyPiece("0X15A", mFlags)); in testIsValidAggregateKeyPiece_validWithUpperCasePrefix() 348 assertFalse(FetcherUtil.isValidAggregateKeyPiece(null, mFlags)); in testIsValidAggregateKeyPiece_null() 353 assertFalse(FetcherUtil.isValidAggregateKeyPiece("", mFlags)); in testIsValidAggregateKeyPiece_emptyString() 358 assertFalse(FetcherUtil.isValidAggregateKeyPiece("1234", mFlags)); in testIsValidAggregateKeyPiece_missingPrefix() 363 assertFalse(FetcherUtil.isValidAggregateKeyPiece("0x", mFlags)); in testIsValidAggregateKeyPiece_tooShort() 372 assertFalse(FetcherUtil.isValidAggregateKeyPiece(keyPiece.toString(), mFlags)); in testIsValidAggregateKeyPiece_tooLong() local [all …]
|
D | AsyncSourceFetcherTest.java | 183 @Mock private Flags mFlags; field in AsyncSourceFetcherTest 202 mFlags, in setup() 212 when(mFlags.getMeasurementEnableXNA()).thenReturn(false); in setup() 213 when(mFlags.getMeasurementDebugJoinKeyEnrollmentAllowlist()) in setup() 215 when(mFlags.getMeasurementPlatformDebugAdIdMatchingEnrollmentBlocklist()).thenReturn(""); in setup() 216 when(mFlags.getMeasurementMinimumAggregatableReportWindowInSeconds()) in setup() 219 .when(mFlags).getMeasurementMinimumEventReportWindowInSeconds(); in setup() 221 .when(mFlags).getMeasurementFlexApiMaxEventReports(); in setup() 223 .when(mFlags).getMeasurementFlexApiMaxEventReportWindows(); in setup() 224 when(mFlags.getMeasurementMaxAggregateKeysPerSourceRegistration()).thenReturn( in setup() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/ |
D | CustomAudienceFieldSizeValidator.java | 76 @NonNull private final Flags mFlags; field in CustomAudienceFieldSizeValidator 85 mFlags = flags; in CustomAudienceFieldSizeValidator() 86 mIsFrequencyCapFilteringEnabled = mFlags.getFledgeFrequencyCapFilteringEnabled(); in CustomAudienceFieldSizeValidator() 87 mIsAppInstallFilteringEnabled = mFlags.getFledgeAppInstallFilteringEnabled(); in CustomAudienceFieldSizeValidator() 88 mIsAdRenderIdEnabled = mFlags.getFledgeAuctionServerAdRenderIdEnabled(); in CustomAudienceFieldSizeValidator() 102 if (nameSize > mFlags.getFledgeCustomAudienceMaxNameSizeB()) { in addValidation() 107 mFlags.getFledgeCustomAudienceMaxNameSizeB(), in addValidation() 117 if (dailyUpdateUriSize > mFlags.getFledgeCustomAudienceMaxDailyUpdateUriSizeB()) { in addValidation() 122 mFlags.getFledgeCustomAudienceMaxDailyUpdateUriSizeB(), in addValidation() 132 if (biddingLogicUriSize > mFlags.getFledgeCustomAudienceMaxBiddingLogicUriSizeB()) { in addValidation() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/util/ |
D | EnrollmentTest.java | 57 @Mock private Flags mFlags; field in EnrollmentTest 62 when(mFlags.isEnrollmentBlocklisted(any())).thenReturn(false); in testMaybeGetEnrollmentId_success() 68 REGISTRATION_URI, PACKAGE_NAME, mEnrollmentDao, sContext, mFlags)); in testMaybeGetEnrollmentId_success() 76 when(mFlags.isEnrollmentBlocklisted(any())).thenReturn(false); in testMaybeGetEnrollmentId_enrollmentDataNull() 82 REGISTRATION_URI, PACKAGE_NAME, mEnrollmentDao, sContext, mFlags)); in testMaybeGetEnrollmentId_enrollmentDataNull() 90 when(mFlags.isEnrollmentBlocklisted(any())).thenReturn(true); in testMaybeGetEnrollmentId_blockedByEnrollmentBlockList() 96 REGISTRATION_URI, PACKAGE_NAME, mEnrollmentDao, sContext, mFlags)); in testMaybeGetEnrollmentId_blockedByEnrollmentBlockList() 103 when(mFlags.isEnrollmentBlocklisted(any())).thenReturn(false); in testMaybeGetEnrollmentId_packageManifestCheckFailure() 110 REGISTRATION_URI, PACKAGE_NAME, mEnrollmentDao, sContext, mFlags)); in testMaybeGetEnrollmentId_packageManifestCheckFailure() 125 Uri.parse(localhost), PACKAGE_NAME, mEnrollmentDao, sContext, mFlags)); in testMaybeGetEnrollmentId_localhost_success() local [all …]
|
D | FilterTest.java | 44 @Mock private Flags mFlags; field in FilterTest 48 when(mFlags.getMeasurementEnableLookbackWindowFilter()).thenReturn(false); in setup() 78 new Filter(mFlags) in testIsFilterMatch_filterSet_nonEmptyValues_returnTrue() 101 assertTrue(new Filter(mFlags).isFilterMatch(sourceFilter, List.of(triggerFilter), true)); in testIsFilterMatch_nonEmptyValues_returnsTrue() 122 when(mFlags.getMeasurementEnableLookbackWindowFilter()).thenReturn(true); in testIsFilterMatchV2_insideLookbackWindow_returnsTrue() 123 assertTrue(new Filter(mFlags).isFilterMatch(sourceFilter, List.of(triggerFilter), true)); in testIsFilterMatchV2_insideLookbackWindow_returnsTrue() 140 when(mFlags.getMeasurementEnableLookbackWindowFilter()).thenReturn(true); in testIsFilterMatchV2_emptySource_returnsTrue() 141 assertTrue(new Filter(mFlags).isFilterMatch(sourceFilter, List.of(triggerFilter), true)); in testIsFilterMatchV2_emptySource_returnsTrue() 162 when(mFlags.getMeasurementEnableLookbackWindowFilter()).thenReturn(true); in testIsFilterMatchV2_outsideLookbackWindow_returnsFalse() 163 assertFalse(new Filter(mFlags).isFilterMatch(sourceFilter, List.of(triggerFilter), true)); in testIsFilterMatchV2_outsideLookbackWindow_returnsFalse() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/ |
D | probability_entry.h | 34 : mFlags(probabilityEntry.mFlags), mProbability(probabilityEntry.mProbability), in ProbabilityEntry() 39 : mFlags(Ver4DictConstants::FLAG_NOT_A_VALID_ENTRY), mProbability(NOT_A_PROBABILITY), in ProbabilityEntry() 44 : mFlags(flags), mProbability(probability), mHistoricalInfo() {} in ProbabilityEntry() 48 : mFlags(flags), mProbability(NOT_A_PROBABILITY), mHistoricalInfo(*historicalInfo) {} in ProbabilityEntry() 52 : mFlags(createFlags(unigramProperty->representsBeginningOfSentence(), in ProbabilityEntry() 61 : mFlags(0), mProbability(ngramProperty->getProbability()), in ProbabilityEntry() 65 return (mFlags & Ver4DictConstants::FLAG_NOT_A_VALID_ENTRY) == 0; in isValid() 73 return mFlags; in getFlags() 85 return (mFlags & Ver4DictConstants::FLAG_REPRESENTS_BEGINNING_OF_SENTENCE) != 0; in representsBeginningOfSentence() 89 return (mFlags & Ver4DictConstants::FLAG_NOT_A_WORD) != 0; in isNotAWord() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | ConsentNotificationJobServiceTest.java | 97 @Mock Flags mFlags; field in ConsentNotificationJobServiceTest 127 doReturn(mFlags).when(FlagsFactory::getFlags); in setup() 128 when(mFlags.getConsentNotificationIntervalEndMs()).thenReturn(mIntervalEndMs); in setup() 129 when(mFlags.getConsentNotificationIntervalBeginMs()).thenReturn(mIntervalBeginMs); in setup() 130 when(mFlags.getConsentNotificationMinimalDelayBeforeIntervalEnds()) in setup() 132 mSpyLogger = mockAdServicesJobServiceLogger(CONTEXT, mFlags); in setup() 151 mockBackgroundJobsLoggingKillSwitch(mFlags, /* overrideValue= */ true); in testOnStartJobAsyncUtilExecute_withoutLogging() 160 mockBackgroundJobsLoggingKillSwitch(mFlags, /* overrideValue= */ false); in testOnStartJobAsyncUtilExecute_withLogging() 174 doReturn(mFlags).when(FlagsFactory::getFlags); in testOnStartJobAsyncUtilExecute_Reconsent_GaUxDisabled() 175 when(mFlags.getConsentNotificationDebugMode()).thenReturn(false); in testOnStartJobAsyncUtilExecute_Reconsent_GaUxDisabled() [all …]
|
D | AdServicesCommonServiceImplTest.java | 109 @Mock private Flags mFlags; field in AdServicesCommonServiceImplTest 139 mFlags, in setup() 146 mocker.mockGetFlags(mFlags); in setup() 147 doReturn(true).when(mFlags).getAdServicesEnabled(); in setup() 172 doReturn(Flags.UI_EEA_COUNTRIES).when(mFlags).getUiEeaCountries(); in setup() 184 doReturn(false).when(mFlags).getEnableAdServicesSystemApi(); in isAdServiceEnabledTest_userNotEnrolledEntryPointLogicV1() 188 mFlags, in isAdServiceEnabledTest_userNotEnrolledEntryPointLogicV1() 205 doReturn(true).when(mFlags).getEnableAdServicesSystemApi(); in isAdServiceEnabledTest_userNotEnrolledEntryPointLogicV2() 211 mFlags, in isAdServiceEnabledTest_userNotEnrolledEntryPointLogicV2() 224 doReturn(false).when(mFlags).getGaUxFeatureEnabled(); in getAdserviceStatusTest() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/inputverification/ |
D | ClickVerifier.java | 45 @NonNull private final Flags mFlags; field in ClickVerifier 55 mFlags = FlagsFactory.getFlags(); in ClickVerifier() 60 mFlags.getMeasurementRegistrationInputEventValidWindowMs(), in ClickVerifier() 74 mFlags.getMeasurementRegistrationInputEventValidWindowMs(), in ClickVerifier() 88 mFlags.getMeasurementRegistrationInputEventValidWindowMs(), in ClickVerifier() 106 mFlags = flags; in ClickVerifier() 111 mFlags.getMeasurementRegistrationInputEventValidWindowMs(), in ClickVerifier() 125 mFlags.getMeasurementRegistrationInputEventValidWindowMs(), in ClickVerifier() 139 mFlags.getMeasurementRegistrationInputEventValidWindowMs(), in ClickVerifier() 204 stats.setSystemClickVerificationEnabled(mFlags.getMeasurementIsClickVerifiedByInputEvent()); in isInputEventVerifiableBySystem() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/ |
D | probability_entry.h | 38 : mFlags(probabilityEntry.mFlags), mProbability(probabilityEntry.mProbability), in ProbabilityEntry() 43 : mFlags(0), mProbability(NOT_A_PROBABILITY), mHistoricalInfo() {} in ProbabilityEntry() 47 : mFlags(flags), mProbability(probability), mHistoricalInfo() {} in ProbabilityEntry() 52 : mFlags(flags), mProbability(probability), mHistoricalInfo(*historicalInfo) {} in ProbabilityEntry() 55 return ProbabilityEntry(mFlags, probability, &mHistoricalInfo); in createEntryWithUpdatedProbability() 60 return ProbabilityEntry(mFlags, mProbability, historicalInfo); in createEntryWithUpdatedHistoricalInfo() 68 return mFlags; in getFlags() 83 const int mFlags; variable
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | pt_node_params.h | 35 PtNodeParams() : mHeadPos(NOT_A_DICT_POS), mFlags(0), mHasMovedFlag(false), in PtNodeParams() 44 : mHeadPos(ptNodeParams.mHeadPos), mFlags(ptNodeParams.mFlags), in PtNodeParams() 64 : mHeadPos(headPos), mFlags(flags), mHasMovedFlag(false), mParentPos(NOT_A_DICT_POS), in PtNodeParams() 79 : mHeadPos(headPos), mFlags(flags), mHasMovedFlag(true), mParentPos(parentPos), in PtNodeParams() 93 : mHeadPos(ptNodeParams->getHeadPos()), mFlags(flags), mHasMovedFlag(true), in PtNodeParams() 110 : mHeadPos(NOT_A_DICT_POS), mFlags(flags), mHasMovedFlag(true), mParentPos(parentPos), in PtNodeParams() 132 return mHasMovedFlag && DynamicPtReadingUtils::isDeleted(mFlags); in isDeleted() 136 return mHasMovedFlag && DynamicPtReadingUtils::willBecomeNonTerminal(mFlags); in willBecomeNonTerminal() 144 return PatriciaTrieReadingUtils::isTerminal(mFlags); in isTerminal() 148 return PatriciaTrieReadingUtils::isPossiblyOffensive(mFlags); in isPossiblyOffensive() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/ |
D | AsyncTriggerFetcher.java | 79 private final Flags mFlags; field in AsyncTriggerFetcher 105 mFlags = flags; in AsyncTriggerFetcher() 167 mFlags); in parseTrigger() 218 boolean shouldCheckFilterSize = !mFlags.getMeasurementEnableUpdateTriggerHeaderLimit(); in parseTrigger() 222 filters, mFlags, true, shouldCheckFilterSize)) { in parseTrigger() 234 notFilters, mFlags, true, shouldCheckFilterSize)) { in parseTrigger() 253 if (mFlags.getMeasurementEnableXNA() in parseTrigger() 264 if (mFlags.getMeasurementEnableXNA() in parseTrigger() 274 if (mFlags.getMeasurementAggregationCoordinatorOriginEnabled() in parseTrigger() 278 String allowlist = mFlags.getMeasurementAggregationCoordinatorOriginList(); in parseTrigger() [all …]
|
D | AsyncSourceFetcher.java | 82 private final Flags mFlags; field in AsyncSourceFetcher 105 mFlags = flags; in AsyncSourceFetcher() 137 new UnsignedLong(mFlags in parseCommonSourceParams() 139 new UnsignedLong(mFlags in parseCommonSourceParams() 148 expiry = mFlags.getMeasurementMaxReportingRegisterSourceExpirationInSeconds(); in parseCommonSourceParams() 158 new UnsignedLong(mFlags in parseCommonSourceParams() 160 new UnsignedLong(mFlags in parseCommonSourceParams() 176 new UnsignedLong(mFlags in parseCommonSourceParams() 178 new UnsignedLong(mFlags in parseCommonSourceParams() 212 mFlags.getMeasurementMinInstallAttributionWindow(), in parseCommonSourceParams() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/ |
D | FledgeMaintenanceTasksWorker.java | 55 @NonNull private final Flags mFlags; field in FledgeMaintenanceTasksWorker 82 mFlags = flags; in FledgeMaintenanceTasksWorker() 95 mFlags = FlagsFactory.getFlags(); in FledgeMaintenanceTasksWorker() 124 mClock.instant().minusSeconds(mFlags.getAdSelectionExpirationWindowS()); in clearExpiredAdSelectionData() 132 if (mFlags.getFledgeBeaconReportingMetricsEnabled()) { in clearExpiredAdSelectionData() 149 if (mFlags.getFledgeAuctionServerEnabled() in clearExpiredAdSelectionData() 150 || mFlags.getFledgeOnDeviceAuctionShouldUseUnifiedTables()) { in clearExpiredAdSelectionData() 155 if (mFlags.getFledgeOnDeviceAuctionShouldUseUnifiedTables()) { in clearExpiredAdSelectionData() 160 if (mFlags.getFledgeAuctionServerEnabled()) { in clearExpiredAdSelectionData() 165 if (mFlags.getFledgeEventLevelDebugReportingEnabled()) { in clearExpiredAdSelectionData() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/ |
D | SQLDatastoreManagerTest.java | 55 @Mock private Flags mFlags; field in SQLDatastoreManagerTest 107 ExtendedMockito.doReturn(mFlags).when(FlagsFactory::getFlags); in runInTransactionWithResult_throwsDataStoreExceptionExceptionDisable_logsDbVersion() 108 doReturn(false).when(mFlags).getMeasurementEnableDatastoreManagerThrowDatastoreException(); in runInTransactionWithResult_throwsDataStoreExceptionExceptionDisable_logsDbVersion() 132 ExtendedMockito.doReturn(mFlags).when(FlagsFactory::getFlags); in runInTransactionWithResult_throwsDataStoreExceptionExceptionEnable_rethrows() 133 doReturn(true).when(mFlags).getMeasurementEnableDatastoreManagerThrowDatastoreException(); in runInTransactionWithResult_throwsDataStoreExceptionExceptionEnable_rethrows() 134 doReturn(1.0f).when(mFlags).getMeasurementThrowUnknownExceptionSamplingRate(); in runInTransactionWithResult_throwsDataStoreExceptionExceptionEnable_rethrows() 185 ExtendedMockito.doReturn(mFlags).when(FlagsFactory::getFlags); in runInTransaction_throwsDataStoreExceptionExceptionDisable_logsDbVersion() 186 doReturn(false).when(mFlags).getMeasurementEnableDatastoreManagerThrowDatastoreException(); in runInTransaction_throwsDataStoreExceptionExceptionDisable_logsDbVersion() 210 ExtendedMockito.doReturn(mFlags).when(FlagsFactory::getFlags); in runInTransaction_throwsDataStoreExceptionSamplingDisabled_logsDbVersion() 211 doReturn(true).when(mFlags).getMeasurementEnableDatastoreManagerThrowDatastoreException(); in runInTransaction_throwsDataStoreExceptionSamplingDisabled_logsDbVersion() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/ |
D | AdSelectionServiceImpl.java | 169 @NonNull private final Flags mFlags; field in AdSelectionServiceImpl 265 mFlags = flags; in AdSelectionServiceImpl() 395 mFlags, in getAdSelectionData() 400 if (BinderFlagReader.readFlag(mFlags::getFledgeAuctionServerKillSwitch)) { in getAdSelectionData() 458 mFlags, in persistAdSelectionResult() 463 if (BinderFlagReader.readFlag(mFlags::getFledgeAuctionServerKillSwitch)) { in persistAdSelectionResult() 494 BinderFlagReader.readFlag(mFlags::getFledgeAuctionServerOverallTimeoutMs); in persistAdSelectionResult() 497 mFlags::getFledgeAuctionServerForceSearchWhenOwnerIsAbsentEnabled); in persistAdSelectionResult() 499 BinderFlagReader.readFlag(mFlags::getFledgeAuctionServerEnabledForUpdateHistogram); in persistAdSelectionResult() 505 mFlags in persistAdSelectionResult() [all …]
|
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/errorlogging/ |
D | ErrorCodeSamplerTest.java | 47 @Mock private ModuleSharedFlags mFlags; field in ErrorCodeSamplerTest 52 when(mFlags.getEncodedErrorCodeListPerSampleInterval()) in setUp() 59 ErrorCodeSampler errorCodeSampler = new ErrorCodeSampler(mFlags, mRandom); in testShouldLog_randomSampling_loggingSuccess() 83 when(mFlags.getEncodedErrorCodeListPerSampleInterval()) in testShouldLog_noSampling_errorCodeNotPresent() 85 ErrorCodeSampler errorCodeSampler = new ErrorCodeSampler(mFlags); in testShouldLog_noSampling_errorCodeNotPresent() 93 when(mFlags.getEncodedErrorCodeListPerSampleInterval()).thenReturn(""); in testShouldLog_noSampling_errorCodeNotPresent() 101 when(mFlags.getEncodedErrorCodeListPerSampleInterval()).thenReturn(""); in testShouldLog_noSampling_emptyMap() 102 ErrorCodeSampler errorCodeSampler = new ErrorCodeSampler(mFlags); in testShouldLog_noSampling_emptyMap() 113 ErrorCodeSampler errorCodeSampler = new ErrorCodeSampler(mFlags, mRandom); in testShouldLog_randomSampling_doesNotLog()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/encryption/ |
D | BackgroundKeyFetchWorker.java | 72 private final Flags mFlags; field in BackgroundKeyFetchWorker 93 mFlags = flags; in BackgroundKeyFetchWorker() 138 return mFlags; in getFlags() 168 if (mFlags.getFledgeAuctionServerKeyFetchMetricsEnabled()) { in fetchNewKeys() 192 mFlags); in fetchNewKeys() 197 if (mFlags.getFledgeAuctionServerBackgroundAuctionKeyFetchEnabled() in fetchNewKeys() 202 boolean multicloudEnabled = mFlags.getFledgeAuctionServerMultiCloudEnabled(); in fetchNewKeys() 203 String allowlist = mFlags.getFledgeAuctionServerCoordinatorUrlAllowlist(); in fetchNewKeys() 218 String defaultUrl = mFlags.getFledgeAuctionServerAuctionKeyFetchUri(); in fetchNewKeys() 232 if (mFlags.getFledgeAuctionServerBackgroundJoinKeyFetchEnabled() in fetchNewKeys() [all …]
|