Home
last modified time | relevance | path

Searched refs:longValue (Results 1 – 25 of 79) sorted by relevance

1234

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DFilterValue.java39 public abstract long longValue(); in longValue() method in FilterValue
47 public static FilterValue ofLong(long longValue) { in ofLong() argument
48 return AutoOneOf_FilterValue.longValue(longValue); in ofLong()
DFilterMap.java86 return mAttributionFilterMapWithLongValue.get(key).longValue(); in getLongValue()
147 result.put(key, value.longValue()); in serializeAsJsonV2()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/util/
DLogUtilsTest.java63 Collections.emptyList()).get().longValue()); in testNoData()
79 Collections.emptyList()).get().longValue(); in testWriteQuery()
97 Collections.emptyList()).get().longValue(); in testWriteEmptyQuery()
118 Collections.emptyList()).get().longValue(); in testWriteEventForExistingQuery()
151 .get().longValue(); in testWriteEventForExistingQuery()
177 List.of(eventLogRecord)).get().longValue(); in testWriteEventWithNewQuery()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DMetricsLoggerTest.java189 Assert.assertEquals(20L, mTestableMetricsLogger.mTestableCounters.get(1).longValue()); in testAddAndSendCountersNormalCases()
190 Assert.assertEquals(5L, mTestableMetricsLogger.mTestableCounters.get(2).longValue()); in testAddAndSendCountersNormalCases()
197 Assert.assertEquals(3L, mTestableMetricsLogger.mTestableCounters.get(1).longValue()); in testAddAndSendCountersNormalCases()
198 Assert.assertEquals(10L, mTestableMetricsLogger.mTestableCounters.get(2).longValue()); in testAddAndSendCountersNormalCases()
199 Assert.assertEquals(1L, mTestableMetricsLogger.mTestableCounters.get(3).longValue()); in testAddAndSendCountersNormalCases()
215 Long.MAX_VALUE, mTestableMetricsLogger.mTestableCounters.get(2).longValue()); in testAddAndSendCountersCornerCases()
226 Assert.assertEquals(1, mTestableMetricsLogger.mTestableCounters.get(1).longValue()); in testMetricsLoggerClose()
228 Long.MAX_VALUE, mTestableMetricsLogger.mTestableCounters.get(2).longValue()); in testMetricsLoggerClose()
/packages/modules/StatsD/framework/test/unittests/src/android/os/
DStatsDimensionsValueTest.java35 long longValue = 123456789L; in testConversionFromStructuredParcel() local
58 sdvp.tupleValue[2].longValue = longValue; in testConversionFromStructuredParcel()
87 assertThat(sdvChildren.get(2).getLongValue()).isEqualTo(longValue); in testConversionFromStructuredParcel()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DAttributionConfigTest.java66 assertEquals(100L, attributionConfig.getSourcePriorityRange().first.longValue()); in testCreation()
67 assertEquals(1000L, attributionConfig.getSourcePriorityRange().second.longValue()); in testCreation()
74 assertEquals(600000L, attributionConfig.getSourceExpiryOverride().longValue()); in testCreation()
75 assertEquals(99L, attributionConfig.getPriority().longValue()); in testCreation()
76 assertEquals(604800L, attributionConfig.getExpiry().longValue()); in testCreation()
79 assertEquals(100000L, attributionConfig.getPostInstallExclusivityWindow().longValue()); in testCreation()
DEventReportTest.java288 assertEquals(source.getEventReportWindow().longValue(), report.getReportTime()); in populateFromSourceAndTrigger_eventSourceAppDestWithoutInstallAttribution()
426 assertEquals(source.getEventReportWindow().longValue(), report.getReportTime()); in populate_eventSourceWebDestWithoutInstallAttribution()
462 assertEquals(source.getEventReportWindow().longValue(), report.getReportTime()); in populate_eventSourceAppDestWithInstallAttribution()
501 assertEquals(source.getEventReportWindow().longValue(), report.getReportTime()); in populate_eventSourceWebDestWithInstallAttribution()
729 assertEquals(source.getEventReportWindow().longValue(), report.getReportTime()); in populate_eventSourceWebAndAppDest_coarseDestination()
/packages/apps/Camera2/src/com/android/camera/settings/
DAppUpgrader.java373 long longValue = (Long) value; in copyPreferences() local
374 if (longValue <= Integer.MAX_VALUE && longValue >= Integer.MIN_VALUE) { in copyPreferences()
375 String intValue = SettingsManager.convert((int) longValue); in copyPreferences()
379 key + " : " + longValue); in copyPreferences()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiPseudonymManagerTest.java164 assertTrue(mWindowStartCaptor.getValue().longValue() <= maxStartTime); in retrievePseudonymOnFailureTimeout_expiredPseudonym_scheduleRefresh()
167 mWindowLengthCaptor.getValue().longValue()); in retrievePseudonymOnFailureTimeout_expiredPseudonym_scheduleRefresh()
323 assertTrue(mWindowStartCaptor.getValue().longValue() <= maxStartTime); in setPseudonymAndScheduleRefresh_freshPseudonym_schedule()
465 assertTrue(mWindowStartCaptor.getValue().longValue() <= maxStartTime); in mRetrieveCallback_transientFailureConnectionError_scheduleRetry()
496 assertTrue(mWindowStartCaptor.getValue().longValue() <= maxStartTime); in mRetrieveCallback_transientFailureServerError_scheduleRetry()
530 assertTrue(mWindowStartCaptor.getValue().longValue() <= maxStartTime); in mRetrieveCallback_success_scheduleRefresh()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/aggregation/
DAggregatableAttributionSourceTest.java50 .longValue(), 159L); in testCreation()
51 assertEquals(attributionSource.getAggregatableSource().get("geoValue").longValue(), 5L); in testCreation()
DAggregateHistogramContributionTest.java44 assertEquals(100L, contribution.getKey().longValue()); in testCreation()
52 assertEquals(0L, contribution.getKey().longValue()); in testDefaults()
DAggregateAttributionDataTest.java45 assertEquals(1L, data.getId().longValue()); in testCreation()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DDictionaryStats.java65 if (kb.longValue() == 0) { in getFileSizeString()
69 if (mb.longValue() == 0) { in getFileSizeString()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/test/
DTestPersonalizationHandler.java129 long longValue = 0; in onEvent() local
131 longValue = input.getParameters().getLong("x"); in onEvent()
134 logData.put("x", longValue); in onEvent()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/xfrm/
DXfrmNetlinkNewSaMessage.java144 return mXfrmUsersaInfo.getCurrentLifetime().packets.longValue(); in getPacketCount()
150 return mXfrmUsersaInfo.getCurrentLifetime().bytes.longValue(); in getByteCount()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/
DEventReportingJobHandlerIntegrationTest.java100 final long startValue = ((Number) Objects.requireNonNull(get("start"))).longValue(); in runActionToTest()
101 final long endValue = ((Number) Objects.requireNonNull(get("end"))).longValue(); in runActionToTest()
DAggregateReportingJobHandlerIntegrationTest.java123 final long startValue = ((Number) Objects.requireNonNull(get("start"))).longValue(); in runActionToTest()
124 final long endValue = ((Number) Objects.requireNonNull(get("end"))).longValue(); in runActionToTest()
/packages/modules/StatsD/framework/java/android/os/
DStatsDimensionsValue.java140 return mInner.longValue; in getLongValue()
246 sb.append(String.valueOf(mInner.longValue)); in toString()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAdsScoreGeneratorImplTest.java394 assertEquals(1L, scoringOutcome.get(0).getAdWithScore().getScore().longValue()); in testRunAdScoringSuccess()
395 assertEquals(2L, scoringOutcome.get(1).getAdWithScore().getScore().longValue()); in testRunAdScoringSuccess()
512 assertEquals(1L, scoringOutcome.get(0).getAdWithScore().getScore().longValue()); in testRunAdScoringSuccessWithDataVersionHeaderEnabled()
513 assertEquals(2L, scoringOutcome.get(1).getAdWithScore().getScore().longValue()); in testRunAdScoringSuccessWithDataVersionHeaderEnabled()
632 assertEquals(1L, scoringOutcome.get(0).getAdWithScore().getScore().longValue()); in testRunAdScoringSuccessWithDataVersionHeaderDisabled()
633 assertEquals(2L, scoringOutcome.get(1).getAdWithScore().getScore().longValue()); in testRunAdScoringSuccessWithDataVersionHeaderDisabled()
905 assertEquals(1L, scoringOutcome.get(0).getAdWithScore().getScore().longValue()); in testRunAdScoringContextual_Success()
906 assertEquals(2L, scoringOutcome.get(1).getAdWithScore().getScore().longValue()); in testRunAdScoringContextual_Success()
907 assertEquals(5L, scoringOutcome.get(4).getAdWithScore().getScore().longValue()); in testRunAdScoringContextual_Success()
1206 assertEquals(1L, scoringOutcome.get(0).getAdWithScore().getScore().longValue()); in testRunAdScoringContextual_UseOverride_Success()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/stableuris/job/
DStableUriIdleMaintenanceServiceTest.java123 assertEquals(pathToIdMap.get(path).longValue(), backupIdRow.getId()); in testDataMigrationForInternalVolume()
173 assertEquals(pathToIdMap.get(filePath).longValue(), backupIdRow.getId()); in testDataMigrationForExternalVolume()
236 assertEquals(pathToIdMap.get(filePath).longValue(), in testDataMigrationForPublicVolume()
/packages/modules/StatsD/aidl/android/os/
DStatsDimensionsValueParcel.aidl17 long longValue;
/packages/modules/Connectivity/tests/common/java/android/net/nsd/
DNsdServiceInfoTest.java100 String longValue = "loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo" in testLimits() local
104 info.setAttribute("longcat", longValue); // Key + value == 255 characters. in testLimits()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/util/
DOnDevicePersonalizationFlatbufferUtils.java166 data.put(kv.key(), kv.longValue()); in getContentValuesFromKeyValueList()
230 KeyValue.addLongValue(builder, ((Long) value).longValue()); in createKeyValueEntry()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mcp/
DMediaControlProfileTest.java278 if (position < 0) Assert.assertEquals(positionCaptor.getValue().longValue(), 0); in testHandleTrackPositionSetRequest()
280 Assert.assertEquals(positionCaptor.getValue().longValue(), duration); in testHandleTrackPositionSetRequest()
282 Assert.assertEquals(positionCaptor.getValue().longValue(), position); in testHandleTrackPositionSetRequest()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
DMockSharedPreferences.java71 return ((Long)mValues.get(key)).longValue(); in getLong()

1234