Home
last modified time | relevance | path

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

1234

/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/ex/chips/src/com/android/ex/chips/
DRecipientAlternatesAdapter.java91 c.getLong(EmailQuery.CONTACT_ID), in getMatchingRecipients()
92 c.getLong(EmailQuery.DATA_ID), in getMatchingRecipients()
98 + " CONTACT ID : " + c.getLong(EmailQuery.CONTACT_ID) in getMatchingRecipients()
126 c.getLong(EmailQuery.DATA_ID); in getItemId()
137 c.getLong(EmailQuery.CONTACT_ID), c.getLong(EmailQuery.DATA_ID), in getRecipientEntry()
148 if (cursor.getLong(EmailQuery.DATA_ID) == mCurrentId) { in getView()
/frameworks/ex/common/java/com/android/common/
DOperationScheduler.java150 long triggerTimeMillis = mStorage.getLong(PREFIX + "triggerTimeMillis", Long.MAX_VALUE); in getNextTimeMillis()
175 return mStorage.getLong(PREFIX + "lastSuccessTimeMillis", 0); in getLastSuccessTimeMillis()
186 mStorage.getLong(PREFIX + "lastSuccessTimeMillis", 0), in getLastAttemptTimeMillis()
187 mStorage.getLong(PREFIX + "lastErrorTimeMillis", 0)); in getLastAttemptTimeMillis()
200 long time = mStorage.getLong(name, 0); in getTimeBefore()
334 time.set(mStorage.getLong(key, 0)); in toString()
/frameworks/base/core/tests/coretests/src/android/database/
DCursorWindowTest.java105 long int2 = window.getLong(0, 1); in doTestValues()
110 assertEquals(1198032740000L, window.getLong(0, 3)); in doTestValues()
114 assertEquals(1198032740000L, window.getLong(0, 3)); in doTestValues()
135 assertEquals(0, window.getLong(0, 0)); in testNull()
147 assertEquals(0, window.getLong(0, 0)); in testEmptyString()
DMatrixCursorTest.java41 assertEquals(0L, cursor.getLong(0)); in testNullValue()
154 assertEquals(3, cursor.getLong(3)); in checkValues()
DDatabaseStatementTest.java145 long num = c.getLong(numCol); in testStatementLongBinding()
238 long num = c.getLong(numCol); in testStatementMultipleBindings()
273 long num = c.getLong(numCol); in run()
320 long num = c.getLong(numCol); in testStatementConstraint()
/frameworks/base/core/java/android/net/
DDownloads.java252 result.id = c.getLong(DOWNLOADS_COLUMN_ID); in getStatus()
254 result.bytesSoFar = c.getLong(DOWNLOADS_COLUMN_CURRENT_BYTES); in getStatus()
258 long modTime = c.getLong(DOWNLOADS_COLUMN_LAST_MODIFICATION); in getStatus()
268 result.bytesSoFar = c.getLong(DOWNLOADS_COLUMN_CURRENT_BYTES); in getStatus()
448 result.id = c.getLong(DOWNLOADS_COLUMN_ID); in getStatus()
450 result.bytesSoFar = c.getLong(DOWNLOADS_COLUMN_CURRENT_BYTES); in getStatus()
454 long modTime = c.getLong(DOWNLOADS_COLUMN_LAST_MODIFICATION); in getStatus()
457 result.bytesSoFar = c.getLong(DOWNLOADS_COLUMN_CURRENT_BYTES); in getStatus()
618 long modified = c.getLong(DOWNLOADS_COLUMN_LAST_MODIFICATION); in getStatusOfDownload()
DNetworkStatsHistory.java245 entry.activeTime = getLong(activeTime, i, UNKNOWN); in getValues()
246 entry.rxBytes = getLong(rxBytes, i, UNKNOWN); in getValues()
247 entry.rxPackets = getLong(rxPackets, i, UNKNOWN); in getValues()
248 entry.txBytes = getLong(txBytes, i, UNKNOWN); in getValues()
249 entry.txPackets = getLong(txPackets, i, UNKNOWN); in getValues()
250 entry.operations = getLong(operations, i, UNKNOWN); in getValues()
326 entry.rxBytes = getLong(input.rxBytes, i, 0L); in recordEntireHistory()
327 entry.rxPackets = getLong(input.rxPackets, i, 0L); in recordEntireHistory()
328 entry.txBytes = getLong(input.txBytes, i, 0L); in recordEntireHistory()
329 entry.txPackets = getLong(input.txPackets, i, 0L); in recordEntireHistory()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java364 (int) getLong(PASSWORD_TYPE_KEY, DevicePolicyManager.PASSWORD_QUALITY_SOMETHING); in getActivePasswordQuality()
430 return !isSecure() && getLong(DISABLE_LOCKSCREEN_KEY, 0) != 0; in isLockScreenDisabled()
700 (int) getLong(PASSWORD_TYPE_KEY, DevicePolicyManager.PASSWORD_QUALITY_SOMETHING); in getKeyguardStoredPasswordQuality()
705 (int) getLong(PASSWORD_TYPE_ALTERNATE_KEY, in getKeyguardStoredPasswordQuality()
716 (int) getLong(PASSWORD_TYPE_KEY, DevicePolicyManager.PASSWORD_QUALITY_SOMETHING); in usingBiometricWeak()
783 long salt = getLong(LOCK_PASSWORD_SALT_KEY, 0); in getSalt()
835 long mode = getLong(PASSWORD_TYPE_KEY, 0); in isLockPasswordEnabled()
836 long backupMode = getLong(PASSWORD_TYPE_ALTERNATE_KEY, 0); in isLockPasswordEnabled()
855 getLong(PASSWORD_TYPE_ALTERNATE_KEY, DevicePolicyManager.PASSWORD_QUALITY_SOMETHING) in isLockPatternEnabled()
859 && (getLong(PASSWORD_TYPE_KEY, DevicePolicyManager.PASSWORD_QUALITY_SOMETHING) 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/os/
DBuild.java324 public static final long TIME = getLong("ro.build.date.utc") * 1000;
340 private static long getLong(String property) { in getLong() method in Build
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/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/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.java101 public long getLong(int columnIndex) { in getLong() method in CursorWrapper
102 return mCursor.getLong(columnIndex); in getLong()
DMergeCursor.java114 public long getLong(int column) in getLong() method in MergeCursor
116 return mCursor.getLong(column); in getLong()
DCursorWindow.java510 public long getLong(int row, int column) { in getLong() method in CursorWindow
566 return (short) getLong(row, column); in getShort()
583 return (int) getLong(row, column); in getInt()
DCursor.java283 long getLong(int columnIndex); in getLong() method
/frameworks/base/core/java/android/app/
DDownloadManager.java1050 + cursor.getLong(cursor.getColumnIndex(COLUMN_ID))); in restartDownload()
1075 return Settings.Secure.getLong(context.getContentResolver(), in getMaxBytesOverMobile()
1093 return Settings.Secure.getLong(context.getContentResolver(), in getRecommendedMaxBytesOverMobile()
1216 return (int) getLong(columnIndex); in getInt()
1220 public long getLong(int columnIndex) { in getLong() method in DownloadManager.CursorTranslator
1226 return super.getLong(columnIndex); in getLong()
1237 long destinationType = getLong(getColumnIndex(Downloads.Impl.COLUMN_DESTINATION)); in getLocalUri()
1249 long downloadId = getLong(getColumnIndex(Downloads.Impl._ID)); in getLocalUri()
/frameworks/base/services/java/com/android/server/
DBootReceiver.java101 if (SystemProperties.getLong("ro.runtime.firstboot", 0) == 0) { in logBootEvents()
153 long lastTime = prefs.getLong(filename, 0); in addFileToDropBox()
/frameworks/base/media/java/android/mtp/
DMtpPropertyGroup.java259 return new Long(c.getLong(1)); in queryLong()
340 handle = (int)c.getLong(0); in getPropertyList()
397 long puid = c.getLong(column); in getPropertyList()
429 c.getLong(column)); in getPropertyList()
/frameworks/base/core/java/android/webkit/
DWebViewDatabase.java520 cookie.expires = cursor.getLong(expiresCol); in getCookiesForDomain()
702 ret.expires = cursor.getLong(3); in getCache()
708 ret.contentLength = cursor.getLong(9); in getCache()
807 size = cursor.getLong(0); in getCacheTotalSize()
838 long length = cursor.getLong(0); in trimCache()
1104 urlid = cursor.getLong(cursor.getColumnIndex(ID_COL)); in setFormData()
1154 long urlid = cursor.getLong(cursor.getColumnIndex(ID_COL)); in getFormData()
/frameworks/base/core/java/com/android/internal/util/
DTypedProperties.java514 public long getLong(String property, long def) { in getLong() method in TypedProperties
647 public long getLong(String property) { in getLong() method in TypedProperties
648 return getLong(property, 0L); in getLong()
/frameworks/base/media/java/android/media/
DMiniThumbFile.java167 return mBuffer.getLong(); in getMagic()
249 long magic = mBuffer.getLong(); in getMiniThumbFromFile()
/frameworks/base/core/java/android/content/
DSharedPreferences.java290 long getLong(String key, long defValue); in getLong() method

1234