Home
last modified time | relevance | path

Searched refs:getLong (Results 1 – 25 of 255) sorted by relevance

1234567891011

/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
DDiskStatsFileLoggerTest.java64 assertThat(output.getLong(DiskStatsFileLogger.PHOTOS_KEY)).isEqualTo(0L); in testEmptyStorage()
65 assertThat(output.getLong(DiskStatsFileLogger.VIDEOS_KEY)).isEqualTo(0L); in testEmptyStorage()
66 assertThat(output.getLong(DiskStatsFileLogger.AUDIO_KEY)).isEqualTo(0L); in testEmptyStorage()
67 assertThat(output.getLong(DiskStatsFileLogger.DOWNLOADS_KEY)).isEqualTo(0L); in testEmptyStorage()
68 assertThat(output.getLong(DiskStatsFileLogger.SYSTEM_KEY)).isEqualTo(0L); in testEmptyStorage()
69 assertThat(output.getLong(DiskStatsFileLogger.MISC_KEY)).isEqualTo(0L); in testEmptyStorage()
70 assertThat(output.getLong(DiskStatsFileLogger.APP_SIZE_AGG_KEY)).isEqualTo(0L); in testEmptyStorage()
71 assertThat(output.getLong(DiskStatsFileLogger.APP_CACHE_AGG_KEY)).isEqualTo(0L); in testEmptyStorage()
90 assertThat(output.getLong(DiskStatsFileLogger.AUDIO_KEY)).isEqualTo(1L); in testMeasurementResultsReported()
91 assertThat(output.getLong(DiskStatsFileLogger.PHOTOS_KEY)).isEqualTo(10L); in testMeasurementResultsReported()
[all …]
DDiskStatsLoggingServiceTest.java104 assertThat(json.getLong(DiskStatsFileLogger.PHOTOS_KEY)).isEqualTo(0L); in testEmptyLog()
105 assertThat(json.getLong(DiskStatsFileLogger.VIDEOS_KEY)).isEqualTo(0L); in testEmptyLog()
106 assertThat(json.getLong(DiskStatsFileLogger.AUDIO_KEY)).isEqualTo(0L); in testEmptyLog()
107 assertThat(json.getLong(DiskStatsFileLogger.DOWNLOADS_KEY)).isEqualTo(0L); in testEmptyLog()
108 assertThat(json.getLong(DiskStatsFileLogger.SYSTEM_KEY)).isEqualTo(0L); in testEmptyLog()
109 assertThat(json.getLong(DiskStatsFileLogger.MISC_KEY)).isEqualTo(0L); in testEmptyLog()
110 assertThat(json.getLong(DiskStatsFileLogger.APP_SIZE_AGG_KEY)).isEqualTo(0L); in testEmptyLog()
111 assertThat(json.getLong(DiskStatsFileLogger.APP_CACHE_AGG_KEY)).isEqualTo(0L); in testEmptyLog()
146 assertThat(json.getLong(DiskStatsFileLogger.PHOTOS_KEY)).isEqualTo(4L); in testPopulatedLogTask()
147 assertThat(json.getLong(DiskStatsFileLogger.VIDEOS_KEY)).isEqualTo(5L); in testPopulatedLogTask()
[all …]
/frameworks/base/services/core/java/com/android/server/
DDiskStatsService.java214 pw.println(json.getLong(DiskStatsFileLogger.APP_SIZE_AGG_KEY)); in reportCachedValues()
216 pw.println(json.getLong(DiskStatsFileLogger.APP_DATA_SIZE_AGG_KEY)); in reportCachedValues()
218 pw.println(json.getLong(DiskStatsFileLogger.APP_CACHE_AGG_KEY)); in reportCachedValues()
220 pw.println(json.getLong(DiskStatsFileLogger.PHOTOS_KEY)); in reportCachedValues()
222 pw.println(json.getLong(DiskStatsFileLogger.VIDEOS_KEY)); in reportCachedValues()
224 pw.println(json.getLong(DiskStatsFileLogger.AUDIO_KEY)); in reportCachedValues()
226 pw.println(json.getLong(DiskStatsFileLogger.DOWNLOADS_KEY)); in reportCachedValues()
228 pw.println(json.getLong(DiskStatsFileLogger.SYSTEM_KEY)); in reportCachedValues()
230 pw.println(json.getLong(DiskStatsFileLogger.MISC_KEY)); in reportCachedValues()
251 json.getLong(DiskStatsFileLogger.APP_SIZE_AGG_KEY)); in reportCachedValuesProto()
[all …]
DUserspaceRebootLogger.java120 durationMillis = SystemProperties.getLong(USERSPACE_REBOOT_LAST_FINISHED_PROPERTY, 0) in logEventAsync()
121 - SystemProperties.getLong(USERSPACE_REBOOT_LAST_STARTED_PROPERTY, 0); in logEventAsync()
141 if (SystemProperties.getLong(USERSPACE_REBOOT_LAST_STARTED_PROPERTY, -1) != -1) { in computeOutcome()
/frameworks/base/core/tests/coretests/src/android/os/
DPerformanceCollectorTest.java184 assertEquals(0, results.getLong("testAddMeasurementLongZero")); in testAddMeasurementLong()
186 assertEquals(348573, results.getLong("testAddMeasurementLongPos")); in testAddMeasurementLong()
188 assertEquals(-19354, results.getLong("testAddMeasurementLongNeg")); in testAddMeasurementLong()
404 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_CPU_TIME) > 0); in verifySnapshotBundle()
406 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_EXECUTION_TIME) > 0); in verifySnapshotBundle()
416 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_JAVA_ALLOCATED) > 0); in verifySnapshotBundle()
418 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_JAVA_FREE) > 0); in verifySnapshotBundle()
420 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_JAVA_PRIVATE_DIRTY) > 0); in verifySnapshotBundle()
422 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_JAVA_PSS) > 0); in verifySnapshotBundle()
424 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_JAVA_SHARED_DIRTY) > 0); in verifySnapshotBundle()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupAgentTimeoutParameters.java111 parser.getLong( in update()
115 parser.getLong( in update()
119 parser.getLong( in update()
123 parser.getLong( in update()
127 parser.getLong( in update()
131 parser.getLong( in update()
DBackupManagerConstants.java120 parser.getLong( in update()
124 parser.getLong( in update()
136 parser.getLong( in update()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerConstants.java534 BACKGROUND_SETTLE_TIME = mParser.getLong(KEY_BACKGROUND_SETTLE_TIME, in updateConstants()
536 FGSERVICE_MIN_SHOWN_TIME = mParser.getLong(KEY_FGSERVICE_MIN_SHOWN_TIME, in updateConstants()
538 FGSERVICE_MIN_REPORT_TIME = mParser.getLong(KEY_FGSERVICE_MIN_REPORT_TIME, in updateConstants()
540 FGSERVICE_SCREEN_ON_BEFORE_TIME = mParser.getLong(KEY_FGSERVICE_SCREEN_ON_BEFORE_TIME, in updateConstants()
542 FGSERVICE_SCREEN_ON_AFTER_TIME = mParser.getLong(KEY_FGSERVICE_SCREEN_ON_AFTER_TIME, in updateConstants()
544 CONTENT_PROVIDER_RETAIN_TIME = mParser.getLong(KEY_CONTENT_PROVIDER_RETAIN_TIME, in updateConstants()
546 GC_TIMEOUT = mParser.getLong(KEY_GC_TIMEOUT, in updateConstants()
548 GC_MIN_INTERVAL = mParser.getLong(KEY_GC_MIN_INTERVAL, in updateConstants()
550 FULL_PSS_MIN_INTERVAL = mParser.getLong(KEY_FULL_PSS_MIN_INTERVAL, in updateConstants()
552 FULL_PSS_LOWERED_INTERVAL = mParser.getLong(KEY_FULL_PSS_LOWERED_INTERVAL, in updateConstants()
[all …]
DBroadcastConstants.java115 TIMEOUT = mParser.getLong(KEY_TIMEOUT, TIMEOUT); in updateConstants()
116 SLOW_TIME = mParser.getLong(KEY_SLOW_TIME, SLOW_TIME); in updateConstants()
117 DEFERRAL = mParser.getLong(KEY_DEFERRAL, DEFERRAL); in updateConstants()
120 DEFERRAL_FLOOR = mParser.getLong(KEY_DEFERRAL_FLOOR, DEFERRAL_FLOOR); in updateConstants()
121 ALLOW_BG_ACTIVITY_START_TIMEOUT = mParser.getLong(KEY_ALLOW_BG_ACTIVITY_START_TIMEOUT, in updateConstants()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DAlwaysOnDisplayPolicy.java158 proxScreenOffDelayMs = mParser.getLong(KEY_PROX_SCREEN_OFF_DELAY_MS, in update()
160 proxCooldownTriggerMs = mParser.getLong(KEY_PROX_COOLDOWN_TRIGGER_MS, in update()
162 proxCooldownPeriodMs = mParser.getLong(KEY_PROX_COOLDOWN_PERIOD_MS, in update()
164 wallpaperFadeOutDuration = mParser.getLong(KEY_WALLPAPER_FADE_OUT_MS, in update()
166 wallpaperVisibilityDuration = mParser.getLong(KEY_WALLPAPER_VISIBILITY_MS, in update()
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableStreamConfigurationDuration.java63 int format = (int)buffer.getLong(); in unmarshal()
64 int width = (int)buffer.getLong(); in unmarshal()
65 int height = (int)buffer.getLong(); in unmarshal()
66 long durationNs = buffer.getLong(); in unmarshal()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DEstimate.kt45 Settings.Global.getLong( in getCachedEstimateIfAvailable()
51 Settings.Global.getLong(resolver, in getCachedEstimateIfAvailable()
56 Settings.Global.getLong(resolver, Settings.Global.AVERAGE_TIME_TO_DISCHARGE, in getCachedEstimateIfAvailable()
87 Settings.Global.getLong( in getLastCacheUpdateTime()
/frameworks/av/drm/libmediadrm/tests/
DDrmMetrics_test.cpp109 EXPECT_TRUE(bundle.getLong(key, &value)) in TEST_F()
121 EXPECT_TRUE(bundle.getLong(get_key_request_key, &value)); in TEST_F()
124 EXPECT_TRUE(bundle.getLong(provide_key_response_key, &value)); in TEST_F()
213 EXPECT_TRUE(bundle.getLong(key, &value)) in TEST_F()
252 EXPECT_TRUE(start_times.getLong(sid, &start_time)); in TEST_F()
253 EXPECT_TRUE(end_times.getLong(sid, &end_time)); in TEST_F()
264 EXPECT_TRUE(bundle.getLong(get_key_request_key, &value)); in TEST_F()
267 EXPECT_TRUE(bundle.getLong(provide_key_response_key, &value)); in TEST_F()
461 ASSERT_TRUE(metricInstance.getLong(String16("count"), &value)); in TEST_F()
465 ASSERT_TRUE(attributeBundle.getLong(String16("status"), &value)); in TEST_F()
[all …]
/frameworks/base/core/tests/systemproperties/src/android/os/
DSystemPropertiesTest.java36 long ret = SystemProperties.getLong(PERSIST_KEY, -1); in testStressPersistPropertyConsistency()
45 long ret = SystemProperties.getLong(KEY, -1); in testStressMemoryPropertyConsistency()
92 long value = SystemProperties.getLong(KEY, defValue); in testLong()
111 assertEquals(1, handle.getLong(-1)); in testHandle()
142 assertEquals(-10, SystemProperties.getLong(UNSET_KEY, -10)); in testUnset()
173 SystemProperties.getLong(null, 0); in testNullKey()
/frameworks/base/core/tests/coretests/src/android/database/
DMatrixCursorTest.java41 assertEquals(0L, cursor.getLong(0)); in testNullValue()
153 assertEquals(0, cursor.getLong(3)); in testRowBuilderOffer()
162 assertEquals(0, cursor.getLong(3)); in testRowBuilderOffer()
171 assertEquals(0, cursor.getLong(3)); in testRowBuilderOffer()
204 assertEquals(3, cursor.getLong(3)); in checkValues()
DCursorWindowTest.java87 long int2 = window.getLong(0, 1); in doTestValues()
92 assertEquals(1198032740000L, window.getLong(0, 3)); in doTestValues()
96 assertEquals(1198032740000L, window.getLong(0, 3)); in doTestValues()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyConstants.java95 long dasDiedServiceReconnectBackoffSec = parser.getLong( in DevicePolicyConstants()
101 long dasDiedServiceReconnectMaxBackoffSec = parser.getLong( in DevicePolicyConstants()
104 long dasDiedServiceStableConnectionThresholdSec = parser.getLong( in DevicePolicyConstants()
/frameworks/ex/common/java/com/android/common/
DOperationScheduler.java165 long triggerTimeMillis = mStorage.getLong(PREFIX + "triggerTimeMillis", Long.MAX_VALUE); in getNextTimeMillis()
200 return mStorage.getLong(PREFIX + "lastSuccessTimeMillis", 0); in getLastSuccessTimeMillis()
211 mStorage.getLong(PREFIX + "lastSuccessTimeMillis", 0), in getLastAttemptTimeMillis()
212 mStorage.getLong(PREFIX + "lastErrorTimeMillis", 0)); in getLastAttemptTimeMillis()
225 long time = mStorage.getLong(name, 0); in getTimeBefore()
/frameworks/base/services/core/java/com/android/server/utils/
DDeviceConfigInterface.java49 long getLong(@NonNull String namespace, @NonNull String name, long defaultValue); in getLong() method
93 public long getLong(String namespace, String name, long defaultValue) {
94 return DeviceConfig.getLong(namespace, name, defaultValue);
/frameworks/base/services/core/java/com/android/server/appbinding/
DAppBindingConstants.java94 long serviceReconnectBackoffSec = parser.getLong( in AppBindingConstants()
100 long serviceReconnectMaxBackoffSec = parser.getLong( in AppBindingConstants()
109 long serviceStableConnectionThresholdSec = parser.getLong( in AppBindingConstants()
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreConfig.java189 IDLE_JOB_PERIOD_MS = properties.getLong(key, DEFAULT_IDLE_JOB_PERIOD_MS); in refresh()
192 SESSION_EXPIRY_TIMEOUT_MS = properties.getLong(key, in refresh()
196 TOTAL_BYTES_PER_APP_LIMIT_FLOOR = properties.getLong(key, in refresh()
204 LEASE_ACQUISITION_WAIT_DURATION_MS = properties.getLong(key, in refresh()
208 COMMIT_COOL_OFF_DURATION_MS = properties.getLong(key, in refresh()
216 DELETE_ON_LAST_LEASE_DELAY_MS = properties.getLong(key, in refresh()
/frameworks/base/apex/statsd/framework/test/src/android/util/
DStatsEventTest.java67 .that(buffer.getLong()).isIn(Range.closed(minTimestamp, maxTimestamp)); in testNoFields()
114 .that(buffer.getLong()).isIn(Range.closed(minTimestamp, maxTimestamp)); in testOnlyAtomId()
161 .that(buffer.getLong()).isIn(Range.closed(minTimestamp, maxTimestamp)); in testIntBooleanIntInt()
230 .that(buffer.getLong()).isIn(Range.closed(minTimestamp, maxTimestamp)); in testStringFloatByteArray()
294 .that(buffer.getLong()).isIn(Range.closed(minTimestamp, maxTimestamp)); in testAttributionChainLong()
321 .that(buffer.getLong()).isEqualTo(field2); in testAttributionChainLong()
364 .that(buffer.getLong()).isIn(Range.closed(minTimestamp, maxTimestamp)); in testKeyValuePairs()
395 .that(buffer.getLong()).isEqualTo(longMap.valueAt(i)); in testKeyValuePairs()
458 .that(buffer.getLong()).isIn(Range.closed(minTimestamp, maxTimestamp)); in testSingleAnnotations()
542 .that(buffer.getLong()).isIn(Range.closed(minTimestamp, maxTimestamp)); in testAtomIdAnnotations()
[all …]
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/chunking/cdc/
DFingerprintMixer.java68 mAddend = buffer.getLong(); in FingerprintMixer()
71 mMultiplicand = buffer.getLong() | 1; in FingerprintMixer()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DDeviceConfigHelper.java41 public long getLong(String name, long defaultValue) { in getLong() method in DeviceConfigHelper
43 DeviceConfig.getLong(DeviceConfig.NAMESPACE_SYSTEMUI, name, defaultValue)); in getLong()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DSummaryForAllUidLoader.java64 final long start = mArgs.getLong(KEY_START); in loadInBackground()
65 final long end = mArgs.getLong(KEY_END); in loadInBackground()

1234567891011