Home
last modified time | relevance | path

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

123456

/frameworks/base/core/tests/coretests/src/android/os/
DPerformanceCollectorTest.java183 assertEquals(0, results.getLong("testAddMeasurementLongZero")); in testAddMeasurementLong()
185 assertEquals(348573, results.getLong("testAddMeasurementLongPos")); in testAddMeasurementLong()
187 assertEquals(-19354, results.getLong("testAddMeasurementLongNeg")); in testAddMeasurementLong()
403 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_CPU_TIME) > 0); in verifySnapshotBundle()
405 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_EXECUTION_TIME) > 0); in verifySnapshotBundle()
415 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_JAVA_ALLOCATED) > 0); in verifySnapshotBundle()
417 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_JAVA_FREE) > 0); in verifySnapshotBundle()
419 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_JAVA_PRIVATE_DIRTY) > 0); in verifySnapshotBundle()
421 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_JAVA_PSS) > 0); in verifySnapshotBundle()
423 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_JAVA_SHARED_DIRTY) > 0); in verifySnapshotBundle()
[all …]
/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/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()
DDatabaseStatementTest.java143 long num = c.getLong(numCol); in testStatementLongBinding()
236 long num = c.getLong(numCol); in testStatementMultipleBindings()
271 long num = c.getLong(numCol); in run()
318 long num = c.getLong(numCol); in testStatementConstraint()
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DMediaItemStatus.java209 return mBundle.getLong(KEY_TIMESTAMP); in getTimestamp()
232 return mBundle.getLong(KEY_CONTENT_POSITION, -1); in getContentPosition()
242 return mBundle.getLong(KEY_CONTENT_DURATION, -1); in getContentDuration()
/frameworks/ex/common/java/com/android/common/
DOperationScheduler.java166 long triggerTimeMillis = mStorage.getLong(PREFIX + "triggerTimeMillis", Long.MAX_VALUE); in getNextTimeMillis()
204 return mStorage.getLong(PREFIX + "lastSuccessTimeMillis", 0); in getLastSuccessTimeMillis()
215 mStorage.getLong(PREFIX + "lastSuccessTimeMillis", 0), in getLastAttemptTimeMillis()
216 mStorage.getLong(PREFIX + "lastErrorTimeMillis", 0)); in getLastAttemptTimeMillis()
229 long time = mStorage.getLong(name, 0); in getTimeBefore()
/frameworks/support/v4/ics/android/support/v4/media/session/
DMediaSessionCompatApi14.java146 metadata.getLong(METADATA_KEY_DISC_NUMBER)); in buildOldMetadata()
150 metadata.getLong(METADATA_KEY_DURATION)); in buildOldMetadata()
158 metadata.getLong(METADATA_KEY_NUM_TRACKS)); in buildOldMetadata()
166 metadata.getLong(METADATA_KEY_TRACK_NUMBER)); in buildOldMetadata()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java448 (int) getLong(PASSWORD_TYPE_KEY, DevicePolicyManager.PASSWORD_QUALITY_SOMETHING); in getActivePasswordQuality()
526 if (!isSecure() && getLong(DISABLE_LOCKSCREEN_KEY, 0) != 0) { in isLockScreenDisabled()
971 int quality = (int) getLong(PASSWORD_TYPE_KEY, in getKeyguardStoredPasswordQuality()
976 quality = (int) getLong(PASSWORD_TYPE_ALTERNATE_KEY, in getKeyguardStoredPasswordQuality()
993 int quality = (int) getLong( in usingBiometricWeak()
1061 long salt = getLong(LOCK_PASSWORD_SALT_KEY, 0, userId); in getSalt()
1113 long mode = getLong(PASSWORD_TYPE_KEY, 0); in isLockPasswordEnabled()
1114 long backupMode = getLong(PASSWORD_TYPE_ALTERNATE_KEY, 0); in isLockPasswordEnabled()
1142 getLong(PASSWORD_TYPE_ALTERNATE_KEY, in isLockPatternEnabled()
1147 && (getLong(PASSWORD_TYPE_KEY, DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED, in isLockPatternEnabled()
[all …]
/frameworks/base/core/tests/systemproperties/src/android/os/
DSystemPropertiesTest.java32 long ret = SystemProperties.getLong(PERSIST_KEY, -1); in testStressPersistPropertyConsistency()
41 long ret = SystemProperties.getLong(KEY, -1); in testStressMemoryPropertyConsistency()
/frameworks/base/core/java/android/net/
DNetworkStatsHistory.java273 entry.activeTime = getLong(activeTime, i, UNKNOWN); in getValues()
274 entry.rxBytes = getLong(rxBytes, i, UNKNOWN); in getValues()
275 entry.rxPackets = getLong(rxPackets, i, UNKNOWN); in getValues()
276 entry.txBytes = getLong(txBytes, i, UNKNOWN); in getValues()
277 entry.txPackets = getLong(txPackets, i, UNKNOWN); in getValues()
278 entry.operations = getLong(operations, i, UNKNOWN); in getValues()
371 entry.rxBytes = getLong(input.rxBytes, i, 0L); in recordHistory()
372 entry.rxPackets = getLong(input.rxPackets, i, 0L); in recordHistory()
373 entry.txBytes = getLong(input.txBytes, i, 0L); in recordHistory()
374 entry.txPackets = getLong(input.txPackets, i, 0L); in recordHistory()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DCoreSettingsObserver.java144 value = Settings.Secure.getLong(context.getContentResolver(), setting, 0); in populateSettings()
146 value = Settings.System.getLong(context.getContentResolver(), setting, 0); in populateSettings()
148 value = Settings.Global.getLong(context.getContentResolver(), setting, 0); in populateSettings()
/frameworks/support/v4/api21/android/support/v4/media/
DMediaMetadataCompatApi21.java34 public static long getLong(Object metadataObj, String key) { in getLong() method in MediaMetadataCompatApi21
35 return ((MediaMetadata)metadataObj).getLong(key); in getLong()
/frameworks/ex/common/java/com/android/common/contacts/
DDataUsageStatUpdater.java132 contactIds.add(cursor.getLong(0)); in updateWithAddress()
133 dataIds.add(cursor.getLong(1)); in updateWithAddress()
182 contactIds.add(cursor.getLong(0)); in updateWithPhoneNumber()
183 dataIds.add(cursor.getLong(1)); in updateWithPhoneNumber()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientAlternatesAdapter.java259 c.getLong(Queries.Query.CONTACT_ID), in processContactEntries()
261 c.getLong(Queries.Query.DATA_ID), in processContactEntries()
279 + " CONTACT ID : " + c.getLong(Queries.Query.CONTACT_ID) in processContactEntries()
500 original.getLong(Query.CONTACT_ID), in removeUndesiredDestinations()
501 original.getLong(Query.DATA_ID), in removeUndesiredDestinations()
554 c.getLong(Queries.Query.DATA_ID); in getItemId()
568 c.getLong(Queries.Query.CONTACT_ID), in getRecipientEntry()
570 c.getLong(Queries.Query.DATA_ID), in getRecipientEntry()
583 if (cursor.getLong(Queries.Query.DATA_ID) == mCurrentId) { in getView()
/frameworks/base/core/java/android/database/
DAbstractWindowedCursor.java73 public long getLong(int columnIndex) { in getLong() method in AbstractWindowedCursor
75 return mWindow.getLong(mPos, columnIndex); in getLong()
DCursorWrapper.java105 public long getLong(int columnIndex) { in getLong() method in CursorWrapper
106 return mCursor.getLong(columnIndex); in getLong()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRootCursorWrapper.java108 public long getLong(int column) { in getLong() method in RootCursorWrapper
109 return mCursor.getLong(column); in getLong()
DFilteringCursorWrapper.java113 public long getLong(int column) { in getLong() method in FilteringCursorWrapper
114 return mCursor.getLong(column); in getLong()
/frameworks/base/media/java/android/media/
DMediaMetadataEditor.java331 public synchronized long getLong(int key, long defaultValue) in getLong() method in MediaMetadataEditor
336 return mEditorMetadata.getLong(String.valueOf(key), defaultValue); in getLong()
385 return mEditorMetadata.getLong(String.valueOf(key)); in getObject()
/frameworks/base/core/java/android/app/
DDownloadManager.java1107 + cursor.getLong(cursor.getColumnIndex(COLUMN_ID))); in restartDownload()
1133 return Settings.Global.getLong(context.getContentResolver(), in getMaxBytesOverMobile()
1151 return Settings.Global.getLong(context.getContentResolver(), in getRecommendedMaxBytesOverMobile()
1298 return (int) getLong(columnIndex); in getInt()
1302 public long getLong(int columnIndex) { in getLong() method in DownloadManager.CursorTranslator
1308 return super.getLong(columnIndex); in getLong()
1319 long destinationType = getLong(getColumnIndex(Downloads.Impl.COLUMN_DESTINATION)); in getLocalUri()
1331 long downloadId = getLong(getColumnIndex(Downloads.Impl._ID)); in getLocalUri()
/frameworks/base/core/java/android/os/
DPerformanceCollector.java461 mPerfSnapshot.putLong("pre_" + key, binderCounts.getLong(key)); in startPerformanceSnapshot()
504 mPerfSnapshot.putLong(key, binderCounts.getLong(key)); in endPerformanceSnapshot()
510 mPerfSnapshot.putLong(key, allocCounts.getLong(key)); in endPerformanceSnapshot()
/frameworks/support/tests/java/android/support/v4/content/
DFileProviderTest.java181 assertEquals(TEST_DATA.length, cursor.getLong(cursor.getColumnIndex(SIZE))); in testQueryProjectionNull()
197 assertEquals(TEST_DATA.length, cursor.getLong(0)); in testQueryProjectionOrder()
209 assertEquals(TEST_DATA.length, cursor.getLong(1)); in testQueryProjectionOrder()
225 assertEquals(TEST_DATA.length, cursor.getLong(0)); in testQueryExtraColumn()
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DDownloadManagerBaseTest.java141 long id = intent.getExtras().getLong(DownloadManager.EXTRA_DOWNLOAD_ID); in onReceive()
495 if (id == response.getLong(index)) { in getBytesDownloaded()
505 long size = response.getLong(index); in getBytesDownloaded()
523 long downloadId = cursor.getLong(index); in removeAllCurrentDownloads()
/frameworks/support/v4/java/android/support/v4/media/
DMediaMetadataCompat.java312 public long getLong(String key) { in getLong() method in MediaMetadataCompat
313 return mBundle.getLong(key, 0); in getLong()
486 MediaMetadataCompatApi21.getLong(metadataObj, key)); in fromMediaMetadata()
530 getLong(key)); in getMediaMetadata()

123456